
:root{--bg:#0b0f19;--panel:#141a28;--muted:#8a93a6;--accent:#4f8cff;--live:#ff3b5c;--tkh:2.6rem}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:#e6e9f0;font-family:system-ui,Segoe UI,Roboto,sans-serif;overflow:hidden}
#stage{position:fixed;inset:0;background:#000}
#surface{position:absolute;inset:0}
#surface iframe,#surface video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;pointer-events:none}

@media (pointer:coarse) and (orientation:landscape) and (min-aspect-ratio:17/9){
    body.is-fs #stage:not(.zone-left):not(.zone-right) #surface{overflow:hidden}
    body.is-fs #stage:not(.zone-left):not(.zone-right) #surface>iframe:not([data-vs-lienzo]){top:50%;bottom:auto;height:auto;aspect-ratio:16/9;transform:translateY(-50%)}
    body.is-fs #stage:not(.zone-left):not(.zone-right) #surface>video{object-fit:cover}
}

#surface #ytHost{display:none}

#surface .audio-bg{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#05080f}
#surface .audio-bg--contain{background-size:contain}
#surface .audio-bgv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
#surface .audio-bg--empty{background:radial-gradient(circle at 50% 40%,var(--panel),var(--bg))}
#surface audio{position:absolute;left:-9999px;width:1px;height:1px}



#stage{--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);--vl:var(--sal);--vr:var(--sar)}
#stage.zone-left{--zwE:var(--zw,24%)}
#stage.zone-right{--zwE:var(--zw,24%)}
#zoneRail{position:absolute;top:0;bottom:0;height:100%;width:var(--zwE,var(--zw,24%));border:0;z-index:13;background:#0a0e15;display:none;box-sizing:border-box}
#stage.zone-left #zoneRail{left:0}
#stage.zone-right #zoneRail{right:0}
#stage.zone-left #surface{left:var(--zwE)}
#stage.zone-right #surface{right:var(--zwE)}

#stage.zone-left{--vl:var(--zwE)}
#stage.zone-right{--vr:var(--zwE)}

#stage.zone-left #ticker,#stage.zone-left #progress{left:var(--zwE)}
#stage.zone-right #ticker,#stage.zone-right #progress{right:var(--zwE)}

#shield{position:absolute;inset:0;z-index:6;background:transparent}

#surface{transform:scale(1.02);transform-origin:center}
#overlayText{position:absolute;left:calc(var(--vl,0px) + 1.2rem);bottom:5.2rem;font-size:1.3rem;font-weight:700;text-shadow:0 2px 8px rgba(0,0,0,.8);pointer-events:none;max-width:70%}
#hud{position:absolute;left:var(--vl,0px);right:var(--vr,0px);bottom:0;padding:1rem 1.2rem;background:linear-gradient(transparent,rgba(0,0,0,.85));display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}
.np{min-width:0}
.np .badge-live{display:inline-flex;align-items:center;gap:.35rem;background:var(--live);color:#fff;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:4px;letter-spacing:.5px}
.np .badge-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.np h1{font-size:1.15rem;margin:.35rem 0 .1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np .artist{color:var(--muted);font-size:.9rem}
.meta{display:flex;align-items:center;gap:1.2rem;white-space:nowrap}
.meta .viewers{color:var(--muted);font-size:.9rem}
.meta .viewers b{color:#fff}
#progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.15)}
#bar{height:100%;width:0;background:var(--accent);transition:width .5s linear}

#tapStart{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(120% 90% at 50% 38%, color-mix(in srgb, var(--accent,#1c7ed6) 20%, #0a0e15), #05070d 78%);cursor:pointer;z-index:20}
#tapStart .logo{font-size:1.5rem;font-weight:800;margin-bottom:.4rem}
#tapStart .play{width:82px;height:82px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;margin:.8rem 0}
#tapStart .play svg{width:34px;height:34px;fill:#fff;margin-left:5px}
#tapStart small{color:var(--muted)}

#tvTap{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:1.2vh;background:rgba(5,7,13,.72);cursor:pointer;z-index:21;outline:0}
#tvTap.on{display:flex}
#tvTap.res{background:rgba(5,7,13,.35)}   
#tvTap .play{width:clamp(72px,14vh,150px);height:clamp(72px,14vh,150px);border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center}
#tvTap .play svg{width:42%;height:42%;fill:#fff;margin-left:6%}
#tvTap small{color:#fff;font-size:clamp(14px,3vh,34px);font-weight:600;text-align:center;max-width:80%}

body.yt-direct #shield,body.yt-direct #introMask,body.yt-direct #introMaskBottom{pointer-events:none;display:none}
#offline{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;background:#05080f;text-align:center;z-index:15}
#offline .dot{width:14px;height:14px;border-radius:50%;background:var(--muted);margin-bottom:1rem}
#upnext{position:absolute;top:1rem;right:calc(var(--vr,0px) + 1rem);width:230px;background:rgba(10,14,22,.72);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:.7rem;opacity:0;transform:translateX(12px);transition:.25s;z-index:10}
#stage:hover #upnext{opacity:1;transform:none}
#upnext h4{margin:0 0 .5rem;font-size:.72rem;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
#upnext .row{display:flex;gap:.5rem;align-items:center;margin-bottom:.5rem}
#upnext img{width:52px;height:30px;object-fit:cover;border-radius:4px;background:#000}
#upnext .t{font-size:.78rem;line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

#ctrls{position:absolute;top:1rem;left:calc(var(--vl,0px) + 1rem);z-index:12;display:flex;gap:.4rem;align-items:stretch;transition:opacity .3s}
#muteBtn,#fsBtn{background:rgba(10,14,22,.72);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:8px;padding:.45rem .6rem;cursor:pointer;font-size:.85rem;display:none}
#fsBtn{padding:.35rem .5rem;line-height:0}
#fsBtn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#muteBtn:hover,#fsBtn:hover{background:rgba(10,14,22,.9);border-color:rgba(255,255,255,.3)}
#muteBtn:focus-visible,#fsBtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#sndHint{position:absolute;top:3.4rem;left:.75rem;z-index:40;max-width:min(92%,420px);background:rgba(10,14,22,.92);border:1px solid rgba(255,255,255,.16);
  color:#fff;border-radius:10px;padding:.7rem .8rem;font-size:.85rem;line-height:1.35;display:none;box-shadow:0 8px 28px rgba(0,0,0,.45)}
#sndHint.on{display:block}
#sndHint a{display:inline-block;margin-top:.5rem;background:var(--accent,#5230FD);color:#fff;text-decoration:none;border-radius:8px;padding:.4rem .7rem;font-weight:600}
#fsBtn .ic-exit{display:none}
body.is-fs #fsBtn .ic-enter{display:none}
body.is-fs #fsBtn .ic-exit{display:inline}

body.is-fs.idle #ctrls,body.is-fs.idle #upnext{opacity:0;pointer-events:none}
body.is-fs.idle,body.is-fs.idle #shield{cursor:none}
@media (prefers-reduced-motion:reduce){#ctrls{transition:none}}

@media (max-height:300px),(max-width:480px) and (max-height:420px){
    #ctrls{top:.35rem;left:calc(var(--vl,0px) + .35rem);gap:.25rem}
    body.chlogo.logo-tl #ctrls{top:.35rem;right:calc(var(--vr,0px) + .35rem)}
    #muteBtn,#fsBtn{padding:.18rem .32rem;font-size:.72rem;border-radius:6px;line-height:1}
    #muteBtn .mb-t{display:none}
    #fsBtn svg{width:13px;height:13px}
    #channelLogo{top:3%;max-height:clamp(16px,16vh,60px);max-width:30%}
    body.logo-bl #channelLogo,body.logo-br #channelLogo{bottom:14%}
    #liveTag{top:.35rem;padding:.16rem .4rem;font-size:.55rem;gap:.25rem}
    #upnext{display:none}
    #sndHint{top:1.9rem;left:.35rem;font-size:.66rem;padding:.4rem .5rem}
    #sndHint a{margin-top:.25rem;padding:.2rem .45rem}
    #tapStart .logo{font-size:.9rem}
    #tapStart .play{width:44px;height:44px;margin:.35rem 0}
    #tapStart .play svg{width:18px;height:18px;margin-left:3px}
    #tapStart small{font-size:.6rem}
}

@media (max-width:150px){ #channelLogo{display:none} }

body.console-mode #volWrap{opacity:0;pointer-events:none;transition:opacity .25s}
body.console-mode #stage:hover #volWrap{opacity:1;pointer-events:auto}


#channelLogo{position:absolute;top:2.2%;left:calc(var(--vl,0px) + 2.2%);z-index:11;max-height:clamp(22px,18vh,320px);max-width:46%;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(0,0,0,.75));opacity:.95;pointer-events:none}
body.logo-tr #channelLogo{left:auto;right:calc(var(--vr,0px) + 2.2%)}
body.logo-bl #channelLogo{top:auto;bottom:6rem}
body.logo-br #channelLogo{top:auto;bottom:6rem;left:auto;right:calc(var(--vr,0px) + 2.2%)}
body.tk-on.logo-bl #channelLogo,body.tk-on.logo-br #channelLogo{bottom:7.2rem}

#platformLogo{position:absolute;top:1rem;right:calc(var(--vr,0px) + 1rem);z-index:11;display:flex;align-items:center;gap:.7vh;pointer-events:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.75));opacity:.94}
#platformLogo .pl-sym{height:clamp(28px,5.6vh,78px);width:auto;display:block}
#platformLogo .pl-wm{font-family:'Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:700;color:#fff;font-size:clamp(15px,3.5vh,44px);letter-spacing:-.02em;line-height:1;white-space:nowrap}
#platformLogo .pl-wm i{font-weight:500;font-style:normal;opacity:.62}

#platformLogo.wm-stacked{flex-direction:column;align-items:center;gap:.5vh}
#platformLogo.wm-stacked .pl-wm{font-size:clamp(12px,2.6vh,32px)}

body.chlogo.logo-tl #ctrls{top:1rem;left:auto;right:calc(var(--vr,0px) + 1rem)}

#ticker{position:absolute;bottom:0;left:0;right:0;height:var(--tkh);overflow:hidden;z-index:12;display:flex;align-items:center;border-top:1px solid rgba(255,255,255,.12)}

#ticker .tk{display:flex;flex:0 0 auto;white-space:nowrap;font-size:1.5rem;font-weight:600;will-change:transform;animation:tkmove 26s linear infinite;text-shadow:0 1px 3px rgba(0,0,0,.45)}
#ticker .tk .seg{flex:0 0 auto}
@keyframes tkmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}

body.tk-on #surface{bottom:var(--tkh)}
body.tk-on #hud{bottom:var(--tkh)}
body.tk-on #progress{bottom:var(--tkh)}
body.tk-on #introMaskBottom{bottom:var(--tkh)}

#zoneBottom{position:absolute;left:0;right:0;bottom:0;width:100%;height:var(--zh,12%);border:0;z-index:12;background:#070b12;display:none}
#zoneBottom{box-sizing:border-box;padding-left:var(--sal,0px);padding-right:var(--sar,0px)}   
#stage.zone-left #zoneBottom{padding-left:0}#stage.zone-right #zoneBottom{padding-right:0}
#stage.zone-bottom #zoneBottom{display:block}
#stage.zone-bottom #surface{bottom:var(--zh,12%)}
#stage.zone-bottom #hud{bottom:var(--zh,12%)}
#stage.zone-bottom #progress{bottom:var(--zh,12%)}
#stage.zone-bottom #introMaskBottom{bottom:var(--zh,12%)}

#stage.zone-left.zone-bottom #zoneBottom{left:var(--zwE);right:0;width:calc(100% - var(--zwE))}
#stage.zone-right.zone-bottom #zoneBottom{left:0;right:var(--zwE);width:calc(100% - var(--zwE))}

body.zone-bottom.logo-bl #channelLogo,body.zone-bottom.logo-br #channelLogo{bottom:calc(var(--zh,12%) + .8rem)}

#zoneQr{position:absolute;z-index:12;bottom:var(--zh,12%);left:calc(var(--vl,0px) + 1.8vh);display:none;
    background:#fff;color:#111;border-radius:calc(var(--qrS,120px) * .07) calc(var(--qrS,120px) * .07) 0 0;
    padding:calc(var(--qrS,120px) * .06) calc(var(--qrS,120px) * .06) calc(var(--qrS,120px) * .05);
    width:var(--qrS,120px);box-sizing:content-box;text-align:center;box-shadow:0 -.4vh 2.4vh rgba(0,0,0,.35);pointer-events:none}
#zoneQr.r{left:auto;right:calc(var(--vr,0px) + 1.8vh)}
#zoneQr .q{line-height:0}
#zoneQr img{display:block;width:var(--qrS,120px);height:var(--qrS,120px)}
#zoneQr .t{font-family:Outfit,Inter,system-ui,sans-serif;font-weight:800;font-size:calc(var(--qrS,120px) * .12);line-height:1.15;margin-top:.35em;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
body.zone-qr #zoneQr{display:block}

body.zone-bottom.qr-l.logo-bl #channelLogo,body.zone-bottom.qr-r.logo-br #channelLogo{bottom:calc(var(--zh,12%) + var(--qrH,160px) + 3.2vh)}
body.zone-qr.qr-l #hud{padding-left:calc(var(--qrW,140px) + 3.4vh)}
body.zone-qr.qr-r #hud{padding-right:calc(var(--qrW,140px) + 3.4vh)}
body.zone-qr.qr-l #overlayText{left:calc(var(--vl,0px) + var(--qrW,140px) + 3.4vh)}

#countdown{position:absolute;top:1rem;left:calc(50% + (var(--vl,0px) - var(--vr,0px)) / 2);transform:translateX(-50%);z-index:12;display:none;align-items:center;gap:.4rem;padding:.35rem .7rem;background:rgba(5,8,15,.62);border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#fff;font-size:.8rem;font-weight:600;backdrop-filter:blur(4px)}
#countdown b{color:#fff;font-variant-numeric:tabular-nums}

#introMask,#introMaskBottom{position:absolute;left:0;right:0;height:22%;z-index:7;pointer-events:none;opacity:0;transition:opacity .4s}
#introMask{top:0;background:linear-gradient(rgba(0,0,0,.98) 0%,rgba(0,0,0,.92) 45%,transparent 100%)}
#introMaskBottom{bottom:0;background:linear-gradient(transparent 0%,rgba(0,0,0,.92) 55%,rgba(0,0,0,.98) 100%)}
#introMask.on,#introMaskBottom.on{opacity:1}


#liveTag{position:absolute;top:1rem;left:calc(50% + (var(--vl,0px) - var(--vr,0px)) / 2);transform:translateX(-50%);z-index:12;display:none;align-items:center;gap:.45rem;padding:.32rem .7rem .32rem .6rem;background:var(--live);color:#fff;border-radius:6px;font:700 .78rem/1 system-ui,sans-serif;letter-spacing:.08em;box-shadow:0 4px 18px rgba(255,59,92,.35)}
#liveTag::before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;animation:pulse 1.4s infinite}
body.is-live #countdown{display:none!important}
@media (prefers-reduced-motion:reduce){#liveTag::before{animation:none}}
#veil{position:absolute;inset:0;z-index:8;background:#0a0e15;opacity:0;transition:opacity .3s ease;pointer-events:none}
#veil.on{opacity:1;transition:opacity .12s ease}


#takeover{position:absolute;top:0;left:0;width:100%;height:100%;border:0;z-index:20;background:transparent;pointer-events:none;opacity:0;transition:opacity .5s ease}
#takeover.on{opacity:1}

#stage.zone-left.tk-protect #takeover{left:var(--zwE);width:calc(100% - var(--zwE))}
#stage.zone-right.tk-protect #takeover{left:0;width:calc(100% - var(--zwE))}

html.tv1 #surface{transform:none}
html.tv1 *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;will-change:auto!important}
html.tv2 *{animation:none!important;transition:none!important}
html.tv2 #veil,html.tv2 #introMask,html.tv2 #introMaskBottom{display:none!important}
