:root{--y:#ffff00;--olive:#6e6a1d;--yb:#c8c800;--yg:rgba(255,255,0,.45);--ys:rgba(255,255,0,.18);--bg:#000;--panel:#0d0d0d;--line:#2c2c2c;--txt:#fff;--mut:#bdbdbd;--blue:#2aa8e0;--pur1:#6a4fe0;--pur2:#3a2aa6;
--sat:env(safe-area-inset-top);--sab:env(safe-area-inset-bottom);--sal:env(safe-area-inset-left);--sar:env(safe-area-inset-right)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--txt);font-family:Roboto,-apple-system,Segoe UI,sans-serif;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input{font:inherit;-webkit-user-select:text;user-select:text}
img{-webkit-user-drag:none}
.scr{position:fixed;inset:0;display:none;flex-direction:column;background:#000 center/cover no-repeat;padding:calc(var(--sat) + 6px) calc(var(--sar) + 10px) calc(var(--sab) + 6px) calc(var(--sal) + 10px)}
.scr.on{display:flex}
.scr.dim::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.55);pointer-events:none}
.scr>*{position:relative}
.logo{height:34px;width:auto;display:block}
.hdr{display:flex;align-items:center;gap:14px;min-height:46px;flex:0 0 auto}
.hdr .grow{flex:1}
.hdr .clock{font-size:16px;color:#eee;white-space:nowrap}
.hdr .sub{font-size:20px;color:#ddd;border-left:2px solid #ddd;padding-left:10px}
.ib{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex:0 0 auto}
.ib svg{width:28px;height:28px;fill:#fff}
.ib:active{background:rgba(255,255,255,.15)}
.pur{background:linear-gradient(180deg,var(--pur1),var(--pur2))}
.spin{width:40px;height:40px;border:4px solid #444;border-top-color:var(--y);border-radius:50%;animation:sp 0.8s linear infinite;margin:30px auto}
@keyframes sp{to{transform:rotate(360deg)}}
.btn{background:var(--grad,var(--y));color:#000;font-weight:700;border-radius:6px;padding:12px 26px;font-size:17px;text-transform:uppercase}
.btn.g{background:#3a3a3a;color:#fff}
.btn:active{filter:brightness(.85)}
.fld{width:100%;padding:13px 14px;border-radius:6px;border:1px solid #444;background:rgba(20,20,20,.9);color:#fff;font-size:16px;margin:6px 0}
.fld:focus{outline:none;border-color:var(--y)}
.kf{outline:3px solid var(--y)!important;outline-offset:-3px;box-shadow:0 0 14px var(--yg)}
.ib.kf,.t.kf,.btn.kf{outline-offset:2px}
.chr.kf,.crow.kf,.row.kf,.opt.kf,.gr.kf,.epi.kf,.plrow.kf{background:var(--ys)}
.card.kf{transform:scale(1.04);z-index:2}
.pww{position:relative;width:100%}.pww .fld{padding-right:50px}
.eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.eye svg{width:24px;height:24px;fill:#bbb}
#toast{position:fixed;left:50%;bottom:calc(var(--sab) + 30px);transform:translateX(-50%);background:rgba(30,30,30,.95);border:1px solid var(--y);color:#fff;padding:10px 18px;border-radius:8px;font-size:15px;z-index:99;display:none;max-width:86vw;text-align:center}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.empty{color:#999;text-align:center;padding:30px;font-size:16px}

/* login */
#s-login,#s-addpl{align-items:center;justify-content:center;background-image:url(/assets/login_new_bg.jpg)}
.lbox{width:min(520px,92vw);text-align:center;background:rgba(0,0,0,.6);border:1px solid #333;border-radius:12px;padding:24px 26px}
.lbox .logo{height:56px;margin:0 auto 14px}
.did{font-size:30px;font-weight:700;letter-spacing:3px;color:var(--y);margin:8px 0 4px;-webkit-user-select:all;user-select:all}
.lmsg{color:#ddd;font-size:15px;min-height:20px;margin:10px 0}
.lmsg.err{color:#ff6b6b}
.pllist{max-height:34vh;overflow:auto;margin-top:12px;text-align:left}
.plrow{display:flex;align-items:center;gap:10px;padding:11px 10px;border-bottom:1px solid #333}
.plrow .ell{flex:1}
.plrow.cur{background:var(--gsel,var(--olive))}

/* dashboard */
#s-home{background-image:url(/assets/dashboard_background.jpg)}
.dash{flex:1;display:flex;gap:2.2vw;min-height:0;padding:1vh 1vw}
.side{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:64px;flex:0 0 auto}
.side .ib svg{width:34px;height:34px}
.tiles{flex:1;display:grid;grid-template-columns:1fr 1.7fr;grid-template-rows:1fr 1fr 1fr .15fr 1.6fr;gap:1.4vh 1.2vw;min-height:0}
.t{position:relative;border:1px solid var(--yb);background:#000 center/cover no-repeat;display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:700;text-transform:uppercase;color:#fff}
.t:active{filter:brightness(1.3)}
.t.sm{gap:14px;font-size:clamp(14px,2.2vw,26px)}
.t.sm svg{width:clamp(26px,3.4vw,46px);height:auto;fill:none;stroke:#fff;stroke-width:2}
.t.sm::before,.t.sm::after{content:"";position:absolute;top:50%;width:26px;height:44px;background:var(--grad,var(--y));border-radius:50%;transform:translateY(-50%)}
.t.sm::before{left:-14px}.t.sm::after{right:-14px}
.t.big{flex-direction:column;font-size:clamp(24px,4.5vw,56px);background-size:100% 100%}
.t.big .lu{font-size:clamp(12px,1.7vw,20px);font-weight:400;text-transform:none;display:flex;align-items:center;gap:14px;margin-top:4%}
.t.big .rf{background:#fff;border-radius:8px;width:clamp(40px,4.6vw,62px);height:clamp(26px,3vw,40px);display:flex;align-items:center;justify-content:center}
.t.big .rf svg{width:60%;height:70%;fill:#000}
.t-live{grid-column:2;grid-row:1/4}
.t-mov,.t-ser{grid-row:5}
.botrow{grid-column:1/3;grid-row:5;display:grid;grid-template-columns:1fr 1fr;gap:1.2vw}
.foot{display:flex;justify-content:space-between;font-size:16px;color:#eee;padding:4px 2vw 0}
.foot b{color:#fff}

/* split screens (live / vod / series) */
.split{flex:1;display:flex;min-height:0;gap:0}
.catp{width:33%;max-width:420px;display:flex;flex-direction:column;background:#000;min-height:0}
.catp .ch{display:flex;align-items:center;gap:12px;padding:4px 6px 10px}
.catp .ch .logo{height:40px}
.srch{display:flex;align-items:center;gap:10px;background:#1c1c1c;padding:10px 12px;margin:0 0 4px}
.srch svg{width:22px;height:22px;fill:#ddd;flex:0 0 auto}
.srch input{flex:1;background:none;border:0;color:#fff;font-size:16px;outline:none;min-width:0}
.clist{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.crow{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-bottom:1px solid #222;font-size:17px;text-transform:uppercase}
.crow span:first-child{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}
.crow.sel{background:var(--gsel,var(--olive))}
.mainp{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;padding-left:10px}
.mh{display:flex;align-items:center;gap:8px;min-height:50px}
.mh .ttl{flex:1;text-align:center;font-weight:700;font-size:20px;text-transform:uppercase}
.grid{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;align-content:start;grid-auto-rows:max-content;padding-bottom:20px}
.card{position:relative;background:#1b1b1b center/cover no-repeat;border-radius:4px;overflow:hidden}
.card::before{content:"";display:block;padding-top:150%}
.card .nm{position:absolute;left:0;right:0;bottom:0;padding:22px 5px 6px;background:linear-gradient(transparent,rgba(0,0,0,.92));font-size:14px;text-align:center;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .rt{position:absolute;left:5px;top:5px;background:#1f7ad8;color:#fff;font-size:13px;border-radius:4px;padding:2px 6px}
.card .pg{position:absolute;left:0;bottom:0;height:3px;background:var(--grad,var(--y))}
.card.ch::before{padding-top:87%}
.card.ch{background-size:80% auto;background-color:#d8d8d8}
.card.ch .nm{color:#fff}
.card:active{outline:2px solid var(--y)}
.menu-btn{display:none}

/* live list */
.lv{flex:1;display:flex;gap:12px;min-height:0}
.lv .left{width:42%;display:flex;flex-direction:column;background:rgba(0,0,0,.85);min-height:0}
.catsw{display:flex;align-items:center;justify-content:space-between;padding:10px 6px;font-weight:700;font-size:19px;text-transform:uppercase}
.catsw .nm{flex:1;text-align:center}
.chl{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.chr{display:flex;align-items:center;gap:10px;padding:8px 8px;border-bottom:1px solid #1f1f1f}
.chr.sel{background:var(--gsel,var(--olive))}
.chr .num{width:44px;font-size:16px;font-weight:700;text-align:right;flex:0 0 auto}
.chr .lg{width:64px;height:42px;background:#d8d8d8 center/contain no-repeat;flex:0 0 auto;border-radius:2px}
.chr .tx{flex:1;min-width:0}
.chr .a{font-size:17px}
.chr .b{font-size:13px;color:#ddd}
.chr .bar{height:2px;background:#555;margin-top:5px}
.chr .bar i{display:block;height:100%;background:#f0a800}
.lv .right{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.pvrow{display:flex;gap:10px;flex:0 0 auto}
.pv{position:relative;flex:1.3;aspect-ratio:16/9;background:#111;overflow:hidden}
.pv video{width:100%;height:100%;object-fit:contain;background:#000}
.pvi{flex:1;background:rgba(10,10,10,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;min-width:0}
.badge{background:var(--olive);padding:4px 12px;font-size:18px}
.pvi .cn{font-weight:700;font-size:20px;margin:8px 0}
.pvi .pt{color:var(--blue);font-size:16px;max-width:100%}
.pvi .tm{color:#ccc;font-size:15px;margin-top:6px}
.epgl{flex:1;overflow-y:auto;background:rgba(10,10,10,.85);padding:6px 10px}
.ep{padding:6px 0;border-bottom:1px solid #222}
.ep .h{font-size:16px}
.ep .h b{color:var(--blue);font-weight:400}
.ep .d{font-size:13px;color:#ccc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* detail */
#s-detail{background-size:cover}
.det{flex:1;display:flex;gap:4vw;padding:2vh 3vw;min-height:0;overflow-y:auto}
.det .pst{width:min(26vw,220px);flex:0 0 auto}
.det .pst img{width:100%;border-radius:2px;display:block}
.stars{text-align:center;font-size:24px;color:var(--y);margin-top:8px;letter-spacing:2px}
.stars i{color:#666;font-style:normal}
.dinfo{flex:1;min-width:0}
.drow{display:flex;gap:16px;margin:0 0 14px;font-size:17px}
.drow .k{width:150px;flex:0 0 auto;color:#ddd;font-weight:700}
.drow .v{color:#ddd}
.plot{color:#ccc;font-size:15px;line-height:1.4;margin:6px 0 16px}
.acts{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
.pbtn{background:rgba(80,80,80,.85);border-radius:6px;padding:14px 40px;font-size:18px;font-weight:700}
.pbtn:active{background:var(--olive)}
.heart svg{width:44px;height:44px;fill:#fff}
.heart.on svg{fill:#e53935}
.seas{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px}
.seas button{background:#2a2a2a;padding:8px 16px;border-radius:5px;white-space:nowrap}
.seas button.on{background:var(--gsel,var(--olive))}
.epi{display:flex;gap:12px;align-items:center;padding:10px;border-bottom:1px solid #2a2a2a;background:rgba(0,0,0,.4)}
.epi img{width:110px;aspect-ratio:16/9;object-fit:cover;background:#222;flex:0 0 auto}
.epi .ell{font-size:16px}
.epi .s{font-size:13px;color:#bbb}

/* player */
#s-player{padding:0;background:#000;z-index:20}
#s-player video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
#s-player video.cover{object-fit:cover}#s-player video.fill{object-fit:fill}
.pctl{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:calc(var(--sat) + 10px) calc(var(--sar) + 18px) calc(var(--sab) + 10px) calc(var(--sal) + 18px);background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.05) 30%,rgba(0,0,0,.05) 60%,rgba(0,0,0,.75));transition:opacity .25s}
.pctl.hide{opacity:0;pointer-events:none}
.ptop{display:flex;align-items:center;gap:14px}
.ptop .ttl{flex:1;font-size:20px}
.pmid{display:flex;align-items:center;justify-content:center;gap:12vw}
.pmid .ib{width:70px;height:70px}
.pmid .ib svg{width:54px;height:54px}
.pmid .pp svg{width:66px;height:66px}
.pbot{display:flex;flex-direction:column;gap:8px}
.seek{display:flex;align-items:center;gap:14px;font-size:17px}
.seek input{flex:1;accent-color:#fff;height:28px}
.prow{display:flex;justify-content:center;gap:7vw;font-size:18px}
.prow button{display:flex;align-items:center;gap:10px}
.prow svg{width:30px;height:30px;fill:#fff}
.nown{display:grid;grid-template-columns:1fr auto;gap:4px 16px;font-size:16px}
.nown .bar{grid-column:1/3;height:3px;background:#666}.nown .bar i{display:block;height:100%;background:#f0a800}
.plock{position:absolute;right:calc(var(--sar) + 20px);top:calc(var(--sat) + 12px);display:none}
.pbuf{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:none}
.perr{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.8);padding:16px 22px;border-radius:8px;text-align:center;display:none;max-width:80vw}
.chov{position:absolute;inset:0;display:none;background:rgba(0,0,0,.55)}
.chov.on{display:flex}
.chov .cats{width:30%;overflow-y:auto;background:rgba(0,0,0,.6);padding-top:calc(var(--sat) + 60px)}
.chov .chs{width:32%;overflow-y:auto;background:rgba(0,0,0,.6)}
.chov .x{position:absolute;left:calc(var(--sal) + 18px);top:calc(var(--sat) + 10px);display:flex;align-items:center;gap:14px;font-size:22px}
.sheet{position:absolute;right:0;top:0;bottom:0;width:min(340px,80vw);background:rgba(15,15,15,.96);padding:calc(var(--sat) + 14px) 16px;overflow-y:auto;display:none}
.sheet.on{display:block}
.sheet h4{margin:14px 0 6px;color:var(--y);font-weight:500}
.opt{padding:11px 10px;border-bottom:1px solid #2a2a2a}
.opt.on{background:var(--gsel,var(--olive))}

/* account / settings / generic list pages */
.page{flex:1;overflow-y:auto;padding:10px 4vw;min-height:0}
.kv{display:flex;justify-content:space-between;gap:20px;padding:14px 6px;border-bottom:1px solid #2a2a2a;font-size:17px}
.kv span:last-child{color:var(--y);text-align:right}
.sect{color:var(--y);margin:18px 0 6px;font-size:15px;text-transform:uppercase}
.row{display:flex;align-items:center;gap:10px;padding:14px 8px;border-bottom:1px solid #262626;font-size:17px}
.row .grow{flex:1;min-width:0}
.row:active{background:#1d1d1d}

/* epg guide */
.gd{flex:1;overflow-y:auto}
.gr{display:flex;border-bottom:1px solid #222;min-height:62px}
.gr .gc{width:210px;flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:6px;background:rgba(0,0,0,.7)}
.gr .gc .lg{width:54px;height:36px;background:#d8d8d8 center/contain no-repeat;flex:0 0 auto}
.gr .gp{flex:1;display:flex;gap:2px;min-width:0}
.gp .pr{flex:1;padding:6px 10px;background:rgba(30,30,30,.85);min-width:0}
.gp .pr.now{background:rgba(110,106,29,.85)}
.gp .pr .t{font-size:13px;color:#ccc}
.gp .pr .n{font-size:15px}

/* multi-screen */
.ms{flex:1;display:grid;gap:4px;min-height:0}
.ms.n1{grid-template-columns:1fr}.ms.n2{grid-template-columns:1fr 1fr}.ms.n3,.ms.n4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.cell{position:relative;background:#111;border:2px solid #222;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cell.act{border-color:var(--y)}
.cell video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.cell .add{font-size:46px;color:#888}
.cell .lbl{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.6);padding:2px 8px;font-size:13px}
.cell .cx{position:absolute;right:4px;top:4px;width:30px;height:30px;background:rgba(0,0,0,.6);border-radius:50%}
.modal{position:fixed;inset:0;background:#000;z-index:50;display:none;padding:calc(var(--sat) + 10px) calc(var(--sar) + 10px) calc(var(--sab) + 10px) calc(var(--sal) + 10px)}
.modal.on{display:flex;flex-direction:column}
.rot{position:fixed;inset:0;z-index:90;background:#000;display:none;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:30px}

/* portrait */
@media (orientation:portrait){
  .logo{height:28px}
  .hdr .clock{display:none}
  .dash{flex-direction:column-reverse;gap:10px}
  .side{flex-direction:row;width:auto;justify-content:space-between;padding:0 6px}
  .tiles{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-auto-rows:auto;display:grid;overflow-y:auto;align-content:start}
  .t-live{grid-column:1/4;grid-row:auto;aspect-ratio:2/1;order:-1}
  .t.sm{grid-column:auto;min-height:70px;font-size:14px;flex-direction:column;gap:6px}
  .t.sm::before,.t.sm::after{width:16px;height:30px;left:-9px}.t.sm::after{left:auto;right:-9px}
  .botrow{grid-column:1/4;grid-row:auto;grid-template-columns:1fr;gap:10px}
  .botrow .t{aspect-ratio:2.2/1}
  .tiles .spacer{display:none}
  .foot{font-size:13px}
  .split{position:relative}
  .catp{position:absolute;left:0;top:0;bottom:0;width:82%;max-width:none;z-index:5;display:none;box-shadow:6px 0 18px #000}
  .catp.open{display:flex}
  .menu-btn{display:flex}
  .mainp{padding-left:0}
  .grid{grid-template-columns:repeat(3,1fr)}
  .lv{flex-direction:column}
  .lv .left{width:100%;flex:1;order:2}
  .lv .right{flex:0 0 auto;order:1}
  .pvrow{flex-direction:column}.pvi,.epgl{display:none}
  .det{flex-direction:column;align-items:center}
  .det .pst{width:44vw}
  .drow .k{width:110px}
  .pmid{gap:8vw}
  .prow{gap:5vw;font-size:14px}
  .prow span{display:none}
  .chov .cats{width:45%}.chov .chs{width:55%}
  .gr .gc{width:120px}.gr .gc span{display:none}
}
.t.kf,.ib.kf,.btn.kf{outline:5px solid #fff!important;outline-offset:3px;transform:scale(1.04);filter:brightness(1.35);z-index:5;box-shadow:0 0 28px rgba(255,255,255,.6)}

html.tv .chr .num{display:none}
html.tv #s-home .side{width:100px}
html.tv #s-home .side .ib{width:72px;height:72px}
html.tv #s-home .side .ib svg{width:52px;height:52px}
html.tv #s-home .hdr{min-height:64px}
html.tv #s-home .hdr .logo{height:48px}
html.tv #s-home .hdr .clock{font-size:24px}
html.tv #s-home .hdr .ib svg{width:38px;height:38px}
html.tv #s-home .hdr .ib span{font-size:24px!important}
html.tv #s-home .hdr .ib{height:60px}
html.tv #s-home .foot{font-size:22px}
html[data-theme=blue]{--y:#2aa8e0;--olive:#1d4f6e;--yb:#2290c0;--yg:rgba(42,168,224,.45);--ys:rgba(42,168,224,.2)}
html[data-theme=red]{--y:#ff3b3b;--olive:#6e1d1d;--yb:#d03030;--yg:rgba(255,59,59,.45);--ys:rgba(255,59,59,.2)}
html[data-theme=green]{--y:#3ddc6a;--olive:#1d6e35;--yb:#30b055;--yg:rgba(61,220,106,.45);--ys:rgba(61,220,106,.2)}
html[data-theme=purple]{--y:#a46bff;--olive:#4a2a8a;--yb:#8655d8;--yg:rgba(164,107,255,.45);--ys:rgba(164,107,255,.2)}
.thsw{display:inline-block;width:28px;height:28px;border-radius:50%;margin-right:16px;vertical-align:middle;border:2px solid #fff}
html.tv #pair{display:none}
html[data-theme=pink]{--y:#ff5cb8;--olive:#7a2457;--yb:#e04a9e;--yg:rgba(255,92,184,.5);--ys:rgba(255,92,184,.22)}
html[data-theme=grey]{--y:#b0b0b0;--olive:#4a4a4a;--yb:#8c8c8c;--yg:rgba(200,200,200,.45);--ys:rgba(200,200,200,.2)}
.card.kf{outline:5px solid var(--y)!important;outline-offset:3px;transform:scale(1.04);filter:brightness(1.2);z-index:5;box-shadow:0 0 28px var(--yg)}
/* confirm dialog */
.modal.cfm{background:rgba(0,0,0,.72);align-items:center;justify-content:center}
.cbox{background:#161616;border:2px solid var(--y);border-radius:16px;padding:28px 32px;min-width:340px;max-width:80vw;box-shadow:0 10px 40px rgba(0,0,0,.7)}
.cmsg{font-size:19px;line-height:1.4;margin-bottom:22px;text-align:center}
.cbtns{display:flex;gap:14px;justify-content:center}
.cbtns .btn{min-width:130px;border-radius:30px}
.cbtns .cno{background:#333;color:#fff}
/* search pill */
.srch{border-radius:30px;background:rgba(255,255,255,.08);border:2px solid rgba(255,255,255,.12);transition:border-color .15s,box-shadow .15s}
.srch:focus-within,.srch.kfw{border-color:var(--y);box-shadow:0 0 16px var(--yg);background:rgba(255,255,255,.12)}
.srch input.kf{outline:none!important;box-shadow:none!important;background:none!important}
.srch input::placeholder{color:#aaa}
html.tv .srch{padding:12px 24px;gap:16px;margin:2px 2px 12px}
html.tv .srch svg{width:34px;height:34px}
html.tv .srch input{font-size:28px;height:50px}
html.tv .cmsg{font-size:26px}
html.tv .cbtns .btn{font-size:22px;padding:14px 30px}
html.tv .cbox{padding:36px 44px}
/* two-colour themes */
html[data-theme=sunset]{--y:#ff3d8b;--y2:#ffb03b;--olive:#7a2346;--yb:#ff5a7a;--yg:rgba(255,120,100,.55);--ys:rgba(255,61,139,.22);--grad:linear-gradient(90deg,#ff3d8b,#ffb03b);--gsel:linear-gradient(90deg,rgba(255,61,139,.55),rgba(255,176,59,.45))}
html[data-theme=aurora]{--y:#00e5ff;--y2:#8a5cff;--olive:#2a3f7a;--yb:#3fb6ff;--yg:rgba(90,140,255,.55);--ys:rgba(0,229,255,.18);--grad:linear-gradient(90deg,#00e5ff,#8a5cff);--gsel:linear-gradient(90deg,rgba(0,229,255,.4),rgba(138,92,255,.5))}
html[data-theme=sunset] .kf,html[data-theme=aurora] .kf{box-shadow:0 0 0 2px var(--y2),0 0 22px var(--yg)!important}
html[data-theme=sunset] .chr.kf,html[data-theme=sunset] .crow.kf,html[data-theme=sunset] .row.kf,html[data-theme=sunset] .opt.kf,html[data-theme=aurora] .chr.kf,html[data-theme=aurora] .crow.kf,html[data-theme=aurora] .row.kf,html[data-theme=aurora] .opt.kf{background:var(--gsel)!important}
html[data-theme=sunset] .thsw.sunset,.thsw.sunset{background:linear-gradient(135deg,#ff3d8b,#ffb03b)!important}
.thsw.aurora{background:linear-gradient(135deg,#00e5ff,#8a5cff)!important}
.srch input,.srch input:focus,.srch input:focus-visible,.srch input:active{outline:none!important;outline-width:0!important;box-shadow:none!important;border:0!important;-webkit-appearance:none;appearance:none;background:transparent!important}
/* search input never gets its own ring (any theme) - the pill shows focus */
html .srch input,html .srch input.kf,html[data-theme] .srch input,html[data-theme] .srch input.kf,html[data-theme] .srch input:focus{outline:none!important;box-shadow:none!important;border:0!important;background:transparent!important}
/* inner action buttons reachable by remote: refresh on tiles, delete on playlists, close on multi-screen */
.t.big .rf{transition:transform .12s,box-shadow .12s}
.t.big .rf.kf{outline:4px solid var(--y)!important;outline-offset:3px;box-shadow:0 0 22px var(--yg);transform:scale(1.15)}
.plrow [data-del].kf,.cell .cx.kf{outline:4px solid var(--y)!important;outline-offset:2px;box-shadow:0 0 18px var(--yg);border-radius:10px}
.t.big:has(.rf.kf){transform:none;filter:none}
/* player volume / mute / full screen (web, not TV) */
.pvol{display:flex;align-items:center;gap:12px;margin-right:auto}
.prow:has(.pvol){justify-content:flex-start;gap:5vw}
.pvol button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%}
.pvol button:hover{background:rgba(255,255,255,.15)}
.pvol svg{width:30px;height:30px;fill:#fff}
.pvol input[type=range]{-webkit-appearance:none;appearance:none;width:130px;height:6px;border-radius:3px;background:linear-gradient(to right,var(--y) var(--p,100%),rgba(255,255,255,.35) var(--p,100%));cursor:pointer}
.pvol input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 0 4px rgba(0,0,0,.6)}
.pvol input[type=range]::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#fff}
.punm{position:absolute;left:50%;top:calc(var(--sat,0px) + 80px);transform:translateX(-50%);z-index:6;display:none;align-items:center;gap:10px;padding:12px 22px;border-radius:30px;background:var(--y);color:#000;font-weight:700;font-size:17px;box-shadow:0 4px 18px rgba(0,0,0,.5)}
.punm svg{width:26px;height:26px;fill:#000}
#s-player:fullscreen{background:#000}
@media (max-width:700px){.pvol input[type=range]{width:90px}.prow:has(.pvol){gap:4vw}}
/* web: no selecting / dragging / long-press menu outside input fields */
html.noguard body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.noguard input,html.noguard textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
html.noguard img,html.noguard video{-webkit-user-drag:none;user-drag:none}
/* 1.0.22 player messages, quality badge */
.perr{z-index:8;min-width:min(420px,80vw)}
.perr .pe1{font-size:20px;font-weight:700;line-height:1.35}
.perr .pe2{font-size:15px;color:#ccc;margin-top:8px;line-height:1.4}
.perr .pe3{display:flex;justify-content:center;gap:14px;margin-top:16px}
.perr .pe3 button{padding:10px 26px;border-radius:8px;background:#2a2a2a;color:#fff;font-size:17px;font-weight:600;border:2px solid #444}
.perr .pe3 button:hover{border-color:var(--y)}
.perr .pe3 button.kf{background:var(--y);color:#000;border-color:var(--y);outline:none}
.chov,.sheet{z-index:10}
.qb{display:inline-block;padding:3px 9px;border-radius:5px;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.55);color:#fff;font-size:13px;font-weight:700;letter-spacing:.4px;white-space:nowrap}
.qb:empty{display:none}
.pv .qb{position:absolute;right:8px;top:8px;z-index:2}
.ptop .qb{font-size:15px}
.pvm{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.8);padding:10px 14px;border-radius:8px;font-size:15px;text-align:center;display:none;z-index:2;max-width:90%}
.sheet .note{color:#bbb;font-size:15px;padding:6px 2px;line-height:1.4}
