/* Vibe Room — Neon Vinyl design (built from the mockup) */
:root{--bg:#12041f;--acc:linear-gradient(135deg,#ff9a1f,#ff3d71 55%,#c026d3);--pink:#ff3d71;--cy:#22e1ff;--li:#b6ff3b;--mu:#c4b5e0;--h:320;--e:rgba(255,255,255,.15);--red:#ff2d55;--glass:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.045))}
*{box-sizing:border-box}html{background:#12041f}
body{margin:0;min-height:100vh;color:#fff;font:400 15px/1.45 "Poppins",system-ui,sans-serif;background:radial-gradient(120% 60% at 50% 108%,rgba(255,61,113,.14),transparent 60%),radial-gradient(130% 55% at 50% -8%,#9d4edd 0%,#6d1fa8 28%,#2a0b4d 58%,#0d0218 100%) fixed}
.glow{position:fixed;inset:-20%;z-index:-1;background:radial-gradient(45% 35% at 50% 18%,hsl(var(--h) 90% 55%/.45),transparent),radial-gradient(30% 22% at 85% 90%,rgba(192,38,211,.22),transparent);transition:background 1s}
[hidden]{display:none!important}

/* ---------- logo mark (gradient play triangle, like the mockup) ---------- */
.logo{flex:none;width:34px;height:34px;background:var(--acc);clip-path:polygon(18% 2%,98% 50%,18% 98%);font-size:0;filter:drop-shadow(0 4px 12px rgba(255,61,113,.65))}
.logo.lg{width:56px;height:56px;margin:0 auto}

/* ---------- landing + join gate ---------- */
main{max-width:480px;margin:0 auto;padding:7vh 24px 40px;display:grid;gap:18px;text-align:center}
h1{font-size:clamp(2.8rem,13vw,4.4rem);margin:0;font-weight:800;letter-spacing:-.03em;line-height:1;background:var(--acc);-webkit-background-clip:text;background-clip:text;color:transparent}
#gt{font-size:clamp(2rem,10vw,3rem)}
.lead,.steps,label{color:var(--mu);margin:0}.err{color:#ff8aa8}
.hero-disc{width:200px;aspect-ratio:1;margin:0 auto;border-radius:50%;background:radial-gradient(circle,#ff3d71 0 17%,#000 18% 21%,transparent 22%),repeating-radial-gradient(#06020c 0 3px,#1b1030 3px 4px);box-shadow:0 30px 50px rgba(0,0,0,.6),0 0 90px #ff3d71aa;animation:spin 6s linear infinite}
button,input,select{font:inherit;color:inherit}
button{background:rgba(255,255,255,.1);border:1px solid var(--e);border-radius:999px;padding:.5em 1.1em;cursor:pointer;min-height:44px;transition:transform .12s, box-shadow .2s, background .2s}
button:active{transform:scale(.94)}button:disabled{opacity:.4}
button.big,#af button,[data-sing],[data-pick],#kl,#mb{background:var(--acc);border:0;font-weight:700;box-shadow:0 8px 24px -6px #ff3d71aa, inset 0 1px 0 rgba(255,255,255,.35)}
button.big{font-size:1.1rem;padding:.9em 1.4em}
input:not([type]),select{background:rgba(255,255,255,.1);border:1px solid var(--e);border-radius:999px;padding:.6em 1em;min-height:44px;width:100%;font-size:16px}
select{width:auto}select option{color:#111}::placeholder{color:#b9a8d8}
:focus-visible{outline:2px solid var(--cy);outline-offset:2px}
.row{display:flex;gap:8px}.row input{text-transform:uppercase}#gn{text-transform:none}#gc{width:56px;padding:2px;background:none;border:0;min-height:44px}
#home #recent{display:grid;justify-items:center;gap:6px;width:100%;min-width:0}
#home .recent-title{margin:0;color:var(--mu);font-size:.75rem;font-weight:600}
#home .recent-list{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:100%}
#home .recent-list a{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);color:var(--cy);font-size:.7rem;font-weight:600;line-height:1.2;text-decoration:none}
/* v93.9: LAST-ROOM REJOIN CARD — lightly highlighted, not a banner: a thin
   accent border, a soft tint and a gentle glow, so the one room you just left
   stands out from the plain recent-room pills without shouting.
   v94.1: MORE COMPACT + LIFTED UP — the card was too tall and sat too close
   to the bottom end. Padding, code size and gaps are all tightened, and the
   bottom margin is bigger, so the card sits a little higher with clear space
   below it instead of hugging the bottom. */
#home .last-room{width:100%;max-width:320px;margin:2px auto 22px;padding:8px 12px;border:1px solid rgba(34,211,238,.55);border-radius:14px;background:linear-gradient(135deg,rgba(34,211,238,.13),rgba(255,45,135,.10));box-shadow:0 0 18px rgba(34,211,238,.18);text-align:center}
#home .last-room .lr-top{display:flex;align-items:center;justify-content:center;gap:8px}
#home .last-room .lr-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;background:rgba(34,211,238,.22);color:#a5f3fc;font-size:.66rem;font-weight:700;letter-spacing:.02em}
#home .last-room .lr-time{color:var(--mu);font-size:.68rem;font-weight:600}
#home .last-room .lr-code{margin-top:4px;color:#fff;font-size:1.15rem;font-weight:800;letter-spacing:.14em}
#home .last-room .lr-sub{margin-top:1px;color:var(--mu);font-size:.7rem;line-height:1.3}
#home .last-room .lr-join{margin-top:7px;padding:7px 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#22d3ee,#ff2d87);color:#fff;font-size:.78rem;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(255,45,135,.35)}

/* ---------- room shell + header (mockup) ---------- */
#room{max-width:520px;margin:auto;padding:0 14px 118px}
header{display:flex;gap:8px;align-items:center;padding:10px 0}
header .rt{display:grid;line-height:1.15;min-width:0;flex:none;overflow:hidden}
header .rt b{font-size:1.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header .rt small{color:var(--li);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who{flex:1;display:flex;justify-content:flex-end;align-items:center;min-width:0}
.who .pill-who{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.09);border:1px solid var(--e);border-radius:999px;padding:4px 10px 4px 4px;backdrop-filter:none}
.who .av{margin-left:-8px}
.who .av:first-child{margin-left:0}
.who small{color:#e9e2ff;font-size:.8rem;white-space:nowrap}
.who small svg{width:14px;height:14px;vertical-align:-2px}
.av{width:30px;height:30px;border-radius:50%;margin-left:-8px;border:2px solid #2a0b4d;display:grid;place-items:center;font-weight:700;color:#000;font-size:.8rem}
#share{background:linear-gradient(135deg,#ff3d71,#c026d3);border:0;font-weight:700;box-shadow:0 8px 22px -6px #ff3d71aa, inset 0 1px 0 rgba(255,255,255,.35);white-space:nowrap}
#share .ic{font-weight:800}
#share .ic svg,#lock .ic svg{width:15px;height:15px;vertical-align:-2px}
#lock{white-space:nowrap;background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.07));box-shadow:0 6px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.28)}
header button{min-height:40px;padding:.45em .95em;font-size:.92rem}

/* ---------- glass cards ---------- */
.stage,.pane{background:var(--glass);border:1px solid rgba(255,255,255,.14);border-radius:30px;padding:12px 16px 12px;backdrop-filter:none;box-shadow:0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14)}
.stage{text-align:center;position:relative;overflow:hidden;perspective:900px}
/* soft pink aura behind the vinyl, like the mockup's neon glow */
.stage::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:100%;height:42%;background:radial-gradient(50% 62% at 50% 42%,rgba(255,61,113,.30),rgba(192,38,211,.14) 55%,transparent 75%);filter:blur(4px);pointer-events:none}
/* light that follows the pointer across the glass card */
.stage::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(320px 220px at var(--mx,50%) var(--my,28%),rgba(255,255,255,.13),transparent 70%);pointer-events:none;z-index:4}

/* ---------- vinyl deck (flat, like the mockup) ---------- */
.disc{position:relative;width:100%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:url(/vinyl.jpg) center/cover,repeating-radial-gradient(#07070c 0 2px,#131320 2px 3px);transform-style:preserve-3d;animation:spin 24s linear infinite}
.disc.on{animation-duration:7s}
/* the side of the record: a black disc 6px behind the grooves, visible as thickness when the deck tilts */
.disc::before{content:"";position:absolute;inset:0;border-radius:50%;background:#08080d;transform:translateZ(-6px)}
.label{width:62%;aspect-ratio:1;border-radius:50%;overflow:hidden;position:relative;background:#000;border:4px solid #000}
.label iframe,.label #pl{position:absolute;top:50%;left:50%;width:178%!important;height:100%!important;transform:translate(-50%,-50%);pointer-events:none;border:0}
@keyframes spin{from{transform:rotate(0deg) translateZ(24px)}to{transform:rotate(360deg) translateZ(24px)}}
.deck{position:relative;transform:none;margin:2px auto 6px;width:min(70vw,300px);transform-style:preserve-3d}
/* contact shadow: the disc floats above the card, its shadow stays on the card */
.deck::before{content:"";position:absolute;left:50%;top:50%;width:94%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-44%) translateZ(2px);background:radial-gradient(circle,rgba(0,0,0,.6),rgba(0,0,0,.25) 55%,transparent 72%);filter:blur(4px);pointer-events:none}
/* static light sweep across the grooves — stays fixed while the vinyl spins */
.deck::after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 205deg, transparent 0deg, rgba(255,255,255,.20) 35deg, transparent 80deg, transparent 175deg, rgba(255,255,255,.10) 215deg, transparent 260deg),radial-gradient(circle at 30% 24%, rgba(255,255,255,.15), transparent 42%);pointer-events:none;z-index:1;transform:translateZ(28px)}
.deck.vid::after{display:none}
.deck .disc{box-shadow:0 0 0 2px rgba(255,120,180,.85),0 0 12px rgba(255,61,113,.9),0 0 34px rgba(255,61,113,.8),0 0 90px rgba(192,38,211,.6),0 34px 44px rgba(10,0,30,.7)}
.deck.vid{transform:none!important;width:100%}
.deck.vid .disc{aspect-ratio:16/9;border-radius:24px;animation:none;background:#000;box-shadow:0 24px 50px rgba(0,0,0,.5)}
.deck.vid .label{width:100%;height:100%;aspect-ratio:auto;border-radius:24px;border:0}
.deck.vid .label iframe,.deck.vid .label #pl{width:100%!important}
/* gradient hub button over the disc centre (the YouTube player stays mounted behind it; Show Video reveals it) */
.disc-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) translateZ(60px);width:42%;aspect-ratio:1;border-radius:50%;border:0;background:radial-gradient(circle at 32% 28%, #ffb020, #ff3d71 45%, #c026d3 78%, #7c1fa8);color:#fff;font-size:clamp(1.4rem,6vw,2rem);display:grid;place-items:center;cursor:pointer;z-index:3;padding:0;min-height:0;box-shadow:0 0 0 4px #050507,0 0 0 6px rgba(255,255,255,.16),0 0 34px rgba(255,61,113,.85),0 12px 30px rgba(0,0,0,.55),inset 0 2px 6px rgba(255,255,255,.45),inset 0 -4px 10px rgba(0,0,0,.25);text-shadow:0 2px 8px rgba(0,0,0,.35)}
.disc-btn:hover{filter:brightness(1.08)}
.disc-btn:disabled{opacity:1;cursor:default}
/* slow breathing ring around the hub so the deck feels alive even idle */
.disc-btn::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid rgba(255,61,113,.55);animation:ring 2.4s ease-out infinite;pointer-events:none}
@keyframes ring{0%{transform:scale(.85);opacity:.9}70%{opacity:0}100%{transform:scale(1.25);opacity:0}}
.deck.vid .disc-btn{display:none}
/* tonearm: silver pivot, metallic arm, red headshell */
.arm{position:absolute;right:3%;top:1%;width:10px;height:62%;background:linear-gradient(90deg,#d9d9e8,#ffffff 30%,#8f8fa8 55%,#e8e8f4 80%,#b9b9cc);border-radius:6px;transform-origin:top center;transform:translateZ(48px) rotate(-16deg);transition:transform .9s cubic-bezier(.3,1.4,.5,1);box-shadow:0 10px 14px rgba(0,0,0,.4), inset 0 0 2px rgba(255,255,255,.8);z-index:2}
.arm::before{content:"";position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#c9c9d8 42%,#6f6f85 78%,#3c3c50);box-shadow:0 0 0 10px #14141c,0 0 0 13px rgba(255,255,255,.14),0 6px 14px rgba(0,0,0,.55),inset 0 0 0 3px rgba(255,255,255,.28)}
.arm::after{content:"";position:absolute;bottom:-7px;left:-8px;width:26px;height:16px;background:linear-gradient(135deg,#ff7aa2,#e11d48 60%,#9d0f31);border-radius:4px;box-shadow:0 3px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4)}
.deck.on .arm{transform:translateZ(48px) rotate(15deg)}.deck.vid .arm{display:none}
/* floating notes around the disc, like the mockup */
.dnote{position:absolute;z-index:1;font-size:1.7rem;pointer-events:none;opacity:.9;animation:noteFloat 5s ease-in-out infinite alternate}
.dnote.n1{left:7%;top:16%;color:var(--pink);font-size:2rem}
.dnote.n2{left:4%;top:46%;color:var(--cy);font-size:1.3rem;animation-delay:-1.5s}
.dnote.n3{right:6%;top:58%;color:#7db4ff;font-size:1.6rem;animation-delay:-2.5s}
.dnote.n4{right:10%;top:10%;color:var(--pink);font-size:1.1rem;animation-delay:-.8s}
@keyframes noteFloat{to{transform:translateY(-10px) rotate(8deg)}}
/* visualizer: pink -> purple -> blue bars, always moving (gentle when idle) */
.viz{display:flex;gap:4px;align-items:flex-end;justify-content:center;height:36px;width:88%;margin:0 auto 4px}
.viz i{width:5px;height:8px;border-radius:4px;min-height:8px}
.viz i{animation:bar .8s ease-in-out infinite alternate}@keyframes bar{to{height:36px}}

h2{font-size:1.28rem;margin:0;line-height:1.2;font-weight:700}
#tt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ch,#by{margin:2px 0;display:inline}
#by:not(:empty)::before{content:" • "}
/* v31: the "♪ " before the track title is gone — no text glyphs, premium icons only. */
p{margin:.3em 0}#ch{color:var(--mu)}.by{color:var(--li)}

/* ---------- seek + time ---------- */
input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;width:100%;height:22px;cursor:pointer;--p:0%;touch-action:pan-y}
input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:999px;background:linear-gradient(90deg,#a855f7,#ec4899 var(--p),rgba(255,255,255,.16) var(--p));box-shadow:0 0 12px rgba(168,85,247,.35)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;margin-top:-6px;box-shadow:0 0 14px rgba(255,255,255,.7),0 2px 10px rgba(0,0,0,.55);cursor:pointer}
input[type=range]::-moz-range-track{height:12px;border-radius:999px;background:rgba(255,255,255,.16)}
input[type=range]::-moz-range-progress{height:12px;border-radius:999px;background:linear-gradient(90deg,#a855f7,#ec4899)}
input[type=range]::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 14px rgba(255,255,255,.7),0 2px 10px rgba(0,0,0,.55)}
#sc{margin-top:10px}
.time{display:flex;justify-content:space-between;align-items:baseline;color:var(--mu);font-size:.85rem}
#sync{color:var(--li);font-weight:600}#sync.off{color:var(--pink)}

/* ---------- transport controls ---------- */
.ctl{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;margin:6px 0 4px}
#pp{width:64px;height:64px;padding:0;border-radius:50%;background:radial-gradient(circle at 32% 28%, #ffb020, #ff3d71 48%, #c026d3 80%);border:0;font-weight:700;font-size:1.3rem;color:#fff;box-shadow:0 12px 34px -4px #ff3d71cc,0 0 26px rgba(255,61,113,.55), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -6px 14px rgba(0,0,0,.28)}
#xp,#sk{width:48px;height:48px;padding:0;font-size:1rem;border-radius:50%;background:linear-gradient(180deg, rgba(160,90,255,.75), rgba(90,35,160,.85));border:1px solid rgba(255,255,255,.2);box-shadow:0 10px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 6px rgba(0,0,0,.3)}
.vol{flex-basis:100%;display:flex;gap:12px;align-items:center;justify-content:center;margin-top:2px}
.vol .spk{font-size:1.15rem;flex:none;display:grid;place-items:center;color:#e9e2ff}
.vol button.spk{width:36px;height:44px;min-height:44px;padding:0;border:0;background:transparent}
.vol button.spk:hover{background:rgba(255,255,255,.12)}
.vol .spk svg{width:22px;height:22px}
.vol input{width:min(240px,60%)}
/* pill rows: 4 across, 2 rows — exactly like the mockup */
/* icon-only control rows: two rows of four round icon buttons, evenly spaced */
.xtra{margin:8px 0 4px}
.xrow{display:flex;align-items:center;gap:6px}
.xrow + .xrow{margin-top:10px}
/* pills exactly like the mockup: glass, icon + label, glossy top edge */
.xrow .pill{flex:1;min-width:0;height:38px;padding:0 4px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(122,63,196,.5) 48%,rgba(74,28,130,.62));border:1px solid rgba(255,255,255,.22);box-shadow:0 8px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.3),inset 0 -2px 4px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;gap:4px;color:#fff;font-size:.72rem;font-weight:600;position:relative;min-height:0;white-space:nowrap;overflow:hidden}
.xrow .pill svg{width:15px;height:15px;flex:none}
.xrow .pill.on{background:var(--acc);border:0;box-shadow:0 8px 22px -4px #ff3d71cc, inset 0 1px 0 rgba(255,255,255,.35)}
.xrow .pill.off{opacity:.45}
.xrow .pill b{position:absolute;top:-5px;right:-5px;background:#ff3d71;color:#fff;font-size:.55rem;font-weight:700;line-height:1;min-width:17px;height:17px;border-radius:9px;display:grid;place-items:center;padding:0 4px;box-shadow:0 2px 6px rgba(0,0,0,.4)}
/* the two dropdown pills: a transparent select + chevron, like the mockup's 1x ⌄ / Off ⌄ */
.xrow .pill.sel select{appearance:none;-webkit-appearance:none;background:transparent;border:0;color:#fff;font:inherit;font-weight:600;text-align:center;flex:1;min-width:0;padding:0;cursor:pointer}
.xrow .pill.sel select option{color:#111}
.xrow .pill.sel .chev{width:12px;height:12px;flex:none}
/* Prev lives in the transport row (moved there by starmaker): a 48px circle, not a pill */
.ctl #xp{flex:none;width:48px;height:48px;border-radius:50%;font-size:1rem}
/* Show Video has the longest label, so its pill gets a little extra width */
#xd{flex:1.3}

/* ---------- tab panes ---------- */
aside .pane{display:none}#room[data-tab=queue] #p-queue,#room[data-tab=sing] #p-sing,#room[data-tab=room] #p-room,#room[data-tab=me] #p-me{display:block}
#room:not([data-tab=play]) .stage{display:none}#room[data-tab=play] aside{display:none}
.pane h3{margin:18px 0 8px;font-size:1rem;color:var(--cy)}.pane h3:first-child{margin-top:0}
#af{display:flex;gap:8px}#video-check{margin:6px 6px 10px;color:var(--mu);font-size:.76rem;line-height:1.35}#video-check[data-status=checking]{color:#e5d7ff}#video-check[data-status=embeddable]{color:var(--li)}#video-check[data-status=blocked],#video-check[data-status=unavailable],#video-check[data-status=error]{color:#ffb5c5}.hero{text-align:center;padding:6px 0 12px}
ol,ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
li{display:flex;gap:12px;align-items:center;padding:8px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-left:4px solid var(--c,var(--pink))}
li img{width:56px;height:56px;border-radius:14px;object-fit:cover}li div{flex:1;min-width:0}li b,li small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}li small{color:var(--mu)}
li button{min-height:34px;padding:.25em .9em;font-size:.8rem}li small button{margin-left:6px;min-height:30px}.hist li button{background:linear-gradient(135deg,#673de6,#b026ff);border:1px solid rgba(255,255,255,.28);font-weight:700;white-space:nowrap}
#kar{margin-top:12px;text-align:left}#kar h3{color:var(--pink)}#kf{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}#kf button{min-height:36px;font-size:.85rem}#kf button.on{background:var(--acc);border:0}
#kar label{display:inline-flex;gap:6px;align-items:center;margin:4px 8px 4px 0}#kar details{margin-top:8px}#kar .sl{display:grid;grid-template-columns:90px 1fr;gap:6px;align-items:center}
#mb{margin:0 0 10px}

/* ---------- bottom tab bar (floating glass bar, mockup) ---------- */
#tabs{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),520px);display:flex;align-items:flex-end;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:rgba(30,8,60,.92);backdrop-filter:none;border:1px solid rgba(255,255,255,.16);border-radius:26px;box-shadow:0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);z-index:6}
#tabs button{background:none;border:0;flex:1;display:grid;justify-items:center;color:var(--mu);padding:2px;min-height:48px;border-radius:12px;position:relative}
#tabs button + button{border-left:1px solid rgba(255,255,255,.07)}
#tabs i{font-style:normal;font-size:1.25rem;display:grid;place-items:center}#tabs i svg{width:22px;height:22px}#tabs span{font-size:.7rem}
#tabs button.on{color:#fff}
#tabs button.on i{filter:drop-shadow(0 0 8px rgba(255,61,113,.9))}
#tabs button.on span{font-weight:700;color:var(--pink)}
#tabs button.on::after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:3px;border-radius:3px;background:var(--pink);box-shadow:0 0 10px var(--pink)}
#tabs .mic{margin-top:-34px}
#tabs .mic i{width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 32% 28%, #ffb020, #ff3d71 48%, #c026d3 80%);display:grid;place-items:center;font-size:1.7rem;color:#fff;box-shadow:0 10px 28px #ff3d71cc, inset 0 1px 0 rgba(255,255,255,.4), inset 0 -4px 10px rgba(0,0,0,.25);border:4px solid #1e083c}
#tabs .mic i svg{width:30px;height:30px}
#tabs .mic span{margin-top:2px}
#tabs em{position:absolute;top:0;right:calc(50% - 26px);min-width:19px;height:19px;border-radius:50%;background:var(--red);color:#fff;font-style:normal;font-size:.68rem;font-weight:700;display:grid;place-items:center;padding:0 4px;box-shadow:0 2px 8px rgba(0,0,0,.5)}

/* ---------- invite dialog ---------- */
/* v93.1: the invite popup is a plain div modal now, like #snd-modal/#qr-modal.
   It used to be a native <dialog> (showModal) — on Abhi's iPhone home-screen app
   its Copy link / Close buttons did not respond to taps. Same card, same look. */
.dlg-modal{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(5,0,15,.75);backdrop-filter:none}
.dlg-modal[hidden]{display:none}
.dlg-card{background:linear-gradient(180deg,#2a0b4d,#1a0633);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:24px;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.6);padding:22px;width:min(92vw,420px)}

.dlg-card h3{margin:0 0 6px}
#qr{background:#fff;padding:12px;border-radius:16px;display:inline-block;margin:10px}
#qr small{color:#333}
#lk{margin:6px 0 12px;text-align:center}
#dlg button{margin:4px}
#cp{background:var(--acc);border:0;font-weight:700;box-shadow:0 8px 22px -6px #ff3d71aa}

/* ---------- toasts, floating reactions, ambient extras ---------- */
#toasts{position:fixed;top:12px;left:50%;transform:translateX(-50%);display:grid;gap:6px;z-index:9;width:min(90vw,380px)}
#audio-unlock{position:fixed;left:50%;bottom:calc(193px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:8;white-space:nowrap;background:linear-gradient(135deg,#ff9a1f,#ff3d71 55%,#c026d3);border:1px solid rgba(255,255,255,.35);font-weight:700;box-shadow:0 10px 24px rgba(255,61,113,.42),inset 0 1px 0 rgba(255,255,255,.35)}
.toast{background:rgba(30,10,60,.95);border:1px solid var(--e);border-radius:14px;padding:.6em 1em;animation:fade .3s}@keyframes fade{from{opacity:0;transform:translateY(-8px)}}
.fl{position:fixed;bottom:110px;font-size:2rem;animation:up 2.4s ease-out forwards;pointer-events:none;z-index:8}@keyframes up{to{transform:translateY(-60vh) translateX(20px);opacity:0}}
.orb{position:fixed;border-radius:50%;opacity:.35;z-index:-1;animation:fl 14s ease-in-out infinite alternate;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.7),var(--o) 60%);box-shadow:inset -12px -12px 30px rgba(0,0,0,.3)}
@keyframes fl{to{transform:translate(50px,-70px) scale(1.25)}}
.note{position:fixed;bottom:-50px;z-index:-1;font-size:2rem;opacity:.45;animation:rise linear infinite}@keyframes rise{to{transform:translateY(-115vh) rotate(40deg)}}
.burst i{position:fixed;width:11px;height:11px;border-radius:50%;animation:pop .9s ease-out forwards;z-index:9;pointer-events:none}@keyframes pop{to{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}
#mini{position:fixed;top:0;left:0;right:0;display:flex;gap:10px;align-items:center;padding:8px 14px;background:rgba(30,8,60,.94);backdrop-filter:none;z-index:7;transform:translateY(-100%);transition:transform .3s}#mini.show{transform:none}#mini img{border-radius:6px;object-fit:cover}

/* ---------- narrow phones: keep the mockup's full header (pill + labels), compact ---------- */
@media(max-width:430px){
  #room{padding:0 8px 118px}
  header{gap:3px}
  .logo{width:22px;height:22px}
  header .rt b{font-size:.72rem}
  header .rt small{font-size:.62rem}
  header button{min-height:32px;padding:.35em .45em;font-size:.72rem}
  #lock .ic{font-size:.8em}
  .who .pill-who{padding:2px 6px 2px 2px;gap:4px}
  .who small{font-size:.6rem}
  .who .av{width:22px;height:22px;font-size:.62rem}
}
@media(prefers-reduced-motion:reduce){.hero-disc,.disc,.orb,.note,.viz i,.burst i,.fl,.dnote{animation:none}.deck,.arm{transition:none}}

/* ===== v10: exact-mockup theme (matte, glossy, 3D) ===== */
:root{--chip:linear-gradient(180deg,#5a37c8,#33198a);--acc:linear-gradient(135deg,#ffa23c,#ff3d9a 52%,#b026ff)}
html{background:#12063a}
body{background:radial-gradient(75% 38% at 100% 100%,rgba(205,35,175,.5),transparent),radial-gradient(90% 30% at 0 0,rgba(120,70,255,.35),transparent),linear-gradient(180deg,#4a1fc4,#2a1275 40%,#14073f) fixed!important}
#room{padding-bottom:150px!important}
#share{background:linear-gradient(135deg,#b026ff,#5b3bff)!important;border:0!important;box-shadow:0 8px 20px -6px #8a3bff,inset 0 1px 0 rgba(255,255,255,.35)!important}
#lock,.pill-who{background:linear-gradient(180deg,rgba(80,48,190,.6),rgba(40,20,120,.7))!important}
.stage{position:relative;background:linear-gradient(165deg,#6a34dc,#43209f 32%,#2a1270 62%,#3a1585)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:44px!important;padding:22px 20px!important;box-shadow:0 34px 60px -24px rgba(8,0,40,.8),inset 0 2px 0 rgba(255,255,255,.28),inset 0 -26px 50px rgba(20,0,70,.35)!important}
.stage>.gloss{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.14),transparent 22%)}
.deck{width:60%!important;margin:36px auto 24px!important}
.ring{position:absolute;inset:-3.6%;border-radius:50%;background:conic-gradient(from 200deg,#ffc2ea,#ff3d9a,#b026ff,#6f4bff,#ff3d9a,#ffc2ea);box-shadow:0 0 34px rgba(255,61,154,.55),0 26px 38px rgba(8,0,40,.55)}
.deck .disc{position:relative;z-index:1;box-shadow:0 0 0 5px #140a34,inset 0 0 40px rgba(0,0,0,.5)!important}.deck::before{opacity:.45}
.disc-btn{width:34%!important}.deck.vid .ring{display:none}
.arm{left:90.5%!important;right:auto!important;top:-4%!important;width:28%!important;height:auto!important;background:none!important;border-radius:0!important;transform-origin:26.7% 14.2%;transform:rotate(-3deg)!important;transition:transform .9s cubic-bezier(.3,1.4,.5,1);z-index:4;filter:drop-shadow(0 10px 10px rgba(0,0,0,.5))}
.arm::before,.arm::after{display:none!important}.arm svg{width:100%;height:auto;display:block}.deck.on .arm{transform:rotate(8deg)!important}
.dnote{font-size:2.6rem!important;opacity:1!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.dnote.n1{left:6%!important;top:35%!important;color:#6f9bff!important;font-size:2rem!important}.dnote.n2{left:7%!important;top:9%!important;color:#e655d9!important}
.dnote.n3{right:6%!important;top:40%!important;color:#6f9bff!important}.dnote.n4{display:none}
.viz{height:58px!important;width:84%!important;margin:22px auto 14px!important;gap:6px!important}.viz i{width:6px!important}@keyframes bar{to{height:56px}}
.ctl{gap:28px!important;margin:18px 0 6px!important}
#pp{width:78px!important;height:78px!important;background:var(--acc)!important;border:0!important;border-radius:50%!important;display:grid;place-items:center;padding:0;color:#fff;box-shadow:0 12px 28px -6px rgba(255,61,154,.8),inset 0 2px 0 rgba(255,255,255,.4),inset 0 -10px 18px rgba(120,0,120,.35)!important}
#pp svg{width:38px;height:38px}
#xp,#sk{width:62px!important;height:62px!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center;color:#fff;background:radial-gradient(circle at 35% 28%,#6a49e0,#2c1480 75%)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 10px 20px rgba(8,0,40,.5),inset 0 1px 0 rgba(255,255,255,.28),inset 0 -8px 14px rgba(0,0,40,.35)!important}
#xp svg,#sk svg{width:26px;height:26px}
.xtra{margin:16px 0 0!important}.xrow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:10px!important}
.xtra .pill{position:relative;display:flex!important;align-items:center;justify-content:center;gap:6px;min-height:50px;padding:0 6px!important;border-radius:28px!important;border:1px solid rgba(255,255,255,.15)!important;background:var(--chip)!important;color:#fff;font-weight:600;font-size:.8rem;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -8px 14px rgba(15,0,70,.35),0 8px 16px rgba(8,0,40,.4)!important}
.xtra .pill:active{transform:translateY(2px)}.xtra .pill svg{width:20px;height:20px;flex:none}.xtra .pill .chev{width:13px;height:13px}
#xs svg,#xr svg{color:#7f9bff}#xr.on svg{color:#ff5c9a}.pill.sel svg:first-child:not(.chev){color:#c43bff}
.xtra select{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.menu{position:fixed;z-index:20;display:grid;gap:4px;padding:8px;border-radius:22px;background:linear-gradient(180deg,#4a2bb4,#27126f);border:1px solid rgba(255,255,255,.2);box-shadow:0 24px 50px rgba(5,0,30,.7),inset 0 1px 0 rgba(255,255,255,.25)}
.menu button{background:none;border:0;border-radius:16px;padding:.6em 1.1em;min-height:42px;text-align:left;color:#fff;font-weight:600;box-shadow:none}.menu button:hover{background:rgba(255,255,255,.14)}.menu button.on,.menu button.on:hover{background:var(--acc)}
#tabs{border-radius:34px!important;background:linear-gradient(180deg,#43249f,#241068)!important;border:1px solid rgba(255,255,255,.2)!important;box-shadow:0 24px 40px rgba(5,0,30,.6),inset 0 1px 0 rgba(255,255,255,.25)!important;padding:10px 6px 8px!important}
#tabs button+button{border-left:0!important}#tabs button:first-child{border-right:1px solid rgba(255,255,255,.1)}
#tabs i{color:var(--mu)}#tabs button.on i{color:#a56bff;filter:none!important}#tabs .mic i{color:#fff}
#tabs .mic{margin-top:-46px!important}#tabs .mic i{width:82px!important;height:82px!important;border:6px solid #1a0b4a!important;box-shadow:0 0 34px rgba(255,61,154,.7),inset 0 3px 0 rgba(255,255,255,.35)!important}
/* v10 fixes */
.stage{perspective-origin:50% 21%!important;padding:20px 18px!important}
.arm{box-shadow:none!important;border:0!important;outline:0!important;backdrop-filter:none!important}
.dnote.n1{top:27%!important}.dnote.n3{top:31%!important}
.xrow{gap:8px!important}.xtra .pill{font-size:.72rem!important;gap:4px!important;padding:0 3px!important}.xtra .pill svg{width:17px;height:17px}
#tabs button{border:0!important;border-radius:0!important}#tabs button:first-child{border-right:1px solid rgba(255,255,255,.1)!important}
#tt::before,#tt i{color:#fff!important}
.spk svg{fill:currentColor!important}
.ring{inset:-8%!important}#xd{font-size:.66rem!important}
.ring{inset:-5%!important}

/* ===== v11: glass 3D icon buttons ===== */
.xrow{display:flex!important;justify-content:space-evenly!important;gap:0!important;margin-bottom:16px!important}
.xtra .pill{position:relative;width:56px!important;height:56px!important;min-height:0!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;overflow:visible;
 background:radial-gradient(120% 120% at 30% 12%,rgba(255,255,255,.42),rgba(255,255,255,.1) 45%,rgba(120,80,255,.2))!important;backdrop-filter:none;-webkit-backdrop-filter:none;
 border:1px solid rgba(255,255,255,.45)!important;transition:transform .15s,box-shadow .15s,opacity .2s;
 box-shadow:0 14px 22px -8px rgba(8,0,50,.8),0 0 0 1px rgba(25,8,90,.45),inset 0 2px 3px rgba(255,255,255,.7),inset 0 -12px 18px rgba(70,30,190,.5)!important}
.xtra .pill::before{content:"";position:absolute;left:13%;right:13%;top:5%;height:42%;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.6),rgba(255,255,255,0));pointer-events:none}
.xtra .pill::after{content:"";position:absolute;left:24%;right:24%;bottom:7%;height:20%;border-radius:50%;background:var(--g,#fff);opacity:.5;filter:blur(5px);pointer-events:none}
.xtra .pill:hover{transform:translateY(-3px) scale(1.05)}.xtra .pill:active{transform:translateY(1px) scale(.95)}
.xtra .pill svg{position:relative;z-index:1;width:25px!important;height:25px!important;color:var(--g,#fff)!important;stroke-width:2.2;filter:drop-shadow(0 0 6px var(--g,#fff)) drop-shadow(0 2px 2px rgba(0,0,0,.45))}
.xtra .pill.on{box-shadow:0 14px 22px -8px rgba(8,0,50,.8),0 0 0 2px #ff5c9a,0 0 22px rgba(255,92,154,.75),inset 0 2px 3px rgba(255,255,255,.7),inset 0 -12px 18px rgba(255,61,154,.45)!important}
.xtra .pill.off,.xtra .pill:disabled{opacity:.45}
.xtra .pill>span:not(.dd-l),.xtra .chev{display:none!important}
.xtra .dd-l,.xtra .pill b{position:absolute;top:-5px;right:-6px;z-index:2;min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:var(--acc);color:#fff;font:700 .62rem/21px Poppins,sans-serif;text-align:center;box-shadow:0 4px 9px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.55)}
.xtra .dd-l.hid{display:none}
#xs{--g:#9fb8ff}#xr{--g:#7fe8ff}.pill:has(#xv){--g:#c9ff55}#xl{--g:#ff5c9a}#xd{--g:#ffbb6b}
.stage{perspective:none!important}.deck{perspective:900px}
.xtra .pill{flex:0 0 56px!important;max-width:56px!important;aspect-ratio:1/1}
.arm svg{overflow:visible}
.arm{left:81%!important;width:35%!important;top:-7%!important}
.arm{left:71%!important}
.arm{left:77%!important;transform:translateZ(80px) rotate(-3deg)!important}.deck.on .arm{transform:translateZ(80px) rotate(8deg)!important}
.arm{left:72%!important}

/* ===== v13: one-screen fit — everything scaled ~0.8x in proportion =====
   Measured on 390x844: the Play page was 175px too tall (second orb row
   hidden behind the tab bar). Every visual block shrinks by the same
   factor, so the design keeps its proportions — just smaller. */
.stage{padding:14px 16px!important}
.deck{width:48%!important;margin:24px auto 16px!important}
.viz{height:40px!important;margin:12px auto 8px!important;gap:5px!important}
.viz i{width:5px!important}
@keyframes bar{to{height:38px}}
#tt{font-size:1.1rem!important}
#sc{margin-top:6px!important}
.ctl{gap:16px!important;margin:10px 0 4px!important}
#pp{width:62px!important;height:62px!important}
#pp svg{width:30px!important;height:30px!important}
#xp,#sk{width:50px!important;height:50px!important}
#xp svg,#sk svg{width:21px!important;height:21px!important}
.vol{margin-top:0!important}
.vol .spk svg{width:18px!important;height:18px!important}
.xtra{margin:10px 0 0!important}
.xrow{margin-bottom:10px!important}
.xtra .pill{flex:0 0 44px!important;max-width:44px!important;width:44px!important;height:44px!important}
.xtra .pill svg{width:20px!important;height:20px!important}
.xtra .dd-l,.xtra .pill b{min-width:18px!important;height:18px!important;font-size:.55rem!important;line-height:18px!important}

/* ===== v14: landing + gate redesign, structured header, premium dropdowns ===== */
/* --- FX layer: glowing colourful smoke + twinkling stars + flowing notes --- */
/* visible on the landing + gate only; hidden once inside a room */
#fx{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;transition:opacity .6s}
body.in-room #fx{opacity:0;visibility:hidden}
main,#room{position:relative;z-index:1}
#home{perspective:900px}
#fx .smoke{position:absolute;border-radius:50%;filter:blur(55px);mix-blend-mode:screen;opacity:.5;animation:smokeDrift ease-in-out infinite alternate}
#fx .s1{width:58vmax;height:58vmax;left:-14%;top:-12%;background:radial-gradient(circle,#ff3d9a,transparent 65%);--dx:12vw;--dy:9vh;--s:1.18;animation-duration:26s}
#fx .s2{width:52vmax;height:52vmax;right:-18%;top:6%;background:radial-gradient(circle,#22e1ff,transparent 65%);--dx:-11vw;--dy:10vh;--s:1.22;animation-duration:32s}
#fx .s3{width:46vmax;height:46vmax;left:22%;bottom:-20%;background:radial-gradient(circle,#b026ff,transparent 65%);--dx:9vw;--dy:-11vh;--s:1.15;animation-duration:29s}
#fx .s4{width:40vmax;height:40vmax;right:8%;bottom:-8%;background:radial-gradient(circle,#ffb020,transparent 65%);--dx:-10vw;--dy:-8vh;--s:1.25;animation-duration:24s}
#fx .s5{width:34vmax;height:34vmax;left:48%;top:30%;background:radial-gradient(circle,#c026d3,transparent 65%);--dx:-8vw;--dy:12vh;--s:1.2;animation-duration:35s}
#fx .s6{width:30vmax;height:30vmax;left:-8%;top:44%;background:radial-gradient(circle,#2de2ff,transparent 65%);--dx:10vw;--dy:-9vh;--s:1.18;animation-duration:27s}
#fx .s7{width:28vmax;height:28vmax;right:28%;top:-6%;background:radial-gradient(circle,#ff5c9a,transparent 65%);--dx:7vw;--dy:11vh;--s:1.22;animation-duration:31s}
@keyframes smokeDrift{to{transform:translate(var(--dx,10vw),var(--dy,8vh)) scale(var(--s,1.15))}}
#stars span{position:absolute;border-radius:50%;animation:twinkle 2.8s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.15;transform:scale(.7)}50%{opacity:1;transform:scale(1.3)}}
#fnotes span{position:absolute;bottom:-8vh;opacity:0;animation:floatUp linear infinite;text-shadow:0 0 12px currentColor}
@keyframes floatUp{0%{transform:translateY(0) rotate(-8deg);opacity:0}12%{opacity:.9}85%{opacity:.75}100%{transform:translateY(-118vh) rotate(14deg);opacity:0}}
/* --- landing hero: premium vinyl photo, slow spin + 3D pointer tilt --- */
.hero3d{position:relative;width:min(62vw,240px);aspect-ratio:1;margin:6px auto 4px;transition:transform .25s ease-out;transform-style:preserve-3d}
.hero3d::before{content:"";position:absolute;inset:-12%;border-radius:50%;background:conic-gradient(from 0deg,#ff3d9a,#b026ff,#22e1ff,#ffb020,#ff3d9a);filter:blur(28px);opacity:.55;z-index:-1;animation:heroSpin 14s linear infinite}
.hero-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;box-shadow:0 0 0 3px rgba(255,120,180,.7),0 0 40px rgba(255,61,113,.8),0 0 90px rgba(192,38,211,.55),0 30px 50px rgba(0,0,0,.6);animation:heroSpin 30s linear infinite}
@keyframes heroSpin{to{transform:rotate(360deg)}}
.hero-title{font-size:2.6rem;font-weight:800;line-height:1.05;margin:8px 0 2px;background:linear-gradient(135deg,#ffb020,#ff3d71 45%,#b026ff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 18px rgba(255,61,113,.55))}
/* --- flowing music: animated equalizer + feature chips --- */
.eq{display:flex;gap:4px;align-items:flex-end;justify-content:center;height:34px;margin:12px auto 2px}
.eq i{width:5px;height:32px;border-radius:4px;background:linear-gradient(180deg,#ff3d71,#b026ff);transform-origin:bottom;transform:scaleY(.25);animation:eqB 1s ease-in-out infinite alternate;will-change:transform}
.eq i:nth-child(odd){background:linear-gradient(180deg,#22e1ff,#7a5cff)}
.eq i:nth-child(3n){animation-duration:.7s}
.eq i:nth-child(4n){animation-duration:1.3s}
.eq i:nth-child(2){animation-delay:-.2s}.eq i:nth-child(5){animation-delay:-.5s}.eq i:nth-child(7){animation-delay:-.1s}.eq i:nth-child(9){animation-delay:-.7s}.eq i:nth-child(11){animation-delay:-.3s}.eq i:nth-child(13){animation-delay:-.6s}.eq i:nth-child(15){animation-delay:-.4s}
@keyframes eqB{from{transform:scaleY(.25)}to{transform:scaleY(1)}} /* v69: was height:8px->32px — animating height is a LAYOUT property (the browser recalculates layout + repaints every frame, which flickers and lags in the Android WebView). scaleY is a composited transform (GPU only, no layout, no repaint) — the same look, perfectly smooth. transform-origin:bottom (set on .eq i) keeps the bars growing upward from the bottom, exactly as before. */
.chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px 0 4px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);backdrop-filter:none;font-size:.78rem;font-weight:600;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.25)}
.chip svg{width:14px;height:14px;color:#ffd166}
/* --- big buttons: 3D shine sweep --- */
#home .big,#gate .big{position:relative;overflow:hidden;box-shadow:0 14px 30px -6px rgba(255,61,113,.7),inset 0 2px 0 rgba(255,255,255,.4),inset 0 -6px 14px rgba(120,0,120,.3);transition:transform .15s,box-shadow .15s}
#home .big::after,#gate .big::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-20deg);animation:shine 3.6s ease-in-out infinite}
@keyframes shine{0%,55%{left:-60%}100%{left:130%}}
#home .big:active,#gate .big:active{transform:translateY(2px) scale(.98)}
/* --- gate badge: premium headphones photo, gentle float --- */
.gate-badge{width:min(52vw,180px);aspect-ratio:1;margin:4px auto 8px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 3px rgba(255,120,180,.7),0 0 34px rgba(255,61,113,.75),0 0 80px rgba(192,38,211,.5),0 24px 40px rgba(0,0,0,.55);animation:gateFloat 5s ease-in-out infinite}
.gate-badge img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes gateFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
#gate h1{background:linear-gradient(135deg,#ffb020,#ff3d71 45%,#b026ff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 16px rgba(255,61,113,.5))}
/* --- structured room header: title row + actions row, never overlaps --- */
header{display:flex!important;flex-direction:column!important;gap:6px!important;padding:10px 0!important}
.hrow1{display:flex;gap:8px;align-items:center;min-width:0}
.hrow2{display:flex;gap:8px}
.hrow2 button{flex:1;min-width:0}
#mb{margin:0!important}
@media(min-width:900px){
  header{flex-direction:row!important;align-items:center!important}
  .hrow1{flex:1;min-width:0}
  .hrow2{flex:none}
  .hrow2 button{flex:none}
}
/* --- premium dropdown chevron: every <details> on every page --- */
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
summary::marker{content:""}
details summary{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(122,63,196,.45));border:1px solid rgba(255,255,255,.22);box-shadow:0 8px 18px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.3);font-weight:600;color:#fff}
details summary::after{content:"";flex:none;width:26px;height:26px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#ffb020,#ff3d71 55%,#b026ff);box-shadow:0 4px 10px rgba(255,61,113,.6),inset 0 1px 0 rgba(255,255,255,.5);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:14px 14px;transition:transform .3s}
details[open] summary::after{transform:rotate(180deg)}
details[open] summary{border-color:rgba(255,92,154,.6);box-shadow:0 8px 22px rgba(255,61,113,.35),inset 0 1px 0 rgba(255,255,255,.3)}
/* --- v14 fit: the two-row header is taller, so give the room back the space --- */
#room{padding-bottom:128px!important}
.deck{margin:14px auto 16px!important}
.stage{padding:12px 16px 14px!important}

/* ===== v15: header back to ONE row, side by side + gap above dropdowns ===== */
/* --- one-row header: room name flexes and truncates, pill + buttons keep width --- */
header{display:flex!important;flex-direction:row!important;gap:8px!important;align-items:center!important;padding:10px 0!important}
header .rt{flex:1 1 auto!important;min-width:0!important}
header .rt b,header .rt small{min-width:0!important}
header #who{flex:none!important}
header button{flex:none!important;white-space:nowrap!important}
@media(max-width:430px){header{gap:3px!important}}
@media(max-width:360px){.who small{display:none!important}}
/* --- fit: the header is one row again, so restore the v13 spacing --- */
#room{padding-bottom:150px!important}
.deck{margin:24px auto 16px!important}
.stage{padding:14px 16px!important}
/* --- dropdowns: a minimum gap above each one, never stuck to the section above --- */
#p-me details,aside>details{margin-top:14px!important}
/* --- track title: compact, small, professional — one clean line --- */
#tt{display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:unset!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.95rem!important;font-weight:600!important;line-height:1.3!important;margin:4px 0 2px!important}
#tt::before{content:none!important}
#by{font-size:.82rem!important;margin:0!important}

/* ===== v16: 3D play-button logo + icon-only header buttons with drop-down labels ===== */
/* --- premium 3D play button (header logo): glossy sphere + white play triangle --- */
.logo{clip-path:none!important;filter:none!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:radial-gradient(circle at 30% 25%,#ffd166 0%,#ff3d71 45%,#b026ff 100%)!important;box-shadow:0 4px 14px rgba(255,61,113,.65),inset 0 2px 3px rgba(255,255,255,.7),inset 0 -5px 9px rgba(90,0,90,.45),0 0 0 1px rgba(255,255,255,.25)!important}
.logo svg{width:55%!important;height:55%!important;margin-left:8%!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))!important}
@media(max-width:430px){.logo{width:30px!important;height:30px!important}}
/* --- Invite / Lock are icon-only premium orbs; the label drops down below on tap --- */
header{position:relative!important;padding:9px 0!important}
#share,#lock{width:34px!important;height:34px!important;min-height:0!important;padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important}
#share .tx,#lock .tx{display:none!important}
#share .ic svg,#lock .ic svg{width:17px!important;height:17px!important}
#lock .ic svg{filter:drop-shadow(0 0 3px rgba(255,255,255,.55))}
#share{background:linear-gradient(135deg,#b026ff,#5b3bff)!important;box-shadow:0 6px 16px rgba(90,40,255,.55),inset 0 1px 0 rgba(255,255,255,.4),inset 0 -4px 8px rgba(40,0,120,.4)!important}
#lock{background:linear-gradient(180deg,rgba(80,48,190,.6),rgba(40,20,120,.7))!important;box-shadow:0 6px 16px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.25),inset 0 -4px 8px rgba(0,0,0,.35)!important}
.hdr-tip{position:absolute;z-index:20;background:rgba(30,8,60,.95);border:1px solid rgba(255,255,255,.25);backdrop-filter:none;border-radius:12px;padding:6px 12px;font-size:.8rem;font-weight:600;color:#fff;white-space:nowrap;box-shadow:0 10px 24px rgba(0,0,0,.5);cursor:pointer}
.hdr-tip::before{content:"";position:absolute;left:var(--tip-arrow-x,50%);top:-5px;transform:translateX(-50%) rotate(45deg);width:10px;height:10px;background:rgba(30,8,60,.95);border-left:1px solid rgba(255,255,255,.25);border-top:1px solid rgba(255,255,255,.25)}

/* v18: queue/history/user cards must stay inside their box — a long song title
   (e.g. "Luis Fonsi - Despacito ft. Daddy Yankee") made the card 125px wider
   than its container because the grid column and the card refused to shrink
   below the title's full width. minmax(0,1fr) lets the column shrink, min-width:0
   lets the card shrink, and the title then truncates with "…" as designed. */
ol,ul{grid-template-columns:minmax(0,1fr)!important}
li{min-width:0!important;overflow:hidden}
li img,li button{flex:none!important}
li div{min-width:0!important}

/* v20: host control + requests + leave + yellow glass toasts + tighter sync.
   (1) Notifications: every toast is now a compact yellow glass pill — warm
   yellow-to-amber gradient, frosted blur, soft glow, dark text. (2) The
   Requests list and the Leave button. (3) Approve (green) / Reject (red). */
.toast{background:linear-gradient(135deg,rgba(255,214,64,.94),rgba(255,176,32,.9))!important;border:1px solid rgba(255,255,255,.6)!important;border-radius:16px!important;padding:.5em .9em!important;color:#3a2500!important;font-size:.82rem!important;font-weight:600!important;line-height:1.35!important;text-align:center!important;box-shadow:0 10px 26px rgba(255,170,0,.4),inset 0 1px 0 rgba(255,255,255,.65)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.leave{width:100%!important;margin-top:16px!important;padding:.85em 1em!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.28)!important;background:linear-gradient(135deg,rgba(255,61,113,.9),rgba(176,38,255,.9))!important;color:#fff!important;font-weight:700!important;font-size:.95rem!important;box-shadow:0 10px 24px rgba(255,45,135,.35),inset 0 1px 0 rgba(255,255,255,.35)!important;cursor:pointer!important}
#rq .ap{background:linear-gradient(135deg,#22c55e,#16a34a)!important;border-color:rgba(255,255,255,.4)!important;color:#fff!important}
#rq .rj{background:linear-gradient(135deg,#ef4444,#dc2626)!important;border-color:rgba(255,255,255,.4)!important;color:#fff!important}
/* v20 (fix): the Room user row now has four host buttons, so the actions wrap
   onto their own row(s) below the name instead of squeezing the name out. */
#ul li{flex-wrap:wrap!important}
#ul .uacts{display:flex!important;flex-wrap:wrap!important;gap:6px!important;flex:1 1 100%!important;min-width:0!important}
#ul .uacts button{flex:1 1 45%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
/* v21: Keep the media player mounted while changing tabs. The old
   display:none stage stopped media; v94.62 also removes the 1px hidden
   viewport that could suspend YouTube audio in mobile WebKit. */
/* v94.62: Navigation must NOT turn the active YouTube iframe into a 1px,
   visibility:hidden player. WebKit can suspend that media when the user opens
   Queue / Sing / Room / More even though this is still the foreground app.
   Leave its DOM, visibility and meaningful box dimensions intact; park the
   playboard behind the other tab, almost transparent and non-interactive.
   This changes no visible secondary-tab layout or playback commands. */
#room:not([data-tab=play]) .stage{
  display:block!important;position:absolute!important;
  top:64px!important;left:50%!important;
  width:min(calc(100% - 28px),492px)!important;
  height:min(70svh,540px)!important;min-height:260px!important;
  margin:0!important;max-height:none!important;
  overflow:hidden!important;visibility:visible!important;
  pointer-events:none!important;opacity:.004!important;
  transform:translateX(-50%)!important;z-index:-1!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  box-shadow:none!important
}
/* Suspend decorative animation only while the playboard is not in view. */
#room:not([data-tab=play]) .stage .disc,
#room:not([data-tab=play]) .stage .disc-btn::after,
#room:not([data-tab=play]) .stage .dnote,
#room:not([data-tab=play]) .stage .cosmic *{animation-play-state:paused!important}
/* Compact glass transport controls appear above the tab bar on secondary tabs. */
#mini{top:auto!important;bottom:calc(133px + env(safe-area-inset-bottom))!important;left:50%!important;right:auto!important;width:min(calc(100% - 28px),480px)!important;min-height:48px!important;visibility:hidden!important;pointer-events:none!important;transform:translateX(-50%) translateY(160%)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(80,48,150,.86),rgba(22,8,52,.9))!important;box-shadow:0 12px 30px rgba(0,0,0,.45),0 0 22px rgba(143,91,255,.16),inset 0 1px 0 rgba(255,255,255,.2)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:5px 8px!important;gap:7px!important;z-index:5!important}
#mini.show{visibility:visible!important;pointer-events:auto!important;transform:translateX(-50%) translateY(0)!important}
#mini button{width:32px!important;height:32px!important;min-height:32px!important;border-radius:50%!important;flex:none!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important;font-size:0!important;padding:0!important}
#mini #mp{width:36px!important;height:36px!important;min-height:36px!important;background:linear-gradient(135deg,#ff3d71,#b026ff)!important;border-color:rgba(255,255,255,.38)!important;box-shadow:0 4px 14px rgba(255,61,113,.38)!important}
#mini button svg{display:block;width:17px;height:17px}
#mini button:disabled{opacity:.35!important}
#mini img{width:36px!important;height:36px!important;border-radius:10px!important;object-fit:cover!important;flex:none!important}
#mini #mt{font-size:.76rem;line-height:1.25}
/* v21: on the list pages the bottom bar floats over the list, so give those
   pages extra bottom room — the last item no longer hides behind the bar.
   The Play page is untouched, so its one-screen fit is unchanged. */
#room:not([data-tab=play]){padding-bottom:212px!important}

#q li>div>b,#h li>div>b,#rq li>div>b{
  white-space:normal;
  overflow-wrap:anywhere;
  text-overflow:clip;
}
#current-song li>div>b{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.current-song{background:linear-gradient(135deg,rgba(118,27,255,.2),rgba(255,38,184,.12));border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(15,0,45,.18)}
.current-song img{box-shadow:0 0 14px rgba(0,217,255,.2)}
.current-state{flex:none;padding:5px 8px;border-radius:999px;background:rgba(255,138,36,.14);color:#ffd2a8;font-size:.68rem;font-weight:700}
.current-state.playing{background:rgba(182,255,59,.13);color:var(--li)}

#gate{min-height:100vh;min-height:100svh;align-content:center;gap:22px}
#gate .gate-badge{width:min(42vw,156px);margin:0 auto}
#gate .gate-panel{display:grid;gap:14px;padding:clamp(20px,5vw,28px);border:1px solid rgba(255,255,255,.2);border-radius:28px;background:linear-gradient(150deg,rgba(255,255,255,.13),rgba(40,8,90,.48));box-shadow:0 24px 60px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.2);backdrop-filter:none}
#gate .gate-panel h1{font-size:clamp(2.25rem,9vw,3.2rem)}
#gate .gate-panel .lead{max-width:34ch;margin:0 auto;line-height:1.55}
#gate #join-fields{align-items:center}
#gate #gn{flex:1;min-width:0}
#gate #gc{flex:none;width:48px;height:48px;border:1px solid rgba(255,255,255,.24);border-radius:50%;overflow:hidden}
#gate #gc::-webkit-color-swatch-wrapper{padding:4px}
#gate #gc::-webkit-color-swatch{border:0;border-radius:50%}
#gate #gc::-moz-color-swatch{border:0;border-radius:50%}
#gate #go,#gate #new-room{width:100%;min-height:54px;margin:0}
#gate .gate-home{display:block;padding:13px 16px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(255,255,255,.08);color:#fff;font-weight:600;text-decoration:none}
#gate .gate-home:hover{background:rgba(255,255,255,.14)}
#gate #ge{margin:0;line-height:1.5}
#gate.gate-error .gate-badge{width:min(34vw,124px)}
#gate.gate-error #ge{padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,61,113,.12)}
body:not(.in-room) #mini{display:none!important}

/* Animated neon smoke is isolated to the clipped player card. */
.stage{
  isolation:isolate;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  -webkit-mask-image:-webkit-radial-gradient(white,black)
}
.stage>*{position:relative;z-index:2}
.stage>.dnote,.stage>.gloss{position:absolute}
.stage::before{
  inset:-14%;left:-14%;top:-14%;width:auto;height:auto;transform:none;border-radius:inherit;
  z-index:0;pointer-events:none;mix-blend-mode:screen;opacity:.62;
  background:
    radial-gradient(ellipse at 16% 27%,rgba(0,217,255,.95),rgba(21,59,255,.42) 28%,transparent 48%),
    radial-gradient(ellipse at 79% 20%,rgba(118,27,255,.96),rgba(255,38,184,.48) 32%,transparent 53%),
    radial-gradient(ellipse at 76% 75%,rgba(255,38,184,.9),rgba(255,57,127,.45) 30%,transparent 50%),
    radial-gradient(ellipse at 22% 78%,rgba(255,138,36,.9),rgba(255,57,127,.42) 29%,transparent 48%),
    radial-gradient(ellipse at 50% 49%,rgba(21,59,255,.78),rgba(118,27,255,.4) 38%,transparent 62%),
    conic-gradient(from 20deg at 50% 50%,rgba(118,27,255,.14),rgba(0,217,255,.34),rgba(255,38,184,.28),rgba(255,138,36,.2),rgba(118,27,255,.14));
  filter:saturate(1.9) contrast(1.04);
  transition:opacity 1.4s ease,filter 1.4s ease;
  animation:cosmicSmoke 30s ease-in-out infinite alternate;
  will-change:transform,opacity
}
.stage.on::before{
  opacity:.96;filter:saturate(2.2) contrast(1.06);
  animation:cosmicSmoke 19s ease-in-out infinite alternate,cosmicPulse 4.8s ease-in-out infinite
}
.stage::after{
  z-index:1;mix-blend-mode:screen;opacity:.48;pointer-events:none;
  background:
    radial-gradient(320px 220px at var(--mx,50%) var(--my,28%),rgba(255,255,255,.13),transparent 70%),
    radial-gradient(1.5px 1.5px at 16% 20%,rgba(255,255,255,.95) 50%,transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 30%,rgba(0,217,255,.95) 50%,transparent 100%),
    radial-gradient(2px 2px at 72% 78%,rgba(255,138,36,.9) 50%,transparent 100%),
    radial-gradient(1.5px 1.5px at 27% 68%,rgba(255,38,184,.9) 50%,transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 14%,rgba(255,255,255,.8) 50%,transparent 100%),
    linear-gradient(116deg,transparent 28%,rgba(0,217,255,.055) 43%,transparent 49%),
    linear-gradient(32deg,transparent 50%,rgba(255,38,184,.06) 59%,transparent 66%);
  background-size:100% 100%,140% 150%,150% 140%,130% 160%,160% 150%,145% 135%,100% 100%,100% 100%;
  background-repeat:no-repeat;
  background-position:0 0,0 0,100% 8%,12% 100%,92% 78%,40% 0,0 0,0 0;
  animation:cosmicParticles 32s ease-in-out infinite alternate;
  transition:opacity 1.4s ease
}
.stage.on::after{opacity:.78;animation-duration:16s}
@keyframes cosmicSmoke{
  0%{transform:translate(-2%,-1%) rotate(-4deg) scale(.96)}
  50%{transform:translate(2%,1%) rotate(4deg) scale(1.04)}
  100%{transform:translate(-1%,3%) rotate(-3deg) scale(1.1)}
}
@keyframes cosmicPulse{0%,100%{opacity:.72}50%{opacity:.94}}
@keyframes cosmicParticles{
  0%{background-position:0 0,0 0,100% 8%,12% 100%,92% 78%,40% 0,0 0,0 0}
  50%{background-position:0 0,48% 72%,35% 88%,74% 14%,8% 30%,83% 72%,0 0,0 0}
  100%{background-position:0 0,100% 34%,0 44%,24% 0,68% 100%,0 18%,0 0,0 0}
}
#room:not([data-tab=play]) .stage::before,
#room:not([data-tab=play]) .stage::after{animation:none!important}
@media(max-width:600px){
  /* v74: the blur is removed here too (was blur(12px)/blur(15px)). This mobile
     override used to re-add the blur that the base rule dropped — and on a
     phone (max-width 600px) it is exactly the expensive per-frame blur that
     heats the device. The radial gradients already fade soft, so the look
     stays; only the cheap saturate remains. */
  .stage::before{filter:saturate(1.8)}
  .stage.on::before{filter:saturate(2.2)}
  .stage::after{animation-duration:40s}
  .stage.on::after{animation-duration:22s}
}
@media(prefers-reduced-motion:reduce){
  .stage::before,.stage::after{animation:none!important;transition:none!important}
  .stage.on::before{opacity:.64}
  .stage.on::after{opacity:.58}
}

/* Keep the app shell inside the viewport; contain overflow within its active surface. */
html,body{height:100%;overflow:hidden}
main#home,main#gate{
  height:100vh;height:100svh;height:100dvh;
  min-height:0;overflow:hidden
}
#home{
  padding:max(10px,env(safe-area-inset-top)) 24px max(10px,env(safe-area-inset-bottom));
  gap:clamp(5px,1.25svh,12px);
  align-content:center
}
#home .hero3d{width:clamp(96px,min(52vw,22svh),190px);margin:0 auto}

#home .hero-title{font-size:clamp(1.95rem,6.4svh,2.9rem);margin:0}
#home .hero-title.brand-wordmark{display:flex;align-items:baseline;justify-content:center;gap:0;line-height:.95;letter-spacing:-.06em;font-weight:800;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01" 1}
#home .hero-title.brand-wordmark .brand-core{color:#fff;text-shadow:0 4px 18px rgba(255,255,255,.12),0 10px 22px rgba(0,0,0,.22)}
#home .hero-title.brand-wordmark .brand-dotcom{margin-left:.06em;background:linear-gradient(90deg,#ff4fd8 0%,#8b5dff 38%,#ff7e6d 72%,#ffc533 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 8px 16px rgba(255,118,191,.22))}
#home .lead{max-width:38ch;margin:auto;font-size:clamp(.78rem,2.1svh,.94rem);line-height:1.3}
#home .eq{height:clamp(16px,3svh,28px);margin:2px auto}
#home .chips{gap:4px;margin:2px 0}
#home .chip{padding:4px 8px;font-size:.68rem}
#home .big{min-height:44px;padding:.65em 1.1em;font-size:1rem}
#home #jf{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px;margin:0}
#home #jf .row{min-width:0}
#home #jf .row input{flex:1;min-width:0;min-height:42px}
#home #jf .row button{min-height:42px;padding:.4em .9em}
#home .steps{max-width:46ch;margin:auto;font-size:.72rem;line-height:1.2}
#home #recent{gap:5px;font-size:.72rem;line-height:1.15}
#home .recent-list{gap:5px}
#home .recent-list a{padding:4px 9px}
#gate{
  height:100vh;height:100svh;height:100dvh;min-height:0;overflow:hidden;
  padding:max(12px,env(safe-area-inset-top)) clamp(16px,6vw,32px) max(12px,env(safe-area-inset-bottom));
  gap:clamp(8px,1.5svh,16px)
}
#gate .gate-badge{width:clamp(72px,min(34vw,16svh),136px);margin:0 auto}
#gate.gate-error .gate-badge{width:clamp(64px,min(30vw,13svh),110px)}
#gate .gate-panel{gap:clamp(8px,1.3svh,12px);padding:clamp(12px,4vw,22px)}
#gate .gate-panel h1{font-size:clamp(1.7rem,6svh,2.6rem)}
#gate .gate-panel .lead,#gate .gate-panel #ge{font-size:clamp(.8rem,2svh,.94rem);line-height:1.35}
#gate #go,#gate #new-room{min-height:48px;padding:.7em 1em}
#gate .gate-home{padding:10px 12px}

#room{
  height:100vh;height:100svh;height:100dvh;max-height:100dvh;
  display:flex;flex-direction:column;overflow:hidden;
  margin:0 auto;padding:0 14px!important
}
#room>header{flex:0 0 auto;min-height:48px;margin:0}
#room[data-tab=play]{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
#room[data-tab=play] .stage{
  display:flex;flex:1 1 0;flex-direction:column;justify-content:space-evenly;
  min-height:0;gap:clamp(2px,.8svh,7px);margin:0 0 4px;
  padding:clamp(6px,1.3svh,12px) 12px!important
}
#room[data-tab=play] .stage>:not(.dnote):not(.gloss){flex:0 0 auto}
#room[data-tab=play] .deck{width:clamp(88px,min(45vw,20svh),200px)!important;margin:clamp(2px,.8svh,8px) auto!important}
#room[data-tab=play] .deck.vid{width:min(100%,35svh)!important;margin:4px auto!important}
#room[data-tab=play] .viz{flex:none;height:clamp(16px,3svh,28px)!important;margin:2px auto!important}
#room[data-tab=play] #tt{margin:0!important;font-size:clamp(.84rem,2.2svh,1rem)!important;line-height:1.2!important}
#room[data-tab=play] #ch{display:block;max-height:2.3em;overflow:hidden;margin:0;font-size:clamp(.72rem,1.8svh,.82rem);line-height:1.15}
#room[data-tab=play] #by{display:block;margin:0;font-size:clamp(.68rem,1.6svh,.78rem);line-height:1.1}
#room[data-tab=play] #sc{height:18px;margin:0!important}
#room[data-tab=play] .time{font-size:.72rem}
#room[data-tab=play] .ctl{flex:none;gap:clamp(6px,2vw,14px)!important;margin:0!important}
#room[data-tab=play] #pp{width:clamp(46px,7.3svh,62px)!important;height:clamp(46px,7.3svh,62px)!important}
#room[data-tab=play] #xp,#room[data-tab=play] #sk{width:clamp(40px,6svh,50px)!important;height:clamp(40px,6svh,50px)!important}
/* v57: VOLUME CONTROLS MADE BIG ENOUGH TO TAP ON A PHONE. The mute/max buttons were 32×34px and the slider track only 18px tall on the Play tab — too small to hit reliably with a thumb, so the volume felt dead on mobile even though the handlers worked. Now the buttons are a full 44×44px touch target and the slider is taller with a bigger thumb, and touch-action stops the double-tap zoom delay. */
#room[data-tab=play] .vol{gap:clamp(8px,2vw,12px);margin:0}
#room[data-tab=play] .vol button.spk{width:44px;height:44px;min-height:44px;touch-action:manipulation}
#room[data-tab=play] .vol input{height:28px;touch-action:manipulation}
#room[data-tab=play] .vol input::-webkit-slider-thumb{width:26px;height:26px;margin-top:-9px}
#room[data-tab=play] .vol input::-moz-range-thumb{width:26px;height:26px}
#room[data-tab=play] .xtra{--pill-size:clamp(34px,5.2svh,44px);flex:none;margin:0!important}
#room[data-tab=play] .xrow{justify-content:space-evenly;gap:0!important;margin:0!important}
#room[data-tab=play] .xrow+.xrow{margin-top:clamp(2px,.7svh,6px)!important}
#room[data-tab=play] .xtra .pill{
  flex:0 0 var(--pill-size)!important;max-width:var(--pill-size)!important;
  width:var(--pill-size)!important;height:var(--pill-size)!important
}
#room[data-tab=play] .xtra .pill svg{width:clamp(18px,2.5svh,22px)!important;height:clamp(18px,2.5svh,22px)!important}

#room:not([data-tab=play]){padding-bottom:calc(186px + env(safe-area-inset-bottom))!important}
#room:not([data-tab=play]) aside{
  display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden
}
#room:not([data-tab=play]) aside>.pane{
  flex:1 1 auto;min-height:0;width:100%;height:100%;
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin
}
.dlg-card{max-height:90dvh;overflow-y:auto}

@media(max-height:650px){
  #home{gap:clamp(4px,1svh,7px);padding-left:18px;padding-right:18px}
  #home .hero3d{width:clamp(88px,min(48vw,18svh),130px)}
  #home .chips{gap:3px}
  #home .chip{padding:3px 6px;font-size:.64rem}
  #home .steps{font-size:.68rem}
  #gate .gate-panel{gap:8px;padding:12px}
  #gate .gate-panel h1{font-size:clamp(1.6rem,5.5svh,2.2rem)}
  #gate #go,#gate #new-room{min-height:44px}
  #room[data-tab=play] .stage{gap:2px}
}
@media(max-height:500px){
  #room[data-tab=play] .stage{justify-content:space-between;gap:0;padding:4px 10px!important}
  #room[data-tab=play] .deck{width:clamp(72px,min(36vw,15svh),100px)!important;margin:0 auto!important}
  #room[data-tab=play] .deck.vid{width:min(100%,24svh)!important}
  #room[data-tab=play] .viz,#room[data-tab=play] .dnote{display:none}
  #room[data-tab=play] .xtra{--pill-size:32px}
}
@media(max-height:440px){
  #gate .gate-panel{gap:6px;padding:10px}
  #room[data-tab=play] .stage{overflow-y:auto;justify-content:flex-start}
}

/* Keep the original bottom bar; tighten the player area above it on phones. */
@media(max-width:600px){
  #room[data-tab=play] .stage{padding-bottom:clamp(26px,5svh,44px)!important}
  #room[data-tab=play] .deck{width:clamp(88px,min(43vw,18svh),180px)!important;margin:clamp(1px,.5svh,5px) auto!important}
  #room[data-tab=play] .viz{height:clamp(14px,2.6svh,24px)!important;margin:1px auto!important}
  #room[data-tab=play] .xtra{margin-top:clamp(2px,.5svh,5px)!important}
  #room[data-tab=play] .xrow+.xrow{margin-top:clamp(1px,.4svh,3px)!important}
}
@media(max-width:600px) and (max-height:700px){
  #room[data-tab=play] .stage{padding-bottom:32px!important}
  #room[data-tab=play] .deck{width:clamp(84px,min(40vw,17svh),150px)!important}
}

/* v26: Karaoke tab — complete restructure. Four clean sections: STAGE (who is
   singing + live voice visualizer) · YOUR TURN (one clear action) · MIC
   (singer controls) · VOICE EFFECTS (FX grid). No more crowded card. */
#kar{margin-top:12px;text-align:left;display:flex;flex-direction:column;gap:12px}
#kar h3{display:none} /* the pane hero already says Karaoke */
.kar-stage{background:linear-gradient(160deg,#3b1a7a,#1c0f3d 60%,#2a0f4a);border:1px solid #ffffff22;border-radius:20px;padding:16px 14px 12px;box-shadow:0 10px 30px -12px #000c}
.kar-stage-top{display:flex;align-items:center;gap:12px}
.kar-avatar{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:26px;background:radial-gradient(circle at 35% 30%,#ff8aa8,#ff3d71 55%,#a81f4a);box-shadow:0 0 0 3px #ffffff22,0 6px 18px -4px #ff3d71aa}
.kar-stage.live .kar-avatar{animation:karPulse 1.2s ease-in-out infinite}
@keyframes karPulse{0%,100%{box-shadow:0 0 0 3px #ffffff22,0 0 0 0 #ff3d7188}50%{box-shadow:0 0 0 3px #ffffff22,0 0 0 10px #ff3d7100}}
.kar-stage-info{flex:1;min-width:0}
.kar-stage-label{font-size:.68rem;font-weight:800;letter-spacing:.14em;color:#c9a7ff}
.kar-stage-name{font-size:1.15rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kar-stage-song{font-size:.82rem;color:#d8c8ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kar-live{flex:none;font-size:.7rem;font-weight:800;letter-spacing:.1em;color:#fff;background:#ff2d55;border-radius:999px;padding:5px 9px;animation:karBlink 1.1s steps(2) infinite}
@keyframes karBlink{50%{opacity:.45}}
.kar-viz{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:56px;margin-top:12px}
.kar-viz i{flex:1;max-width:10px;height:8px;border-radius:4px;background:linear-gradient(180deg,#ff8aa8,#ff3d71 60%,#b537f2);transition:height .08s linear}
.kar-stage:not(.live) .kar-viz i{opacity:.35}
.kar-action{background:#ffffff10;border:1px solid #ffffff1c;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.kar-action:empty{display:none}
.kar-now{font-size:.95rem;line-height:1.45}
.kar-sing{width:100%;min-height:48px;font-size:1rem;border-radius:14px}
.kar-hint{font-size:.78rem;color:#c9b8ff;text-align:center}
.kar-reqs h4{margin:2px 0 6px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#c9a7ff}
.kar-req{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#ffffff0d;border:1px solid #ffffff14;border-radius:12px;margin-top:6px}
.kar-req span{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kar-mic{background:#ffffff10;border:1px solid #ffffff1c;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.kar-mic[hidden]{display:none}
.kar-tip{margin:0;font-size:.82rem;color:#d8c8ff}
.kar-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kar-big{flex:1;min-height:48px;font-size:1rem;border-radius:14px}
.kar-hear{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;white-space:nowrap}
.kar-miclevel{display:flex;align-items:center;gap:8px;font-size:.82rem;color:#d8c8ff}
.kar-miclevel span{white-space:nowrap}
.kar-mlbar{flex:1;height:8px;border-radius:99px;background:#ffffff1a;overflow:hidden}
.kar-mlbar i{display:block;height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#7ee7ff,#b6ff3b);transition:width .08s linear}
.kar-miclevel b{font-size:.78rem;color:#b6ff3b;white-space:nowrap}
.kar-fx{background:#ffffff0a;border:1px solid #ffffff14;border-radius:16px;padding:14px}
.kar-fx h4{margin:0 0 10px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#c9a7ff}
/* v48: VOICE EFFECTS — one sliding row. All 11 effects sit in a single
   horizontal row you swipe/scroll through (no more 3-column grid). Each
   effect is a compact pill sized to its label; the row snaps as you
   swipe, and the scrollbar is hidden for a clean look. The selected
   effect still gets the gradient. */
#kf{display:flex!important;flex-wrap:nowrap;gap:8px;margin:0!important;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#kf::-webkit-scrollbar{display:none}
#kf button{flex:0 0 auto;min-height:40px;font-size:.85rem;border-radius:999px;padding:4px 14px 4px 5px;white-space:nowrap;scroll-snap-align:start;display:inline-flex;align-items:center;gap:8px}
#kf button img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px #ffffff2a}
#kf button.on img{box-shadow:0 0 0 2px #ffffffcc}
#kar details{margin-top:10px}
#kar .sl{display:grid;grid-template-columns:90px 1fr;gap:6px;align-items:center}
#mb{margin:0 0 2px}

/* v28: Queue tab — premium, professional, compact. The song artwork stays
   exactly 56×56px; everything else is refined. */
/* Paste bar: one unified pill — borderless input + compact gradient button. */
#p-queue #af{display:flex;gap:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:4px 4px 4px 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 6px 18px -8px #000a}
#p-queue #af:focus-within{border-color:rgba(255,255,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 0 3px rgba(255,61,113,.18)}
#p-queue #au{flex:1;min-width:0;background:transparent;border:0;padding:0;font-size:.92rem}
#p-queue #au:focus{outline:none;box-shadow:none}
#p-queue #af button{flex:none;min-height:36px;border-radius:999px;padding:0 18px;font-size:.88rem}
/* Section headings: small, uppercase, letter-spaced, with a count pill. */
#p-queue .pane h3,#p-queue h3{margin:16px 0 8px;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#b9a8e8}
#p-queue h3:first-of-type{margin-top:0}
#p-queue h3 em{font-style:normal;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:1px 7px;margin-left:6px;font-size:.68rem;letter-spacing:0;color:#e8e0ff}
#current-track h3{color:#7ee7ff}
/* Song cards: tighter, refined glass, title clamped to 2 lines. */
#p-queue ol,#p-queue ul{gap:8px}
#p-queue li{gap:10px;padding:8px 10px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.09);border-left:3px solid var(--c,var(--pink));box-shadow:0 4px 14px -8px #000a}
/* Artwork: unchanged at 56×56 — the size the user asked to keep. */
#p-queue li img{width:56px;height:56px;border-radius:12px;box-shadow:0 4px 10px -2px #0009}
#p-queue li div>b{font-size:.92rem;line-height:1.28;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;text-overflow:ellipsis}
#p-queue li div>small{font-size:.75rem;margin-top:2px}
#p-queue li button{min-height:30px;padding:2px 12px;font-size:.78rem;border-radius:999px}
/* Current song: the hero card — richer gradient, glow, status pill with dot. */
#p-queue .current-song{background:linear-gradient(135deg,rgba(118,27,255,.28),rgba(255,38,184,.16) 70%,rgba(0,217,255,.1));border-color:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 22px -8px #7b2ff2aa}
#p-queue .current-song img{box-shadow:0 0 16px rgba(0,217,255,.28)}
#p-queue .current-state{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;font-size:.68rem}
#p-queue .current-state i{width:7px;height:7px;border-radius:50%;background:#ffb020;flex:none}
#p-queue .current-state.playing i{background:#b6ff3b;animation:karBlink 1.2s ease-in-out infinite}
/* Empty state: clean, centered, muted — not a fake song card. */
#p-queue li.empty{justify-content:center;background:transparent;border:1px dashed rgba(255,255,255,.16);box-shadow:none;padding:14px}
#p-queue li.empty small{font-size:.85rem;color:#b9a8e8}

/* v30: "Tap to enable sound" — asked at the start, so the music plays the
   moment a song starts. A clear, inviting button on the home and join
   screens. Once tapped it turns into a quiet "Sound on" confirmation. */
.snd{display:block;width:100%;min-height:48px;margin:10px 0 0;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(135deg,#ff9a1f,#ff3d71 55%,#c026d3);color:#fff;font-weight:800;font-size:.98rem;box-shadow:0 10px 26px -8px #ff3d71aa,inset 0 1px 0 rgba(255,255,255,.35);cursor:pointer}
.snd.on{background:rgba(182,255,59,.14);border-color:rgba(182,255,59,.4);color:#d6ff7a;box-shadow:none}
/* In the installed app (home screen) make it gently pulse, so it is the
   first thing the person notices when the app opens. */
@media (display-mode:standalone){.snd:not(.on){animation:sndPulse 1.6s ease-in-out infinite}}
@keyframes sndPulse{0%,100%{box-shadow:0 10px 26px -8px #ff3d71aa,inset 0 1px 0 rgba(255,255,255,.35)}50%{box-shadow:0 10px 34px -4px #ff3d71,inset 0 1px 0 rgba(255,255,255,.35)}}

/* v31: Queue tab — restructure the section spacing. The headings were stuck
   to the elements above and below them: the first heading ("Current song")
   had margin-top:0 so it touched the paste bar, and 16px/8px was too tight
   to read as a section break. Now every heading has a clear gap above it
   (20px) and a clear gap below it (12px), so the page reads as separate
   sections instead of one stuck-together list. The paste bar also gets a
   little room underneath it. */
#p-queue h3{margin:20px 0 12px}
#p-queue h3:first-of-type{margin-top:20px}
#p-queue #af{margin-bottom:2px}

/* v31: premium icons. Every emoji is replaced by a clean inline SVG icon
   (stroke-based, currentColor, so it matches the text around it). The .ic
   wrapper sizes the icon to the text and keeps it vertically aligned. */
.ic{display:inline-flex;vertical-align:-.14em}
.ic svg{width:1.05em;height:1.05em;display:block}
.snd .ic svg{width:1.25em;height:1.25em}
#kav .ic svg{width:44px;height:44px}
.kar-now .ic,.kar-sing .ic{vertical-align:-.18em}
.kar-sing .ic svg{width:1.15em;height:1.15em}
.kq-mic .ic svg{width:.95em;height:.95em}
.uacts .ic svg{width:1em;height:1em}
#tabs button i .ic svg{width:22px;height:22px}
#tabs button.mic i .ic svg{width:30px;height:30px}
.disc-btn .ic svg{width:26px;height:26px}

/* v32: karaoke voice status line on the stage — tells everyone whether the
   singer's voice is actually reaching this screen. Green = connected and
   audible; amber = the voice is ready but the browser blocked it, so tap
   anywhere to hear it. */
.kar-voice{font-size:.78rem;margin-top:3px;color:#b9a8e8}
.kar-voice.ok{color:#b6ff3b}
.kar-voice.warn{color:#ffd166}

/* v34: the logo is the neon headphone emblem (logo.png). The header logo is
   now the emblem image instead of the gradient play button, and the landing
   page hero is the emblem instead of the vinyl photo. The hero keeps its
   spinning glow ring; the emblem is already circular so it fits. */
.logo{background:none!important;clip-path:none!important;filter:none!important;border-radius:50%!important;display:block!important;box-shadow:0 0 0 1px rgba(255,255,255,.2),0 2px 10px rgba(0,0,0,.5)!important;overflow:hidden}
.logo img{width:100%;height:100%;object-fit:cover;display:block}
.logo.lg{width:56px;height:56px}

/* v35: (1) the sound prompt is a small premium popup that appears the moment
   someone creates or joins a room. (2) On a computer the app is no longer a
   narrow phone-width strip — the landing page and the room widen so the
   layout fills the screen and sits straight. The phone layout is unchanged. */
.snd-modal{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,2,30,.62);backdrop-filter:none;animation:sndFade .22s ease-out}
.snd-modal[hidden]{display:none}
@keyframes sndFade{from{opacity:0}to{opacity:1}}
.snd-card{position:relative;width:min(320px,calc(100vw - 48px));text-align:center;padding:26px 22px 20px;border-radius:24px;background:linear-gradient(160deg,rgba(64,22,120,.96),rgba(28,8,64,.96));border:1px solid rgba(255,255,255,.22);box-shadow:0 24px 60px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18);animation:sndPop .28s cubic-bezier(.2,1.4,.4,1)}
@keyframes sndPop{from{transform:scale(.88) translateY(10px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
.snd-x{position:absolute;top:10px;right:12px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:.85rem;cursor:pointer}
.snd-ic{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 32% 28%,#ffd166 0%,#ff3d71 48%,#b026ff 100%);box-shadow:0 0 0 3px rgba(255,255,255,.18),0 8px 24px rgba(255,61,113,.55),0 0 34px rgba(176,38,255,.5)}
.snd-ic svg{width:30px;height:30px;color:#fff}
.snd-card h3{margin:0 0 6px;font-size:1.25rem;font-weight:800;color:#fff}
.snd-card p{margin:0 0 16px;font-size:.9rem;line-height:1.5;color:#d8c8ff}
.snd-go{display:block;width:100%;min-height:48px;border:0;border-radius:999px;background:linear-gradient(90deg,#ffb020,#ff3d71 55%,#b026ff);color:#fff;font-size:1rem;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(255,61,113,.5)}
.snd-later{display:block;width:100%;margin-top:10px;padding:6px;border:0;background:none;color:#b9a8e8;font-size:.85rem;font-weight:600;cursor:pointer}
/* desktop: wider, straight layout (phones unchanged) */
@media(min-width:768px){
 main{max-width:640px;padding-top:6vh}
 #room{max-width:640px}
 #tabs{width:min(calc(100% - 24px),640px)}
 .hero3d{width:min(48vw,260px)}
}

/* v36: (1) the small music notes around the vinyl are now actually small
   (they were 2–2.6rem — far too big for a decoration). (2) History menu:
   the three-dots button in the header opens a panel with the rooms you
   visited and the songs played, saved on this device. */
.dnote{font-size:1rem!important}
.dnote.n1{font-size:1.15rem!important}
.dnote.n2{font-size:.85rem!important}
.dnote.n3{font-size:1rem!important}
#hist{flex:none;width:34px;height:34px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
#hist svg{display:block}
.hist-panel{position:fixed;top:64px;right:12px;z-index:40;width:min(340px,calc(100vw - 24px));max-height:min(64vh,560px);overflow-y:auto;overflow-x:hidden; /* v94.5: never scroll sideways — a row that is too wide must shrink, not push the buttons off-screen */padding:16px 14px 14px;border-radius:20px;background:linear-gradient(160deg,rgba(52,18,100,.97),rgba(22,6,52,.97));border:1px solid rgba(255,255,255,.22);box-shadow:0 20px 50px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15)}
.hist-panel[hidden]{display:none}
.hist-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.hist-head h3{margin:0;font-size:1.05rem;font-weight:800;color:#fff}
#hist-x{width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:.8rem;cursor:pointer}
.hist-panel h4{margin:14px 0 6px;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:#b9a8e8}
/* v94.5: HISTORY — compact, structured rows. Root cause of the sideways scroll:
   the row is a grid item, so its min-width:auto refused to shrink below the
   nowrap title's full width and the row ballooned past the panel, pushing both
   buttons off-screen. min-width:0 on the list + the row lets the title shrink
   and ellipsis instead. Layout: thumbnail (left, spans both rows) + title/meta
   on top + Copy link / Add to queue on their own line below — everything fits
   inside the panel, nothing scrolls sideways. */
.hist-list{display:grid;gap:6px;min-width:0}
.hist-item{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-areas:"thumb text" "thumb actions";column-gap:8px;row-gap:2px;padding:6px 8px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);min-width:0;overflow:hidden}
.hist-item .hi-thumb{grid-area:thumb;width:44px;height:44px;border-radius:10px;object-fit:cover;background:rgba(255,255,255,.12);flex:none}
.hist-item .ht{grid-area:text;min-width:0}
.hist-item .ht b{display:block;font-size:.84rem;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-item .ht small{display:block;font-size:.7rem;color:#b9a8e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-item .ha{grid-area:actions;display:flex;gap:6px;min-width:0}
.hist-item .ha button{flex:none;min-height:26px;padding:3px 9px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:.72rem;font-weight:700;cursor:pointer}
.hist-item .ha button.go{background:linear-gradient(90deg,#ffb020,#ff3d71 55%,#b026ff);border:0}
.hist-empty{padding:10px;font-size:.85rem;color:#b9a8e8;text-align:center}
#hist-clear{display:block;width:100%;margin-top:14px;padding:8px;border:0;background:none;color:#b9a8e8;font-size:.8rem;font-weight:600;cursor:pointer}

/* v37: Neon Cosmic Smoke — ONLY inside the main player card (.stage), behind
   the vinyl, tonearm, equalizer, song info and controls. Layered blurred
   radial-gradient clouds in the neon palette drift and morph continuously;
   a soft pulse and floating particles breathe with the music (faster and
   brighter while playing, calm while paused). Pure CSS — no audio analysis
   (YouTube audio cannot be read by the page), no second playback system,
   no layout or control changes. pointer-events:none, clipped by the card's
   overflow:hidden + border-radius. */
.cosmic{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;border-radius:inherit}
.cosmic .cb{position:absolute;border-radius:50%;mix-blend-mode:screen;opacity:.8;will-change:transform} /* v50: the blur(22px) is GONE — it was the #1 reason phones heated up and lagged. Blurring 8 large clouds on every frame makes the GPU work flat-out. The radial-gradient already fades to transparent, so the clouds stay soft without any blur filter, and look the same. */
.cosmic .c1{width:88%;aspect-ratio:1;left:-24%;top:-18%;background:radial-gradient(circle,#761bff 0%,transparent 66%);animation:drift1 26s ease-in-out infinite}
.cosmic .c2{width:80%;aspect-ratio:1;right:-22%;top:-10%;background:radial-gradient(circle,#ff26b8 0%,transparent 66%);animation:drift2 22s ease-in-out infinite}
.cosmic .c3{width:84%;aspect-ratio:1;left:-20%;bottom:-26%;background:radial-gradient(circle,#00d9ff 0%,transparent 66%);animation:drift3 30s ease-in-out infinite}
.cosmic .c4{width:62%;aspect-ratio:1;right:-14%;bottom:-16%;background:radial-gradient(circle,#ff8a24 0%,transparent 66%);animation:drift1 34s ease-in-out infinite reverse}
.cosmic .c5{width:72%;aspect-ratio:1;left:16%;top:20%;background:radial-gradient(circle,#ff397f 0%,transparent 66%);animation:drift2 28s ease-in-out infinite reverse}
.cosmic .c6{width:76%;aspect-ratio:1;left:4%;top:34%;background:radial-gradient(circle,#153bff 0%,transparent 66%);animation:drift3 24s ease-in-out infinite reverse}
.cosmic .c7{width:64%;aspect-ratio:1;left:28%;bottom:-22%;background:radial-gradient(circle,#ff8a24 0%,transparent 66%);animation:drift2 26s ease-in-out infinite}
.cosmic .c8{width:58%;aspect-ratio:1;left:34%;top:-16%;background:radial-gradient(circle,#ff26b8 0%,transparent 66%);animation:drift3 32s ease-in-out infinite reverse}
@keyframes drift1{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(34px,-22px) scale(1.16)}66%{transform:translate(-22px,18px) scale(.94)}}
@keyframes drift2{0%,100%{transform:translate(0,0) scale(1.08)}33%{transform:translate(-38px,26px) scale(.9)}66%{transform:translate(26px,-16px) scale(1.2)}}
@keyframes drift3{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(20px,30px) scale(1.14)}66%{transform:translate(-30px,-24px) scale(.92)}}
.cosmic .cpulse{position:absolute;left:50%;top:38%;width:88%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,38,184,.28) 0%,rgba(118,27,255,.16) 45%,transparent 70%);mix-blend-mode:screen;animation:cpulse 3.4s ease-in-out infinite} /* v50: blur(18px) removed, same reason as the clouds — the radial gradient already gives the soft glow. */
@keyframes cpulse{0%,100%{transform:translate(-50%,-50%) scale(.86);opacity:.5}50%{transform:translate(-50%,-50%) scale(1.1);opacity:.95}}
.cosmic .cp{position:absolute;bottom:8%;border-radius:50%;background:#fff;box-shadow:0 0 8px 2px rgba(255,255,255,.7),0 0 18px 6px rgba(0,217,255,.45);opacity:0;animation:floatUp 11s linear infinite}
.cosmic .cp.p1{left:12%;width:5px;height:5px;animation-duration:9s}
.cosmic .cp.p2{left:28%;width:4px;height:4px;animation-duration:12s;animation-delay:-4s}
.cosmic .cp.p3{left:44%;width:6px;height:6px;animation-duration:10s;animation-delay:-7s}
.cosmic .cp.p4{left:58%;width:4px;height:4px;animation-duration:13s;animation-delay:-2s}
.cosmic .cp.p5{left:72%;width:5px;height:5px;animation-duration:8s;animation-delay:-6s}
.cosmic .cp.p6{left:86%;width:4px;height:4px;animation-duration:11s;animation-delay:-9s}
.cosmic .cp.p7{left:20%;width:3px;height:3px;animation-duration:14s;animation-delay:-5s}
.cosmic .cp.p8{left:64%;width:3px;height:3px;animation-duration:9.5s;animation-delay:-3s}
@keyframes floatUp{0%{transform:translateY(0);opacity:0}12%{opacity:.9}80%{opacity:.55}100%{transform:translateY(-150px);opacity:0}}
/* playing: the smoke breathes harder — brighter clouds, faster drift and
   pulse, livelier particles. Paused: it settles back to a calm glow. */
.stage.playing .cosmic .cb{opacity:.95}
.stage.playing .cosmic .c1{animation-duration:15s}
.stage.playing .cosmic .c2{animation-duration:13s}
.stage.playing .cosmic .c3{animation-duration:17s}
.stage.playing .cosmic .c4{animation-duration:19s}
.stage.playing .cosmic .c5{animation-duration:16s}
.stage.playing .cosmic .c6{animation-duration:14s}
.stage.playing .cosmic .c7{animation-duration:15s}
.stage.playing .cosmic .c8{animation-duration:18s}
.stage.playing .cosmic .cpulse{animation-duration:1.7s}
.stage.playing .cosmic .cp{animation-duration:6s}
@media (prefers-reduced-motion: reduce){.cosmic .cb,.cosmic .cpulse,.cosmic .cp{animation:none}.cosmic .cb{opacity:.35}}

/* v38 (photo texture): the real cosmic-smoke photo layered over the
   gradient clouds, so the smoke has the wispy, billowing texture of the
   reference instead of smooth colour only. It drifts slowly (pan + zoom);
   while playing it brightens and moves faster. */
.cosmic .csmoke{position:absolute;inset:-12%;background:url(/smoke.jpg) center/cover no-repeat;mix-blend-mode:screen;opacity:.6;will-change:transform;animation:smokePan 46s ease-in-out infinite alternate}
@keyframes smokePan{0%{transform:scale(1.06) translate(-2%,-1%)}50%{transform:scale(1.16) translate(2%,2%)}100%{transform:scale(1.08) translate(-1%,1%)}}
.stage.playing .cosmic .csmoke{opacity:.85;animation-duration:26s}
@media (prefers-reduced-motion: reduce){.cosmic .csmoke{animation:none}}

/* v39: iPhone safe area — iPhone 13/14 have a notch, iPhone 14 Pro and later
   (15/16/17/18) have a Dynamic Island, both at the top center, and every
   iPhone without a home button has a home-indicator bar at the bottom. The
   page already uses viewport-fit=cover, so the app draws under the camera —
   push the content clear with the safe-area insets so the room header (and
   the landing/gate tops) are never hidden behind the notch or the island,
   and the tab bar never sits on the home indicator. On phones and computers
   without a notch these insets are 0, so nothing moves there. (The mini
   bar and the unlock button already add the bottom inset; only the tab bar
   and the tops were missing it.) */
#room{padding-top:env(safe-area-inset-top,0px)!important}
main{padding-top:calc(7vh + env(safe-area-inset-top,0px))!important}
#tabs{bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}

/* v39 (legibility): the smoke is bright and busy, so the words must stay
   readable wherever it drifts. A soft dark scrim sits between the smoke and
   the content (smoke still shows through, the text area is deepened), and
   every text line in the player gets a strong shadow so it pops off the
   moving background. Controls already have their own solid/glass
   backgrounds, so they need no change. */
.cosmic .cscrim{position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 55%,rgba(8,0,28,.34),rgba(8,0,28,.14) 62%,transparent 88%);mix-blend-mode:multiply}
.stage #tt,.stage #ch,.stage #by,.stage .time span{text-shadow:0 2px 10px rgba(0,0,0,.8),0 0 22px rgba(0,0,0,.55)}
.stage #tt{text-shadow:0 2px 14px rgba(0,0,0,.85),0 0 26px rgba(0,0,0,.6)}

/* v40: empty-state "Add a YouTube link" button — very compact, shown only
   while the queue is empty, so a first-time user can see where the link
   goes. A small gradient pill with a plus icon, centered under the
   "Paste a YouTube link" line. */
#addlink{display:inline-flex;align-items:center;gap:6px;margin:4px auto 0;padding:7px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(135deg,#ff3d71,#b026ff);color:#fff;font:600 .8rem/1 "Poppins",system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 18px rgba(255,61,113,.4),inset 0 1px 0 rgba(255,255,255,.3)}
#addlink svg{width:14px;height:14px;flex:none}
#addlink[hidden]{display:none}

/* v41: (1) Toasts respect the iPhone top safe area — the yellow toast was
   pinned at top:12px, so on a notched / Dynamic Island iPhone the notch
   covered its top edge. Now it sits below the notch, like the v39 header.
   On devices without a notch the inset is 0, so nothing moves.
   (2) Sound-popup close button is a perfect circle — the general button
   rule sets min-height:44px, which overrode .snd-x's height:30px and
   stretched it into a tall oval. min-height + padding are now reset and
   the X is flex-centred. */
#toasts{top:calc(12px + env(safe-area-inset-top,0px))!important}
.snd-x{width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* v42: SAFE-AREA AUTO-DETECT + NO-ZOOM.
   (1) Every element that must clear the notch / Dynamic Island / home
   indicator now reads the JS-measured variables --sat/--sab (set by
   safeArea() in app.js, which probes the real env() values and falls back
   to 59/34 on a tall notched iPhone when env() reads 0). env() is the
   fallback, so it still works before JS runs. One system, all elements:
   header, toast, tab bar, mini player, audio-unlock button.
   (2) PLAY-TAB CLEARANCE: the raised Sing mic overlaps the orb row on a
   real iPhone because the home-indicator inset lifts the tab bar's top
   edge by 2x the inset (once via bottom:, once via padding-bottom) while
   the content padding only grew by 1x. The Play-tab bottom padding now
   grows by 2x the bottom inset, so the orb row always clears the mic.
   (3) NO ZOOM: the paste box was 0.92rem (~14.7px), so iOS auto-zoomed
   the whole page the moment it was tapped — and it stayed zoomed. All
   text inputs are now 16px (iOS never auto-zooms at 16px), the viewport
   locks scaling off, and double-tap zoom is disabled. */
#room{padding-top:var(--sat,env(safe-area-inset-top,0px))!important}
main{padding-top:calc(7vh + var(--sat,env(safe-area-inset-top,0px)))!important}
#toasts{top:calc(12px + var(--sat,env(safe-area-inset-top,0px)))!important}
#tabs{bottom:calc(12px + var(--sab,env(safe-area-inset-bottom,0px)))!important;padding-bottom:calc(8px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#mini{bottom:calc(133px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#audio-unlock{bottom:calc(193px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room[data-tab=play]{padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room:not([data-tab=play]){padding-bottom:calc(192px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))!important}
html,body{touch-action:manipulation}
input,select,textarea{font-size:16px!important}
#p-queue #au{font-size:16px!important}

/* v43: (1) LIKED SONGS slide-in panel + (2) BOTTOM NAV docked at the very
   bottom + (3) beat-reactive smoke is JS-driven (see app.js), no CSS here.
   (1) Heart icon in the header (top right) opens a drawer that slides in
   from the right with every liked song (saved forever on this device).
   The old "Liked songs" card in the More tab is gone — this is its home.
   (2) The bottom navigation now sits at the VERY bottom of the screen
   (no 12px gap below it) — flush with the usable edge above the home
   indicator. Top corners stay rounded, bottom corners are square so it
   reads as a docked bar. Docking it also gives the mic 12px more room,
   so the orb row / player bar clearances grow. */
/* v59: HEADER ICONS ON IPAD — the heart (#likes-btn) and history (#hist) buttons were rendering their 18px SVG squished to 4px wide on wide screens, so they looked like faint dots. Root cause: they never reset the base `header button` padding (.45em .95em), so on a wide screen the ~14px of horizontal padding left only ~6px of content width for the 18px icon, and flex squeezed it. (#share/#lock already had padding:0, which is why they were fine.) Fix: padding:0 + min-height:0 on both, so the icon is a full 18px everywhere. And on tablet/desktop (iPad, >=768px) all four top icons grow to 44px with a 20px icon, so they read clearly and are easy to tap on the bigger screen instead of looking shrunken next to the wide player card. */
#likes-btn,#hist{padding:0!important;min-height:0!important}
@media(min-width:768px){
  #likes-btn,#hist,#share,#lock{width:44px!important;height:44px!important;min-height:44px!important}
  #likes-btn svg,#hist svg{width:20px!important;height:20px!important}
  #share .ic svg,#lock .ic svg{width:20px!important;height:20px!important}
  .logo{width:44px!important;height:44px!important}
}
#likes-btn:active{transform:scale(.94)}
.likes-backdrop{position:fixed;inset:0;background:rgba(5,0,20,.55);backdrop-filter:none;opacity:0;transition:opacity .3s ease;z-index:65}
.likes-backdrop.open{opacity:1}
.likes-panel{position:fixed;top:0;right:0;height:100%;height:100dvh;width:min(340px,88vw);z-index:70;background:linear-gradient(170deg,#2c1160,#18083a 70%);border-left:1px solid rgba(255,255,255,.18);box-shadow:-18px 0 50px rgba(0,0,0,.55);transform:translateX(105%);transition:transform .32s cubic-bezier(.2,.9,.3,1);display:flex;flex-direction:column;padding:calc(14px + var(--sat,env(safe-area-inset-top,0px))) 14px calc(14px + var(--sab,env(safe-area-inset-bottom,0px)));overflow-y:auto}
.likes-panel.open{transform:translateX(0)}
.likes-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
.likes-head h3{margin:0;font-size:1.05rem;font-weight:800;color:#fff;display:flex;align-items:center;gap:8px}
.likes-head h3 svg{flex:none}
#likes-x{width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:.85rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.likes-sub{margin:0 0 12px;font-size:.78rem;color:#b9a8e8}
.likes-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.likes-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);min-width:0}
.likes-list li img{width:44px;height:44px;flex:none;border-radius:10px;object-fit:cover;background:rgba(255,255,255,.08)}
.likes-list li div{flex:1;min-width:0}
.likes-list li b{display:block;font-size:.88rem;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.likes-list li button{flex:none;min-height:30px;padding:.3em .8em;font-size:.76rem;font-weight:700;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:linear-gradient(135deg,#673de6,#b026ff);color:#fff;cursor:pointer;white-space:nowrap}
.likes-list li button.unlike{min-width:28px;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#d8c8ff;font-size:.7rem;line-height:1;display:flex;align-items:center;justify-content:center}
.likes-list li.empty{justify-content:center;color:#b9a8e8}
#tabs{bottom:var(--sab,env(safe-area-inset-bottom,0px))!important;border-radius:26px 26px 0 0!important}
.stage .viz{display:none!important} /* v43: equalizer bars removed from the player card */

/* v44: bottom navigation — all four corners rounded. In v43 the bar was
   docked at the very bottom with square bottom corners (26px 26px 0 0);
   Abhi wants the bottom curved too, not flat/straight. It stays docked
   at the very bottom of the screen — only the bottom corners are now
   rounded to match the top. */
#tabs{border-radius:26px!important}

/* v45: bottom navigation corners follow the DEVICE's bottom screen shape.
   The screen itself has rounded bottom corners on modern iPhones (plus a
   home indicator), so the bar's bottom corners now grow with the safe-area
   bottom inset: 26px on a flat device, ~43px on a notched iPhone
   (26px + 34px/2), curving like the device's own rounded bottom screen
   instead of one fixed radius. Top corners stay 26px. */
#tabs{border-bottom-left-radius:calc(26px + var(--sab,env(safe-area-inset-bottom,0px))*0.5)!important;border-bottom-right-radius:calc(26px + var(--sab,env(safe-area-inset-bottom,0px))*0.5)!important}

/* v45: HISTORY panel — rooms removed + premium close button.
   The Rooms section (with its Rejoin buttons) is gone — the panel now
   shows only Songs played (Copy link / Add to queue). The room history
   itself is NOT deleted: it still powers the landing "Recent rooms" and
   the refresh auto-rejoin; it is simply not listed here any more.
   The ✕ close button had the same stretched-oval bug as the sound popup
   (the general button rule min-height:44px overrode its 28px height, so
   it rendered 28×44). It is now a perfect circle, flex-centred, with a
   premium glass gradient + soft ring, and the whole panel is polished:
   a richer gradient, a soft top highlight, refined song rows and a
   proper pill Clear button. */
#hist-x{width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:50%!important;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.07))!important;color:#fff!important;font-size:.8rem!important;box-shadow:0 2px 10px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.35)!important}
#hist-x:active{transform:scale(.92)}
.hist-panel{background:linear-gradient(165deg,#3a1570,#1c0738 65%,#150330)!important;box-shadow:0 24px 60px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.18)!important}
.hist-head h3{background:linear-gradient(90deg,#fff,#ffd7f2);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hist-panel h4{color:#d9c8ff!important}
.hist-item{background:linear-gradient(120deg,rgba(255,255,255,.09),rgba(255,255,255,.05))!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
#hist-clear{display:block;width:100%;margin-top:14px;padding:9px;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;color:#e6dbff!important;font-size:.8rem!important;font-weight:700!important;cursor:pointer}

/* v45: SCAN QR TO JOIN — premium camera scanner on the landing page.
   The Scan button sits under the code box (same width language as the
   Create button, glass instead of gradient so Create stays the hero).
   The modal is a dark glass card: live camera video, a viewfinder with
   four glowing corner brackets + a sweeping scan line, a round ✕ (same
   perfect-circle fix as the other close buttons) and a pill Cancel. */
.scan-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;margin-top:12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:linear-gradient(120deg,rgba(255,255,255,.16),rgba(255,255,255,.06));color:#fff;font-size:.95rem;font-weight:700;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 6px 18px rgba(0,0,0,.3)}
.scan-btn:active{transform:scale(.98)}
.scan-btn svg{flex:none;color:#7ee7ff}
.qr-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(5,0,20,.72);backdrop-filter:none}
.qr-modal[hidden]{display:none}
.qr-card{position:relative;width:min(360px,calc(100vw - 40px));padding:20px 18px 16px;border-radius:26px;background:linear-gradient(165deg,#3a1570,#1c0738 65%,#150330);border:1px solid rgba(255,255,255,.22);box-shadow:0 24px 60px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.18);text-align:center}
#qr-x{position:absolute;top:12px;right:12px;width:30px;height:30px;min-height:30px;padding:0;line-height:1;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.07));color:#fff;font-size:.8rem;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.35)}
#qr-x:active{transform:scale(.92)}
.qr-card h3{margin:4px 0 4px;font-size:1.1rem;font-weight:800;color:#fff}
.qr-card p{margin:0 0 14px;font-size:.86rem;line-height:1.45;color:#cdbcf5}
.qr-view{position:relative;width:100%;aspect-ratio:1;border-radius:20px;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.2)}
#qr-video{width:100%;height:100%;object-fit:cover;display:block}
.qr-frame{position:absolute;inset:0;pointer-events:none}
.qr-frame i{position:absolute;width:34px;height:34px;border:3px solid #7ee7ff;filter:drop-shadow(0 0 6px rgba(126,231,255,.8))}
.qr-frame .c-tl{top:16px;left:16px;border-right:0;border-bottom:0;border-top-left-radius:14px}
.qr-frame .c-tr{top:16px;right:16px;border-left:0;border-bottom:0;border-top-right-radius:14px}
.qr-frame .c-bl{bottom:16px;left:16px;border-right:0;border-top:0;border-bottom-left-radius:14px}
.qr-frame .c-br{bottom:16px;right:16px;border-left:0;border-top:0;border-bottom-right-radius:14px}
.qr-line{position:absolute;left:10%;right:10%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ff3d71,transparent);box-shadow:0 0 12px rgba(255,61,113,.9);animation:qrScan 2.2s ease-in-out infinite alternate}
@keyframes qrScan{from{top:14%}to{top:84%}}
.qr-msg{min-height:1.2em;margin:12px 0 8px!important;font-size:.82rem!important;color:#ffb020!important}
.qr-actions{display:flex;flex-direction:column;gap:8px;margin:12px 0 8px}
.qr-cancel{width:100%;min-height:44px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.07);color:#e6dbff;font-size:.9rem;font-weight:700;cursor:pointer}

/* v45: notifications are swipeable — drag a toast UP to dismiss it early.
   touch-action:none lets the swipe reach the toast instead of the browser
   treating it as a page scroll; the grab cursor hints it can be dragged. */
.toast{touch-action:none!important;cursor:grab!important;user-select:none!important;-webkit-user-select:none!important}
.toast:active{cursor:grabbing!important}

/* v45: SONG TITLE MARQUEE + PREMIUM FONTS.
   The title is now Sora (a modern geometric premium font, loaded from
   Google Fonts) instead of Poppins, with tighter tracking and a soft
   gradient + glow so it reads as the hero of the player card. Headings
   across the app (hero, History, QR card, panel titles) use Sora too;
   body text stays Poppins.
   Marquee: #tt-in is the scrolling text. When the title overflows its
   box, #tt gets .scroll and the text slowly drifts left to --tt-dx,
   pauses at the end, and drifts back (ping-pong, alternate). The
   keyframes hold still at both ends so it never jumps. Short titles
   never get .scroll and stay still. */
#tt{font-family:"Sora","Poppins",system-ui,sans-serif!important;font-weight:700!important;letter-spacing:-.01em!important;color:#fff!important}
#tt-in{display:inline-block;white-space:nowrap;will-change:transform}
#tt.scroll #tt-in{animation:ttScroll var(--tt-dur,6s) ease-in-out infinite alternate}
@keyframes ttScroll{0%,20%{transform:translateX(0)}80%,100%{transform:translateX(calc(-1*var(--tt-dx,0px)))}}
@media (prefers-reduced-motion: reduce){#tt.scroll #tt-in{animation:none}}
.hero-title,.hist-head h3,.qr-card h3,.snd-card h3,.gate-panel h1{font-family:"Sora","Poppins",system-ui,sans-serif!important;letter-spacing:-.01em!important}

/* v45: HEADER — the full room code is always visible, even as more users
   join. Two changes. (1) The room title now shows just the 6-letter code
   (the "● Live Room" line below it already says it is a live room), and
   .rt never shrinks or truncates — the code is always exactly 6 chars,
   so it has a fixed, predictable width. (2) The listener pill used to
   show up to 8 avatar circles, so every new user made the pill wider
   and squeezed the room code further until it vanished entirely (measured:
   with 20 users the code was 0px wide). It now shows at most 3 avatars;
   the "N listening" text still gives the exact total, so no information
   is lost. Nothing else in the header changes — same logo, same Live
   Room line, same count, same buttons. */
header .rt{flex:none!important;min-width:0!important}
header #rn{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:430px){
  header{gap:2px!important}
  .who .pill-who{padding:3px 8px 3px 3px!important;gap:5px!important}
  .who .pill-who small{font-size:.72rem!important}
  #likes-btn,#hist,#share,#lock{width:30px!important;height:30px!important;min-height:30px!important}
}

/* v45: HEADER LAYOUT — room code on the LEFT, every top button/icon on
   the RIGHT. The listener pill (#who) gets margin-left:auto, which pushes
   it and all the buttons after it (heart, history, invite, lock) to the
   far right edge as one group. The logo + room code stay pinned left.
   Nothing else changes — same elements, same sizes, same fit. */
header #who{margin-left:auto!important}

/* v45: BOTTOM NAV — all four corners the SAME radius, and that radius is
   responsive to the device's bottom screen shape. The v45 bottom corners
   already grew with the safe-area inset (26px + sab/2), but the top
   corners stayed at 26px, so on a notched iPhone the bottom was more
   curved than the top. Now the top corners use the same responsive
   radius, so all four corners match on every device: 26px on a flat
   screen, ~43px on a notched iPhone. */
#tabs{border-top-left-radius:calc(26px + var(--sab,env(safe-area-inset-bottom,0px))*0.5)!important;border-top-right-radius:calc(26px + var(--sab,env(safe-area-inset-bottom,0px))*0.5)!important}

/* v46: YOUR PLAYLIST — the saved-songs section in the Queue tab. The rows
   reuse the .hist list style (artwork, title, channel, gradient Queue
   button). The ✕ is a small quiet circle, not a second gradient button,
   so Queue stays the obvious action. Clear playlist is a subtle pill. */
#playlist .pl-x{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.18)!important;color:#cfc4ef!important;width:30px;height:30px;min-height:30px!important;padding:0!important;border-radius:50%!important;font-size:.8rem;line-height:1;display:flex;align-items:center;justify-content:center}
.pl-clear{display:block;margin:8px auto 4px;min-height:32px;padding:4px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.07);color:#cfc4ef;font-size:.78rem;font-weight:700;cursor:pointer}

/* v47: SOUND MIX — music vs voice, separately, in the Sing tab. Same card
   language as Voice effects. Each row is label + slider + a live number,
   so the mix is readable at a glance. The sliders reuse the range styling
   (pink fill follows the thumb via --p). */
.kar-mix{background:#ffffff0a;border:1px solid #ffffff14;border-radius:16px;padding:14px;margin-top:10px}
.kar-mix h4{margin:0 0 10px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#c9a7ff}
.kar-mix .sl{display:grid!important;grid-template-columns:64px 1fr 34px!important;gap:8px;align-items:center;margin:6px 0!important}
.kar-mix .sl b{font-size:.82rem;font-weight:700;color:#fff;text-align:right}
.kar-mix-tip{margin:10px 0 0;font-size:.74rem;line-height:1.45;color:#b9a8e8}

/* v48: BACKGROUND PLAY TIP — shown only in the home-screen app (More tab).
   A calm card that explains the phone pauses the music when you leave the
   app, and links the room into Safari, where YouTube audio keeps playing
   in the background. */
.bg-tip{background:#ffffff0a;border:1px solid #ffffff14;border-radius:16px;padding:12px;margin:12px 0}
.bg-tip[hidden]{display:none}
.bg-tip h4{margin:0 0 5px;font-size:.84rem;font-weight:800;color:#fff}
.bg-tip p{margin:0 0 7px;font-size:.76rem;line-height:1.4;color:#cfc4ef}
.bg-tip #bg-track-status{color:#f0e9ff;font-weight:650}
.bg-tip a{display:inline-block;padding:8px 13px;border-radius:999px;background:linear-gradient(90deg,#ffb020,#ff3d71 55%,#b026ff);color:#fff;font-size:.78rem;font-weight:800;text-decoration:none}

/* v49: 10-SECOND SKIP — compact premium buttons flanking the play button.
   A circular arrow with "10" in the middle (the standard skip icon), in the
   same glass-purple family as prev/next but smaller (40px), so they read as
   quick secondary controls. On tap the arrow spins once (backwards for -10s,
   forwards for +10s) and the button presses in — a small, lively animation. */
.skip10{width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;color:#fff!important;background:radial-gradient(circle at 35% 28%,#6a49e0,#2c1480 75%)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 8px 16px rgba(8,0,40,.5),inset 0 1px 0 rgba(255,255,255,.28),inset 0 -6px 10px rgba(0,0,40,.35)!important;flex:none;transition:transform .12s ease}
.skip10 svg{width:20px;height:20px}
.skip10:active{transform:scale(.86)}
.skip10:disabled{opacity:.45}
@keyframes spinBack{to{transform:rotate(-360deg)}}
@keyframes spinFwd{to{transform:rotate(360deg)}}
.skip10.spin-back svg{animation:spinBack .45s ease}
.skip10.spin-fwd svg{animation:spinFwd .45s ease}
/* v49: five transport buttons now share the row — tighten the gap so they
   fit on a phone without crowding. */
.ctl{gap:14px!important}

/* v50: COOLER PHONE — the device heated up and lagged because the player
   card ran ~35 infinite animations at once, several of them blurring large
   elements on every frame (the smoke clouds and pulse), plus a 20px
   backdrop blur on the whole card. Two changes: (1) the blur filters are
   gone (see the .cb/.cpulse rules above) — the radial gradients already
   fade soft, so the look stays and the GPU rests. (2) When no song is
   playing, the decorative motion freezes: the smoke, orbs and notes stop
   animating instead of burning battery for nothing. The body gets a
   `playing` class from render() while a song plays.
   v74: the orbs and notes are BACK in this freeze list (v73 had taken them
   out and paused them during playback instead — reverted, because the user
   wants ALL the animation running and the phone cool anyway). The heat is
   fixed properly now: the animations are made cheap (transform and opacity
   only, no blur on any animated layer — see the cosmic and backdrop-filter
   notes below), so they can all run without heating the phone. */
body:not(.playing) .cosmic *,body:not(.playing) .orb,body:not(.playing) .note,body:not(.playing) .dnote,body:not(.playing) .viz i{animation-play-state:paused!important}
.stage{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* v52: UPLOAD AN AUDIO FILE — the real background-audio fix. A dashed
   premium button under the paste box; the file input itself is hidden
   and the label opens the picker. */
.up-audio{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;padding:11px 14px;border:1.5px dashed rgba(255,255,255,.45);border-radius:16px;background:rgba(255,255,255,.06);color:#fff;font-size:.86rem;font-weight:700;cursor:pointer;text-align:center}
.up-audio:active{transform:scale(.98)}
.up-audio svg{flex:none;color:#ffd166}
.up-note{margin:8px 2px 0;font-size:.8rem;font-weight:600;color:#c8f7d4;text-align:center}

/* v54: LANDING — COLORFUL BUT ORGANIZED. Same gradients, rainbow equalizer
   and purple background, but the page is now structured: one centered
   column with a clear rhythm (logo → title → tagline → equalizer → chips
   → Create → or-divider → Join by code → QR → footer), every button the
   same full width, the join row properly aligned, and the chips equal
   width so they line up. Nothing was de-coloured — only organised. */
#home{max-width:420px;gap:0;padding:calc(4vh + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom))}
#home .hero3d{width:clamp(110px,min(46vw,20svh),168px);margin:0 auto 10px}
#home .hero-title{margin:0 0 6px}
#home .lead{margin:0 auto 10px}
#home .eq{margin:0 auto 12px}
#home .chips{gap:8px;margin:0 auto 16px;width:100%}
#home .chip{flex:1;justify-content:center;padding:6px 6px;font-size:.64rem;white-space:nowrap}
#home .big{width:100%;margin:0 0 14px}
#home .or{display:flex;align-items:center;gap:12px;margin:0 0 14px;color:var(--mu);font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
#home .or::before,#home .or::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.2)}
#home #jf{display:block;margin:0 0 12px}
#home #jf label{display:block;text-align:left;margin:0 0 6px;font-size:.78rem;font-weight:600}
#home #jf .row{display:flex;gap:8px}
#home #jf .row input{flex:1;min-width:0;min-height:48px;text-align:center;font-weight:600;letter-spacing:.08em}
#home #jf .row button{flex:none;min-height:48px;padding:.4em 1.2em}
#home .scan-btn{width:100%;min-height:48px;margin:0 0 14px}
#home .steps{margin:0 auto;font-size:.78rem;line-height:1.45}
/* v54: COOLER PHONE — the stage backdrop blur drops from 12px to 8px.
   Still glassy, but the GPU does less work on every frame while a song
   plays. The main heat fix is the 144p video cap in app.js (capQuality). */
.stage{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* v55: COOL MODE + AUTO-DIM. When the body has .cool (Cool mode on, or
   auto-dim after 30s idle while playing), the page goes near-black so an
   OLED screen rests and the phone cools down. The music keeps playing —
   only the visuals rest. The smoke and floating notes are hidden, the
   stage goes flat black with no backdrop blur, and every decorative
   animation freezes. The song title and controls stay readable. */
body.cool{background:#000!important}
body.cool #fx{opacity:0!important;visibility:hidden!important}
body.cool .cosmic,body.cool .dnote{visibility:hidden!important;animation-play-state:paused!important}
body.cool .cosmic *,body.cool #fx *{animation-play-state:paused!important}
/* v72: COOL MODE v3 — hide the floating orbs and rising notes too. These are the decorative animations Cool mode NEVER stopped, and they are the hidden heat source: extras.js creates 7 large gradient orbs (.orb, 80-260px, translating + scaling every 14s) and 9 music notes (.note, rising continuously, 12-24s each) as fixed-position elements on document.body. They are NOT inside .stage, .cosmic, .dnote or #fx, so none of the earlier Cool-mode rules (which hide #fx, .cosmic and .dnote and pause the stage and equalizer) ever touched them — they kept animating and keeping the GPU and compositor busy, generating heat, on every page, even with Cool mode ON and a song playing. Hiding them removes their compositing load entirely; Cool mode's background is already plain black, so the look stays clean. The smoke, stars and floating notes live inside #fx, which Cool mode already hides — and #fx is hidden in a room anyway — so they were never the issue during playback. */
body.cool .orb,body.cool .note{visibility:hidden!important;animation-play-state:paused!important}
body.cool .hero3d::before{opacity:0!important}
body.cool .hero-img{box-shadow:none!important}
body.cool .hero3d,body.cool .eq i{animation-play-state:paused!important}
body.cool .stage{background:#0a0a10!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border-color:rgba(255,255,255,.07)!important}
body.cool .stage::before,body.cool .stage::after,body.cool .stage>.gloss,body.cool .stage .ring{display:none!important}
body.cool .stage *{animation-play-state:paused!important}
body.cool .stage .disc{box-shadow:none!important}
body.cool header,body.cool #tabs,body.cool #mini,body.cool .pane{background:rgba(0,0,0,.65)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
body.cool #tt{color:#f0f0f5!important}
body.cool #ch{color:#b9b9c9!important}
body.cool .cool-card{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.14)!important}
/* v55: the Cool mode card in the More tab */
/* v57: COOL CARD REDESIGNED — clean and structured. One header row (moon icon + "Cool mode" + the switch on the right), and the description as a short paragraph underneath. The old layout put the icon, the heading, the long text and the switch in one flex row, which stacked awkwardly and left the switch floating alone at the bottom. */
.cool-card{margin:12px 0;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.06)}
.cool-head{display:flex;align-items:center;gap:10px}
.cool-ic{flex:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(135deg,#3b2a6b,#1c0f3d);color:#b9a7ff}
.cool-title{flex:1;font-weight:700;font-size:1rem}
.cool-desc{margin:10px 0 0;font-size:.84rem;line-height:1.5;color:var(--mu)}
.cool-switch{flex:none;width:52px;height:30px;min-height:30px;border:none;border-radius:999px;background:rgba(255,255,255,.22);position:relative;cursor:pointer;padding:0;transition:background .2s}
.cool-switch .cool-knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.cool-switch.on{background:linear-gradient(135deg,#7b5cff,#c026d3)}
.cool-switch.on .cool-knob{left:25px}

/* v56: AUTO-DIM IS NOW STATIC, NOT BLACK. After 30s idle while playing,
   the page freezes in place (all decorative animations paused) but keeps
   its colours — no blackout. The GPU rests (that is the cooling), and the
   page still looks like Vibe Room. Cool mode (manual) still goes black. */
body.idle .stage *,body.idle .hero3d,body.idle .eq i,body.idle #fx *{animation-play-state:paused!important}
/* v61: iOS VOLUME TIP — on iPhone/iPad Apple locks YouTube volume to the device buttons, so the app slider cannot change it (platform rule, not an app bug). A one-line tip, shown only on iOS, so the user knows to use the side buttons. */
.ios-vol-tip{text-align:center;font-size:.72rem;color:var(--mu);opacity:.85;margin-top:2px}
/* v66: ADS — hovering small-card ad board. ONE very small card (44px), fixed over the screen on every page. It never changes the layout: position:fixed means it floats above the content (no reflow, no push, no resize of anything), and it only appears after 5s of no activity (see app.js). Clean, silent, attractive: a small rounded glass card in the app's own purple, with a tiny "Ad" label and a round × to close it. POSITION: the CSS bottom below is a safe default (just under the mini-player); adPlace() in app.js measures the real positions at show time and moves it so it never covers the player controls, the extras row, the mini-player or the bottom nav on any tab or device. */
.ad-board{position:fixed;left:50%;transform:translateX(-50%) translateY(12px);bottom:calc(85px + var(--sab,34px) + var(--sab,34px));width:min(320px,calc(100% - 32px));min-height:44px;z-index:8;border-radius:14px;background:linear-gradient(135deg,rgba(58,32,110,.93),rgba(22,8,52,.95));border:1px solid rgba(255,255,255,.2);box-shadow:0 14px 34px rgba(0,0,0,.5),0 0 24px rgba(143,91,255,.18),inset 0 1px 0 rgba(255,255,255,.18);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:0;pointer-events:none;transition:opacity .35s ease,transform .35s ease;overflow:hidden}
.ad-board.show{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.ad-board .ad-tag{position:absolute;top:4px;left:10px;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.55);z-index:2;pointer-events:none}
.ad-board #ad-x{position:absolute;top:3px;right:3px;width:22px;height:22px;min-height:22px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.4);color:#fff;font-size:.7rem;display:grid;place-items:center;cursor:pointer;z-index:2;padding:0}
.ad-board ins{display:block;width:100%;min-height:36px}
/* v67: ADS — BIG ad board over the middle of the playboard (Play tab only). One big card (320×250, the standard medium-rectangle ad size), fixed over the vinyl disc / title area in the middle of the player. It never changes the layout (position:fixed, no reflow) and only appears after 5s of no activity, like the small card. Clean, silent, attractive: a big rounded glass card in the app's own purple, with a tiny "Ad" label and a clear round ×. Its exact spot is set by adPlace() in app.js (centred over the disc, ending just above the seek bar, so it never covers the seek bar, controls or volume). Closing EITHER board closes BOTH at the same time (see app.js). */
.ad-board-big{position:fixed;left:50%;transform:translateX(-50%) scale(.96);top:170px;width:min(320px,calc(100% - 32px));height:250px;min-height:250px;z-index:9;border-radius:22px;background:linear-gradient(135deg,rgba(58,32,110,.96),rgba(22,8,52,.97));border:1px solid rgba(255,255,255,.22);box-shadow:0 20px 50px rgba(0,0,0,.6),0 0 32px rgba(143,91,255,.25),inset 0 1px 0 rgba(255,255,255,.2);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:0;pointer-events:none;transition:opacity .35s ease,transform .35s ease;overflow:hidden}
.ad-board-big.show{opacity:1;pointer-events:auto;transform:translateX(-50%) scale(1)}
/* v94.31: Never overlay an ad on the Full View video. */
body.vr-fullview .ad-board,body.vr-fullview .ad-board-big{display:none!important}
.ad-board-big .ad-tag{position:absolute;top:8px;left:14px;font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6);z-index:2;pointer-events:none}
.ad-board-big #ad-x-big{position:absolute;top:6px;right:6px;width:32px;height:32px;min-height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.45);color:#fff;font-size:.95rem;display:grid;place-items:center;cursor:pointer;z-index:2;padding:0}
.ad-board-big ins{display:block;width:100%;height:100%;min-height:250px}
/* v68: COOL MODE v2 — the real heating fix. Why Cool mode still heated (audit 2026-11-19): (1) the wake lock kept the SCREEN ON the whole time a song played — a lit screen is the #1 heat/battery drain on a phone, and Cool mode never released it; (2) the YouTube video decode (144p) runs continuously and cannot go lower — that is a fixed floor for YouTube songs; (3) JS timers kept firing at full rate in Cool mode (the 500ms time/seek-bar/Media Session writes, the 1s sound check, the ~500ms smoke beat) even though the smoke was hidden and nobody was watching the clock; (4) backdrop blur stayed on the small glass elements (chips, toasts, ad boards). The fixes: the wake lock is now released in Cool mode (see app.js wakeSync — the screen can sleep, the music keeps playing via the background paths); the smoke beat stops and the timers are throttled (see app.js); and the remaining blur is removed + the disc/controls are dimmed here, so the screen is as dark and still as possible while it is on. */
body.cool .chip,body.cool .toast,body.cool .hdr-tip,body.cool .ad-board,body.cool .ad-board-big,body.cool .snd-modal,body.cool .dlg-modal,body.cool .gate-panel,body.cool .who .pill-who,body.cool .cool-card,body.cool .ad-board ins{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.cool .disc{opacity:.7}
body.cool .ctl,body.cool .xtra{opacity:.75}
/* v69: APK SMOOTH — no backdrop-filter in the native app. WHY: Android WebView re-renders a blurred backdrop on EVERY frame. The app has backdrop-filter on 21 places (stage, panes, nav, mini-player, chips, toasts, header pill, gate panel, sound modal, ad boards) — and the equalizer, disc, smoke and marquee all animate continuously. Every animation frame forces every blurred element on the page to re-render its backdrop, so buttons and cards flicker on EVERY page, exactly as reported. In the APK (html.apk, set by the <head> script / app.js when Capacitor or a "wv" WebView user agent is detected) ALL backdrop blur is off; the semi-opaque backgrounds that are already there (rgba purple glass) carry the look, solid and flicker-free. The web app in a real browser keeps its blur (browsers composite it properly). */
html.apk .stage,html.apk .pane,html.apk #tabs,html.apk #mini,html.apk .chip,html.apk .toast,html.apk .hdr-tip,html.apk .who .pill-who,html.apk .gate-panel,html.apk .snd-modal,html.apk .dlg-modal,html.apk .ad-board,html.apk .ad-board-big,html.apk .cool-card,html.apk #fx,html.apk .cosmic{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* v70: APK SMOOTH WHILE PLAYING — flat disc + calmer smoke. WHY (the live site is v68, so v69's blur fix is not live yet — but the disc's 3D spin is a second, playing-only flicker source in the WebView): the vinyl spins with transform-style:preserve-3d + translateZ(24px), a 3D rendering context that the Android WebView re-composites every frame while the song plays. In the APK the disc now spins flat (plain 2D rotate, no translateZ, no preserve-3d) — the same look, no 3D context, no flicker. The smoke beat is also slowed in the APK (see app.js) so fewer WAAPI animations fire while playing. */
html.apk .disc{transform-style:flat!important;animation:spinFlat 24s linear infinite!important}
html.apk .deck{transform-style:flat!important}
@keyframes spinFlat{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* v77: FULLY RESPONSIVE — same UI, fills the screen on any browser/device.
   ROOT CAUSE (found by reading the CSS): the player card (.stage) and the
   panes ALREADY had flex:1 + space-evenly + svh sizing — but their parent
   #room was a plain block with no height, so flex:1 did NOTHING and the
   card stayed content-height, leaving dead purple space below the nav.
   And body used 100vh — the LARGE viewport (full screen height, including
   the area behind the browser's address bar/tab bar). In the home-screen
   app there is no browser chrome, so 100vh == the screen and it fit. In
   Chrome/Safari the VISIBLE area is shorter, so the page never filled it.
   FIX: #room becomes the flex column with min-height:100dvh (dynamic
   viewport height — the VISIBLE area in the browser, the full screen in
   the app). That SWITCHES ON the flex:1 the card/panes already had. The
   transport buttons, disc and card gaps already scale with the viewport
   via their existing svh clamp rules. No colour, icon, order or font
   changes — only sizing. */
body{min-height:100vh;min-height:100dvh}
#room{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
/* v77 note: the transport buttons need NO new rule — they already scale
   with the viewport via the existing #room[data-tab=play] #pp / #xp / #sk
   clamp(...svh...) rules with !important. Verified: #pp is 62px at 844px
   height and 47px at 644px height; #xp/#sk 50px -> 40px. Same for the disc
   and the card gaps, which already use svh. */

/* ===== v79: UNIVERSAL LAYOUT — one layout for every screen ratio, in Chrome,
   Safari, and the home-screen app. v77's 100dvh + fixed-nav fix passed in the
   sandbox but NOT on a real iPhone: the nav floated ~90px above the screen
   bottom and the player card's bottom hid behind it, in BOTH Chrome and the
   home-screen app. The sandbox (desktop Chromium) cannot reproduce iOS
   Safari's viewport behaviour, so v79 stops depending on it entirely:
   (1) the room's height comes from --vh, set by JS in index.html to
   window.innerHeight (the TRUE visible height on iOS); (2) the bottom nav
   is now a normal flex child at the bottom of the room, NOT position:fixed
   — so it is ALWAYS at the screen's end, on any ratio; (3) the page never
   scrolls inside a room, so nothing can sit below the fold; (4) the stage
   content shrinks harder on short screens so the WHOLE card is visible.
   No colour, icon, order or font changes — only sizing/positioning. */
:root{--vh:1dvh}
body.in-room{overflow:hidden!important}
#room{min-height:calc(var(--vh)*100)!important;height:calc(var(--vh)*100)!important;padding-bottom:0!important}
#room[data-tab=play]{padding-bottom:0!important}
#room:not([data-tab=play]){padding-bottom:0!important}
/* the nav is in-flow now: it sits at the bottom of the flex column, so it is
   at the screen's end on every device. Its look is unchanged. */
#tabs{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;
  width:100%!important;max-width:520px!important;margin:6px auto 12px!important;flex:0 0 auto!important}
#room>header{flex:0 0 auto!important}
/* the Sing mic sticks 34px above the nav; give the stage bottom padding so
   its last line (the iOS volume tip) never hides under the mic. */
#room[data-tab=play] .stage{padding-bottom:clamp(44px,6.5svh,52px)!important}
/* short screens: shrink the card harder so the WHOLE card is visible. */
@media (max-height:760px){
  #room[data-tab=play] .deck{width:clamp(80px,min(40vw,15svh),150px)!important}
  #room[data-tab=play] #pp{width:clamp(44px,6.5svh,56px)!important;height:clamp(44px,6.5svh,56px)!important}
  #room[data-tab=play] #xp,#room[data-tab=play] #sk{width:clamp(38px,5.5svh,46px)!important;height:clamp(38px,5.5svh,46px)!important}
  #room[data-tab=play] .stage{gap:clamp(1px,.5svh,4px)!important}
  #addlink{padding:6px 11px!important;font-size:.75rem!important}
}
@media (max-height:620px){
  #room[data-tab=play] .deck{width:clamp(72px,min(36vw,13svh),120px)!important}
  #room[data-tab=play] .xtra{--pill-size:clamp(30px,4.5svh,38px)}
  .ios-vol-tip{font-size:.68rem!important}
  /* last resort on a very short screen: the card scrolls inside itself
     rather than hiding anything behind the nav. */
  #room[data-tab=play] .stage{overflow-y:auto!important}
}

/* ===== v80: LANDING PAGE FILLS THE SCREEN TOO (universal). The v79 fix made
   the ROOM fill the screen, but the LANDING page still used 100dvh for its
   height — and on a real iPhone 100dvh is shorter than the screen. In Chrome
   the bottom is taken by the browser's own toolbar, so the page looked full;
   in the home-screen app that toolbar is gone, the screen is taller, and the
   landing content ended early leaving a dead gap at the bottom. Fix: the
   landing page's height now comes from --vh (the JS-set true visible height,
   same as the room), and its content spreads out evenly (space-evenly) so
   there is no dead gap at the bottom on any screen. On a short screen the
   content can scroll inside the page rather than being clipped. No colour,
   icon, order or font changes — only sizing/distribution. */
main#home,main#gate{height:calc(var(--vh)*100)!important;min-height:calc(var(--vh)*100)!important}
#home{align-content:space-between!important}
/* short screen safety: if the landing content is taller than the visible
   area (a browser with its bars), let it scroll instead of clipping.
   The threshold is 780px, not 700px: on a tall phone Safari and Chrome keep
   a top URL bar AND a bottom toolbar, so the visible page is only ~725-780px
   even though the screen is 844-932px. Below 780px the landing content
   shrinks so Recent rooms stays visible in every browser, while the
   home-screen app (taller, no bars) keeps the full-size layout. */
@media (max-height:780px){
  main#home{overflow-y:auto!important}
  /* shrink the landing content on a short screen so EVERYTHING — including
     Recent rooms at the bottom — fits without scrolling. The hero and the
     gaps are the biggest consumers; shrinking them buys ~80px, which covers
     the worst short-Chrome overflow. */
  #home{gap:4px!important}
  /* the base `main` rule forces padding-top:7vh with !important (~45px on a
     short screen) — that alone eats the space Recent rooms needs. Bring the
     top padding down to the safe area on short screens. */
  #home{padding-top:max(10px,env(safe-area-inset-top))!important}
  #home .hero3d{width:clamp(80px,min(38vw,15svh),120px)!important}
  #home .hero-title{font-size:clamp(1.6rem,4.7svh,1.95rem)!important}
  #home .lead{font-size:clamp(.72rem,1.8svh,.8rem)!important}
  #home .eq{height:clamp(12px,2.2svh,20px)!important}
}
/* very short AND narrow screens (small phones in Chrome): the Recent-rooms
   chips wrap to two rows, so the page needs a little more room. Tighten
   the hero and the gaps a touch further so Recent rooms still fits. */
@media (max-height:650px){
  #home{gap:3px!important}
  #home .hero3d{width:clamp(72px,min(34vw,13svh),100px)!important}
}

/* ===== v80 (tiny screens): the very smallest phones (iPhone SE 320x568).
   At 320px wide the 5 Recent-rooms chips wrap to two rows and the page is
   56px too tall, so Recent rooms falls below the fold. On these tiny screens
   only, show the 3 most recent rooms (the other 2 stay in history, one tap
   away) and shrink the hero/gaps a touch more, so everything fits and
   Recent rooms is visible without scrolling. */
@media (max-height:600px) and (max-width:360px){
  #home .recent-list a:nth-child(n+4){display:none!important}
  #home .hero3d{width:64px!important}
  #home{gap:2px!important}
}

/* ===== v81: FRESH HOME-SCREEN INSTALL HAS NO DEAD GAP. A home-screen app
   keeps its OWN storage, separate from Safari/Chrome — so a freshly added
   app has no Recent rooms saved yet and #recent is empty. An empty #recent
   still sat in the grid as the last item, so space-between left a gap
   between the description and the (invisible) empty section at the bottom.
   Fix: when #recent is empty it leaves the layout entirely, so the
   description becomes the last item and sits at the bottom. Once the user
   joins/creates a room from the app, Recent rooms appears as normal. */
#home #recent:empty{display:none!important}

/* ===== v82: NAV PINNED TO THE VIEWPORT BOTTOM. v79 made the nav a flex
   child of #room (position:static) so it sits at the bottom of the room.
   That only works if #room is exactly as tall as the screen — and on a real
   iPhone home-screen app, window.innerHeight (which --vh comes from) reads
   a little shorter than the true screen, so #room ends ~50px short and the
   nav floats ~60px above the screen's end with dead space below it.
   Fix: the nav no longer depends on #room's height at all — it is pinned
   to the viewport itself (position:fixed; bottom:0), so it is ALWAYS at the
   screen's very end, in the browser and in the home-screen app. The safe
   area stays INSIDE the nav (its bottom padding), so the buttons still
   clear the home indicator. #room gets its bottom padding back so the
   card/panes end above the fixed nav instead of sliding under it. */
#tabs{position:fixed!important;left:50%!important;bottom:0!important;transform:translateX(-50%)!important;width:min(calc(100% - 24px),520px)!important;max-width:520px!important;margin:0 auto!important;flex:none!important}
#room{padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room[data-tab=play]{padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room:not([data-tab=play]){padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}

/* ===== v83: PAGE FILLS THE SCREEN EVEN WHEN iPHONE UNDER-REPORTS innerHeight.
   The landing page and the room both measured their height from --vh, which
   comes from window.innerHeight. On a real iPhone 13 home-screen app that
   number comes out ~50px shorter than the true screen, so the page itself
   ended early and "Recent rooms" (which sits at the page's bottom) ended
   early too — a dead gap below it. The sandbox cannot reproduce this:
   desktop Chromium reports the full height, so it looked right there.
   Fix: the page now takes the LARGER of the true dynamic viewport height
   (100dvh) and the JS-measured height (--vh). If the phone under-reports,
   100dvh takes over and the page fills the screen; if --vh is right, it
   wins as before. Same for the room (its nav is already pinned by v82,
   but the room content should fill too). */
#home,#gate{height:max(100dvh,calc(var(--vh)*100))!important;min-height:max(100dvh,calc(var(--vh)*100))!important}
main#home,main#gate{height:max(100dvh,calc(var(--vh)*100))!important;min-height:max(100dvh,calc(var(--vh)*100))!important}
#room{min-height:max(100dvh,calc(var(--vh)*100))!important;height:max(100dvh,calc(var(--vh)*100))!important}

/* ===== v84: PIN THE LANDING TO THE SCREEN ITSELF. v80-v83 all measured the
   page height (innerHeight, then 100dvh, then the larger of the two) — but
   every one of those numbers still comes from the phone, and on a real
   iPhone 13 the number comes out short, so the page ended early and
   "Recent rooms" ended early with it. The iPhone's bottom edge is curved,
   and the page kept stopping where the curve begins.
   This version does not measure anything. The landing and the gate are
   pinned to the viewport itself (position:fixed; inset:0 — top, bottom,
   left and right all 0), so they ARE the screen, whatever the phone
   reports. The content inside still spreads with space-between, so
   "Recent rooms" sits at the bottom, just above the home indicator. The
   safe-area padding stays, so nothing hides behind the home indicator. */
main#home,main#gate{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important}

/* ===== v84b: PIN THE ROOM TO THE SCREEN TOO. Same idea as the landing:
   the room also measured its height (--vh / 100dvh), and on a real iPhone
   that number comes out short, so the room ended early. Now the room is
   pinned to the viewport itself (position:fixed; inset:0), so it IS the
   screen, whatever the phone reports. The bottom nav is already pinned
   (v82) and the room's bottom padding still keeps the card and panes
   clear of it. Every bottom-anchored element — landing, gate, room, nav —
   now adapts to the screen itself, including its curved bottom edges. */
#room{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important}

/* ===== v85: BOTTOM FIX, TAKING REFERENCE FROM v69. Abhi (02:42 EST):
   "still not covering that full bottom area" — "see v69 version there it
   was fixed properly for bottom only not player card in middel take
   reference fro that to fix its bottom". v69's landing was SIMPLE: just
   height:100dvh (with 100vh/100svh fallbacks) and the body's fixed
   background covering the whole screen. v80-v84 then layered --vh, then
   max(100dvh,--vh), then position:fixed on top of it — and the --vh
   number comes from the phone, which keeps reporting it short on a real
   iPhone, so the page kept ending early. This version goes back to v69's
   simple height for the landing and the gate (plain 100dvh, no --vh in
   it at all) while KEEPING the viewport pin (position:fixed inset:0) so
   the page is the screen itself. The room and its bottom nav are left
   exactly as v84 (the player card in the middle was never the complaint). */
main#home,main#gate{height:100vh!important;height:100svh!important;height:100dvh!important}

/* ===== v87: LET IT DECIDE — no more restricting or limiting the height.
   Abhi (03:22 EST): "why are you not just make it responsive and let it
   decide instead of restricting or limiting it". He is right. v80-v86 kept
   FORCING a height on the page (a measured --vh number, then max(100dvh,
   --vh), then a fixed pin) — and every one of those numbers comes from the
   phone, which reports it short on a real iPhone, so the page kept ending
   early. This version REMOVES every height and position restriction and
   lets the layout decide for itself: the body is a flex column that is the
   screen, and the landing, the gate and the room are flex children that
   GROW to fill it. No height is measured, no height is fixed, nothing is
   pinned — the browser works out the size from the flow, on any screen,
   including the iPhone's curved bottom edges. The content spreads with
   space-between, so the last item (Recent rooms / the description) sits at
   the bottom, just above the home indicator. The bottom nav stays pinned
   (v82) — it is the one element that must sit on the screen's edge. */
body{display:flex!important;flex-direction:column!important}
main#home,main#gate{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;width:100%!important}
#room{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important}

/* ===== v88: USE THE FULL BOTTOM SPACE. Abhi (03:38-03:39 EST): "it still
   have that gap in its bottom unnecessary" + "use full bottom space
   available in screen". Two changes, both about the bottom:
   (1) THE BACKGROUND STAYS VIBRANT TO THE VERY BOTTOM. The body's gradient
   faded to near-black (#14073f) at the bottom, so the bottom of the screen
   read as a dark empty gap even when the page filled it. The bottom stop is
   now a deep vibrant purple (#241068, the nav's own bottom colour) — the
   whole screen stays purple, top to bottom, with no dark band.
   (2) THE CONTENT IS FORCED TO USE THE FULL HEIGHT. On top of v87's flex
   grow (the body is a flex column and the landing/gate/room grow to fill
   it), the landing, the gate and the room now also carry min-height:100dvh
   AND min-height:100% as a redundant guarantee, so they are the full screen
   height even if the flex stretch does not fire on a given device. The
   content spreads with space-between, so the last item sits at the bottom,
   just above the home indicator — the full bottom space is used. */
body{background:radial-gradient(75% 38% at 100% 100%,rgba(205,35,175,.5),transparent),radial-gradient(90% 30% at 0 0,rgba(120,70,255,.35),transparent),linear-gradient(180deg,#4a1fc4,#2a1275 40%,#241068)!important}
main#home,main#gate{min-height:100vh!important;min-height:100svh!important;min-height:100dvh!important;min-height:100%!important}
#room{min-height:100vh!important;min-height:100svh!important;min-height:100dvh!important;min-height:100%!important}

/* ===== v89: DEFINITIVE BOTTOM FIX. Abhi (03:53 EST): "it still same still
   not fixed this bottom problem". Two changes:
   (1) THE BACKGROUND NEVER GOES DARK. The body's gradient faded to
   near-black (#14073f) at the bottom, so the bottom of the screen read as a
   dark empty gap even when the page filled it. The gradient now stays in
   the purple family all the way down — bright #4a1fc4 at the top, #2a1275
   at 40%, and a vibrant #3a1a8f at the very bottom. There is no dark stop
   left anywhere in the background, so no dark band can appear at the
   bottom of any screen.
   (2) A VERSION BADGE, so we finally know what his phone is actually
   running. A tiny "v89" sits at the very bottom of the landing page. If
   Abhi sees "v89" and the bottom is still wrong, the fix genuinely is not
   working on his device and I will take a different approach. If he sees
   an older version (or no version), his home-screen app is still serving
   a stale cached copy and has never loaded any of v80-v89. */
body{background:radial-gradient(75% 38% at 100% 100%,rgba(205,35,175,.5),transparent),radial-gradient(90% 30% at 0 0,rgba(120,70,255,.35),transparent),linear-gradient(180deg,#4a1fc4,#2a1275 40%,#3a1a8f)!important}
#ver{font-size:11px;line-height:1;color:rgba(255,255,255,.45);text-align:center;padding:2px 0 0}

/* ===== v90: STANDALONE GETS ITS OWN LAYOUT. Abhi's insight (04:00 EST):
   "previously we fixed it for Chrome's browsers bottom settings because in
   Chrome's bottom area there are few buttons ... so we have fixed the bottom
   for the Chrome browser's bottom limitations ... when I added as a home
   screen app web app it follows through same and it has that gap ... where
   there is no any of browser's button in the bottom there is no need of
   bottom limitation bottom gap". He is right: every fix so far sized the
   page for a BROWSER viewport (visible area above the browser's own bottom
   toolbar) and reserved bottom space for that toolbar. The home-screen app
   has NO browser toolbar — the full screen is free. So in standalone mode
   (the home-screen app) the page gets its own layout: html/body are the
   full screen, the landing/gate/room are flex children that GROW to fill
   it, and the bottom padding is ONLY the home-indicator safe area — no
   extra bottom reservation for a browser toolbar that is not there.
   Browser mode is untouched. */
@media (display-mode: standalone){
 html,body{height:100%!important;min-height:100%!important}
 body{display:flex!important;flex-direction:column!important}
 main#home,main#gate{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;width:100%!important}
 #room{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important}
 main#home,main#gate{padding-bottom:env(safe-area-inset-bottom,0px)!important}
}

/* v90 (continued): the same standalone layout via the html.standalone class
   that app.js sets (safeArea), so it applies even where the display-mode
   media query is not honoured. In the home-screen app the bottom padding
   is ONLY the home-indicator safe area — no extra bottom reservation for
   a browser toolbar that is not there. */
html.standalone,html.standalone body{height:100%!important;min-height:100%!important}
html.standalone body{display:flex!important;flex-direction:column!important}
html.standalone main#home,html.standalone main#gate{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;width:100%!important}
html.standalone #room{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;min-height:0!important;flex:1 1 auto!important}
html.standalone main#home,html.standalone main#gate{padding-bottom:env(safe-area-inset-bottom,0px)!important}

/* ===== v91: PIN TO THE VIEWPORT. Abhi (04:13 EST): "v90 is still wrong
   not fixed". v87-v90 all relied on the BODY (flex column) to stretch the
   landing/gate/room to the full height — if the body's own height is not
   definite on the real iPhone, flex:1 has nothing to stretch into and the
   page ends early. v91 stops depending on the body entirely: the landing,
   the gate and the room are PINNED to the viewport itself
   (position:fixed; inset:0), so they are exactly the screen size no matter
   what the body measures. The nav stays pinned to the viewport bottom
   (v82) and the room keeps its bottom padding so content clears it. The
   min-height:100svh/100dvh is a fallback in case fixed positioning is ever
   constrained. This rule is appended LAST so it wins over v87's
   position:static and v90's standalone static rules. */
main#home,main#gate{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}
#room{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}

/* v91 (specificity fix): the fixed pin above lost to v90's
   html.standalone rules (ID+class+element beats plain ID+element). These
   use the same selectors so they win by source order. */
html.standalone main#home,html.standalone main#gate{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}
html.standalone #room{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}
html main#home,html main#gate{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}
html #room{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:100svh!important;min-height:100dvh!important}

/* ===== v92: RESTORE THE v76 LANDING. Abhi (04:17 EST): "till version 76
   everything was correct except for it player card on chrome browser and
   safari browser — what did [you] change after that is the real issue
   started". He is right. In v76 the landing was a SIMPLE layout that
   worked: main#home/main#gate had a plain height (100vh/100svh/100dvh),
   min-height:0, and the content was CENTERED; the body was a normal block,
   not a flex container. v77 fixed the player card by making the BODY and
   #room flex columns — but every version after that (v80 --vh height, v83
   max(), v84 fixed pin, v85 100dvh+pin, v87 flex grow, v88 min-height,
   v90 standalone, v91 fixed pin) kept piling NEW height/position rules
   onto the LANDING too, and the landing's simple v76 layout was buried
   under them. v92 restores the v76 landing EXACTLY (same height, same
   centering, same padding) and scopes the flex layout to the ROOM ONLY:
   the body is a normal block on the landing and a flex column ONLY when
   body has class in-room. The v77 player-card fix stays (the room is
   still a flex column that fills the screen in Chrome/Safari); the landing
   is untouched by it. The version badge and the vibrant background stay. */
html.standalone main#home,html.standalone main#gate,html main#home,html main#gate,main#home,main#gate{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:100vh!important;height:100svh!important;height:100dvh!important;min-height:0!important;flex:none!important;overflow:hidden!important;width:100%!important}
html.standalone #home,html #home,#home{align-content:center!important}
body{display:block!important}
body.in-room{display:flex!important;flex-direction:column!important}

/* v92 (body scope fix): the plain `body{display:block}` above lost to v90's
   html.standalone body rule (higher specificity). These use the same
   specificity and win by source order. On the landing (no in-room class)
   the body is a normal block, exactly as in v76; in a room it is the flex
   column the player card needs. */
html body:not(.in-room){display:block!important}
html body.in-room{display:flex!important;flex-direction:column!important}

/* ===== v92.1: DRAGGABLE MINI-PLAYER. Abhi (07:11 EST): on the Queue tab
   the mini-player bar floats over the list and hides the content behind it
   (the playlist row's Queue button, Clear playlist). Fix, and ONLY this:
   the bar is now draggable up/down by its own body. Its lowest spot is
   unchanged — just above the bottom nav, it can never go below that or over
   the nav (lift is clamped 0..360px in extras.js, saved on the device).
   touch-action:none so a vertical drag on the bar moves the bar instead of
   scrolling the list behind it; the grip pill on top shows it can be
   dragged; the play/prev/next buttons still work (a tap with no movement
   is a tap, a move is a drag). Nothing else in v92 is touched. */
#mini{--mini-lift:0px;bottom:calc(133px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)) + var(--mini-lift,0px))!important;touch-action:none!important;cursor:grab!important}
#mini.dragging{cursor:grabbing!important;transition:none!important}
#mini::before{content:"";position:absolute;top:2px;left:50%;transform:translateX(-50%);width:32px;height:4px;border-radius:4px;background:rgba(255,255,255,.35);pointer-events:none}

/* ===== v93.2: COOL PASS (default-on). Abhi: the phone heats up in the browser.
   Measured: the heat is the GPU re-compositing every frame — (1) backdrop-filter
   blur on the big surfaces (player card, bottom nav, mini-player), (2) the neon
   smoke in the player card drifting/pulsing forever plus a JS beat loop firing
   new animations every ~420ms while a song plays, (3) the landing orbs/notes/
   smoke still animating behind the room. Video is already capped at 144p (v54),
   so this pass is all compositing. NOTHING is hidden and no colour changes: the
   blur is replaced by the same purple as a solid fill, the smoke gradients stay
   exactly where they were — they just stop moving. The disc still spins and the
   equalizer still bounces, so the card still reads as playing. Cool mode still
   works on top of this (it hides the smoke entirely). */
/* 1 — no backdrop blur on the sustained surfaces (transient popups keep theirs). */
.stage,.pane,#tabs,#mini,.who .pill-who,.chip,.hdr-tip,#gate .gate-panel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.stage,.pane{background:linear-gradient(180deg,#2b0e4d,#1c0733)!important}
/* 2 — the card's neon smoke stays exactly as drawn, but stops drifting/pulsing. */
.stage::before,.stage::after{animation:none!important;will-change:auto!important}
.stage.on::before,.stage.on::after{animation:none!important}
.cosmic .cb,.cosmic .cpulse,.cosmic .cp{animation:none!important;will-change:auto!important}
/* 3 — the floating notes in the card freeze in place (still visible). */
.stage .dnote{animation-play-state:paused!important}
/* 4 — landing atmosphere still animates on the landing + join pages, but freezes
   the moment you are inside a room (it is hidden behind the room then anyway). */
body.in-room .orb,body.in-room .note{animation-play-state:paused!important}
body.in-room #fx *{animation-play-state:paused!important}

/* v94.6: BOTTOM NAV REACHES THE PHYSICAL SCREEN BOTTOM (iPhone home-screen app).
   The nav was already pinned with bottom:0, but that is the LAYOUT viewport's
   bottom — in standalone the layout viewport is reported SHORTER than the
   physical screen (innerHeight misses a strip at the bottom), so bottom:0
   still left a dead band under the nav. fit.js (now wired in) measures that
   strip into --gap (screen.height - innerHeight; 0 in browsers). Pull the nav
   DOWN by --gap so its bottom edge sits on the physical screen's bottom edge.
   The safe area stays INSIDE the nav (bottom padding), so the buttons still
   clear the home indicator. Bottom corners go square: a docked bar, not a
   floating pill. The room's bottom padding and the mini-player / audio-unlock
   offsets grow by --gap too, so the content keeps its distance above the
   lowered nav. In a browser --gap is 0, so nothing changes there. */
/* v94.12: iOS Home Screen viewport fix.
   Root cause: iOS/WebKit may create a reserved/unreachable bottom strip
   when black-translucent status-bar mode is installed, while the v94.11
   --dock hack pushes the bottom nav beyond WebKit's real viewport.
   The installed web app now uses the iOS default status-bar mode (index.html),
   so the app viewport ends at the device's bottom. Do not fabricate an
   extra 60px of screen or position interactive elements outside the viewport.
   Preserve the real home-indicator safe area INSIDE the bottom navigation.
   In normal browser/Android mode these values match the existing layout. */
:root{--dock:0px}
#tabs{bottom:0!important;padding-bottom:calc(10px + var(--sab,env(safe-area-inset-bottom,0px)))!important;border-radius:26px!important}
#room{padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room[data-tab=play]{padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
#room:not([data-tab=play]){padding-bottom:calc(92px + var(--sab,env(safe-area-inset-bottom,0px)))!important}
/* v94.23: keep the existing safe-area offset AND the draggable mini-player lift.
   The v94.12 bottom rule accidentally discarded --mini-lift, locking the bar. */
#mini{bottom:calc(133px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)) + var(--mini-lift,0px))!important}
#audio-unlock{bottom:calc(193px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))!important}
/* v90 accidentally overwrote html/body with height:100% in standalone. On
   affected iPhones that computes against the WebKit layout viewport, not
   the actual available app surface. Size the iPhone shell with viewport
   units instead; do not constrain it to its parent's percentage height. */
html.ios.standalone,html.ios.standalone body{height:100vh!important;min-height:100vh!important}
html.ios.standalone main#home,html.ios.standalone main#gate{height:100vh!important;min-height:0!important}
html.ios.standalone #room{height:100vh!important;min-height:0!important}

/* v94.8: LANDING — compact, structured, organised in the middle.
   The old landing was a tall, loosely spaced stack (168px logo on top, and
   the join section sprawling on 14px/12px/14px bottom margins). This tightens
   the whole column into one compact central block: a smaller logo, tighter
   type, a compact join row, the big section margins cut to 0 (the grid's
   small gap does the spacing), and consistent 6px gaps — so everything sits
   as one neat group in the middle of the screen. Landing only. */
html.standalone #home, html #home, #home{
  max-width:360px!important;
  gap:6px!important;
  padding:max(8px,env(safe-area-inset-top)) 20px max(8px,env(safe-area-inset-bottom))!important;
  align-content:center!important;
}
#home .hero3d{width:clamp(84px,min(38vw,15svh),116px)!important;margin:0 auto!important}
#home .hero-title{font-size:clamp(1.78rem,5.3svh,2.15rem)!important;margin:0!important}
#home .lead{max-width:34ch!important;margin:auto!important;font-size:clamp(.76rem,2svh,.88rem)!important;line-height:1.3!important}
#home .eq{height:clamp(14px,2.5svh,22px)!important;margin:0 auto!important}
#home .chips{gap:4px!important;margin:0!important}
#home .chip{padding:3px 8px!important;font-size:.66rem!important}
#home .big{min-height:44px!important;padding:.6em 1em!important;font-size:.98rem!important;margin-top:4px!important}
#home .or{margin:0!important;gap:10px!important;font-size:.7rem!important}
#home #jf{display:block!important;margin:0!important}
#home #jf label{display:block!important;text-align:left!important;margin:0 0 3px!important;font-size:.74rem!important;font-weight:600!important}
#home #jf .row{display:flex!important;gap:6px!important}
#home #jf .row input{flex:1!important;min-width:0!important;min-height:42px!important;text-align:center!important;font-weight:600!important;letter-spacing:.08em!important}
#home #jf .row button{flex:none!important;min-height:42px!important;padding:.35em 1em!important}
#home .scan-btn{width:100%!important;min-height:44px!important;margin:0!important;font-size:.92rem!important}
#home .steps{max-width:44ch!important;margin:auto!important;font-size:.7rem!important;line-height:1.25!important}
#home #recent{gap:4px!important;font-size:.7rem!important;line-height:1.15!important}
#home .recent-list{gap:4px!important}
#home .recent-list a{padding:3px 9px!important}
#home .last-room{margin:2px auto 6px!important;padding:7px 10px!important;max-width:300px!important}
#home .last-room .lr-code{font-size:1.05rem!important}
#home .last-room .lr-join{margin-top:5px!important;padding:6px 16px!important}
#home #ver{font-size:.68rem!important;opacity:.7!important}

/* v94.18: Bottom-navigation only. Keep all four corners evenly rounded,
   and leave exactly a 3 mm gap between the bar and the phone's bottom edge. */
@media (max-width: 900px), (pointer: coarse) {
  #tabs {
    border-radius: clamp(42px, 10vw, 56px) !important;
    bottom: 3mm !important;
  }
}

/* v94.19: Center the bottom-nav button row within the existing box.
   Split the home-indicator safe-area padding evenly above and below it,
   keeping the bar's height, fixed 3mm gap, corners and controls unchanged. */
@media (max-width: 900px), (pointer: coarse) {
  #tabs {
    padding-top: calc(10px + var(--sab, env(safe-area-inset-bottom, 0px)) / 2) !important;
    padding-bottom: calc(10px + var(--sab, env(safe-area-inset-bottom, 0px)) / 2) !important;
  }
}


/* v94.22 — Full-video-view ONLY. Keep the original room/player styles
   intact outside fullscreen; fit/fill affects the existing YouTube iframe. */
.deck .vr-fv-open{
 position:absolute!important;z-index:25;top:9px;right:9px;
 display:flex;align-items:center;justify-content:center;
 width:auto!important;min-width:0!important;height:27px!important;min-height:27px!important;
 padding:3px 9px!important;margin:0!important;
 font:600 10px/1.1 Poppins,system-ui,sans-serif!important;white-space:nowrap;
 color:#fff;background:rgba(10,7,25,.76)!important;
 border:1px solid rgba(255,255,255,.3)!important;border-radius:8px!important;
 text-shadow:0 1px 4px #000;cursor:pointer;touch-action:manipulation;
}
.deck .vr-fv-open[hidden],.deck .vr-fv-tools[hidden],.deck .vr-fv-dock[hidden]{display:none!important}
/* The viewer is drawn in the viewport, not the room's fixed-height card. */
body.vr-fullview{overscroll-behavior:none}
/* v94.32: Full View escapes the room's 520/640px max-width only while open.
   iOS WebKit can otherwise place a viewport-fixed child relative to the
   centered room after rotation, leaving an asymmetric blank screen strip. */
body.vr-fullview #room{
 overflow:visible!important;
 width:100vw!important;max-width:none!important;min-width:0!important;
 margin-left:0!important;margin-right:0!important;
 padding-left:0!important;padding-right:0!important;
}
/* The normal bottom dock is a separate fixed sibling and can otherwise
   paint over the black fullscreen layer on iOS. It is never needed here. */
body.vr-fullview #tabs{visibility:hidden!important;pointer-events:none!important}
body.vr-fullview #room[data-tab=play] .stage,
body.vr-fullview #room[data-tab=play] .stage:fullscreen{
 position:fixed!important;inset:auto!important;
 top:var(--fv-viewport-top,0px)!important;left:var(--fv-viewport-left,0px)!important;
 display:block!important;flex:none!important;box-sizing:border-box!important;
 width:var(--fv-view-w,100vw)!important;
 height:var(--fv-view-h,100dvh)!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:#000!important;box-shadow:none!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 -webkit-mask-image:none!important;mask-image:none!important;
 overflow:hidden!important;isolation:isolate;perspective:none!important;
 z-index:2147483000!important;transform:none!important;
}
body.vr-fullview #room[data-tab=play] .stage::before,
body.vr-fullview #room[data-tab=play] .stage::after{display:none!important}
body.vr-fullview #room[data-tab=play] .stage > :not(.deck){display:none!important}
body.vr-fullview #room[data-tab=play] .stage .deck.vid{
 position:absolute!important;inset:0!important;z-index:10!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:100%!important;max-width:none!important;
 margin:0!important;padding:0!important;transform:none!important;
 border:0!important;perspective:none!important;
}
body.vr-fullview #room[data-tab=play] .stage .deck.vid::before,
body.vr-fullview #room[data-tab=play] .stage .deck.vid::after{display:none!important}
body.vr-fullview #room[data-tab=play] .stage .deck.vid .disc{
 position:relative!important;flex:1 1 auto!important;
 width:100%!important;height:100%!important;max-height:100%!important;
 margin:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;aspect-ratio:auto!important;
 animation:none!important;transform:none!important;
}
body.vr-fullview #room[data-tab=play] .stage .deck.vid .disc::before{display:none!important}
body.vr-fullview #room[data-tab=play] .stage .deck.vid .label{
 width:100%!important;height:100%!important;aspect-ratio:auto!important;
 border:0!important;border-radius:0!important;background:#000!important;
 position:relative!important;overflow:hidden!important;
}
/* IFrame width is fit/cover based on screen ratio; never resize or reload
   the YouTube player API object, simply let CSS lay out its existing iframe. */
body.vr-fullview #room[data-tab=play] .stage .deck.vid .label iframe,
body.vr-fullview #room[data-tab=play] .stage .deck.vid .label #pl{
 position:absolute!important;
 width:var(--fv-video-w,100%)!important;height:var(--fv-video-h,100%)!important;
 top:calc(50% + var(--fv-video-center-y-offset,0px))!important;left:calc(50% + var(--fv-video-center-offset,0px))!important;
 transform:translate(-50%,-50%)!important;
 pointer-events:none!important;border:0!important;
 max-width:none!important;max-height:none!important;
}
body.vr-fullview .deck .vr-fv-open{display:none!important}
/* Safe-area-aware video tools. Close, Fit and the transport dock all fade
   together after inactivity; a tap on the video reveals them again. */
body.vr-fullview .deck{
 --fv-safe-t:max(0px, var(--sat,env(safe-area-inset-top,0px)));
 --fv-safe-r:max(0px, var(--sar,env(safe-area-inset-right,0px)));
 --fv-safe-b:max(0px, var(--sab,env(safe-area-inset-bottom,0px)));
 --fv-safe-l:max(0px, var(--sal,env(safe-area-inset-left,0px)));
}
body.vr-fullview.vr-fv-landscape .deck{
 --fv-safe-t:0px;
 --fv-safe-b:0px;
 --fv-safe-l:max(0px, var(--sat,env(safe-area-inset-top,0px)));
 --fv-safe-r:max(0px, var(--sab,env(safe-area-inset-bottom,0px)));
}
.deck .vr-fv-tools{
 position:absolute!important;z-index:65!important;
 top:calc(9px + max(var(--fv-safe-t,0px), var(--fv-top-fallback,0px)));right:calc(10px + var(--fv-safe-r,0px));
 display:flex!important;align-items:center;justify-content:flex-end;gap:6px;
 -webkit-backdrop-filter:none;backdrop-filter:none;
 transition:opacity .24s ease,visibility .24s ease;
}
.deck .vr-fv-tools button{
 position:static!important;display:flex!important;align-items:center;justify-content:center;
 flex:none;width:auto!important;min-width:30px!important;height:29px!important;min-height:29px!important;
 margin:0!important;padding:3px 9px!important;
 font:600 10px/1 Poppins,system-ui,sans-serif!important;
 color:#fff!important;background:rgba(9,6,20,.52)!important;
 border:1px solid rgba(255,255,255,.22)!important;border-radius:9px!important;
 white-space:nowrap;cursor:pointer;touch-action:manipulation;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
.deck .vr-fv-tools button.vr-fv-fit{padding:3px 7px!important}
.deck .vr-fv-tools svg{width:15px;height:15px}
.deck .vr-fv-dock{
 position:absolute!important;z-index:64!important;
 bottom:calc(8px + var(--fv-safe-b,0px));
 left:calc(12px + var(--fv-safe-l,0px));right:calc(12px + var(--fv-safe-r,0px));
 width:auto!important;max-width:none!important;margin:0!important;
 padding:5px clamp(9px,2vw,14px) 6px!important;
 display:flex!important;flex-direction:column;align-items:center;gap:3px;
 background:linear-gradient(180deg,rgba(12,7,25,.42),rgba(9,6,20,.60));
 border:1px solid rgba(255,255,255,.16)!important;border-radius:13px!important;
 -webkit-backdrop-filter:none;backdrop-filter:none;
 transition:opacity .24s ease,visibility .24s ease;
}
.deck .vr-fv-timeline{
 display:flex;align-items:center;justify-content:space-between;gap:9px;
 width:100%;max-width:850px;min-width:0;
 font:500 10px/1 Poppins,system-ui,sans-serif;color:rgba(255,255,255,.9);
}
.deck .vr-fv-timeline span{flex:none;min-width:33px;font-variant-numeric:tabular-nums;text-align:center}
.deck .vr-fv-timeline .vr-fv-seek{
 -webkit-appearance:none;appearance:none;
 display:block!important;flex:1 1 auto;min-width:0!important;width:100%!important;
 height:16px!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 cursor:pointer;touch-action:pan-x;
}
.deck .vr-fv-seek::-webkit-slider-runnable-track{
 height:3px;border:0;border-radius:9px;
 background:linear-gradient(to right,#ff335c 0%,#ff335c var(--fv-progress,0%),rgba(255,255,255,.44) var(--fv-progress,0%),rgba(255,255,255,.44) 100%);
}
.deck .vr-fv-seek::-moz-range-track{
 height:3px;border:0;border-radius:9px;background:rgba(255,255,255,.44);
}
.deck .vr-fv-seek::-moz-range-progress{
 height:3px;border-radius:9px;background:#ff335c;
}
.deck .vr-fv-seek::-webkit-slider-thumb{
 -webkit-appearance:none;appearance:none;width:11px;height:11px;
 margin-top:-4px;background:#ff335c;border:1px solid #ff8098;
 border-radius:50%;box-shadow:0 0 5px rgba(255,51,92,.6);
}
.deck .vr-fv-seek::-moz-range-thumb{
 width:11px;height:11px;background:#ff335c;border:1px solid #ff8098;
 border-radius:50%;box-shadow:0 0 5px rgba(255,51,92,.6);
}
.deck .vr-fv-seek:disabled{opacity:.5}
.deck .vr-fv-controls{
 position:static!important;z-index:auto!important;display:flex!important;
 align-items:center;justify-content:center;flex:none;
 gap:7px;width:auto!important;max-width:100%;min-width:0;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:none!important;box-shadow:none!important;transform:none!important;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
.deck .vr-fv-controls button{
 display:flex!important;align-items:center;justify-content:center;flex:none;
 min-height:28px!important;height:28px!important;min-width:41px!important;
 font:700 10px/1 Poppins,system-ui,sans-serif!important;
 background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.15)!important;
 color:#fff!important;padding:3px 9px!important;border-radius:999px!important;touch-action:manipulation;
}
.deck .vr-fv-controls button[data-fv=play]{
 min-width:34px!important;width:34px!important;
 background:linear-gradient(135deg,rgba(255,154,31,.82),rgba(255,61,113,.82),rgba(185,38,212,.82))!important;
}
.deck .vr-fv-controls svg{width:16px;height:16px}
body.vr-fullview .deck.vr-fv-hidden .vr-fv-dock{
 opacity:0;visibility:hidden;pointer-events:none;
}
/* Hide the Close button too; touching the unobstructed video reveals it. */
body.vr-fullview .deck.vr-fv-hidden .vr-fv-tools{opacity:0;visibility:hidden;pointer-events:none}
body.vr-fullview .deck.vr-fv-hidden .vr-fv-tools button{pointer-events:none}
/* Landscape-like fallback for iPhone home-screen apps without orientation
   lock: rotate ONLY the viewer; when the device really rotates, unrotate.
   Its measured width/height fill the usable app viewport (not a 100dvh guess). */
body.vr-fullview.vr-fv-landscape #room[data-tab=play] .stage{
 top:var(--fv-viewport-top,0px)!important;
 left:calc(var(--fv-viewport-left,0px) + var(--fv-view-w,100vw))!important;
 width:var(--fv-view-h,100dvh)!important;
 height:var(--fv-view-w,100vw)!important;
 transform-origin:top left!important;transform:rotate(90deg)!important;
}


/* v94.23: Sing-tab mic ACTIONS ONLY — structured, touch-friendly controls.
   Preserve all element IDs and existing mic/record/change handlers. */
#kc > .kar-row.kar-primary-actions{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(128px,.72fr);
  align-items:stretch;gap:10px;
}
#kc #kl.kar-big{
  display:flex;align-items:center;justify-content:center;
  min-width:0;width:100%;min-height:52px;
  border-radius:16px;padding:9px 12px;
  font-size:.91rem;font-weight:750;line-height:1.25;
  white-space:normal;text-align:center;
  box-shadow:0 8px 20px rgba(255,61,113,.25),inset 0 1px 0 rgba(255,255,255,.36);
}
#kc .kar-hear{
  display:flex;align-items:center;justify-content:center;gap:8px;
  min-width:0;min-height:52px;padding:8px 10px;
  border-radius:16px;border:1px solid rgba(255,255,255,.19);
  background:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
  color:#f7efff;font-size:.79rem;font-weight:600;line-height:1.2;
  white-space:normal;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
#kc #km{
  appearance:none;-webkit-appearance:none;position:relative;
  display:inline-block;flex:none;width:35px;height:21px;min-height:21px;
  margin:0;padding:0;border:1px solid rgba(255,255,255,.22);
  border-radius:100px;background:rgba(12,8,37,.56);cursor:pointer;
  transition:background .16s,border-color .16s;
}
#kc #km::before{
  content:"";position:absolute;left:2px;top:2px;width:15px;height:15px;
  border-radius:50%;background:#eee6ff;
  box-shadow:0 1px 4px rgba(0,0,0,.25);
  transition:transform .16s;
}
#kc #km:checked{background:linear-gradient(135deg,#ff548e,#ad38fa);border-color:rgba(255,255,255,.45)}
#kc #km:checked::before{transform:translateX(14px);background:#fff}
#kc #km:focus-visible{outline:2px solid #7ee7ff;outline-offset:3px}
#kc > .kar-row.kar-record-actions{display:flex;align-items:center;gap:8px}
#kc #kr{
  display:flex;align-items:center;justify-content:center;gap:9px;
  flex:1;min-width:0;min-height:46px;padding:9px 14px;
  border:1px solid rgba(255,255,255,.23);border-radius:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.065));
  color:#f8efff;font-size:.86rem;font-weight:650;line-height:1.2;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
#kc #kr::before{
  content:"";display:inline-block;flex:none;width:10px;height:10px;
  border-radius:50%;background:#ff6688;
  box-shadow:0 0 0 3px rgba(255,102,136,.14);
}
#kc #kd{flex:none;font-size:.8rem}
@media (max-width:360px){
  #kc > .kar-row.kar-primary-actions{grid-template-columns:minmax(0,1fr) minmax(118px,.85fr);gap:7px}
  #kc .kar-hear{padding:7px;gap:6px;font-size:.74rem}
  #kc #kl.kar-big{font-size:.84rem;padding:8px}
}

/* v94.26 — PLAY TAB LANDSCAPE LAYOUT ONLY.
   The original YouTube/vinyl deck stays mounted on the left; the EXISTING
   track text, seek, transport, volume and extras remain on the right.
   Keep portrait, other tabs and the fullscreen-video viewer untouched. */
@media (orientation: landscape) and (min-width: 560px) {
  body:not(.vr-fullview) #room[data-tab="play"] {
    width: 100% !important;
    max-width: 1200px !important;
    padding-left: max(12px, var(--sal, env(safe-area-inset-left, 0px))) !important;
    padding-right: max(12px, var(--sar, env(safe-area-inset-right, 0px))) !important;
    padding-bottom: 100px !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] > header {
    width: 100%;
    min-height: 0;
    padding: 3px 0 5px;
    gap: clamp(5px, 1vw, 10px);
  }
  body:not(.vr-fullview) #room[data-tab="play"] > header .logo {
    width: clamp(30px, 8svh, 46px);
    height: clamp(30px, 8svh, 46px);
  }
  body:not(.vr-fullview) #room[data-tab="play"] > header .rt b {font-size: clamp(.83rem, 2.7svh, 1.04rem)}
  body:not(.vr-fullview) #room[data-tab="play"] > header .rt small {font-size: clamp(.62rem, 1.8svh, .75rem)}
  body:not(.vr-fullview) #room[data-tab="play"] > header button {
    min-height: clamp(30px, 7.5svh, 40px);
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(9, auto);
    align-content: center !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: clamp(12px, 2.8vw, 32px) !important;
    row-gap: clamp(1px, .45svh, 4px) !important;
    min-width: 0;
    min-height: 0;
    padding: clamp(6px, 1.1svh, 12px) clamp(10px, 2vw, 26px) !important;
    margin-bottom: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    text-align: left;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage::-webkit-scrollbar{display:none}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .deck {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
    width: min(100%, 44svh, 340px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .deck.vid {
    width: min(100%, 83svh, 560px) !important;
    max-width: 100% !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .deck.vid .disc {
    aspect-ratio: 16 / 9;
    width: 100%;height: auto;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #tt,
  body:not(.vr-fullview) #room[data-tab="play"] .stage #ch,
  body:not(.vr-fullview) #room[data-tab="play"] .stage #by,
  body:not(.vr-fullview) #room[data-tab="play"] .stage #sc,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .time,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .xtra,
  body:not(.vr-fullview) #room[data-tab="play"] .stage #addlink,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ios-vol-tip {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #tt {
    grid-row: 1;
    text-align: left;
    font-size: clamp(.78rem, 2.8svh, 1.1rem) !important;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #tt-in {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none !important;
    animation: none !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #ch {
    grid-row: 2;
    text-align: left;
    font-size: clamp(.65rem, 1.9svh, .82rem);
    white-space: nowrap;
    text-overflow: ellipsis;
    max-height: none;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #by {
    grid-row: 3;
    text-align: left;
    font-size: clamp(.65rem, 1.9svh, .82rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage #addlink {grid-row: 4;justify-self:start;width:auto;max-width:100%}
  body:not(.vr-fullview) #room[data-tab="play"] .stage #sc {grid-row: 5;height:clamp(15px,3.7svh,22px)!important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .time {
    grid-row: 6;
    font-size: clamp(.64rem, 1.75svh, .76rem);
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl {
    grid-row: 7;
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: clamp(2px, 1svh, 8px) clamp(4px, 1.2vw, 12px) !important;
    margin: 0 !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #pp {
    width: clamp(38px, 10svh, 58px) !important;
    height: clamp(38px, 10svh, 58px) !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #xp,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #sk,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .skip10 {
    width: clamp(32px, 8.5svh, 48px) !important;
    height: clamp(32px, 8.5svh, 48px) !important;
    min-height: 0;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .vol {
    width: 100%;
    margin: 0 !important;
    gap: clamp(6px, 1vw, 12px);
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .vol button.spk {
    width: clamp(28px, 7svh, 40px);
    height: clamp(28px, 7svh, 40px);
    min-height: 0;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .xtra {grid-row: 8;margin: 0 !important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .xtra .xrow {gap: clamp(3px, .8vw, 9px) !important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .xtra .pill {
    --pill-size: clamp(28px, 7.6svh, 40px);
    width: var(--pill-size) !important;
    height: var(--pill-size) !important;
    flex: 0 0 var(--pill-size) !important;
    max-width: var(--pill-size) !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ios-vol-tip {
    grid-row: 9;
    text-align: center;
    font-size: clamp(.58rem, 1.65svh, .7rem) !important;
    line-height: 1.2;
  }
  /* Keep the existing five tabs in a shorter dock at the right of the
     video/control split. No reordering and no handler changes. */
  body:not(.vr-fullview) #room[data-tab="play"] #tabs {
    left: auto !important;
    right: max(12px, var(--sar, env(safe-area-inset-right, 0px)), calc((100vw - min(100vw, 1200px)) / 2 + 12px)) !important;
    transform: none !important;
    width: min(calc(50vw - 20px), 520px) !important;
    max-width: 520px !important;
    bottom: 3mm !important;
    padding: 5px 6px !important;
    border-radius: clamp(26px, 6svh, 38px) !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] #tabs button {
    min-height: clamp(37px, 10svh, 51px);
    padding: 1px;
  }
  body:not(.vr-fullview) #room[data-tab="play"] #tabs button i svg {width: 20px;height: 20px}
  body:not(.vr-fullview) #room[data-tab="play"] #tabs button span {font-size: clamp(.6rem, 1.8svh, .72rem)}
  body:not(.vr-fullview) #room[data-tab="play"] #tabs .mic {margin-top: -12px !important}
  body:not(.vr-fullview) #room[data-tab="play"] #tabs .mic i {
    width: clamp(48px, 13svh, 64px) !important;
    height: clamp(48px, 13svh, 64px) !important;
    border-width: 4px !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] #tabs .mic i svg {width: 24px;height: 24px}
}
/* Very short landscape phones still need the full Play/volume/extras rows;
   use the unused space above the compact landscape dock rather than clipping. */
@media (orientation: landscape) and (min-width: 560px) and (max-height: 350px) {
  body:not(.vr-fullview) #room[data-tab="play"] {padding-bottom: 80px !important}
}
@media (orientation: landscape) and (min-width: 560px) and (max-height: 350px) {
  body:not(.vr-fullview) #room[data-tab="play"] .stage {
    grid-template-rows: repeat(9, max-content);
    row-gap: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #pp {width:34px!important;height:34px!important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #xp,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl #sk,
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .skip10 {width:30px!important;height:30px!important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .vol button.spk {width:24px!important;height:24px!important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ctl .vol input {height:22px!important}
  body:not(.vr-fullview) #room[data-tab="play"] .stage .ios-vol-tip {display:none!important}
}

/* v94.28: SING TAB ONLY — compact, accessible mic noise cancellation toggle. */
#kc .kar-noise-row{display:flex;flex-direction:column;gap:4px;min-width:0}
#kc .kar-noise-btn{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;
 padding:8px 12px;border:1px solid rgba(255,255,255,.20);border-radius:13px;
 background:linear-gradient(140deg,rgba(255,255,255,.105),rgba(255,255,255,.04));
 color:#f7eeff;font-size:.83rem;font-weight:650;text-align:left;cursor:pointer;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
#kc .kar-noise-btn svg{width:20px;height:20px;flex:none;color:#d9c8f9}
#kc .kar-noise-btn > span{flex:1;min-width:0}
#kc .kar-noise-btn b{padding:4px 11px;min-width:40px;text-align:center;border-radius:100px;
 background:rgba(255,255,255,.13);font-size:.75rem;line-height:1.25}
#kc .kar-noise-btn.on{border-color:rgba(126,231,255,.46);background:linear-gradient(135deg,rgba(90,205,245,.14),rgba(175,58,255,.13))}
#kc .kar-noise-btn.on svg{color:#7ee7ff}
#kc .kar-noise-btn.on b{background:rgba(126,231,255,.2);color:#aff6ff}
#kc .kar-noise-btn:focus-visible{outline:2px solid #7ee7ff;outline-offset:2px}
#kc #knc-help{font-size:.69rem;line-height:1.35;color:#cbbbeb;padding:0 2px}

/* v94.36: LANDING LAST-ROOM CARD ONLY — a compact, balanced summary row.
   Existing availability checks, room details and Rejoin action are untouched. */
#home .last-room{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"status action" "code action" "description action";
  align-items:center;
  column-gap:10px;
  row-gap:2px;
  width:100%;
  max-width:300px!important;
  padding:8px 10px!important;
  margin:2px auto 6px!important;
  border-radius:15px;
  text-align:left;
}
#home .last-room .lr-top{
  grid-area:status;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:3px 6px;
  min-width:0;
}
#home .last-room .lr-pill{
  padding:2px 7px;
  font-size:.61rem;
  line-height:1.3;
}
#home .last-room .lr-time{
  font-size:.61rem;
  line-height:1.3;
}
#home .last-room .lr-code{
  grid-area:code;
  margin:0;
  font-size:.97rem!important;
  line-height:1.3;
  letter-spacing:.075em;
}
#home .last-room .lr-sub{
  grid-area:description;
  margin:0;
  font-size:.61rem;
  line-height:1.24;
  overflow-wrap:break-word;
}
#home .last-room .lr-join{
  grid-area:action;
  justify-self:end;
  align-self:center;
  margin:0!important;
  min-height:44px;
  padding:7px 10px!important;
  font-size:.69rem;
  line-height:1.1;
  white-space:nowrap;
}

/* v94.37 — iPad home-screen bottom viewport extension ONLY.
   An installed iPad web app may report a fixed viewport shorter than the
   actual tablet display. fit.js measures that difference and enables this
   rule only for full-width, standalone iPad windows. The content canvas
   reaches the real display bottom and the existing 3 mm dock gap is
   preserved relative to that bottom; browser and iPhone layouts are untouched. */
html.ipad.standalone,html.ipad.standalone body {
  height:var(--ipad-shell-height,100dvh)!important;
  min-height:var(--ipad-shell-height,100dvh)!important;
}
html.ipad.standalone #room {
  height:var(--ipad-shell-height,100dvh)!important;
  min-height:0!important;
  max-height:none!important;
  bottom:auto!important;
}
/* Preserve the existing 0px dock setting on fine-pointer tablet windows. */
html.ipad.standalone #tabs {
  bottom:calc(0px - var(--ipad-shell-extra,0px))!important;
}
/* Touch devices retain the previously requested 3 mm dock gap. */
@media (max-width:900px), (pointer:coarse) {
  html.ipad.standalone #tabs {
    bottom:calc(3mm - var(--ipad-shell-extra,0px))!important;
  }
}
/* The Play tab has a more specific landscape dock rule (v94.26).
   Compensate that dock by the same measured iPad-only amount. */
@media (orientation:landscape) and (min-width:560px) {
  html.ipad.standalone body:not(.vr-fullview) #room[data-tab="play"] #tabs {
    bottom:calc(3mm - var(--ipad-shell-extra,0px))!important;
  }
}

/* v94.39: Host-only Open Mic for All, with all existing Play card extras
   compacted into one row. Does not modify the bottom tab navigation. */
#room .xtra .xrow{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:clamp(2px,.7vw,7px)!important}
#room[data-tab=play] .xtra .pill{
  --pill-size:clamp(31px,min(10.5vw,6svh),42px);
  flex:0 0 var(--pill-size)!important;
  width:var(--pill-size)!important;
  max-width:var(--pill-size)!important;
  height:var(--pill-size)!important;
  min-height:0!important;
}
#room .xtra #gv-toggle{--g:#7af2dc;touch-action:manipulation}
#room .xtra #gv-toggle.gv-speaking{--g:#3affae}
#room .xtra #gv-toggle:focus-visible{outline:2px solid #85ffe9;outline-offset:3px}
/* v94.42: Stable, single-size mic popover. No layout changes to the player,
   no animated resizing or hover/press movement on its anchor button. */
#room .xtra #gv-toggle,
#room .xtra #gv-toggle:hover,
#room .xtra #gv-toggle:active {
  transform:none!important;transition:none!important;
}
#gv-chip,#gv-panel{position:fixed;z-index:65;color:#fff;font-family:inherit}
#gv-chip[hidden],#gv-panel[hidden]{display:none!important}
#gv-chip{top:calc(var(--sat,env(safe-area-inset-top,0px)) + 76px);right:12px;display:flex;align-items:center;gap:5px;
 min-height:36px;padding:4px 10px;border-radius:999px;border:1px solid rgba(128,242,224,.45);
 background:rgba(41,20,100,.92);box-shadow:0 5px 18px rgba(14,6,44,.4);font-size:.69rem;font-weight:650;backdrop-filter:none}
#gv-chip svg{height:18px;width:18px;color:#84ffe1}
#gv-panel{
 right:auto;bottom:auto;box-sizing:border-box;width:200px;height:94px;
 max-width:calc(100vw - 14px);overflow:hidden;display:flex;flex-direction:column;
 align-items:stretch;gap:5px;padding:7px 7px 6px;
 border:1px solid rgba(182,151,255,.4);border-radius:15px;
 background:linear-gradient(155deg,#3a2182,#25134e);
 box-shadow:0 7px 18px rgba(12,4,45,.38),inset 0 1px 0 rgba(255,255,255,.12);
 /* Solid glass styling avoids costly backdrop re-renders on mobile WebKit. */
 backdrop-filter:none;-webkit-backdrop-filter:none;
 contain:layout style;will-change:auto;
}
#gv-panel .gv-mini-head{height:13px;flex:none;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:700;line-height:1;white-space:nowrap}
#gv-panel .gv-dot{display:inline-block;width:6px;height:6px;flex:0 0 6px;background:#51eea8;border-radius:50%;box-shadow:0 0 5px #51eea8}
#gv-panel #gv-count{font-size:9px;font-weight:500;color:#cfc2e5}
#gv-panel .gv-actions{height:46px;flex:none;display:flex;gap:5px;align-items:stretch;justify-content:center}
#gv-panel .gv-actions button{
 flex:1 1 0;min-width:0;height:46px;min-height:46px;display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:2px;
 border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.09);
 color:#fff;font-family:inherit;font-weight:650;font-size:10px;line-height:1;padding:4px 2px;
 touch-action:manipulation;transition:background-color .1s ease,border-color .1s ease;
 transform:none!important;
}
#gv-panel .gv-actions button:active{transform:none!important;background:rgba(255,255,255,.17)}
#gv-panel .gv-actions button[hidden]{display:none!important}
#gv-panel .gv-actions button svg{display:block;width:18px;height:18px;flex:none}
#gv-panel #gv-join{background:linear-gradient(115deg,#ff855d,#ef319c 65%,#a22cf2);border:0}
#gv-panel #gv-mute[aria-pressed=true]{background:rgba(255,176,88,.23);border-color:rgba(255,182,91,.55)}
#gv-panel #gv-leave{background:rgba(255,76,121,.16)}
#gv-panel #gv-end{background:rgba(255,76,121,.22);border-color:rgba(255,123,160,.4)}
#gv-panel button:focus-visible,#gv-chip:focus-visible{outline:2px solid #9cffe7;outline-offset:2px}
#gv-status{
 height:12px;flex:none;margin:0;display:block;white-space:nowrap;overflow:hidden;
 text-overflow:ellipsis;font-size:9px;line-height:12px;color:#decef5;text-align:center;
}
body.vr-fullview #gv-panel,body.vr-fullview #gv-chip{display:none!important}
/* Keep the pre-existing Previous icon precisely level with the six other
   circular pills; its transport-button sizing otherwise wins specificity. */
#room[data-tab=play] .xtra .xrow #xp{
  width:var(--pill-size)!important;height:var(--pill-size)!important;
  min-height:0!important;max-width:var(--pill-size)!important;
}

/* v94.44: Liked Songs only — same row/card dimensions, more title space.
   Keep image nodes stable in JS; pan long titles slowly without clipping text. */
.likes-list li{gap:7px}
.likes-list li .likes-title-clip{flex:1;min-width:0;overflow:hidden}
.likes-list li .likes-title-track{display:flex;width:max-content;align-items:center;gap:20px;white-space:nowrap;will-change:transform}
.likes-list li .likes-title-track b{display:block;flex:none;font-size:.77rem;font-weight:600;line-height:1.25;overflow:visible;text-overflow:clip;white-space:nowrap}
.likes-list li .likes-title-echo{display:none!important}
.likes-list li .likes-title-track.is-scrolling .likes-title-echo{display:block!important}
.likes-list li .likes-title-track.is-scrolling{animation:likes-title-pan var(--likes-duration,18s) linear infinite}
@keyframes likes-title-pan{0%,9%{transform:translateX(0)}100%{transform:translateX(calc(-1 * var(--likes-travel,0px)))}}
.likes-list li button:not(.unlike){padding:.3em .55em;font-size:.70rem}
@media(prefers-reduced-motion:reduce){
 .likes-list li .likes-title-track.is-scrolling{animation:none}
 .likes-list li .likes-title-track.is-scrolling .likes-title-echo{display:none!important}
 .likes-list li .likes-title-clip{overflow-x:auto;scrollbar-width:none}
}


/* v94.45: LIKED SONGS ONLY — keep the original thumbnail and 60px row,
   stack the compact slowly scrolling title ABOVE the Add/Request button. */
.likes-list li:not(.empty){
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 28px;
  grid-template-rows:20px 24px;
  gap:0 8px;
  align-items:center;
}
.likes-list li:not(.empty)>img{grid-column:1;grid-row:1 / span 2}
.likes-list li:not(.empty)>.likes-title-clip{grid-column:2;grid-row:1;min-width:0;width:100%;height:19px;overflow:hidden;align-self:center}
.likes-list li:not(.empty) .likes-title-track b{font-size:.66rem;line-height:19px;font-weight:600}
.likes-list li:not(.empty)>button[data-like]{
  grid-column:2;grid-row:2;justify-self:start;
  min-height:24px;height:24px;max-width:100%;padding:2px 10px;
  font-size:.63rem;line-height:18px;
}
.likes-list li:not(.empty)>button.unlike{grid-column:3;grid-row:1 / span 2;justify-self:center}

/* v94.56: Public Live Rooms only. The private home, existing room player,
   karaoke, and bottom navigation retain their exact previous styling. */
#explore-live.live-entry{display:flex;align-items:center;gap:11px;text-align:left;text-decoration:none;color:#fff;
 background:linear-gradient(130deg,rgba(30,22,103,.90),rgba(120,32,165,.67));
 border:1px solid rgba(210,164,255,.45);border-radius:18px;padding:9px 13px;min-height:58px;
 box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 22px rgba(39,11,104,.3)}
#explore-live .live-entry-icon{flex:none;width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,#ff518a,#a72aff);display:grid;place-items:center;font-size:21px;color:white}
#explore-live span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
#explore-live b{font-weight:800;font-size:.89rem}#explore-live small{font-size:.67rem;color:#d9cafa;line-height:1.2}
#explore-live .live-entry-arrow{font-size:1.65rem;font-weight:400;color:#e6b8ff}
#explore-live:focus-visible{outline:2px solid #a5f3fc;outline-offset:2px}
main#live-hub{display:block;position:relative;isolation:isolate;max-width:1120px;width:100%;height:auto;min-height:100dvh;
 margin:0 auto;padding:max(26px,env(safe-area-inset-top)) clamp(14px,4vw,32px) max(70px,env(safe-area-inset-bottom));
 text-align:left;overflow:visible;color:#fff;box-sizing:border-box}
body:has(#live-hub:not([hidden])){overflow-x:hidden;overflow-y:auto}
main#live-hub *{box-sizing:border-box}
.live-head{display:flex;gap:16px;align-items:flex-start;margin:10px 0 21px}
.live-back{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid rgba(255,255,255,.24);
 border-radius:14px;background:rgba(255,255,255,.09);font-size:30px;color:#fff;text-decoration:none;line-height:1}
.live-heading{min-width:0}.live-kicker{font-weight:800;letter-spacing:.15em;font-size:10px;color:#b4f7c4;display:inline-flex;gap:7px;align-items:center}
.live-led{display:inline-block;flex:none;width:8px;height:8px;background:#91f153;border-radius:50%;box-shadow:0 0 12px #88ff63;animation:live-breath 1.8s ease-in-out infinite}
@keyframes live-breath{50%{opacity:.5;box-shadow:0 0 3px #88ff63}}
main#live-hub h1{font-size:clamp(1.6rem,5vw,2.7rem);letter-spacing:-.035em;line-height:1.16;margin:4px 0 5px;
 background:none;color:#fff;-webkit-background-clip:initial;background-clip:initial}
.live-gradient-dot{color:#ff55aa}.live-heading p,.live-create p,.live-dir-head p{margin:0;color:#c7bae6;font-size:.79rem;line-height:1.4}
.live-create{padding:clamp(14px,3vw,22px);border:1px solid rgba(255,255,255,.17);border-radius:23px;
 background:linear-gradient(125deg,rgba(99,47,190,.65),rgba(54,17,110,.92)),radial-gradient(circle at right,#ff32994f,transparent 60%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 14px 30px rgba(10,2,50,.25);margin-bottom:29px}
.live-create-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}
.live-create-top h2,.live-dir-head h2{font-weight:800;color:#fff;font-size:1.04rem;margin:0 0 2px}
.live-create-badge{font-size:.59rem;font-weight:800;letter-spacing:.13em;padding:5px 8px;border-radius:6px;background:#b83afb;color:#fff}
.live-label{font-size:.68rem;font-weight:700;display:block;margin-bottom:6px;color:#eee1ff}
#live-room-title{display:block;width:100%;min-height:42px;border:1px solid rgba(255,255,255,.2);border-radius:12px;
 background:#12093477;padding:0 12px;color:white;outline:0;font-size:14px;text-transform:none}
#live-room-title:focus{border-color:#ff68c9;box-shadow:0 0 0 2px #ff53c025}
.live-create-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:11px;align-items:center;flex-wrap:wrap}
#live-create-btn{min-height:42px;border:none;background:linear-gradient(115deg,#ff4b89,#b52bea);font-size:.79rem;font-weight:800;padding:7px 18px;color:#fff;white-space:nowrap}
#live-create-error{color:#ffb4c4;font-size:.72rem;min-height:0}
.live-dir-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.live-dir-head h2{font-size:1.18rem}.live-dir-head h2 span{display:inline-grid;place-items:center;margin-left:5px;border-radius:7px;padding:3px 7px;background:#ffffff22;font-size:.78rem;color:#ddc9ff}
#live-refresh{font-size:1.3rem;width:36px;height:36px;min-height:36px;padding:0;background:#ffffff10;border-color:#ffffff24}
.live-searchrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}
#live-search{border-radius:13px;background:#1f0b51b8;border:1px solid #ffffff2b;padding:10px 12px;min-height:42px;width:200px;flex:1 1 180px;color:#fff;text-transform:none;font-size:.81rem;outline:none}
.live-filters{display:flex;gap:5px}.live-filters button{min-height:35px;padding:6px 11px;border-radius:10px;font-size:.72rem;background:#ffffff10;border-color:#ffffff24}
.live-filters button.active{background:#8e3bea;color:white;border-color:#b88eff}
.live-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.live-card{display:flex;min-height:166px;gap:0;border:1px solid rgba(255,255,255,.19);border-radius:19px;background:linear-gradient(135deg,#351371dd,#210c4ced);overflow:hidden;box-shadow:0 10px 22px #13032955;min-width:0}
.live-art{position:relative;align-self:stretch;width:35%;min-width:110px;flex:none;background:linear-gradient(140deg,#5126a3,#db3d9a);overflow:hidden}
.live-art img{width:100%;height:100%;object-fit:cover;display:block}
.live-art-shade{position:absolute;inset:0;background:linear-gradient(180deg,#13052970,transparent 55%,#1305296a)}
.live-art-status{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:6px;font-size:.58rem;font-weight:900;letter-spacing:.08em;
 background:#21092eab;border:1px solid #ffffff40;border-radius:9px;padding:6px 7px;color:white}
.live-art-status .live-led{width:5px;height:5px}
.live-card-body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;padding:11px}
.live-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}
.live-type{color:#d8abff;font-size:.58rem;font-weight:800;letter-spacing:.08em}
.live-members{color:#d9d0f6;font-size:.61rem;white-space:nowrap}
.live-card h3{font-size:.9rem;font-weight:800;line-height:1.2;margin:1px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#fff}
.live-host{color:#baabd8;margin:0;font-size:.63rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-song{display:flex;align-items:center;gap:7px;border-top:1px solid #ffffff17;padding-top:7px;margin-top:auto;min-width:0}
.live-eq{display:flex;align-items:center;gap:2px;height:16px;flex:none}.live-eq i{width:2px;height:7px;background:#ff6ca4;border-radius:3px;animation:live-eq 1s ease-in-out infinite alternate}
.live-eq i:nth-child(2){animation-delay:.3s;height:13px}.live-eq i:nth-child(3){animation-delay:.7s;height:9px}
@keyframes live-eq{to{height:3px}}
.live-song-text{min-width:0;display:grid;gap:1px}.live-song-text b{font-size:.69rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.live-song-text small{font-size:.59rem;color:#bbaed4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-card-foot{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:5px}
.live-queue{font-size:.58rem;color:#dbcded;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.live-card-foot button{border:0;min-height:34px;padding:5px 11px;background:linear-gradient(110deg,#ff4787,#a22ceb);border-radius:10px;font-weight:800;font-size:.71rem;white-space:nowrap;flex:none}
.live-list-message,.live-empty{grid-column:1/-1;text-align:center;padding:28px 16px;background:#270d5c89;border:1px dashed #ffffff2a;border-radius:18px;margin:0;color:#c6b6e3;font-size:.8rem}
.live-empty{display:grid;gap:6px;justify-items:center}.live-empty span{font-size:2rem;color:#ff79b1}.live-empty b{color:white;font-size:.95rem}.live-empty p{margin:0}
.live-list-footer{font-size:.66rem;color:#baa8d5;text-align:center;margin:16px auto}
/* Public-only entry controls within the original Room tab. */
#live-room-settings{padding:12px;border:1px solid rgba(177,115,255,.28);border-radius:16px;background:linear-gradient(145deg,#51218e8c,#21103b8a);margin-bottom:15px;text-align:left}
#live-room-settings .live-room-settings-head{display:flex;gap:7px;align-items:center;font-size:.79rem;margin-bottom:10px}
#live-room-settings .live-visit-hub{margin-left:auto;text-decoration:none;color:#dca8ff;font-size:.69rem}
#live-room-settings label{font-size:.67rem;color:#d5c5f0;display:block;margin-bottom:5px}
.live-room-rename{display:flex;gap:7px}.live-room-rename input{flex:1;min-width:0;min-height:38px;font-size:13px;text-transform:none}
.live-room-rename button{min-height:38px;padding:5px 13px;font-size:.75rem;background:#923af0}
#live-entry-toggle{width:100%;border-radius:12px;padding:9px 10px;margin-top:11px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:9px;min-height:43px;font-weight:700;font-size:.75rem}
#live-entry-toggle strong{color:#b9ff9c;font-size:.69rem}#live-entry-toggle.closed strong{color:#ffd28d}
.live-access-hint,#live-room-viewer-text{color:#cfc0e9;font-size:.69rem;line-height:1.4;margin:7px 0 5px}
#live-request-wrap{margin-top:12px;border-top:1px solid #ffffff2c;padding-top:10px}
#live-request-wrap h4{font-size:.78rem;margin:0 0 6px}#live-request-count{color:#e59fff}
.live-waiter{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 0;border-bottom:1px solid #ffffff19}
.live-waiter-name{display:flex;align-items:center;gap:7px;min-width:0}.live-waiter-name b{font-size:.73rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-waiter-avatar{background:#7145b8;width:29px;height:29px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:.71rem}
.live-waiter-actions{display:flex;gap:5px}.live-waiter-actions button{font-size:.65rem;min-height:32px;padding:4px 8px;border-radius:9px}
.live-waiter-actions button:first-child{background:#18854f}.live-waiter-actions button:last-child{background:#7c305c}
@media(max-width:720px){main#live-hub{padding-left:14px;padding-right:14px}.live-list{grid-template-columns:1fr}.live-card{min-height:150px}.live-art{width:32%;min-width:105px}}
@media(max-width:380px){.live-searchrow{gap:7px}.live-filters{width:100%}.live-filters button{flex:1}.live-card-body{padding:9px}.live-art{min-width:96px;width:32%}.live-card-foot button{padding:5px 8px}.live-card h3{font-size:.83rem}}
@media(prefers-reduced-motion:reduce){.live-led,.live-eq i{animation:none}}
/* The original room app intentionally locks document scrolling. The new
   discovery route is a long feed and must scroll independently of that rule. */
html:has(#live-hub:not([hidden])){height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
html:has(#live-hub:not([hidden])) body:not(.in-room){height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:visible!important}
@media(max-height:680px){#home:has(#explore-live){overflow-y:auto!important;align-content:start!important}}
/* Optional compact queue peek. Only shown when requested; preserves card layout. */
.live-peek-button{background:none;border:0;min-height:30px;padding:4px 0;border-radius:6px;text-align:left;color:#d8cbe9;
 font-size:.59rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.live-peek-button span{font-size:.78rem}
.live-next-tracks{border-top:1px solid #ffffff20;padding-top:6px;margin-top:4px;display:grid;gap:3px;min-width:0}
.live-next-tracks[hidden]{display:none!important}
.live-next-tracks b{font-size:.61rem;color:#dbacff;text-transform:uppercase;letter-spacing:.07em}
.live-next-tracks p{font-size:.63rem;color:#e8daff;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Keep the optional queue-peek control visually secondary; the Join/Request
   action must never be squeezed off a narrow iPhone card. */
.live-card-foot .live-peek-button{flex:1 1 0;min-width:0;min-height:28px;padding:3px 0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 font-weight:600;font-size:.59rem;color:#d6c7eb;text-align:left;border-radius:4px}
.live-card-foot [data-live-join]{flex:0 0 auto;min-width:64px;padding:5px 9px}

/* v94.57: Public Live Rooms only — slender, draggable glass chat drawer.
   An isolated fixed overlay: no room/player dimensions or navigation change. */
#live-chat-shell{position:fixed;inset:0;z-index:58;pointer-events:none;isolation:isolate}
#live-chat-shell[hidden],body.vr-fullview #live-chat-shell{display:none!important}
#live-chat-tab{pointer-events:auto;position:absolute;right:var(--sar,env(safe-area-inset-right,0px));left:auto;top:46%;
 width:23px;height:66px;padding:0;border:1px solid rgba(236,197,255,.38);
 border-right:0;border-radius:14px 0 0 14px;
 background:linear-gradient(155deg,rgba(102,55,182,.72),rgba(30,14,69,.8));
 color:#f7eaff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;
 box-shadow:0 2px 14px #13072b59,inset 0 1px 0 #ffffff36;
 backdrop-filter:none;-webkit-backdrop-filter:none;
 touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;
 transition:background-color .15s ease;z-index:2}
#live-chat-tab:active{cursor:grabbing}
#live-chat-tab:focus-visible{outline:2px solid #cb8fff;outline-offset:2px}
.live-chat-chevron{width:17px;height:19px;flex:none;transition:transform .15s ease}
.live-chat-left #live-chat-tab{left:var(--sal,env(safe-area-inset-left,0px));right:auto;border-left:0;border-right:1px solid rgba(236,197,255,.38);border-radius:0 14px 14px 0}
.live-chat-left .live-chat-chevron{transform:rotate(180deg)}
.live-chat-open.live-chat-right .live-chat-chevron{transform:rotate(180deg)}
.live-chat-open.live-chat-left .live-chat-chevron{transform:rotate(0deg)}
.live-chat-dots{height:11px;display:flex;align-items:center;justify-content:center;gap:2px;opacity:.55}
.live-chat-dots i{display:block;width:3px;height:3px;background:#e7c0ff;border-radius:50%}
.live-chat-unread .live-chat-dots{opacity:1}
.live-chat-unread .live-chat-dots i{background:#6dffbf;box-shadow:0 0 6px #60fac0;animation:live-chat-typing .85s ease-in-out infinite}
.live-chat-unread .live-chat-dots i:nth-child(2){animation-delay:.14s}
.live-chat-unread .live-chat-dots i:nth-child(3){animation-delay:.28s}
@keyframes live-chat-typing{0%,60%,100%{transform:translateY(0);opacity:.6}30%{transform:translateY(-4px);opacity:1}}
#live-chat-panel{pointer-events:auto;position:absolute;right:calc(27px + var(--sar,env(safe-area-inset-right,0px)));left:auto;
 bottom:calc(113px + var(--sab,env(safe-area-inset-bottom,0px)));
 width:min(300px,calc(100vw - 55px));height:min(48dvh,418px);
 max-height:calc(100dvh - 165px - var(--sat,0px));min-height:185px;
 display:flex;flex-direction:column;overflow:hidden;
 border:1px solid rgba(228,196,255,.32);border-radius:20px;
 background:linear-gradient(160deg,rgba(67,25,120,.81),rgba(24,9,56,.85));
 color:#f7edff;box-shadow:0 12px 33px #10052583,inset 0 1px 0 #ffffff35;
 backdrop-filter:none;-webkit-backdrop-filter:none;
 animation:live-chat-rise .16s ease-out both}
#live-chat-panel[hidden]{display:none!important}
.live-chat-left #live-chat-panel{right:auto;left:calc(27px + var(--sal,env(safe-area-inset-left,0px)))}
@keyframes live-chat-rise{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.live-chat-head{position:relative!important;flex:none!important;display:flex!important;align-items:center!important;
 gap:7px!important;min-height:42px!important;padding:8px 10px!important;margin:0!important;
 background:rgba(255,255,255,.035)!important;border-bottom:1px solid rgba(255,255,255,.13)!important}
.live-chat-head-icon{width:24px;height:24px;flex:none;border-radius:10px;display:grid;place-items:center;
 font-size:.72rem;color:#94ffd4;background:linear-gradient(125deg,#6849b7,#4b225e)}
.live-chat-head>span:nth-child(2){display:grid;gap:1px;min-width:0;flex:1}
.live-chat-head b{font-size:.76rem;line-height:1.05}
.live-chat-head small{font-size:.55rem;color:#c9b8de}
#live-chat-close{width:26px;height:26px;padding:0;border-radius:50%;color:#f4e4ff;
 background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.15);font-size:19px;line-height:1;flex:none}
#live-chat-feed{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 -webkit-overflow-scrolling:touch;padding:10px 8px 9px;display:flex;flex-direction:column;
 gap:7px;scrollbar-width:thin;scrollbar-color:#986bc088 transparent;
 mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 100%);
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 100%)}
#live-chat-feed.scrolled-top{mask-image:none;-webkit-mask-image:none}
.live-chat-empty{margin:auto;text-align:center;font-size:.69rem;color:#cfbce6;opacity:.84;padding:16px}
.live-chat-message{display:flex;gap:6px;align-items:flex-end;min-width:0;flex:none}
.live-chat-enter{animation:live-chat-enter .2s ease-out both}
@keyframes live-chat-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.live-chat-avatar{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;
 background:linear-gradient(145deg,var(--chat-accent,#b081ff),#45236b);
 color:white;font-size:.61rem;font-weight:800;box-shadow:0 0 0 1px #ffffff49}
.live-chat-bubble{position:relative;min-width:0;max-width:calc(100% - 32px);padding:6px 8px 7px;
 background:linear-gradient(125deg,#ffffff22,#c8abff0f);
 border:1px solid rgba(235,211,255,.22);border-radius:11px 11px 11px 3px;
 box-shadow:inset 0 1px 0 #ffffff1c;overflow-wrap:anywhere}
.live-chat-own .live-chat-bubble{background:linear-gradient(130deg,#a95beb38,#e651ac22)}
.live-chat-meta{display:flex;gap:6px;align-items:baseline;min-width:0;margin-bottom:2px;padding-right:12px}
.live-chat-meta b{font-size:.59rem;font-weight:800;color:#f5dcff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-chat-meta time{font-size:.49rem;color:#ceb8e1;flex:none;white-space:nowrap}
.live-chat-bubble p{margin:0;padding:0;color:#f8f1ff;font-size:.67rem;line-height:1.38;white-space:pre-wrap}
.live-chat-delete{position:absolute;right:3px;top:3px;width:16px;height:16px;min-height:0;padding:0;
 font-size:12px;color:#e4c6ed;background:transparent;border:0;opacity:.55;line-height:1}
.live-chat-delete:focus-visible,.live-chat-delete:hover{opacity:1}
.live-chat-compose{display:flex;gap:5px;align-items:center;flex:none;margin:0;padding:7px 8px 6px;
 background:rgba(12,5,33,.32);border-top:1px solid rgba(255,255,255,.13)}
#live-chat-input{flex:1;min-width:0!important;width:auto!important;min-height:32px!important;height:32px!important;
 background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.18)!important;
 border-radius:11px!important;padding:4px 9px!important;font-size:12px!important;color:white!important;
 box-shadow:none!important;outline:none}
#live-chat-input::placeholder{color:#dfc6e5;font-size:11px;opacity:.75}
#live-chat-input:focus{border-color:#b985fd!important}
#live-chat-send{display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:0;padding:0;
 border-radius:11px;border:1px solid #e7b6ff70;
 color:white;background:linear-gradient(135deg,#fc548d,#9f32e9);box-shadow:0 4px 12px #bb2fa833}
#live-chat-send svg{width:15px;height:15px}
.live-chat-error{flex:none;min-height:0;margin:0;padding:0 10px;color:#ffd2a7;font-size:.57rem}
.live-chat-error:not(:empty){padding:2px 10px 6px}
@media(orientation:landscape) and (max-height:550px){
 #live-chat-tab{top:42%;height:54px}
 #live-chat-panel{bottom:calc(10px + var(--sab,0px));height:min(78dvh,328px);
  max-height:calc(100dvh - 42px);width:min(292px,calc(100vw - 70px))}
}
@media(max-width:370px){#live-chat-panel{width:calc(100vw - 53px);border-radius:16px}}
html.apk #live-chat-panel,html.apk #live-chat-tab{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(prefers-reduced-motion:reduce){
 .live-chat-unread .live-chat-dots i,#live-chat-panel,.live-chat-enter{animation:none}
 .live-chat-chevron{transition:none}
}

/* v94.59: public live-room approval notice, ONLY on the existing Room tab. */
#tabs button[data-t="room"] #live-room-requests-badge{
  position:absolute;top:-9px;right:calc(50% - 29px);z-index:2;
  display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;
  border-radius:999px;background:linear-gradient(130deg,#ff497e,#ec2b79);
  border:1px solid rgba(255,255,255,.6);box-shadow:0 3px 10px #13002694;
  font-size:10px!important;font-weight:800!important;line-height:1!important;
  color:#fff!important;margin:0!important;white-space:nowrap;
}
#tabs button[data-t="room"] #live-room-requests-badge[hidden]{display:none!important}
.live-approval-header{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:8px}
.live-approval-header h4{margin:0!important;font-size:.77rem}
#live-approve-all{border:1px solid #65e3b38a;background:#19785288;color:#e9fff7;
  border-radius:9px;padding:6px 10px;min-height:31px;font-size:.67rem;font-weight:750;white-space:nowrap}
#live-approve-all:disabled{opacity:.55;pointer-events:none}
#live-approve-all[hidden]{display:none!important}

/* v94.61 — Live Rooms directory design refresh, strictly scoped to #live-hub.
   All join/create hooks, room permissions, playback and private-room styles stay intact. */
#live-hub{
  --live-line:rgba(229,206,255,.15);
  --live-ink:#f8f3ff;
  --live-muted:#b5a6cf;
  max-width:1080px;
  padding:calc(max(18px,env(safe-area-inset-top)) + 3px) clamp(13px,3.3vw,28px) calc(44px + env(safe-area-inset-bottom));
  font-family:'Poppins',system-ui,sans-serif;
}
#live-hub .live-head{align-items:center;gap:12px;margin:2px 0 17px;min-width:0}
#live-hub .live-back{width:36px;height:36px;border-radius:12px;flex:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  background:rgba(98,64,152,.17);border:1px solid rgba(234,206,255,.17);transition:background .15s ease}
#live-hub .live-back:hover{background:rgba(135,91,193,.27)}
#live-hub .live-heading{flex:1;min-width:0}
#live-hub .live-kicker{gap:6px;letter-spacing:.15em;font-size:9px;color:#c9acfc;font-weight:800}
#live-hub .live-kicker .live-led{width:6px;height:6px;background:#81f0b1;box-shadow:0 0 9px #71e6a6}
#live-hub h1{font-family:'Sora','Poppins',sans-serif;font-size:clamp(1.25rem,3.8vw,1.9rem);line-height:1.2;letter-spacing:-.045em;margin:4px 0 3px;font-weight:800}
#live-hub .live-heading p{font-size:.7rem;line-height:1.4;color:var(--live-muted)}
#live-hub .live-head-mark{display:inline-flex;align-items:center;gap:7px;flex:none;padding:7px 10px;border-radius:999px;
  font-size:.59rem;letter-spacing:.12em;font-weight:800;border:1px solid rgba(255,141,205,.27);background:rgba(182,53,142,.13);color:#ffafce}
#live-hub .live-head-wave{display:flex;align-items:center;gap:2px;height:12px}
#live-hub .live-head-wave i{display:block;width:2px;height:5px;background:#ff79b7;border-radius:5px;animation:live-eq .88s ease-in-out infinite alternate}
#live-hub .live-head-wave i:nth-child(2){height:10px;animation-delay:.23s}
#live-hub .live-head-wave i:nth-child(3){height:7px;animation-delay:.5s}
#live-hub .live-create{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);align-items:center;column-gap:20px;
  margin:0 0 24px;padding:13px 15px;border-radius:17px;overflow:visible;
  background:linear-gradient(115deg,rgba(94,49,165,.45),rgba(47,28,101,.58) 65%,rgba(122,34,95,.22));
  border:1px solid rgba(226,178,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 8px 25px rgba(17,6,50,.15)}
#live-hub .live-create-top{margin:0;gap:10px;min-width:0;justify-content:flex-start}
#live-hub .live-create-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;color:#fff;border-radius:11px;
  background:linear-gradient(145deg,#ea54a7,#8f4bf8);box-shadow:0 5px 16px #b8328a37}
#live-hub .live-create-copy{min-width:0;flex:1}
#live-hub .live-create-top h2{font-family:'Sora','Poppins',sans-serif;font-size:.82rem;letter-spacing:-.025em;margin:0 0 2px;line-height:1.3}
#live-hub .live-create-top p{font-size:.65rem;color:#cdbbe3;line-height:1.3}
#live-hub .live-create-badge{color:#f3d3ff;border:1px solid rgba(233,165,255,.2);background:rgba(148,72,193,.18);
  font-size:.52rem;padding:4px 6px;border-radius:7px;letter-spacing:.1em}
#live-hub #live-create-form{display:flex;align-items:center;gap:7px;min-width:0;position:relative}
#live-hub .live-create-field{flex:1;min-width:0;position:relative}
#live-hub .live-label{position:absolute;z-index:1;top:6px;left:11px;font-size:.52rem;color:#ab9bce;font-weight:700;letter-spacing:.09em;pointer-events:none;margin:0}
#live-hub #live-room-title{height:43px;min-height:43px;line-height:20px;border-radius:11px;background:rgba(15,9,39,.64);
  padding:16px 44px 3px 10px;font-size:12px;border:1px solid rgba(222,192,255,.2);box-shadow:none}
#live-hub #live-room-title::placeholder{color:#8777a9;opacity:1}
#live-hub .live-name-limit{position:absolute;right:9px;top:50%;transform:translateY(-50%);
  pointer-events:none;font-size:.48rem;color:#9281b7;white-space:nowrap;font-weight:800;letter-spacing:.025em}
#live-hub .live-create-foot{margin:0;flex:none}
#live-hub #live-create-btn{display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:43px;height:43px;padding:5px 14px;border-radius:11px;font-size:.73rem;line-height:1;
  background:linear-gradient(125deg,#ff538f,#b334e8);box-shadow:0 5px 15px #b63d9f2d;transition:filter .15s ease}
#live-hub #live-create-btn:hover{filter:brightness(1.08)}
#live-hub #live-create-btn:disabled{opacity:.7}
#live-hub #live-create-error{position:absolute;left:0;right:0;top:100%;font-size:.6rem;line-height:1.2;margin:3px 0 0;color:#ffb0ce}
#live-hub #live-create-error:empty{display:none}
#live-hub .live-directory{min-width:0}
#live-hub .live-dir-head{align-items:center;margin-bottom:12px;gap:12px}
#live-hub .live-dir-copy{min-width:0}
#live-hub .live-dir-eyebrow{display:flex;align-items:center;gap:6px;letter-spacing:.13em;font-size:.56rem;font-weight:800;color:#b29bde;margin-bottom:3px}
#live-hub .live-dir-eyebrow .live-led{width:5px;height:5px}
#live-hub .live-dir-head h2{font-family:'Sora','Poppins',sans-serif;font-size:1.09rem;letter-spacing:-.03em;margin:0 0 1px;display:flex;align-items:center;gap:7px}
#live-hub .live-dir-head h2 span{margin:0;border:1px solid rgba(204,157,255,.28);background:rgba(144,70,206,.25);
 color:#e8d8ff;min-width:22px;padding:2px 6px;border-radius:7px;font-size:.65rem}
#live-hub .live-dir-head p{font-size:.65rem;color:#a99dc6}
#live-hub .live-dir-actions{display:flex;align-items:center;gap:7px}
#live-hub .live-refresh-note{font-size:.59rem;color:#a896c7;white-space:nowrap}
#live-hub #live-refresh{width:32px;height:32px;min-height:32px;padding:0;display:grid;place-items:center;
  border-radius:10px;background:rgba(187,142,241,.1);border:1px solid var(--live-line);color:#e6d8fc;transition:background .16s ease}
#live-hub #live-refresh:hover{background:rgba(187,142,241,.19)}
#live-hub .live-searchrow{gap:10px;margin-bottom:12px;align-items:stretch;flex-wrap:nowrap}
#live-hub .live-searchbox{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 260px;
  padding:0 10px;border:1px solid rgba(232,204,255,.17);background:rgba(27,15,62,.76);border-radius:12px;color:#a88ccc;
  transition:border-color .16s ease}
#live-hub .live-searchbox:focus-within{border-color:#b46eff}
#live-hub #live-search{min-height:38px;height:38px;border:0;outline:0;box-shadow:none!important;background:transparent;
  padding:0;margin:0;flex:1 1 auto;width:100%;font-size:.72rem;min-width:0;border-radius:0}
#live-hub #live-search::placeholder{color:#9685b6;opacity:1}
#live-hub .live-filters{display:flex;gap:4px;align-items:center;border:1px solid rgba(230,201,255,.13);
  padding:3px;border-radius:12px;background:rgba(38,20,78,.6);min-width:0}
#live-hub .live-filters button{font-size:.65rem;min-height:31px;padding:5px 11px;border-radius:9px;
  background:transparent;border:0;color:#af9fc9;white-space:nowrap;box-shadow:none;transition:background .16s ease,color .16s ease}
#live-hub .live-filters button.active{color:#fff;background:linear-gradient(125deg,#8e51d8,#6b3fb1);box-shadow:0 2px 10px #3c146a50}
#live-hub .live-filters button:focus-visible,#live-hub [data-live-join]:focus-visible,
#live-hub #live-create-btn:focus-visible,#live-hub #live-refresh:focus-visible,
#live-hub .live-peek-button:focus-visible{outline:2px solid #edd1ff;outline-offset:2px}
#live-hub .live-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch}
#live-hub .live-card{min-height:151px;border-radius:15px;border:1px solid rgba(220,192,255,.17);min-width:0;
  background:linear-gradient(125deg,rgba(61,33,116,.94),rgba(37,20,78,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 7px 16px rgba(16,4,45,.15);
  transition:border-color .15s ease,box-shadow .15s ease}
#live-hub .live-card:hover{border-color:rgba(236,168,255,.37);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 10px 20px rgba(19,5,43,.26)}
#live-hub .live-art{width:31%;min-width:98px;max-width:145px;background:#4d247d}
#live-hub .live-art img{object-position:center}
#live-hub .live-art-shade{background:linear-gradient(180deg,rgba(18,6,41,.37),transparent 44%,rgba(18,6,41,.43))}
#live-hub .live-art-status{left:7px;top:7px;gap:5px;padding:4px 6px;border:1px solid rgba(255,255,255,.22);
  border-radius:7px;background:rgba(23,7,42,.72);font-size:.49rem;letter-spacing:.06em;backdrop-filter:none}
#live-hub .live-card-body{padding:10px 11px;gap:4px;min-width:0;justify-content:space-between}
#live-hub .live-card-top{gap:7px;min-height:12px;flex-wrap:nowrap}
#live-hub .live-type{font-size:.52rem;letter-spacing:.09em;color:#d8bbfa;white-space:nowrap}
#live-hub .live-members{font-size:.62rem;color:#ded1f3;background:rgba(209,183,255,.10);border-radius:7px;
  padding:1px 6px;white-space:nowrap}
#live-hub .live-card h3{font-family:'Sora','Poppins',sans-serif;line-height:1.24;font-size:.8rem;letter-spacing:-.018em;
  margin:1px 0 0;-webkit-line-clamp:2}
#live-hub .live-host{font-size:.57rem;color:#b2a1d0;line-height:1.3}
#live-hub .live-song{margin-top:auto;border-top:1px solid rgba(241,218,255,.1);padding-top:6px;gap:6px}
#live-hub .live-eq{height:15px;gap:2px}
#live-hub .live-eq i{background:#ff78ab}
#live-hub .live-song-text{gap:0}
#live-hub .live-song-text b{font-size:.66rem;color:#eee6ff;line-height:1.35}
#live-hub .live-song-text small{font-size:.55rem;color:#a89aca}
#live-hub .live-card-foot{margin-top:3px;gap:6px}
#live-hub .live-card-foot .live-peek-button{font-size:.54rem;color:#c5b0dd;min-height:31px;padding:3px 1px!important;
  text-overflow:ellipsis;min-width:0;line-height:1.2}
#live-hub .live-card-foot [data-live-join]{min-width:60px;min-height:31px;border-radius:9px;padding:5px 10px;
  border:1px solid rgba(255,255,255,.08);background:linear-gradient(120deg,#e74b97,#9e39df);font-size:.64rem;
  box-shadow:0 3px 10px rgba(129,29,142,.18)}
#live-hub .live-card-foot [data-live-join]:disabled{background:#604d78;opacity:.75}
#live-hub .live-next-tracks{padding:6px 2px 0;margin-top:1px;gap:2px}
#live-hub .live-next-tracks b{font-size:.55rem}
#live-hub .live-next-tracks p{font-size:.59rem}
#live-hub .live-list-message,#live-hub .live-empty{border-radius:16px;border:1px dashed rgba(220,186,252,.25);
  padding:32px 16px;background:rgba(66,33,112,.25)}
#live-hub .live-list-footer{display:flex;align-items:center;justify-content:center;gap:6px;color:#9f8abf;
  font-size:.6rem;margin:17px auto 6px;line-height:1.4}
@media(max-width:750px){
  #live-hub .live-create{grid-template-columns:1fr;gap:10px;margin-bottom:20px;padding:12px 13px}
  #live-hub .live-create-badge{margin-left:auto}
  #live-hub .live-list{grid-template-columns:1fr}
  #live-hub .live-art{width:31%;min-width:102px;max-width:142px}
}
@media(max-width:540px){
  #live-hub{padding-left:13px;padding-right:13px}
  #live-hub .live-head{gap:10px;margin:0 0 15px}
  #live-hub .live-head-mark{font-size:0;padding:7px 8px;gap:0}
  #live-hub .live-head-wave{width:12px}
  #live-hub .live-heading p{font-size:.66rem}
  #live-hub .live-searchrow{flex-wrap:wrap;gap:8px}
  #live-hub .live-searchbox{flex:1 1 100%;height:38px}
  #live-hub .live-filters{width:100%;justify-content:space-between}
  #live-hub .live-filters button{flex:1;padding:5px 8px}
  #live-hub .live-card{min-height:139px}
  #live-hub .live-art{min-width:102px;width:31%;max-width:130px}
  #live-hub .live-card-body{padding:9px 10px;gap:3px}
  #live-hub .live-refresh-note{display:none}
}
@media(max-width:355px){
  #live-hub .live-head{gap:7px}
  #live-hub .live-back{height:32px;width:32px}
  #live-hub h1{font-size:1.16rem}
  #live-hub .live-create{padding:10px}
  #live-hub .live-create-top{gap:7px}
  #live-hub .live-create-badge{font-size:.48rem}
  #live-hub #live-create-btn{padding:4px 10px}
  #live-hub .live-art{min-width:89px;width:32%}
  #live-hub .live-card-body{padding:8px;gap:2px}
  #live-hub .live-card h3{font-size:.72rem}
  #live-hub .live-card-foot [data-live-join]{padding:4px 7px;min-width:55px}
  #live-hub .live-card-foot .live-peek-button{font-size:.51rem}
}
@media(orientation:landscape) and (max-height:500px){
  #live-hub .live-head{margin-bottom:11px}
  #live-hub .live-create{margin-bottom:16px}
}
@media(prefers-reduced-motion:reduce){
  #live-hub .live-head-wave i{animation:none}
  #live-hub .live-card,#live-hub .live-filters button{transition:none}
}
html.apk #live-hub .live-art-status{backdrop-filter:none}
/* Override the base main/header rules only for this directory route. */
main#live-hub{padding-top:max(23px,env(safe-area-inset-top));padding-bottom:calc(42px + env(safe-area-inset-bottom))}
main#live-hub .live-head{padding:0}
main#live-hub h1{font-family:'Sora','Poppins',sans-serif;font-size:clamp(1.24rem,3.8vw,1.9rem);line-height:1.2;letter-spacing:-.04em;margin:4px 0 3px}
/* The legacy landing page applies !important 7vh top padding to all main
   elements. Keep its behavior elsewhere; remove it for the live directory. */
main#live-hub{padding-top:max(22px,var(--sat,env(safe-area-inset-top,0px)))!important}


/* v94.63 — public chat: featherweight semicircle dock, vertical + horizontal drag,\n   quieter glass drawer. These overrides cannot affect private rooms. */
#live-chat-tab{
  top:var(--live-chat-y,43%);transform:translateY(-50%);
  width:19px!important;height:55px!important;gap:1px!important;
  border-radius:999px 0 0 999px!important;
  border:1px solid rgba(237,204,255,.33)!important;border-right:0!important;
  background:linear-gradient(145deg,rgba(149,87,210,.46),rgba(41,16,86,.52))!important;
  box-shadow:-2px 2px 12px rgba(18,5,42,.18),inset 1px 0 rgba(255,255,255,.14)!important;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  opacity:.87;transition:opacity .45s ease,background-color .2s ease!important;
  touch-action:none;overscroll-behavior:none;
}
.live-chat-left #live-chat-tab{
  border-radius:0 999px 999px 0!important;
  border-right:1px solid rgba(237,204,255,.33)!important;border-left:0!important;
  box-shadow:2px 2px 12px rgba(18,5,42,.18),inset -1px 0 rgba(255,255,255,.14)!important;
}
.live-chat-chevron{width:13px!important;height:17px!important;stroke-width:2.5}
.live-chat-dots{height:8px!important;gap:2px!important}
.live-chat-dots i{width:2px!important;height:2px!important;box-shadow:none!important}
.live-chat-idle:not(.live-chat-unread):not(.live-chat-open) #live-chat-tab{opacity:.24}
.live-chat-idle.live-chat-unread:not(.live-chat-open) #live-chat-tab{opacity:.49}
.live-chat-unread:not(.live-chat-open) #live-chat-tab{opacity:.98;border-color:rgba(139,255,205,.45)!important}
.live-chat-unread .live-chat-dots i{animation-iteration-count:4!important}
.live-chat-open #live-chat-tab,#live-chat-tab:is(:hover,:focus-visible){opacity:1}
#live-chat-panel{
  top:var(--live-chat-panel-top,16%);bottom:auto!important;
  width:min(305px,calc(100vw - 54px))!important;
  height:min(48dvh,382px)!important;min-height:204px!important;
  max-height:calc(100dvh - 27px)!important;
  right:calc(23px + var(--sar,env(safe-area-inset-right,0px)))!important;
  border-radius:19px!important;border:1px solid rgba(218,189,255,.28)!important;
  background:linear-gradient(148deg,rgba(50,28,95,.81),rgba(24,13,59,.86))!important;
  box-shadow:0 12px 30px rgba(15,5,36,.42),inset 0 1px 0 rgba(255,255,255,.11)!important;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  contain:layout style;animation:live-chat-rise .17s ease-out both;
}
.live-chat-left #live-chat-panel{left:calc(23px + var(--sal,env(safe-area-inset-left,0px)))!important;right:auto!important}
.live-chat-head{min-height:45px!important;padding:9px 11px!important;gap:9px!important;
 background:rgba(255,255,255,.035)!important}
.live-chat-head-icon{width:25px;height:25px;border-radius:9px;
 background:linear-gradient(130deg,rgba(203,104,255,.35),rgba(114,78,217,.35));color:#c7ffdb}
.live-chat-head b{font-size:.81rem;font-weight:800;letter-spacing:-.01em}
.live-chat-head small{font-size:.59rem;opacity:.83}
#live-chat-close{
  width:24px;height:24px;min-height:0;padding:0;
  background:transparent!important;border:0!important;border-radius:4px!important;
  font-size:20px;color:rgba(251,235,255,.83);box-shadow:none!important;
}
#live-chat-close:hover,#live-chat-close:focus-visible{color:#fff;background:rgba(255,255,255,.09)!important}
#live-chat-feed{padding:11px 10px 12px;gap:9px;scrollbar-width:thin}
.live-chat-message{max-width:93%;align-self:flex-start;gap:6px;min-width:0}
.live-chat-own{align-self:flex-end;flex-direction:row-reverse}
.live-chat-avatar{width:21px;height:21px;box-shadow:0 0 0 1px rgba(255,255,255,.35);
 font-size:.56rem}
.live-chat-bubble{
  flex:1 1 auto;min-width:0;max-width:100%;padding:8px 10px 9px;
  border-radius:12px 12px 12px 4px;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(202,166,255,.07));
  border:1px solid rgba(239,221,255,.18);box-shadow:inset 0 1px rgba(255,255,255,.09);
}
.live-chat-own .live-chat-bubble{
  background:linear-gradient(130deg,rgba(160,80,235,.34),rgba(233,74,169,.19));
  border-color:rgba(241,191,255,.25);border-radius:12px 12px 4px 12px;
}
.live-chat-own .live-chat-meta{justify-content:flex-end}
.live-chat-meta{padding-right:0;gap:7px;margin-bottom:4px}
.live-chat-meta b{font-size:.60rem;max-width:135px;letter-spacing:.005em}
.live-chat-meta time{font-size:.51rem;opacity:.8}
.live-chat-bubble p{font-size:.69rem;line-height:1.42;overflow-wrap:anywhere}
.live-chat-delete{display:none!important} /* removal via long-press context menu */
.live-chat-message:focus-visible .live-chat-bubble{outline:1px solid #e4b0ff;outline-offset:2px}
.live-chat-compose{padding:8px 9px!important;gap:7px!important;background:rgba(13,5,34,.24)!important}
#live-chat-input{height:35px!important;min-height:35px!important;border-radius:12px!important;
 background:rgba(255,255,255,.075)!important;font-size:12px!important;padding:6px 11px!important;
 border:1px solid rgba(223,196,255,.2)!important}
#live-chat-input:focus{border-color:rgba(219,153,255,.65)!important}
#live-chat-send{
 width:35px;height:35px;border-radius:12px!important;min-height:0;
 background:linear-gradient(130deg,#f66ba7,#ac58ed)!important;
 border:1px solid rgba(255,221,249,.48)!important;
 box-shadow:0 2px 9px rgba(205,69,174,.24)!important;
 transition:transform .12s ease,filter .12s ease;
}
#live-chat-send svg{width:17px;height:17px}
#live-chat-send:hover{filter:brightness(1.12)}
#live-chat-send:active{transform:scale(.94)}
@media(max-width:370px){#live-chat-panel{width:calc(100vw - 54px)!important}}
@media(orientation:landscape) and (max-height:550px){
 #live-chat-panel{height:min(81dvh,320px)!important;max-height:calc(100dvh - 18px)!important}
}
html.apk #live-chat-panel,html.apk #live-chat-tab{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
@media(prefers-reduced-motion:reduce){
 #live-chat-tab{transition:none!important}
 #live-chat-send{transition:none}
}

/* v94.63 — Live Rooms discovery only: comfortable creator input on the right,\n   single search field, no obsolete Music/Karaoke filters. */
#live-hub .live-create{
 grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr);
 gap:18px;padding:17px 19px;border-radius:18px;margin-bottom:22px;
}
#live-hub .live-create-top{align-self:center}
#live-hub .live-create-top h2{font-size:.88rem}
#live-hub .live-create-top p{font-size:.68rem}
#live-hub #live-create-form{gap:10px;align-items:end}
#live-hub .live-create-field{
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;
 align-items:center;min-width:0;flex:1;
}
#live-hub .live-label{position:static;grid-column:1;top:auto;left:auto;margin:0;
 font-size:.6rem;letter-spacing:.09em;color:#e4cff9;line-height:1.3}
#live-hub .live-name-limit{position:static;grid-column:2;top:auto;right:auto;transform:none;
 color:#a996c6;font-size:.57rem;line-height:1.3}
#live-hub #live-room-title{
 grid-column:1/-1;width:100%;height:48px;min-height:48px;
 padding:10px 13px;border-radius:12px;font-size:.82rem;line-height:1.2;
 border-color:rgba(226,189,255,.3);background:rgba(19,10,53,.67);
}
#live-hub #live-room-title::placeholder{color:#aa93ca}
#live-hub #live-create-btn{height:48px;min-height:48px;min-width:100px;
 border-radius:12px;padding:10px 14px;font-size:.76rem}
#live-hub #live-create-error{top:100%;margin:4px 0 0}
#live-hub .live-searchrow{display:flex;flex-wrap:nowrap;gap:0;margin-bottom:12px}
#live-hub .live-searchbox{flex:1 1 100%;height:43px;border-radius:12px;padding:0 12px}
#live-hub #live-search{height:41px;min-height:41px;font-size:.75rem}
#live-hub .live-type{color:#d8b5f6}
/* Equalizer moves with GPU-friendly transforms rather than layout-changing bar height.\n   Only currently playing rooms animate. Idle/hidden/reduced-motion pages stay still. */
#live-hub .live-eq i{animation:none!important;transform-origin:center;transform:scaleY(1)}
#live-hub .live-card.is-playing .live-eq i{animation:vr-meter 1.25s ease-in-out infinite alternate!important}
#live-hub .live-card.is-playing .live-eq i:nth-child(2){animation-delay:.22s!important}
#live-hub .live-card.is-playing .live-eq i:nth-child(3){animation-delay:.44s!important}
#live-hub .live-head-wave i{animation:vr-meter 1.4s ease-in-out infinite alternate!important;transform-origin:center}
@keyframes vr-meter{to{transform:scaleY(.3)}}
.vr-live-hidden #live-hub .live-head-wave i,.vr-live-hidden #live-hub .live-card.is-playing .live-eq i,
.vr-live-hidden #live-hub .live-led,.vr-live-hidden .live-chat-dots i{animation-play-state:paused!important}
@media(max-width:750px){
 #live-hub .live-create{grid-template-columns:1fr;gap:12px;padding:14px 15px}
 #live-hub #live-create-form{display:flex;flex-wrap:nowrap;align-items:end;gap:9px}
 #live-hub #live-create-btn{min-width:94px}
}
@media(max-width:355px){
 #live-hub .live-create{padding:13px}
 #live-hub #live-create-form{gap:7px}
 #live-hub #live-room-title{font-size:.74rem}
 #live-hub #live-create-btn{min-width:77px;padding:8px 9px;font-size:.69rem}
 #live-hub .live-name-limit{font-size:.53rem}
}
@media(prefers-reduced-motion:reduce){
 #live-hub .live-head-wave i,#live-hub .live-card.is-playing .live-eq i{animation:none!important}
}

/* v94.65 — Live directory thermal/performance fix.
   The directory inherited seven full-viewport blurred, animated smoke layers
   (#fx) from the landing page, plus separate ambient orbs and rising notes.
   On a phone each moving blur can force large, continuous GPU rasterization.
   The directory has its own static gradient background, so never create or
   composite those unrelated landing-only effects while /live is visible. */
body:has(#live-hub:not([hidden])) #fx .smoke,
body:has(#live-hub:not([hidden])) .orb,
body:has(#live-hub:not([hidden])) .note{display:none!important}
/* v95.08: reuse only the lightweight entry decorations in Explore. */
body:not(.in-room):has(#live-hub:not([hidden])) #fx{
  display:block!important;position:fixed;inset:0;z-index:0;opacity:1;visibility:visible;
  pointer-events:none;overflow:hidden;transition:none!important;
}
body:not(.in-room):has(#live-hub:not([hidden])) #live-hub{z-index:1}
@media(prefers-reduced-motion:reduce){
  body:has(#live-hub:not([hidden])) #fx #stars span{animation:none!important;opacity:.6}
  body:has(#live-hub:not([hidden])) #fx #fnotes span{animation:none!important;opacity:0}
}
/* Fixed gradient attachment can require extra painting during long mobile
   directory scrolls; keep the same colours but scroll the background normally. */
body:has(#live-hub:not([hidden])){background-attachment:scroll}
/* Avoid perpetual animation ticks on touchscreen Live Rooms listings.
   Live state, artwork, counts, playback state, join actions and refresh remain
   unchanged; equalizer/LED bars retain their static drawn appearance. */
@media (hover:none) and (pointer:coarse){
 #live-hub .live-led,
 #live-hub .live-head-wave i,
 #live-hub .live-card.is-playing .live-eq i{animation:none!important;will-change:auto!important}
 /* Public Live Rooms only: keep the costly visualizer bars and pulsing ring
    stationary on touch devices, but let the record itself rotate, as in a
    private room. The vinyl uses the existing lightweight 2D keyframes below. */
 body:has(#live-chat-shell:not([hidden])) .viz i,
 body:has(#live-chat-shell:not([hidden])) .disc-btn::after{
   animation:none!important;will-change:auto!important
 }
 body:has(#live-chat-shell:not([hidden])) .disc{transform-style:flat!important}
 @media(prefers-reduced-motion:no-preference){
   body:has(#live-chat-shell:not([hidden])) #room[data-tab=play] .deck:not(.vid) .disc{
     animation:spinFlat 24s linear infinite;
   }
 }
 /* The chat is already backed by an opaque-enough gradient. Avoid a costly
    live backdrop blur while the video's surface is changing behind it. */
 body:has(#live-chat-shell:not([hidden])) #live-chat-tab,
 body:has(#live-chat-shell:not([hidden])) #live-chat-panel{
   -webkit-backdrop-filter:none!important;backdrop-filter:none!important
 }
}

/* v94.66: Transparent image wordmark on the landing page only. */
#home .hero-title.brand-image-title{display:block;width:100%;max-width:320px;margin:0 auto!important;padding:0;background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;filter:none!important;line-height:0}
#home .hero-title.brand-image-title img{display:block;width:100%;height:auto;max-height:62px;object-fit:contain;margin:0 auto;image-rendering:auto}

/* v94.67 — Live Room admission panel: compact, stable, scrollable moderation.
   Only the public-room settings are styled here. No tab/transport changes. */
#live-request-wrap{margin:0 0 12px;padding:11px;border:1px solid rgba(197,137,255,.29);border-radius:14px;background:linear-gradient(145deg,rgba(77,38,119,.83),rgba(35,18,68,.84))}
#live-approval-header h4{margin:0}
#live-request-wrap .live-approval-header{margin-bottom:9px}
#live-request-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;margin-left:4px;border-radius:999px;background:#a334cf;color:#fff;font-size:.7rem;font-weight:800}
#live-request-list{display:grid;gap:7px;max-height:min(34svh,240px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9865ca transparent}
#live-request-list .live-waiter{display:flex;min-width:0;gap:9px;align-items:center;padding:8px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:rgba(14,7,39,.48)}
#live-request-list .live-waiter-avatar{width:31px;height:31px;flex:none;border-radius:50%;background:linear-gradient(135deg,#8d5aff,#db448c);color:#fff;font-size:.72rem;font-weight:750}
#live-request-list .live-waiter-name{display:flex;flex-direction:column;align-items:flex-start;gap:1px;flex:1;min-width:0}
#live-request-list .live-waiter-name b{max-width:100%;font-size:.71rem;line-height:1.35}
#live-request-list .live-waiter-name small{color:#cdbce9;font-size:.59rem;line-height:1.25}
#live-request-list .live-waiter-actions{display:flex;flex:none;gap:5px}
#live-request-list .live-waiter-actions button{padding:5px 7px;min-height:30px;font-size:.63rem;border-radius:9px;color:#fff;border:1px solid rgba(255,255,255,.18);font-weight:750}
#live-request-list .live-waiter-actions button:first-child{background:#187c50}
#live-request-list .live-waiter-actions button:last-child{background:#754062}
#live-request-list .live-waiter-actions button:disabled{opacity:.55}
#live-room-approval-status:empty{display:none}
#live-room-approval-status{margin:6px 0 0;color:#ffd4a0;font-size:.68rem}
#live-room-settings .live-room-manage{min-width:0}
@media(max-width:360px){#live-request-list .live-waiter{padding:7px 6px;gap:6px}#live-request-list .live-waiter-actions{gap:4px}#live-request-list .live-waiter-actions button{padding:5px 6px;font-size:.6rem}}
/* Keep join/leave feedback consistently yellow, including on mobile WebKit. */
body.in-room #toasts .toast{background:linear-gradient(135deg,#ffdc64,#ffb72c)!important;color:#352300!important;opacity:1;border-color:#ffe8ab!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* v94.69 — iPhone Home Screen top alignment ONLY.
   The status bar is already excluded from the page with the default iOS
   status-bar mode. Do not let the room's historic `margin:auto` vertically
   center a fixed-height box when WebKit disagrees about 100vh vs the app
   viewport. Keep horizontal centering and all bottom/dock rules untouched. */
html.ios.standalone #room{margin-top:0!important;margin-bottom:0!important}

/* v94.70 — iPhone Home Screen edge-to-edge STATUS BAR BACKGROUND ONLY.
   With black-translucent, the purple shell paints behind the system clock,
   signal, Wi-Fi and battery. Certain iOS/WebKit versions still letterbox
   the root even with this mode; paint the root with the same purple header
   gradient so no dark, visually disconnected strip remains. No room/card,
   tab, button, or safe-area geometry is changed by this rule. */
html.ios.standalone{
  background:radial-gradient(90% 30% at 0 0,rgba(120,70,255,.35),transparent),
             linear-gradient(180deg,#4a1fc4,#2a1275 40%,#3a1a8f)!important;
}

/* v94.73 — iPad Home Screen /live page only. fit.js already measures the
   physical standalone tablet height and exposes --ipad-shell-height for the
   private-room shell. The directory route was still using only 100dvh, so a
   short iPad WebKit layout viewport left unused space along the bottom.
   Use the same measured screen height for the scrollable directory canvas,
   without extending its contents in Safari, Split View, Stage Manager,
   or changing the existing private-room and iPhone layouts. */
html.ipad.standalone:has(#live-hub:not([hidden])),
html.ipad.standalone:has(#live-hub:not([hidden])) body:not(.in-room),
html.ipad.standalone main#live-hub:not([hidden]){
  min-height:var(--ipad-shell-height,100dvh)!important;
}

/* v95.73: Public and private rooms share the existing non-interactive,
   full-size parked playboard (v94.62). The former public-only 2px stage
   collapsed the iframe's render tree during rotation and tab switching. */
/* Avoid the flexible pane's height:100% + flex:auto combination collapsing
   after an iPhone WebKit viewport/compositor resize while music is playing.
   This changes no colors, button sizes, or control order. */
html.ios body.in-room.vr-live-room #room:not([data-tab=play]) > aside{
  flex:1 1 0!important;min-height:0!important;height:auto!important;
  position:relative!important;
}
html.ios body.in-room.vr-live-room #room:not([data-tab=play]) > aside > .pane{
  flex:1 1 0!important;min-height:0!important;height:auto!important;
  overflow-y:auto!important;-webkit-overflow-scrolling:touch;
}

/* v94.76 — Explore Live Rooms directory ONLY: eliminate the unused bottom
   band on installed iPhone/iPad/Android and maintain ordinary browser scrolling.
   The previous v94.73 correction covered standalone iPad only, but the /live
   route has its own 100dvh/min-height and is also used on iPhone and Android.
   --vh and --gap are already measured by index.html and fit.js; iPad has its
   separately measured --ipad-shell-height. Do not touch the Room, Home or
   playback shells. Keep all content in the existing scrollable document. */
html:has(body > #live-hub:not([hidden])){
  --live-directory-screen-height:max(100dvh,calc(var(--vh,1dvh)*100));
  min-height:var(--live-directory-screen-height)!important;
  /* The root must be painted even in a system safe-area beyond the body. */
  background-color:#351680!important;
}
html.standalone:has(body > #live-hub:not([hidden])){
  --live-directory-screen-height:max(
    100dvh,100lvh,
    calc(var(--vh,1dvh)*100 + var(--gap,0px)),
    var(--ipad-shell-height,0px)
  );
}
html:has(body > #live-hub:not([hidden])) body:not(.in-room),
html:has(body > #live-hub:not([hidden])) main#live-hub:not([hidden]){
  min-height:var(--live-directory-screen-height)!important;
}

/* v94.77 — The single volume control shared by Private + Live Room Play
   cards. Slim, smooth-looking track and restrained thumb, with the existing
   large touch input area, volume handlers and page layout unchanged. */
#room .stage .ctl .vol #vol::-webkit-slider-runnable-track{
  height:4px!important;border-radius:999px;
  background:linear-gradient(90deg,#aa69fa 0%,#f15cac var(--p),rgba(255,255,255,.20) var(--p))!important;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.19)!important;
}
#room .stage .ctl .vol #vol::-webkit-slider-thumb{
  width:14px!important;height:14px!important;margin-top:-5px!important;
  border:2px solid rgba(255,255,255,.9)!important;
  background:#fef9ff!important;
  box-shadow:0 1px 5px rgba(0,0,0,.28),0 0 7px rgba(218,108,246,.18)!important;
}
#room .stage .ctl .vol #vol::-moz-range-track{
  height:4px!important;border-radius:999px;
  background:rgba(255,255,255,.20)!important;box-shadow:none!important;
}
#room .stage .ctl .vol #vol::-moz-range-progress{
  height:4px!important;border-radius:999px;
  background:linear-gradient(90deg,#aa69fa,#f15cac)!important;
}
#room .stage .ctl .vol #vol::-moz-range-thumb{
  width:14px!important;height:14px!important;box-sizing:border-box;
  border:2px solid rgba(255,255,255,.9)!important;border-radius:50%;
  background:#fef9ff!important;
  box-shadow:0 1px 5px rgba(0,0,0,.28),0 0 7px rgba(218,108,246,.18)!important;
}

/* v94.78 — iPad LANDSCAPE Play card only.
   The existing two-column tablet rule (v94.26) sets overflow-y:auto on
   .stage, making the whole vinyl/transport card scroll during swipe gestures.
   No scroll is needed in the normal iPad landscape layout. Clip decorative
   overflow instead of making the card a scrollport; its existing grid,
   aspect ratios, dock, portrait/phone styles and fullscreen video are intact.
   html.ipad is set by the existing fit.js for iPad and iPadOS desktop UA. */
@media (orientation:landscape) and (min-width:560px) {
  html.ipad body:not(.vr-fullview) #room[data-tab="play"] > .stage {
    overflow:clip!important;
    overscroll-behavior:none;
  }
}

/* v94.81: Room header label only. Private rooms have the requested yellow type;
   public Live Rooms retain their existing label colour and design. */
#room header .rt #room-type-label.private-room{color:#ffd44d}


/* v94.83: Live Room appreciation is not the liked-song heart and never appears
   in private rooms. Anchor to the unused lower-right padding of the player
   stage to keep it within thumb reach without moving media controls. */
#room .stage .live-room-like{
  position:absolute!important;right:12px;bottom:9px;z-index:15!important;
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  width:auto;min-width:58px;height:34px;min-height:34px!important;
  padding:5px 9px!important;border:1px solid rgba(255,255,255,.32);
  border-radius:999px;background:rgba(34,12,75,.82);color:#fff;
  font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;
  box-shadow:0 3px 12px rgba(15,4,49,.24);touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#room .stage .live-room-like svg{flex:none}
#room .stage .live-room-like.liked{color:#ffe0f2;border-color:rgba(255,148,204,.64);
  background:linear-gradient(130deg,rgba(206,43,135,.8),rgba(101,43,167,.88))}
#room .stage .live-room-like[hidden]{display:none!important}
#room .stage .live-room-like:disabled{opacity:1;cursor:default}
#room .stage .live-room-like:focus-visible{outline:2px solid #fff;outline-offset:2px}
#live-hub .live-card-top{gap:4px;flex-wrap:wrap}
#live-hub .live-card-likes{color:#ffe4f0;background:rgba(246,93,156,.14);
  border:1px solid rgba(249,143,191,.2);border-radius:7px;
  font-size:.58rem;font-weight:750;padding:1px 5px;line-height:1.5;
  white-space:nowrap;font-variant-numeric:tabular-nums}
#live-hub .live-card-top .live-members{margin-left:auto}
@media(max-width:380px){#live-hub .live-card-top{gap:3px}
  #live-hub .live-card-likes{font-size:.54rem;padding:1px 3px}}

/* v94.84: A recognizable, accessible ON/OFF admission switch for public
   Live Rooms only. Private-room controls and existing responsive layouts are
   untouched. The current status lives inside the switch; no extra blurb. */
#live-room-settings #live-entry-toggle{min-height:56px;padding:9px 13px;gap:12px;touch-action:manipulation}
#live-room-settings #live-entry-toggle .live-entry-copy{display:flex;min-width:0;flex:1;align-items:flex-start;flex-direction:column;gap:3px}
#live-room-settings #live-entry-toggle .live-entry-title{font-size:.76rem;line-height:1.35;font-weight:750;color:#fff}
#live-room-settings #live-entry-toggle strong{font-size:.7rem;font-weight:750;line-height:1.3;color:#b9ff9c}
#live-room-settings #live-entry-toggle.closed strong{color:#ffe09b}
#live-room-settings #live-entry-toggle .live-entry-switch{position:relative;flex:none;width:43px;height:24px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(40,22,74,.7);box-shadow:inset 0 2px 5px rgba(0,0,0,.3);transition:background .15s ease}
#live-room-settings #live-entry-toggle .live-entry-knob{position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#e8dff8;box-shadow:0 1px 4px rgba(0,0,0,.35);transition:transform .15s ease,background .15s ease}
#live-room-settings #live-entry-toggle.closed .live-entry-switch{background:linear-gradient(110deg,#8c36ee,#bd49d4)}
#live-room-settings #live-entry-toggle.closed .live-entry-knob{transform:translateX(19px);background:#fff}
#live-room-settings #live-entry-toggle:disabled{opacity:1;cursor:wait}
#live-room-settings #live-entry-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
#live-room-settings #live-room-viewer-text{margin:9px 1px 1px;font-size:.72rem;line-height:1.35;color:#dbcef2;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){#live-room-settings #live-entry-toggle .live-entry-switch,#live-room-settings #live-entry-toggle .live-entry-knob{transition:none}}

/* v94.86 — On-demand YouTube search. Completely scoped to the Queue trigger
   and an independent dialog; no player or room layout rules are modified. */
#yt-search-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;margin:10px 0 4px;padding:7px 15px;border-radius:999px;background:rgba(112,65,214,.20);color:#e6d9ff;border:1px solid rgba(187,139,255,.38);font-size:.82rem;font-weight:700;box-shadow:none}
#yt-search-open:active{transform:scale(.98)}
.yt-search-modal{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:rgba(11,3,29,.85)}
.yt-search-modal[hidden]{display:none!important}
.yt-search-sheet{width:min(760px,100%);height:min(750px,90dvh);max-height:calc(var(--vh,1vh)*90);display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:18px;border-radius:25px;color:#fff;background:linear-gradient(150deg,#32125d,#1a0b31 65%,#230c41);border:1px solid rgba(215,170,255,.23);box-shadow:0 28px 80px #090317db}
.yt-search-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.yt-search-eyebrow{font-size:.66rem;letter-spacing:.15em;color:#bc9bff;font-weight:800}
.yt-search-head h2{font-size:1.45rem;margin-top:3px}
.yt-search-close{width:38px;height:38px;flex:none;border:1px solid #ffffff35;background:#ffffff14;color:#fff;border-radius:13px;display:grid;place-items:center;font-size:1.05rem;padding:0}
.yt-search-form{display:flex;gap:8px;margin:16px 0 8px}
.yt-search-form input{min-width:0;flex:1;font-size:16px;border:1px solid #ffffff33;border-radius:14px;padding:11px 13px;color:#fff;background:#130928}
.yt-search-form input:focus-visible{outline:2px solid #b172ff;outline-offset:1px}
.yt-search-form button{flex:none;border:0;border-radius:14px;background:linear-gradient(125deg,#ff4988,#9d39ff);padding:9px 18px;color:#fff;font-weight:800}
.yt-search-form button:disabled{opacity:.55}
.yt-search-status{min-height:22px;color:#c8b4e9;font-size:.78rem;margin:3px 0 10px}
.yt-search-status.is-error{color:#ffafb9}
.yt-search-results{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding-right:2px;scrollbar-width:thin;scrollbar-color:#8656ba transparent}
.yt-search-result{display:flex;align-items:flex-start;gap:12px;padding:12px 3px;border-top:1px solid #ffffff1c;flex-wrap:wrap}
.yt-search-thumb{width:138px;aspect-ratio:16/9;flex:none;position:relative;overflow:hidden;border:0;border-radius:13px;background:#0b0615;padding:0}
.yt-search-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt-search-thumb>span{position:absolute;inset:0;display:grid;place-items:center;font-size:19px;color:white;text-shadow:0 2px 12px black;background:linear-gradient(transparent,#0004)}
.yt-search-info{flex:1;min-width:160px}
.yt-search-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.92rem;line-height:1.38}
.yt-search-channel{display:block;color:#baa4d5;font-size:.75rem;margin:3px 0 8px}
.yt-search-actions{display:flex;gap:6px;flex-wrap:wrap}
.yt-search-action{border-radius:10px;border:1px solid #ffffff38;background:#ffffff13;color:#eee0ff;font-size:.73rem;font-weight:700;padding:7px 10px;min-height:34px;box-shadow:none}
.yt-search-action:disabled{opacity:.5}
.yt-search-action.is-liked{color:#ff8fae;border-color:#ff8fae66}
.yt-search-queue{background:#873cd755;border-color:#c89aff66}
.yt-search-now{background:linear-gradient(120deg,#ff487b,#ae2cdb);border:0;color:white}
.yt-search-preview{flex:0 0 100%;padding:2px 0 8px}
.yt-search-player{position:relative;width:min(360px,100%);aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#000}
.yt-search-player iframe{border:0;width:100%;height:100%;display:block}
.yt-search-preview p{font-size:.7rem;color:#cbb4e5;margin:6px 0 0}
.yt-search-footer{flex:none;font-size:.69rem;color:#a996c4;padding:9px 0 0;border-top:1px solid #ffffff1f}
.yt-search-footer a{color:#d7bdff}
@media(max-width:560px){
 .yt-search-modal{align-items:flex-end;padding:0}
 .yt-search-sheet{width:100%;height:min(790px,93dvh);max-height:calc(var(--vh,1vh)*93);padding:17px 13px max(14px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
 .yt-search-thumb{width:108px;border-radius:11px}
 .yt-search-info{min-width:0}
 .yt-search-title{font-size:.82rem}
 .yt-search-channel{font-size:.7rem}
 .yt-search-action{font-size:.69rem;padding:6px 8px;min-height:32px}
 .yt-search-result{gap:9px}
}

/* v94.87 — Music discovery redesign. Every rule is confined to this dialog. */
.yt-search-modal{--yt-edge:#b879f4;--yt-pink:#fd4ca4;--yt-ink:#f9f4ff;background:rgba(11,3,29,.88)}
.yt-search-sheet{width:min(720px,100%);height:min(790px,93dvh);max-height:calc(var(--vh,1vh)*94);padding:15px 15px 8px;gap:0;border-radius:22px;background:linear-gradient(160deg,#291046 0%,#190c2d 56%,#20103e);border-color:rgba(222,177,255,.27);box-shadow:0 22px 70px #0d0325d9}
.yt-search-heading{min-width:0}
.yt-search-eyebrow{font-size:.59rem;letter-spacing:.14em;color:#c2a4e7}
.yt-search-head h2{font-size:1.23rem;line-height:1.2;letter-spacing:-.02em;margin-top:2px}
.yt-search-close{width:35px;height:35px;border-radius:12px;font-size:1rem;touch-action:manipulation}
.yt-search-tabs{flex:none;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:3px;margin:11px 0 0;background:#11062282;border:1px solid #ffffff14;border-radius:13px}
.yt-search-tabs button{border:0;border-radius:10px;min-width:0;min-height:34px;background:transparent;color:#bba3d7;display:inline-flex;gap:6px;justify-content:center;align-items:center;font-size:.76rem;font-weight:700;padding:5px 4px;box-shadow:none}
.yt-search-tabs button:first-letter{font-size:1.08rem}
.yt-search-tabs button[aria-selected=true]{color:#fff;background:linear-gradient(115deg,#7636adbb,#ab317ca6);box-shadow:0 2px 9px #0a05243f}
.yt-search-form{margin:9px 0 7px;gap:6px;align-items:stretch;min-height:42px}
.yt-search-field{display:flex;align-items:center;flex:1;min-width:0;background:#10071f;border:1px solid #9468b560;border-radius:12px;gap:6px;padding-left:10px}
.yt-search-field:focus-within{border-color:#bd81f7;box-shadow:0 0 0 1px #b96fff44}
.yt-field-icon{font-size:21px;color:#c99ce6;flex:none;line-height:1}
.yt-search-form input{display:block;flex:1;width:100%;min-width:0;padding:8px 8px 8px 0;background:transparent;border:0;box-shadow:none;border-radius:0;font-size:16px;color:#fff;line-height:1.2}
.yt-search-form input:focus-visible{outline:0}
.yt-search-submit,.yt-filter-toggle{width:42px;flex:none;display:grid;place-items:center;border-radius:12px!important;padding:0!important;min-height:42px!important;border:1px solid #ffffff22!important;background:#512782bb!important;color:#fff;font-size:23px!important;font-weight:500!important;box-shadow:none!important}
.yt-search-submit{background:linear-gradient(125deg,#fa4c91,#9c35f0)!important;border:0!important}
.yt-filter-toggle{position:relative;font-size:23px!important}
.yt-filter-toggle.is-on{border-color:#f5a7ec!important;color:#fff;background:#7143a9!important}
.yt-filter-count{position:absolute;top:-5px;right:-5px;font-size:10px;font-weight:800;line-height:16px;text-align:center;color:#fff;background:#ed3985;border-radius:9px;min-width:17px;height:17px;padding:0 2px;box-shadow:0 0 0 2px #2b134a}
.yt-search-filters{flex:none;padding:10px;border:1px solid #a77aca48;border-radius:13px;background:#ffffff0b;margin:0 0 8px}
.yt-search-filters[hidden]{display:none!important}
.yt-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.yt-filter-grid label{min-width:0;display:flex;flex-direction:column;gap:4px}
.yt-filter-grid label>span{font-size:.64rem;letter-spacing:.01em;font-weight:700;color:#d7b9ed}
.yt-filter-grid select{min-width:0;width:100%;height:33px;appearance:auto;background:#26113f;color:#fff;border:1px solid #ffffff33;border-radius:8px;font-size:.77rem;padding:3px 5px}
.yt-filter-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;min-height:22px}
.yt-filter-bottom span{color:#c6add8;font-size:.67rem;flex:1;min-width:0;overflow-wrap:anywhere}
.yt-filter-bottom button{border:1px solid #ffffff30;border-radius:8px;color:#f4dcff;background:#ffffff10;font-size:.68rem;padding:4px 9px;flex:none;box-shadow:none}
.yt-search-status{flex:none;min-height:18px;margin:0 0 5px;line-height:1.34;font-size:.68rem;color:#bea8d9}
.yt-search-results{padding:0 2px 4px 0;scrollbar-width:thin;scrollbar-color:#7d48a4 transparent;overscroll-behavior:contain;touch-action:pan-y}
.yt-search-result{flex-wrap:nowrap;position:relative;align-items:flex-start;gap:10px;padding:11px 1px;border-top:1px solid #ffffff20}
.yt-search-thumb{width:108px;aspect-ratio:16/9;border-radius:10px;flex:none;align-self:flex-start;margin:2px 0 0}
.yt-search-thumb>span{background:linear-gradient(transparent,#0006);text-shadow:none}
.yt-search-thumb>span svg{filter:drop-shadow(0 2px 3px #000b);fill:#fff6}
.yt-search-info{flex:1;min-width:0}
.yt-search-title{display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:unset!important;overflow:visible!important;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:.81rem;line-height:1.3;font-weight:750;color:#fff;letter-spacing:-.008em}
.yt-search-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;margin:3px 0 6px;min-width:0}
.yt-search-channel{display:inline;max-width:100%;white-space:normal;overflow-wrap:anywhere;color:#c4addc;font-size:.66rem;line-height:1.25;margin:0}
.yt-search-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:5px}
.yt-icon-btn{display:inline-grid;place-items:center;flex:none;width:31px;height:31px;min-height:31px;border:1px solid #ffffff3c;border-radius:9px;background:#ffffff12;color:#ead8fd;padding:0;box-shadow:none;touch-action:manipulation;transition:background .14s,transform .14s,border-color .14s}
.yt-icon-btn:active{transform:scale(.94)}
.yt-icon-btn:focus-visible,.yt-follow-chip:focus-visible,.yt-search-tabs button:focus-visible,.yt-recent-row:focus-visible{outline:2px solid #e6afff;outline-offset:2px}
.yt-icon-btn:disabled{opacity:.4}
.yt-icon-btn svg{width:16px;height:16px}
.yt-icon-btn.is-liked{color:#ff77b1;background:#ff499d26;border-color:#ff7ab75d}
.yt-icon-btn.is-liked svg{fill:#ff499d80}
.yt-icon-btn.is-following{color:#b6f7d2;border-color:#a3f7c068}
.yt-icon-btn.yt-search-queue{background:#8246c86a;border-color:#b887ff7d;color:#fff}
.yt-icon-btn.yt-search-now{background:linear-gradient(125deg,#fa5092,#ae35e5);border-color:transparent;color:#fff;box-shadow:0 3px 10px #b71a9555}
.yt-artist-chip{display:inline-flex;align-items:center;gap:3px;min-height:21px;padding:2px 6px;border:1px solid #b47aff70;border-radius:99px;background:#8044c325;color:#e1bdff;font-size:.61rem;max-width:100%;line-height:1.3;box-shadow:none}
.yt-artist-chip.is-following{border-color:#78ebaf88;color:#b8ffdb}
.yt-search-preview{flex:0 0 auto;min-width:0;width:100%;margin-top:1px;padding:2px 0 6px;align-self:stretch}
.yt-search-preview .yt-search-player{width:min(390px,100%);aspect-ratio:16/9;border:1px solid #ffffff37}
.yt-search-preview>span{display:block;color:#c9b5df;font-size:.67rem;margin-top:5px}
.yt-view-section{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;padding:9px 2px 8px;border-bottom:1px solid #ffffff23}
.yt-view-section>b{font-size:.83rem}
.yt-view-section>small{font-size:.64rem;color:#c9b0df}
.yt-search-empty{display:flex;min-height:135px;padding:21px 12px;align-items:center;justify-content:center;gap:7px;flex-direction:column;text-align:center;color:#d5bce5}
.yt-search-empty b{font-size:.87rem;color:#fff}
.yt-search-empty span{max-width:290px;line-height:1.5;font-size:.74rem}
.yt-search-empty svg{color:#d776dc}
/* Compact recent-search grid; only this section scrolls when expanded. */
.yt-recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px 2px 2px;min-width:0;align-content:start}
.yt-recent-list.is-expanded{max-height:clamp(105px,27dvh,178px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#7d48a4 transparent}
.yt-recent-row{display:grid;grid-template-columns:15px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:6px;row-gap:2px;min-width:0;width:100%;min-height:44px;border:1px solid #ffffff1c;border-radius:9px;text-align:left;background:#ffffff09;color:#eedcff;padding:5px 7px;box-shadow:none}
.yt-recent-row[hidden]{display:none!important}
.yt-recent-row>svg{grid-row:1/3;flex:none}
.yt-recent-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.73rem;line-height:1.25}
.yt-recent-row>small{grid-column:2;color:#aa92bf;font-size:.59rem;line-height:1.2;white-space:nowrap}
.yt-recent-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 2px 3px}
.yt-recent-toggle,.yt-clear-history{border:0;color:#bd9dcc;background:transparent;padding:5px 2px;min-height:32px;font-size:.7rem;box-shadow:none}
.yt-recent-toggle{font-weight:700;color:#e4c3ff}
.yt-clear-history{margin-left:auto}
.yt-recent-toggle:focus-visible,.yt-clear-history:focus-visible{outline:2px solid #e6afff;outline-offset:1px}
.yt-preference-box{border:1px solid #ffffff2d;border-radius:14px;background:linear-gradient(115deg,#5c257833,#a92d7430);padding:11px;margin:3px 0 9px}
.yt-pref-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.yt-pref-top>span{display:inline-flex;align-items:center;gap:6px;font-size:.69rem;letter-spacing:.07em;font-weight:800;color:#ecd4ff}
.yt-pref-top>small{font-size:.65rem;color:#bfa3df}
.yt-pref-sub{font-size:.67rem;color:#c9addf;margin:10px 0 5px}
.yt-follow-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.yt-follow-chip{display:flex;align-items:center;gap:4px;max-width:100%;min-height:27px;padding:4px 8px;border:1px solid #a86acf64;border-radius:99px;background:#ffffff13;color:#f2dfff;font-size:.67rem;box-shadow:none}
.yt-follow-chip span{overflow-wrap:anywhere;text-align:left}
.yt-follow-chip.is-following{border-color:#9de5af88;color:#c5ffde;background:#319c6e33}
.yt-follow-form{display:flex;align-items:center;gap:5px;margin-top:11px;min-height:35px}
.yt-follow-form select{min-width:0;width:75px;flex:none;background:#2e164b;color:white;font-size:.71rem;border:1px solid #ffffff38;border-radius:9px;height:35px;padding:0 2px}
.yt-follow-form input{min-width:0;flex:1;background:#120822;border:1px solid #ffffff38;border-radius:9px;color:white;font-size:16px;height:35px;padding:6px 9px}
.yt-follow-form button{flex:none;width:35px;height:35px;border:0;border-radius:9px;display:grid;place-items:center;background:linear-gradient(130deg,#ef4399,#a33bea);padding:0;color:#fff}
.yt-pref-hint{display:block;margin-top:8px;color:#c8aadf;font-size:.66rem}
.yt-rec-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 2px}
.yt-rec-tools button{display:flex;align-items:center;gap:6px;border:1px solid #d58dff62;border-radius:9px;background:#a746cb3f;padding:6px 9px;font-size:.72rem;color:#fff;box-shadow:none}
.yt-rec-tools>small{font-size:.63rem;color:#c6a6de;text-align:right}
.yt-search-footer{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:5px;padding:6px 0 0;font-size:.59rem;color:#bca5d0}
.yt-search-footer a{text-decoration:underline;color:#d7bdff}
@media(max-width:560px){
 .yt-search-modal{align-items:flex-end;padding:0}
 .yt-search-sheet{width:100%;height:min(830px,95dvh);max-height:calc(var(--vh,1vh)*95);padding:13px 12px max(8px,env(safe-area-inset-bottom));border-radius:21px 21px 0 0}
 .yt-search-head h2{font-size:1.18rem}
 .yt-search-thumb{width:94px;border-radius:9px}
 .yt-search-result{gap:9px;padding:10px 1px}
 .yt-search-title{font-size:.78rem}
 .yt-search-channel{font-size:.65rem}
 .yt-icon-btn{width:29px;height:29px;min-height:29px;border-radius:8px}
 .yt-icon-btn svg{width:15px;height:15px}
 .yt-search-footer{font-size:.57rem}
 .yt-filter-grid{gap:7px}
}
@media(max-width:360px){.yt-search-thumb{width:79px}.yt-search-result{gap:7px}.yt-icon-btn{width:28px;height:28px;min-height:28px}.yt-search-sheet{padding-left:9px;padding-right:9px}}
@media(prefers-reduced-motion:reduce){.yt-icon-btn{transition:none}}
/* Preview belongs below the entire song row, never beside the title. */
.yt-search-result{flex-wrap:wrap}
.yt-search-preview{flex:0 0 100%}

/* v94.88 — Scoped music discovery refinement: identical compact cards, two-line
   slowly-revealing song titles, thumbnail-only preview, and in-sheet notices. */
.yt-search-sheet{position:relative}
.yt-action-toast{position:absolute;top:57px;left:50%;transform:translateX(-50%);z-index:20;pointer-events:none;max-width:calc(100% - 28px);width:max-content;min-height:30px;padding:7px 13px;border:1px solid #b5f6cc70;border-radius:999px;background:linear-gradient(130deg,#153c36ee,#35215cee);color:#e9ffee;box-shadow:0 8px 24px #05020f99;font-size:.71rem;line-height:1.3;text-align:center;font-weight:750;overflow-wrap:anywhere;animation:yt-toast-in .16s ease-out both}
.yt-action-toast.is-error{color:#ffe3e8;border-color:#ffa3ba88;background:linear-gradient(120deg,#5a1d39f5,#2b143ef5)}
.yt-action-toast[hidden]{display:none!important}
@keyframes yt-toast-in{from{opacity:0;transform:translate(-50%,-5px)}to{opacity:1;transform:translate(-50%,0)}}
.yt-search-results .yt-search-result{display:grid;grid-template-columns:clamp(88px,22%,112px) minmax(0,1fr);gap:10px;align-items:center;min-height:111px;padding:10px 3px;border-top:1px solid #ffffff20}
.yt-search-results .yt-search-thumb{grid-column:1;width:100%;aspect-ratio:16/10;align-self:center;margin:0;border-radius:10px;box-shadow:0 2px 13px #09021566}
.yt-search-results .yt-search-info{grid-column:2;min-width:0;display:grid;grid-template-rows:auto 19px 32px;gap:5px;align-content:center;min-height:90px}
.yt-search-title-viewport{font-size:.79rem;line-height:1.29;height:2.58em;max-height:2.58em;overflow:hidden;position:relative;min-width:0;mask-image:linear-gradient(to bottom,#000 0%,#000 91%,#000c 100%)}
.yt-search-results .yt-search-title{display:block!important;font-size:1em;line-height:inherit;font-weight:760;letter-spacing:-.012em;white-space:normal;overflow-wrap:anywhere;word-break:normal;overflow:visible!important;max-width:100%;width:100%;transform:translate3d(0,0,0)}
.yt-search-results .yt-search-title.is-overflowing.is-visible{animation:yt-title-reveal var(--yt-title-duration,17s) ease-in-out infinite alternate;will-change:transform}
@keyframes yt-title-reveal{0%,13%{transform:translate3d(0,0,0)}87%,100%{transform:translate3d(0,calc(-1 * var(--yt-title-travel,0px)),0)}}
.yt-search-results .yt-search-meta{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;min-height:19px;max-height:19px;gap:5px;margin:0;overflow:hidden}
.yt-search-results .yt-search-channel{display:block;flex:1 1 auto;min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:.66rem;line-height:1.25}
.yt-search-results .yt-artist-chip{flex:0 1 auto;max-width:53%;min-width:0;min-height:18px;padding:1px 5px;white-space:nowrap;gap:3px;overflow:hidden;font-size:.61rem}
.yt-search-results .yt-artist-chip svg{flex:none}
.yt-search-results .yt-artist-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.yt-search-results .yt-search-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0;min-width:0;height:32px;overflow:visible}
.yt-search-results .yt-icon-btn{width:31px;height:31px;min-height:31px;flex:0 0 31px;border-radius:9px}
.yt-search-results .yt-icon-btn.yt-queue-text{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;width:auto;min-width:0;height:31px;padding:0 9px;white-space:nowrap;font-size:.7rem;font-weight:750;letter-spacing:-.01em}
.yt-search-results .yt-search-preview{grid-column:1/-1;min-width:0;width:100%;padding:6px 0 7px;margin:0;align-self:stretch}
.yt-search-results .yt-search-preview .yt-search-player{margin-inline:auto;width:min(420px,100%)}
.yt-preference-box{padding:10px;display:flex;flex-direction:column;gap:6px}
.yt-pref-group{min-width:0}
.yt-pref-sub{font-size:.64rem;font-weight:750;margin:3px 0 4px;color:#cbb3e8}
.yt-preference-box .yt-follow-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x;margin-top:0;padding:2px 0 4px}
.yt-preference-box .yt-follow-chips::-webkit-scrollbar{display:none}
.yt-preference-box .yt-follow-chip{min-height:28px;flex:none;max-width:190px;white-space:nowrap;padding:4px 9px}
.yt-preference-box .yt-follow-chip span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}
.yt-preference-box .yt-follow-form{margin-top:2px}
.yt-rec-tools{margin:6px 2px}
.yt-rec-tools button{min-height:30px}
.yt-view-section{align-items:center;flex-wrap:nowrap;min-width:0}
.yt-view-section>b{white-space:nowrap;flex:none}
.yt-view-section>small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
@media(max-width:560px){
 .yt-search-results .yt-search-result{grid-template-columns:clamp(80px,27%,100px) minmax(0,1fr);gap:8px;min-height:106px;padding:9px 1px}
 .yt-search-title-viewport{font-size:.76rem}
 .yt-search-results .yt-search-info{grid-template-rows:auto 18px 30px;gap:5px;min-height:85px}
 .yt-search-results .yt-icon-btn{height:29px;min-height:29px;width:29px;flex-basis:29px}
 .yt-search-results .yt-icon-btn.yt-queue-text{height:29px;padding:0 7px;font-size:.64rem}
 .yt-search-results .yt-search-actions{height:30px;gap:4px}
 .yt-action-toast{top:53px}
}
@media(max-width:360px){
 .yt-search-results .yt-search-result{grid-template-columns:75px minmax(0,1fr);gap:7px}
 .yt-search-title-viewport{font-size:.72rem}
 .yt-search-results .yt-search-actions{gap:3px}
 .yt-search-results .yt-icon-btn{width:27px;height:27px;min-height:27px;flex-basis:27px}
 .yt-search-results .yt-icon-btn.yt-queue-text{height:27px;font-size:.62rem;padding:0 6px}
 .yt-search-results .yt-search-info{grid-template-rows:auto 18px 28px;min-height:82px}
}
@media(prefers-reduced-motion:reduce){.yt-search-title.is-overflowing.is-visible{animation:none}.yt-action-toast{animation:none}}

/* v94.89: Entry profile only. Keep the screen compact, readable and keyboard-safe. */
#gate .gate-badge{animation:none;width:clamp(68px,min(26vw,13svh),108px);box-shadow:0 0 0 2px #ffffff55,0 12px 32px #13062a88,0 0 30px #b43cf24a}
#gate .gate-panel{gap:12px;border-radius:26px;padding:clamp(16px,5vw,25px);background:linear-gradient(145deg,#392068e8,#211035ed);box-shadow:0 18px 45px #11052665,inset 0 1px 0 #ffffff22;min-width:0}
#gate .gate-kicker{display:flex;justify-content:center;align-items:center;gap:6px;color:#d7b5ff;font-size:.67rem;font-weight:750;letter-spacing:.14em}
#gate .gate-kicker>span{width:7px;height:7px;background:#8cf4bc;border-radius:50%;box-shadow:0 0 9px #8cf4bc77}
#gate .gate-panel h1{font-size:clamp(1.55rem,6.2vw,2.2rem);line-height:1.15;letter-spacing:-.035em;margin:0;overflow-wrap:anywhere}
#gate .gate-panel .lead{font-size:.84rem;line-height:1.4;color:#d2bedf}
#gate .gate-fields{display:grid;gap:9px;text-align:left;min-width:0;padding:12px;border:1px solid #ffffff1f;border-radius:17px;background:#120b2588}
#gate .gate-profile{display:flex;align-items:center;gap:10px;min-width:0}
#gate #gate-avatar{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:15px;background:var(--profile-color,#ff2d87);color:#1b0d2a;font-size:1.22rem;font-weight:800;box-shadow:inset 0 0 0 1px #ffffff77}
#gate .gate-profile>div{flex:1;min-width:0}
#gate .gate-profile b,#gate .gate-profile small{display:block}
#gate .gate-profile b{font-size:.84rem;line-height:1.3}
#gate .gate-profile small{font-size:.65rem;color:#c9b0e8;margin-top:3px}
#gate .gate-color{display:grid;justify-items:center;gap:2px;flex:none;margin:0;cursor:pointer}
#gate #gc{width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #ffffff40;background:#ffffff10}
#gate .gate-color small{margin:0;font-size:.62rem}
#gate .gate-name-label{display:flex;align-items:center;justify-content:space-between;margin:0;color:#e0cef4;font-size:.72rem;font-weight:650}
#gate #gate-name-count{color:#b5a0d2;font-weight:400;font-variant-numeric:tabular-nums}
#gate #gn{width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:12px;border:1px solid #ffffff35;background:#160e2de8;color:#fff;font-size:16px;line-height:1.3;text-align:left;letter-spacing:0;outline:none}
#gate #gn:focus{border-color:#d58aff;box-shadow:0 0 0 3px #b26df229}
#gate #go{min-height:48px;border-radius:14px;font-size:.95rem}
#gate #home-link{border:0;background:transparent;padding:6px 10px;color:#cdb5ee;font-size:.78rem;font-weight:600}
#gate #ge:empty{display:none}
html main#gate:not([hidden]){overflow-y:auto!important;overscroll-behavior-y:contain;align-content:safe center!important;padding-bottom:max(14px,var(--sab,0px),env(safe-area-inset-bottom,0px))!important}
@media(max-height:590px){#gate .gate-badge{width:58px}#gate .gate-panel{gap:8px;padding:13px}#gate .gate-fields{padding:9px;gap:6px}}
#explore-live[aria-busy="true"]{opacity:.8;pointer-events:none}
#explore-live[aria-busy="true"] .live-entry-arrow{animation:entry-pulse .8s ease-in-out infinite alternate}
@keyframes entry-pulse{to{opacity:.35;transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){#explore-live[aria-busy="true"] .live-entry-arrow{animation:none}}
/* Guest request action is the sole transport action; do not expose Play Now. */
.yt-search-results .yt-icon-btn[data-video-action="request"]{background:linear-gradient(135deg,#7731c64d,#d84aa233);border-color:#c58bff6b;color:#f5e9ff}
.yt-search-results .yt-icon-btn:disabled{opacity:.5;cursor:not-allowed}

/* v94.91 — Discovery gestures and existing draggable transport, scoped to the dialog. */
.yt-search-modal .yt-search-footer{justify-content:flex-end;flex:none}
.yt-search-modal .yt-search-results{overflow-x:hidden;touch-action:pan-y}
.yt-search-modal .yt-search-sheet{overscroll-behavior-x:contain}
/* v94.93: two panels track the touch position, keeping the shared controls fixed. */
.yt-search-modal .yt-search-sheet{touch-action:pan-y pinch-zoom}
.yt-search-modal .yt-swipe-viewport{position:relative;display:flex;flex:1 1 0;min-height:0;min-width:0;overflow:hidden;isolation:isolate}
.yt-search-modal .yt-swipe-viewport>.yt-search-results{width:100%;flex:0 0 100%;min-width:0;height:100%;box-sizing:border-box}
.yt-search-modal .yt-swipe-viewport>.yt-swipe-neighbor{position:absolute;inset:0;pointer-events:none;overflow:hidden;touch-action:none}
.yt-search-modal .yt-swipe-viewport.yt-dragging>.yt-search-results{will-change:transform}
.yt-search-modal .yt-swipe-viewport.yt-dragging .yt-search-title{animation-play-state:paused}
.yt-search-modal .yt-mini-slot{position:relative;flex:0 0 60px;min-width:0;z-index:10;margin-top:4px}
.yt-search-modal #yt-mini-slot #mini{position:absolute!important;top:auto!important;bottom:var(--mini-lift,0px)!important;left:50%!important;right:auto!important;width:min(100%,480px)!important;max-width:100%;z-index:10!important;transition:none!important}


/* v94.92: premium gate branding and avatar picker */
#gate{padding-top:max(22px,env(safe-area-inset-top))}
#gate .gate-brand{display:grid;justify-items:center;gap:8px;margin:0 auto 12px}
#gate .gate-brand-logo{width:clamp(80px,24vw,124px);height:auto;display:block;image-rendering:auto;filter:drop-shadow(0 8px 20px rgba(17,5,38,.45)) drop-shadow(0 0 18px rgba(255,105,180,.28));opacity:1;transform:translateZ(0)}
#gate .gate-brand-wordmark{font-family:"Sora","Poppins",system-ui,sans-serif;font-size:clamp(1.1rem,4.2vw,1.55rem);font-weight:800;letter-spacing:-.04em;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.28)}
#gate .gate-brand-wordmark span{background:linear-gradient(90deg,#ff57cf 0%,#9c6cff 45%,#ffb347 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
#gate .gate-profile{align-items:center}
#gate #gate-avatar{display:block;width:52px;height:52px;flex:none;border-radius:18px;object-fit:cover;object-position:center;background:#2b1545;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 8px 18px rgba(0,0,0,.22)}
#gate .gate-avatar-picker{display:grid;justify-items:center;gap:4px;flex:none;min-width:88px}
#gate .gate-avatar-btn{appearance:none;border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:8px 10px;min-width:84px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.08));color:#fff;font:700 .72rem/1 "Inter",system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.2)}
#gate .gate-avatar-btn:hover{background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.1))}
#gate .gate-avatar-btn:active{transform:translateY(1px)}
#gate .gate-avatar-btn-icon{font-size:.95rem;opacity:.92}
#gate .gate-avatar-picker small{font-size:.62rem;color:#c9b0e8;white-space:nowrap}
#gate .gate-fields{gap:10px}
#gate .gate-profile>div{min-width:0}
#gate .gate-profile b{font-size:.86rem}
#gate .gate-profile small{font-size:.64rem}
@media(max-width:380px){
  #gate .gate-brand{margin-bottom:10px}
  #gate .gate-profile{gap:8px}
  #gate #gate-avatar{width:46px;height:46px;border-radius:16px}
  #gate .gate-avatar-picker{min-width:78px}
  #gate .gate-avatar-btn{min-width:74px;padding:7px 8px;border-radius:14px}
}

/* v94.94: Music Discovery only — two-line horizontal title reveal,
   row-height artwork, and aligned artist/channel follow controls. */
.yt-search-modal .yt-search-results .yt-search-result{grid-template-columns:clamp(96px,27%,152px) minmax(0,1fr);align-items:center}
.yt-search-modal .yt-search-results .yt-search-thumb{grid-row:1;align-self:stretch;aspect-ratio:auto;height:auto;min-height:0;position:relative}
.yt-search-modal .yt-search-results .yt-search-thumb img{position:absolute;inset:0;object-fit:cover;object-position:center}
.yt-search-modal .yt-search-results .yt-search-info{grid-row:1}
.yt-search-modal .yt-search-title-viewport{mask-image:none;-webkit-mask-image:none}
.yt-search-modal .yt-title-first,.yt-search-modal .yt-title-clip{display:block;width:100%;height:1.29em;line-height:inherit;white-space:nowrap;overflow:hidden}
.yt-search-modal .yt-title-tail{display:inline-block;width:max-content;max-width:none;white-space:nowrap;line-height:inherit;vertical-align:top}
.yt-search-modal .yt-search-results .yt-search-title.is-overflowing.is-visible{animation:none;will-change:auto}
.yt-search-modal .yt-search-title.is-overflowing.is-visible .yt-title-tail{animation:yt-title-horizontal var(--yt-title-duration,10s) linear infinite alternate;will-change:transform}
@keyframes yt-title-horizontal{0%,9%{transform:translate3d(0,0,0)}91%,100%{transform:translate3d(calc(-1 * var(--yt-title-travel,0px)),0,0)}}
.yt-search-modal .yt-swipe-viewport.yt-dragging .yt-title-tail{animation-play-state:paused}
.yt-search-modal .yt-follow-caption{margin:3px 0 0}
.yt-search-modal .yt-preference-box .yt-follow-form{display:grid;grid-template-columns:88px minmax(0,1fr);gap:6px;align-items:stretch;margin:0;min-height:39px}
.yt-search-modal .yt-follow-select,.yt-search-modal .yt-follow-entry{display:flex;position:relative;align-items:center;min-width:0;min-height:39px;border:1px solid #b28cdb55;border-radius:10px;background:#160b2a;overflow:hidden}
.yt-search-modal .yt-follow-select{background:#382053}
.yt-search-modal .yt-follow-select select{appearance:none;-webkit-appearance:none;width:100%;height:39px;min-width:0;flex:1;padding:0 22px 0 8px;background:transparent;color:#f7edff;border:0;border-radius:0;font-size:.76rem;box-shadow:none}
.yt-search-modal .yt-follow-select>svg{position:absolute;right:7px;pointer-events:none;color:#d8baf4}
.yt-search-modal .yt-follow-entry input{width:0;flex:1 1 0;min-width:0;height:39px;padding:0 8px;border:0;background:transparent;box-shadow:none;border-radius:0;font-size:16px;outline:none}
.yt-search-modal .yt-follow-entry input::placeholder{color:#c8b1e1;opacity:1}
.yt-search-modal .yt-follow-entry button{width:34px;height:33px;min-width:34px;min-height:33px;margin:3px;flex:none;border-radius:7px;background:linear-gradient(135deg,#f04c9c,#a33bea);box-shadow:none}
.yt-search-modal .yt-follow-select:focus-within,.yt-search-modal .yt-follow-entry:focus-within{border-color:#d3a4ff;box-shadow:0 0 0 1px #b96fff44}
@media(max-width:560px){.yt-search-modal .yt-search-results .yt-search-result{grid-template-columns:clamp(86px,30%,119px) minmax(0,1fr)}}
@media(max-width:360px){.yt-search-modal .yt-search-results .yt-search-result{grid-template-columns:82px minmax(0,1fr)}.yt-search-modal .yt-preference-box .yt-follow-form{grid-template-columns:82px minmax(0,1fr);gap:5px}}
@media(prefers-reduced-motion:reduce){.yt-search-modal .yt-search-title.is-overflowing.is-visible .yt-title-tail{animation:none;will-change:auto}.yt-search-modal .yt-title-clip{overflow-x:auto;scrollbar-width:none;touch-action:pan-x}}

/* v94.95: LANDING ONLY. Keep the viewport and asynchronous history slot
   stable. The full-height background remains independent of the content. */
html.landing-route,html.landing-route body{
  height:100vh!important;height:100lvh!important;
  min-height:100vh!important;min-height:100lvh!important;
}
html.landing-route main#home{
  height:100vh!important;height:100svh!important;
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior-y:contain;align-content:center!important;align-content:safe center!important;
  scrollbar-width:none;
}
html.landing-route main#home::-webkit-scrollbar{display:none}
html.landing-route.landing-standalone main#home{height:100vh!important}
html.landing-route #home .last-room{height:88px;min-height:88px;max-height:88px}
html.landing-route #home .last-room-slot{visibility:hidden;pointer-events:none}
/* Static large blurred layers avoid repeated full-screen compositing.
   Keep the original colors and the small decorative animations. */
html.landing-route #fx .smoke,html.landing-route #home .hero3d::before{animation:none!important;will-change:auto!important}
@media(pointer:coarse){html.landing-route #home .hero3d{transform:none!important;transform-style:flat;transition:none}}

/* v94.96: circular avatar selection and compact room roster portraits. */
#gate #gate-avatar-preview{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
#gate #gate-avatar{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #e1c2ff66,0 6px 16px #12051d66}
#gate .gate-profile>.gate-avatar-picker{flex:0 0 auto;min-width:0}
#gate .gate-avatar-btn{min-width:0;white-space:nowrap;font-size:.71rem;padding:9px 10px;border-radius:12px}
#gate #avatar-gallery{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));background:#10091de0;overscroll-behavior:contain}
#gate .avatar-sheet{width:min(100%,370px);max-height:100%;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:12px;padding:18px;border:1px solid #ae83e34a;border-radius:24px;background:linear-gradient(150deg,#3c2366,#211131 70%);box-shadow:0 24px 70px #080315aa;text-align:left;color:white}
#gate .avatar-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
#gate .avatar-sheet-head small{font-size:.65rem;letter-spacing:.13em;font-weight:750;color:#d4aaff}
#gate .avatar-sheet-head h2{margin:3px 0;font-size:1.24rem;line-height:1.2;letter-spacing:-.03em;color:white}
#gate .avatar-sheet-head p{font-size:.73rem;color:#c6b4de;margin:3px 0 0;line-height:1.4}
#gate .avatar-sheet button{cursor:pointer;color:white}
#gate #avatar-close,#gate .avatar-sheet-nav button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border-radius:13px;background:#ffffff0d;border:1px solid #ffffff2b;font-size:1.4rem;line-height:1}
#gate .avatar-page{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;justify-items:center}
#gate .avatar-choice{position:relative;display:block;aspect-ratio:1;width:100%;max-width:65px;padding:3px;border:2px solid transparent;border-radius:50%;background:none;transition:border-color .12s,background .12s}
#gate .avatar-choice img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
#gate .avatar-choice[aria-pressed="true"]{border-color:#efaaff;background:#f6a6ff24}
#gate .avatar-choice[aria-pressed="true"]::after{content:'✓';display:grid;place-items:center;position:absolute;right:0;bottom:0;width:17px;height:17px;border-radius:50%;background:#d469ed;color:white;font-size:11px;box-shadow:0 0 0 2px #2a173d}
#gate .avatar-sheet-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}
#gate #avatar-range{font-size:.74rem;color:#d8c7ef;font-variant-numeric:tabular-nums}
#gate .avatar-sheet-nav button:disabled{opacity:.32;cursor:default}
#gate #avatar-shuffle{min-height:42px;border-radius:13px;border:1px solid #ffffff30;background:linear-gradient(115deg,#a14ecb,#7738af);font-weight:700;font-size:.83rem}
#gate .avatar-sheet button:focus-visible,#gate #gate-avatar-preview:focus-visible{outline:2px solid #edc8ff;outline-offset:2px}
#ul .member-identity{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%}
#ul .member-identity b{min-width:0;overflow-wrap:anywhere}
#ul .member-face{width:34px;height:34px;aspect-ratio:1;flex:0 0 34px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #ffffff42;display:grid;place-items:center;color:#171025;font-size:.82rem;font-weight:800}
#who .member-mascot{object-fit:cover;aspect-ratio:1;border-radius:50%}
@media(max-width:380px){#gate #gate-avatar-preview{width:46px;height:46px;flex-basis:46px}#gate .gate-avatar-btn{padding:8px 7px;font-size:.65rem}#gate .avatar-sheet{padding:14px;gap:9px}#gate .avatar-page{gap:6px}}
@media(max-height:450px) and (orientation:landscape){#gate .avatar-sheet{width:min(100%,470px);gap:8px;padding:12px}#gate .avatar-page{grid-template-columns:repeat(6,minmax(0,1fr))}#gate .avatar-choice{max-width:52px}}

/* v94.98: discovery text sizing, compact taste panel, round gallery, playlist shortcuts. */
.yt-search-modal .yt-preference-box{padding:8px 10px;gap:0}
.yt-search-modal .yt-taste-toggle{width:100%;min-height:32px;margin:0;padding:2px 0;border:0;background:none;box-shadow:none;border-radius:8px;text-align:left;cursor:pointer;transform:none}
.yt-search-modal .yt-taste-toggle small{display:flex;align-items:center;gap:5px;white-space:nowrap}
.yt-search-modal .yt-taste-chevron{flex:none;transition:transform .16s ease}
.yt-search-modal .yt-taste-toggle[aria-expanded="true"] .yt-taste-chevron{transform:rotate(180deg)}
.yt-search-modal .yt-taste-body{display:grid;gap:6px;padding-top:7px;border-top:1px solid #ffffff16}
.yt-search-modal .yt-search-title-viewport,.yt-search-modal .yt-search-title-viewport *{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.yt-search-modal .yt-search-title-viewport{line-height:1.29;height:2.58em;max-height:2.58em;overflow:hidden}
.yt-search-modal .yt-search-title-viewport .yt-search-title,.yt-search-modal .yt-search-title-viewport .yt-title-first,.yt-search-modal .yt-search-title-viewport .yt-title-clip,.yt-search-modal .yt-search-title-viewport .yt-title-tail{font-size:inherit!important;font-weight:inherit;line-height:1.29!important;letter-spacing:inherit;transform-origin:left center}
.yt-search-modal .yt-search-title-viewport .yt-search-title{font-weight:760;letter-spacing:-.012em}
.yt-search-modal .yt-title-first,.yt-search-modal .yt-title-clip{height:1.29em;max-height:1.29em;overflow:hidden}
#gate .gate-brand-wordmark{display:block;width:clamp(145px,55vw,260px);height:auto;max-width:100%;object-fit:contain;opacity:1;filter:none}
#gate .avatar-choice{--avatar-diameter:clamp(36px,16vw,65px);width:var(--avatar-diameter);height:var(--avatar-diameter);min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:1/1;box-sizing:border-box;padding:0;align-self:start;justify-self:center;border-radius:50%}
#gate .avatar-choice img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);max-width:none;max-height:none;aspect-ratio:1/1;object-fit:cover;border-radius:50%}
@media(max-height:450px) and (orientation:landscape){#gate .avatar-choice{--avatar-diameter:52px;max-width:none}}
#gate #gate-avatar-preview{min-height:0;max-height:none}
#empty-actions{display:flex;flex-wrap:nowrap;justify-content:center;align-items:stretch;gap:6px;margin:4px auto 0;width:100%;min-width:0;max-width:100%}
#empty-actions #addlink,#empty-actions #empty-playlist-play{box-sizing:border-box;flex:0 1 auto;min-width:0;width:auto;max-width:100%;margin:0!important;justify-content:center;text-align:center;white-space:normal;line-height:1.2;font-size:.75rem;padding:7px 10px;min-height:36px;overflow-wrap:anywhere}
#empty-actions #addlink:has(+ #empty-playlist-play:not([hidden])),#empty-actions #empty-playlist-play:not([hidden]){flex:0 1 50%;max-width:180px}
@media(max-width:380px){#empty-actions #addlink,#empty-actions #empty-playlist-play{padding:6px 7px!important;gap:4px;font-size:.7rem!important}}
.playlist-play{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:6px 11px;border:1px solid #d0aaff65;border-radius:999px;background:linear-gradient(135deg,#8244d6,#bd36c8);color:#fff;font:700 .75rem/1.2 "Poppins",system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.playlist-play:disabled{opacity:.5;cursor:default}
.playlist-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#p-queue .playlist-heading h3{margin-right:auto}
@media(orientation:landscape) and (min-width:560px){body:not(.vr-fullview) #room[data-tab="play"] .stage #empty-actions{grid-column:2;grid-row:4;justify-content:flex-start;justify-self:start;width:100%;min-width:0;margin:0}}

/* v94.99: keep the landing canvas opaque and avoid expensive full-screen
   compositing while the browser is recovering from a room's media session. */
html.landing-route,html.landing-route body{background-color:#2a1275!important}
html.landing-route body{background-attachment:scroll!important}
html.landing-route #home .hero-img{animation:none!important;transform:none!important;will-change:auto!important}
html.landing-route #home{perspective:none!important}
html.landing-route #home .hero3d{transform-style:flat!important}
html.landing-route #fx .smoke{filter:none!important;mix-blend-mode:normal!important}
html.landing-route .glow{transition:none!important}
/* v95.06: restore only the small landing-page stars and rising notes on touch devices. Keep the heavy ambient layers disabled. */
@media(pointer:coarse){html.landing-route .orb,html.landing-route .note{animation:none!important;will-change:auto!important}}
@media(prefers-reduced-motion:reduce){html.landing-route #fx #stars span{animation:none!important;opacity:.6}html.landing-route #fx #fnotes span{animation:none!important;opacity:0}}
body.room-departing *,body.room-departing *::before,body.room-departing *::after{animation-play-state:paused!important;transition:none!important}

/* v95.01: private creator name gate only. Stable viewport units and fixed
   safe-area inputs prevent delayed room probes from recentering the card. */
html.private-entry main#gate:not([hidden]){height:100vh!important;height:100svh!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:safe center!important;padding-top:calc(7vh + var(--private-gate-top,0px))!important;padding-top:calc(7svh + var(--private-gate-top,0px))!important;padding-bottom:max(14px,var(--private-gate-bottom,0px))!important;overflow-anchor:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.private-entry.private-entry-standalone main#gate:not([hidden]){height:100vh!important}
html.private-entry #gate .gate-brand-logo{aspect-ratio:1/1;object-fit:contain}
html.private-entry #gate .gate-brand-wordmark{aspect-ratio:1909/305}
html.private-entry #gate #gate-avatar{aspect-ratio:1/1}
html.private-entry #gate .gate-panel #go{min-height:48px}
html.private-entry.private-entry-fallback-font #gate,html.private-entry.private-entry-fallback-font #gate .gate-panel h1{font-family:system-ui,sans-serif!important}
/* Limit expensive compositing during the private gate, without changing rooms. */
html.private-entry body:not(.in-room) #fx .smoke{animation:none!important;will-change:auto!important}

/* v95.02: organize only the join profile card; keep fixed avatar and text rows. */
#gate #join-fields.gate-fields{gap:12px;padding:clamp(10px,3.2vw,14px);align-items:stretch;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#gate #join-fields .gate-profile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #ffffff20}
#gate #join-fields #gate-avatar-preview{width:48px;height:48px;min-width:48px;min-height:48px;max-height:48px;flex:none;aspect-ratio:1;border-radius:50%;padding:0}
#gate #join-fields #gate-avatar{width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
#gate #join-fields .gate-profile-copy{display:grid;gap:3px;min-width:0}
#gate #join-fields .gate-profile-copy b{font-size:.86rem;line-height:1.25;white-space:nowrap;color:#f5ecff}
#gate #join-fields .gate-profile-copy small{font-size:.67rem;line-height:1.25;white-space:nowrap;margin:0;color:#c9b0e8}
#gate #join-fields .gate-avatar-picker{display:block;min-width:0}
#gate #join-fields .gate-avatar-btn{min-height:44px;padding:0 12px;gap:7px;font-size:.73rem;line-height:1;border-radius:12px;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff18}
#gate #join-fields .gate-name-field{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}
#gate #join-fields .gate-name-label{font-size:.76rem;line-height:1.3;gap:8px}
#gate #join-fields #gate-name-count{white-space:nowrap}
#gate #join-fields .gate-name-status{display:block;min-height:1.3em;margin:0 1px;font-size:.67rem;line-height:1.3;color:#c9b0e8;overflow-wrap:anywhere}
@media(max-width:360px){#gate #join-fields .gate-profile{gap:8px}#gate #join-fields #gate-avatar-preview{width:44px;height:44px;min-width:44px;min-height:44px;max-height:44px}#gate #join-fields .gate-avatar-btn{padding:0 9px;gap:4px}}
@media(max-height:590px){#gate #join-fields.gate-fields{gap:8px;padding:9px}#gate #join-fields .gate-profile{padding-bottom:8px}}

/* v95.03: Presence is a noninteractive overlay inside the existing fullscreen deck. */
.deck .vr-fv-presence{display:none}
body.vr-fullview #room .deck .vr-fv-presence:not([hidden]){display:block!important;position:absolute;z-index:80;top:calc(10px + max(var(--fv-safe-t,0px),var(--fv-top-fallback,0px)));left:calc(10px + var(--fv-safe-l,0px));max-width:calc(65% - var(--fv-safe-l,0px));padding:7px 12px;border-radius:100px;background:#171225e8;border:1px solid #ffffff35;color:#fff;font:600 12px/1.3 Poppins,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 2px 9px #0004}

/* v95.32: Active speaker belongs solely to the Play-card group microphone.
   The avatar is a centered, noninteractive visual; no animation or layout change. */
#room .xtra #gv-toggle{position:relative}
#room .xtra #gv-toggle>.gv-active-face[hidden]{display:none!important}
#room .xtra #gv-toggle>.gv-active-face:not([hidden]){position:absolute;top:50%;left:50%;width:72%;height:72%;transform:translate(-50%,-50%);display:grid!important;place-items:center;overflow:hidden;box-sizing:border-box;border-radius:50%;z-index:4;pointer-events:none;box-shadow:0 0 0 1px #7af2dc;background:#29174c;animation:none!important;transition:none!important}
#room .xtra #gv-toggle>.gv-active-face .gv-speaker-face{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;border-radius:50%;object-fit:cover;box-sizing:border-box;color:#211035;font-weight:800;font-size:.85rem;line-height:1;pointer-events:none}
#room .xtra #gv-toggle.gv-has-speaker>svg{visibility:hidden}

/* v95.05: stable, low-compositing entry screen. Scoped to entry and transition only. */
html.gate-entry body:not(.in-room){background-color:#2a1275!important;background-attachment:scroll!important;isolation:isolate}
html.gate-entry body:not(.in-room) main#gate:not([hidden]){height:100vh!important;height:100svh!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:safe center!important;grid-auto-rows:max-content;padding-top:calc(7svh + var(--private-gate-top,0px))!important;padding-bottom:max(14px,var(--private-gate-bottom,0px))!important;overflow-anchor:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.gate-entry #gate .gate-brand-logo{aspect-ratio:1;object-fit:contain;filter:none;transform:none;will-change:auto}
html.gate-entry #gate .gate-brand-wordmark{aspect-ratio:1909/305;object-fit:contain}
html.gate-entry.entry-fallback-font #gate,html.gate-entry.entry-fallback-font #gate .gate-panel h1,html.gate-entry.entry-fallback-font #gate button,html.gate-entry.entry-fallback-font #gate input{font-family:system-ui,sans-serif!important}
html.gate-entry body:not(.in-room) #gate h1{filter:none}
html.gate-entry body:not(.in-room) #fx,html.landing-route body.entry-busy #fx{transition:none!important}
html.gate-entry body:not(.in-room) #fx .smoke,html.landing-route body.entry-busy #fx .smoke{animation:none!important;filter:none!important;mix-blend-mode:normal!important;will-change:auto!important;transform:none!important}
html.gate-entry body:not(.in-room) .orb,html.gate-entry body:not(.in-room) .note,html.landing-route body.entry-busy .orb,html.landing-route body.entry-busy .note{display:none!important}
html.gate-entry body:not(.in-room) #gate .big::after,html.landing-route body.entry-busy #home .big::after{animation:none!important;display:none}
html.gate-entry body:not(.in-room) .glow,html.landing-route body.entry-busy .glow{transition:none!important}

/* v95.07: ENTRY SURFACES ONLY. One opaque canvas, independent of content
   height; all decoration stays behind the usable UI. No room rules changed. */
html.landing-route:not(:has(body.in-room)),html.gate-entry:not(:has(body.in-room)){
  --entry-bg:radial-gradient(ellipse at 12% 20%,#8139cf55,transparent 48%),radial-gradient(ellipse at 88% 47%,#248ac83d,transparent 50%),radial-gradient(ellipse at 100% 100%,#bc29b86b,transparent 55%),linear-gradient(180deg,#4a1fc4,#2a1275 48%,#3a1a8f);
  --entry-content-height:100vh;
  --entry-content-height:100svh;
  background:var(--entry-bg)!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  height:100vh!important;height:max(100lvh,var(--entry-screen-height,100vh))!important;
  min-height:100%!important;
  overflow:hidden!important;
}
html.landing-route.entry-standalone:not(:has(body.in-room)),html.gate-entry.entry-standalone:not(:has(body.in-room)){--entry-content-height:var(--entry-screen-height,100vh)}
html.landing-route body:not(.in-room),html.gate-entry body:not(.in-room){
  position:relative;isolation:isolate;display:block!important;
  height:100%!important;min-height:100%!important;margin:0;
  background:transparent!important;overflow:hidden!important;
}
html:is(.landing-route,.gate-entry) body:not(.in-room) #fx{
  position:absolute!important;inset:0!important;height:100%!important;width:100%;
  z-index:0!important;opacity:1;visibility:visible;pointer-events:none;overflow:hidden;
  isolation:isolate;transition:none!important;
}
/* Static gradients above replace the seven oversized overlapping smoke layers. */
html:is(.landing-route,.gate-entry) body:not(.in-room) #fx .smoke,
html:is(.landing-route,.gate-entry) body:not(.in-room) > .glow,
html:is(.landing-route,.gate-entry) body:not(.in-room) > .orb,
html:is(.landing-route,.gate-entry) body:not(.in-room) > .note{display:none!important}
html:is(.landing-route,.gate-entry) body:not(.in-room) #fx #stars span,
html:is(.landing-route,.gate-entry) body:not(.in-room) #fx #fnotes span{visibility:visible;animation-play-state:running!important}
/* The original small particles and music notes still animate, behind all UI. */
@media(prefers-reduced-motion:reduce){
  html:is(.landing-route,.gate-entry) body:not(.in-room) #fx #stars span{animation:none!important;opacity:.6}
  html:is(.landing-route,.gate-entry) body:not(.in-room) #fx #fnotes span{animation:none!important;opacity:0}
}
html.landing-route body:not(.in-room) main#home:not([hidden]),
html.gate-entry body:not(.in-room) main#gate:not([hidden]){
  position:relative!important;inset:auto!important;z-index:2!important;isolation:isolate;
  height:var(--entry-content-height)!important;min-height:0!important;max-height:none!important;
  width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:contain;overflow-anchor:none;scrollbar-width:none;
  grid-auto-rows:max-content;align-content:safe center!important;
  perspective:none!important;transform:none!important;opacity:1!important;
  padding-bottom:max(14px,env(safe-area-inset-bottom,0px),var(--entry-bottom-gap,0px))!important;
}
/* Keep existing landing controls stable even when the optional Rejoin card arrives. */
html.landing-route body:not(.in-room) main#home:not([hidden]){
  align-content:start!important;
  padding-top:max(12px,env(safe-area-inset-top,0px),clamp(12px,calc((var(--entry-content-height) - 650px)/2),120px))!important;
}
html.landing-route #home #recent{grid-auto-rows:max-content;align-content:start;gap:5px!important}
html.landing-route #home .recent-list{width:100%;flex-wrap:wrap;justify-content:center}
html.landing-route #home .recent-list a:nth-child(n+4){display:inline-flex!important}
html.landing-route #home .last-room{height:auto;min-height:0;max-height:none}
html.landing-route #home .last-room-slot{display:none!important}
html.gate-entry body:not(.in-room) main#gate:not([hidden]){
  padding-top:max(16px,env(safe-area-inset-top,0px))!important;
  gap:clamp(8px,calc(var(--entry-content-height)*.016),16px);align-items:start;
}
html.gate-entry #gate .gate-brand{position:relative;z-index:1;margin:0 auto;opacity:1;filter:none;gap:8px}
html.gate-entry #gate .gate-brand-logo{width:clamp(64px,min(24vw,calc(var(--entry-content-height)*.14)),124px);height:auto;opacity:1;filter:none}
html.gate-entry #gate .gate-brand-wordmark{opacity:1;filter:none}
html.gate-entry #gate .gate-panel{
  position:relative;z-index:2;isolation:isolate;opacity:1;filter:none;
  background:linear-gradient(145deg,#392068,#211035 85%);border-color:#ffffff35;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  box-shadow:0 14px 35px #10052550,inset 0 1px 0 #ffffff18;
}
html.gate-entry #gate #join-fields{background:#201331;border-color:#ffffff24}
html.gate-entry #gate .gate-panel #gt{filter:none}
html.gate-entry #gate #avatar-gallery{z-index:1000}
@media(max-height:590px){html.gate-entry #gate .gate-brand-logo{width:58px}html.gate-entry #gate .gate-brand{gap:5px}}

/* v95.09: finger-tracked avatar pages; only the current and adjacent page are rendered. */
#gate #avatar-swipe-window{position:relative;min-width:0;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#gate #avatar-swipe-window .avatar-page{--avatar-page-size:clamp(36px,16vw,65px);grid-template-rows:repeat(3,var(--avatar-page-size));min-width:0;touch-action:pan-y}
#gate #avatar-swipe-window .avatar-choice{touch-action:pan-y;-webkit-user-drag:none}
#gate #avatar-swipe-window img{-webkit-user-drag:none;pointer-events:none}
#gate #avatar-swipe-window .avatar-adjacent{position:absolute;inset:0;width:100%;pointer-events:none}
@media(max-height:450px) and (orientation:landscape){#gate #avatar-swipe-window .avatar-page{--avatar-page-size:52px;grid-template-rows:repeat(2,var(--avatar-page-size))}}

/* v95.10: compact search-only pagination footer. */
.yt-search-results .yt-page-footer{display:flex;justify-content:center;padding:12px 0 6px;border-top:1px solid #ffffff20}
.yt-search-results .yt-page-footer button{font:inherit;font-size:.75rem;color:#e3cef5;background:#ffffff0d;border:1px solid #ffffff28;border-radius:10px;padding:7px 14px;min-height:32px;cursor:pointer}
.yt-search-results .yt-page-footer button:disabled{opacity:.65;cursor:default}

/* v95.12: performance setting, scoped to the existing Sing card. */
#kperformance-mode{max-width:100%;min-width:0;padding:8px 10px;border-radius:10px;color:inherit;background:#392362;border:1px solid rgba(255,255,255,.24);font:inherit}#kperformance .sl{flex-wrap:wrap;gap:8px}#kperformance-mode:disabled{opacity:.8}

/* v95.14 — Sing tab only: compact vocal studio, independent of the player. */
#p-sing:has(#kar:not([hidden])){padding:12px 12px 72px;scroll-padding-bottom:72px}
#p-sing:has(#kar:not([hidden]))>.hero{display:inline-block;text-align:left;padding:4px 0;vertical-align:middle}
#p-sing:has(#kar:not([hidden]))>.hero h2{font-size:1.15rem;line-height:1.3;margin:0}
#p-sing:has(#kar:not([hidden])) #sh{display:none}
#p-sing #mb{float:right;min-height:36px;border-radius:10px;padding:6px 11px;font-size:.76rem}
#p-sing #kar{clear:both;margin-top:10px;gap:9px;min-width:0}
#p-sing #kar .kar-stage,#p-sing #kar .kar-settings,#p-sing #kar .kar-fx{margin:0;padding:12px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff09;box-shadow:none;min-width:0}
#p-sing #kar .kar-stage{background:linear-gradient(145deg,#49247788,#211136 80%)}
#p-sing #kar .kar-stage-top{gap:10px;min-width:0}
#p-sing #kar .kar-avatar{width:38px;height:38px;font-size:20px}
#p-sing #kar .kar-stage-label{font-size:.61rem;letter-spacing:.09em}
#p-sing #kar .kar-stage-name{font-size:.98rem;line-height:1.35}
#p-sing #kar .kar-stage-song{font-size:.74rem;line-height:1.3}
#p-sing #kar .kar-voice{font-size:.68rem;line-height:1.3}
#p-sing #kar .kar-viz{height:18px;margin-top:6px;gap:3px;overflow:hidden}
#p-sing #kar .kar-viz i{max-height:100%}
#p-sing #kar .kar-stage.live .kar-viz{height:26px}
#p-sing #kar .kar-session{margin-top:10px;padding-top:10px;border-top:1px solid #ffffff18;display:grid;gap:8px;min-width:0}
#p-sing #kar .kar-session:has(#kl[hidden]):has(#ks:empty):has(#kc[hidden]){display:none}
#p-sing #kar .kar-session-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
#p-sing #kar .kar-session-actions:has(#kl:not([hidden])):has(.kar-secondary){grid-template-columns:minmax(0,1fr) auto}
#p-sing #kar .kar-session-actions:has(#kl[hidden]):has(#ks:empty){display:none}
#p-sing #kar #kl,#p-sing #kar .kar-sing{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px;border-radius:12px;padding:8px 10px;font-size:.87rem;font-weight:750;line-height:1.25;white-space:normal}
#p-sing #kar #ks,#p-sing #kar #kc{background:none;border:0;padding:0;margin:0;min-width:0;gap:6px}
#p-sing #kar #ks:empty{display:none}
#p-sing #kar .kar-secondary{background:#ffffff0a;border:1px solid #ffffff24;box-shadow:none;border-radius:12px;font-size:.72rem;min-height:44px;padding:8px 10px;color:#e5d2ff;white-space:normal}
#p-sing #kar .kar-reqs h4{margin:3px 0;font-size:.68rem}
#p-sing #kar .kar-req{padding:5px 8px;margin-top:4px;font-size:.76rem}
#p-sing #kar .kar-req button{min-height:34px;padding:5px 12px;font-size:.72rem}
#p-sing #kar .kar-monitor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:stretch}
#p-sing #kar #kc .kar-hear,#p-sing #kar #kc .kar-noise-btn{margin:0;display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:42px;width:100%;min-width:0;padding:7px 8px;border-radius:10px;border:1px solid #ffffff20;background:#ffffff08;box-shadow:none;font-size:.72rem;font-weight:650;color:#f7efff;text-align:left;line-height:1.2}
#p-sing #kar #kc .kar-noise-btn svg{display:none}
#p-sing #kar #kc .kar-noise-btn b{font-size:.68rem;min-width:0;padding:3px 6px}
#p-sing #kar #kc .kar-noise-btn.on{border-color:#7ee7ff70;background:#7ee7ff13}
#p-sing #kar #knc-help,#p-sing #kar .kar-tip{font-size:.65rem;line-height:1.3;color:#c8b7df;margin:0;overflow-wrap:anywhere}
#p-sing #kar .kar-miclevel{font-size:.7rem;gap:6px;min-width:0}
#p-sing #kar .kar-miclevel b{font-size:.65rem;white-space:normal;text-align:right}
#p-sing #kar #kc #kr{min-height:40px;border-radius:10px;font-size:.75rem;padding:7px 9px}
#p-sing #kar #kc #kd{font-size:.75rem;padding:8px 4px}
#p-sing #kar .kar-settings{display:grid;gap:10px}
#p-sing #kar .kar-mode{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}
#p-sing #kar .kar-setting-title,#p-sing #kar h4{font-size:.71rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#d9b7ff;margin:0;line-height:1.3}
#p-sing #kar .kar-setting-title{display:block}
#p-sing #kar #kperformance-mode{width:100%;min-width:0;max-width:100%;height:42px;min-height:42px;margin:0;font-size:.83rem;line-height:1.2;border-radius:10px;padding:6px 10px;background:#392362;color:#f4eaff;color-scheme:dark}
#p-sing #kar #kperformance-mode option{color:#fff;background:#392362}
#p-sing #kar .kar-mix-tip{margin:0;font-size:.68rem;line-height:1.35;overflow-wrap:anywhere}
#p-sing #kar .kar-mix{margin:0;padding:10px 0 0;background:none;border:0;border-top:1px solid #ffffff18;border-radius:0;min-width:0}
#p-sing #kar .kar-mix .sl{grid-template-columns:42px minmax(0,1fr) 25px!important;gap:8px;min-height:32px;margin:3px 0!important;font-size:.76rem}
#p-sing #kar .kar-mix .sl b{font-size:.74rem;font-variant-numeric:tabular-nums}
#p-sing #kar .sl input{min-width:0;width:100%;margin:0}
#p-sing #kar .kar-fx-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
#p-sing #kar #kfx-current{font-size:.68rem;color:#e6c4ff;font-weight:700;border:1px solid #cb8eff45;background:#b270ff16;padding:3px 8px;border-radius:99px;white-space:nowrap}
#p-sing #kar #kf{gap:6px;padding-bottom:4px}
#p-sing #kar #kf button{min-height:42px;border-radius:11px;padding:5px 10px 5px 5px;font-size:.76rem}
#p-sing #kar #kf button img{width:28px;height:28px;border-radius:8px}
#p-sing #kar details{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff18}
#p-sing #kar details summary{font-size:.78rem;font-weight:650;color:#e7d6ff;cursor:pointer;min-height:32px;line-height:32px}
#p-sing #kar details .sl{display:grid;grid-template-columns:minmax(75px,100px) minmax(0,1fr);gap:8px;min-height:32px;margin:3px 0;font-size:.72rem}
@media(min-width:680px){#p-sing #kar .kar-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}#p-sing #kar .kar-mix{padding:0 0 0 16px;border-top:0;border-left:1px solid #ffffff18}}

/* v95.15 — singer's stage, isolated from all ordinary room and entry layouts. */
#p-sing #ks-preview{width:100%;min-height:40px;border-radius:11px;background:#a86ff51c;border:1px solid #c68dff55;color:#f3dcff;font-size:.77rem;box-shadow:none}
#p-sing #ks-preview[aria-pressed=true]{background:#22cdbb25;border-color:#58e1d0;color:#a0ffed}
#p-sing #ks-preview-hint{font-size:.65rem;color:#cebee8;line-height:1.3}
#ks-stage[hidden],#ks-stage [hidden]{display:none!important}
#ks-stage{position:fixed;inset:0;z-index:2147481000;display:grid;place-items:center;padding:max(8px,var(--sat,env(safe-area-inset-top,0px))) max(8px,var(--sar,env(safe-area-inset-right,0px))) max(8px,var(--sab,env(safe-area-inset-bottom,0px))) max(8px,var(--sal,env(safe-area-inset-left,0px)));box-sizing:border-box;background:#120822f8;color:#f7efff;overscroll-behavior:contain;color-scheme:dark;font:400 14px/1.35 Poppins,system-ui,sans-serif}
#ks-stage *{box-sizing:border-box;min-width:0}
#ks-stage .ks-shell{width:min(100%,680px);height:100%;max-height:950px;min-height:0;display:flex;flex-direction:column;gap:7px;padding:clamp(10px,3vw,22px);border:1px solid #a982e95c;border-radius:26px;background:radial-gradient(ellipse at 12% 0%,#5e287ac7,transparent 55%),radial-gradient(ellipse at 100% 72%,#342079,transparent 55%),linear-gradient(145deg,#211334,#160b2d);box-shadow:0 22px 80px #0006;overflow:auto}
#ks-stage .ks-head{position:static;display:flex;align-items:center;gap:10px;flex:none;padding:0;background:none;border:0;box-shadow:none;min-height:0;margin:0}
#ks-stage .ks-head img{width:44px;height:44px;object-fit:contain;flex:none}#ks-stage .ks-head>div{flex:1;min-width:0}#ks-stage .ks-head small{font-size:.61rem;font-weight:800;letter-spacing:.12em;color:#dcaaff}#ks-stage h2{font-size:1.35rem;line-height:1.1;margin:2px 0;text-align:left}#ks-stage .ks-head p{margin:0;color:#cbb9e9;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ks-stage button{margin:0;box-shadow:none;background:#ffffff0c;border:1px solid #ffffff25;color:#f7efff;border-radius:12px;padding:7px;font:inherit;font-size:.76rem;font-weight:650;line-height:1.2;min-height:42px}#ks-stage button:disabled{opacity:.4}#ks-stage #ks-close{width:42px;height:42px;flex:none;font-size:1rem}
#ks-stage .ks-status,#ks-stage .ks-lyrics-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#ceb9e9;font-size:.72rem;flex:none}#ks-stage #ks-state{color:#a1f7da;font-weight:650}#ks-stage #ks-time{font-variant-numeric:tabular-nums;white-space:nowrap}
#ks-stage .ks-media{flex:none;width:100%;height:200px;background:#080613;border-radius:12px;align-self:center;max-width:400px;overflow:hidden}
#ks-stage button.ks-import{min-height:28px;font-size:.68rem;font-weight:700;border:1px solid #d2a6ff4d;border-radius:8px;background:#bd80ff18;padding:5px 9px;cursor:pointer;white-space:nowrap}
#ks-stage .ks-lyrics-area{position:relative;flex:1 1 0;min-height:92px;border-radius:18px;background:#0d06224a;border:1px solid #c4a0ff19;overflow:hidden}
#ks-stage .ks-lyrics{position:relative;overflow:hidden;height:100%;padding:22px 14px 36px;overscroll-behavior:contain;touch-action:none;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 10%,#000 84%,transparent)}
#ks-stage .ks-lyrics.ks-reading{overflow-y:auto;touch-action:pan-y;scrollbar-width:thin;mask-image:none}
#ks-stage .ks-line{margin:0 0 17px;color:#a497c1;font-size:clamp(1.04rem,3.7vw,1.65rem);font-weight:650;line-height:1.55;overflow-wrap:anywhere;transition:color .25s,opacity .25s;text-align:left}#ks-stage .ks-line.ks-past{opacity:.32}#ks-stage .ks-line.ks-current{color:#fff;opacity:1;font-weight:800}#ks-stage .ks-current .ks-sung{color:#dc92ff}#ks-stage .ks-current .ks-word{color:#ffcc70;text-shadow:0 0 16px #ffc26f99}#ks-stage .ks-empty{margin:0;color:#d7c7ef;line-height:1.6;font-size:.85rem;padding:8px;text-align:center}
#ks-stage .ks-count{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#201039e8;pointer-events:none;gap:4px;color:#ffe0ff}#ks-stage .ks-count strong{font-size:clamp(3rem,15vw,7rem);line-height:1;font-weight:900;text-shadow:0 0 30px #fe52ca90}#ks-stage .ks-count small{font-size:.7rem;font-weight:800;letter-spacing:.13em}#ks-stage .ks-pop{animation:ks-count-pop .8s cubic-bezier(.2,.8,.25,1) both}@keyframes ks-count-pop{0%{transform:scale(.65);opacity:.2}35%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}
#ks-stage .ks-progress{height:4px;background:#ffffff18;border-radius:99px;overflow:hidden;flex:none}#ks-stage .ks-progress i{display:block;height:100%;background:linear-gradient(90deg,#ffb050,#ff4e9c,#b544ed);border-radius:99px}
#ks-stage .ks-foot{display:grid;gap:6px;flex:none;padding:0;margin:0}#ks-stage .ks-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#ks-stage .ks-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 3px;min-height:51px;font-size:.68rem}#ks-stage .ks-buttons svg{width:20px;height:20px}#ks-stage #ks-pause{background:linear-gradient(135deg,#f54e8d,#a433dc);border-color:#f59cfb70}#ks-stage #ks-stop{color:#ffb7c3}#ks-stage #ks-record{color:#ff87b7}#ks-stage #ks-record.recording{background:#f5286128;border-color:#ff6087;color:#ffb8ca}
#ks-stage .ks-note{font-size:.65rem;color:#c9b7dd;margin:0;line-height:1.3}#ks-stage #ks-error:empty{display:none}#ks-stage #ks-error{color:#ffce9e}#ks-stage #ks-save{color:#a4f5d9;font-size:.74rem;font-weight:750}#ks-stage .ks-effect{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;color:#ddc8f5;font-size:.76rem;font-weight:700}#ks-stage .ks-effect select{width:100%;min-height:40px;margin:0;padding:5px 10px;color:#fff;background:#3a2458;border:1px solid #b994e94d;border-radius:10px;font-size:.8rem}#ks-stage .ks-tail{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.72rem;color:#e7d8f8}#ks-stage .ks-tail label{display:flex;align-items:center;gap:5px}#ks-stage .ks-tail input{accent-color:#d854d5;margin:0;width:16px;height:16px}#ks-stage #ks-unlock{min-height:30px;font-size:.69rem;padding:5px 8px}
/* Keep the existing YouTube iframe visible in the reserved slot. No clone, detach or reload. */
html body.in-room.ks-stage-open.ks-stage-video #room:not([data-tab=play]) .stage{display:block!important;position:fixed!important;left:var(--ks-video-x)!important;top:var(--ks-video-y)!important;width:var(--ks-video-w)!important;height:var(--ks-video-h)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;transform:none!important;opacity:1!important;visibility:visible!important;z-index:2147481001!important;overflow:hidden!important;background:#000!important;border:0!important;border-radius:12px!important;pointer-events:auto!important;box-shadow:none!important;perspective:none!important;isolation:isolate!important}
html body.ks-stage-video #room .stage > :not(.deck),html body.ks-stage-video #room .stage .deck > :not(.disc),html body.ks-stage-video #room .stage .disc > :not(.label),html body.ks-stage-video #room .stage::before,html body.ks-stage-video #room .stage::after,html body.ks-stage-video #room .stage .deck::before,html body.ks-stage-video #room .stage .deck::after,html body.ks-stage-video #room .stage .disc::before,html body.ks-stage-video #room .stage .disc::after{display:none!important}
html body.ks-stage-video #room .stage .deck,html body.ks-stage-video #room .stage .disc,html body.ks-stage-video #room .stage .label{position:relative!important;display:block!important;inset:auto!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;transform:none!important;animation:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-shadow:none!important;perspective:none!important;background:#000!important;filter:none!important;opacity:1!important}
html body.ks-stage-video #room .stage .label #pl{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important;transform:none!important;opacity:1!important;pointer-events:auto!important}
body.ks-stage-open #mini{visibility:hidden!important;pointer-events:none!important}
@media(max-height:620px) and (orientation:portrait){#ks-stage .ks-shell{border-radius:18px;gap:5px;padding:9px}#ks-stage .ks-head img{width:34px;height:34px}#ks-stage .ks-media{height:200px}#ks-stage .ks-lyrics-area{min-height:90px}#ks-stage .ks-buttons button{min-height:44px}}

@media(prefers-reduced-motion:reduce){#ks-stage .ks-pop{animation:none}#ks-stage .ks-line{transition:none}}
#ks-stage .ks-lyrics:has(.ks-line)::after{content:"";display:block;height:45%;pointer-events:none}
#ks-stage .ks-lyrics:has(.ks-line)::before{content:"";display:block;height:25%;pointer-events:none}

/* v95.16 — stage-only compact controls and touch-native vocal preset strip. */
#ks-stage .ks-foot{gap:6px}
#ks-stage .ks-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#ks-stage .ks-buttons button{min-height:55px;padding:5px 2px;gap:3px;border-radius:13px;background:linear-gradient(160deg,#ffffff13,#ffffff06);font-size:clamp(.59rem,1.7vw,.75rem);line-height:1.05;text-align:center}
#ks-stage .ks-buttons button span{white-space:normal;max-width:100%}
#ks-stage .ks-buttons svg{width:21px;height:21px;flex:none}
#ks-stage #ks-hear{color:#c7b5df}
#ks-stage #ks-hear[aria-pressed=true]{background:linear-gradient(145deg,#7654c855,#b74cd13b);border-color:#db9dff99;color:#f4deff;box-shadow:inset 0 0 0 1px #c18fff22}
#ks-stage .ks-effect{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;overflow:hidden}
#ks-stage .ks-fx-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.65rem;letter-spacing:.06em;color:#d2b7f2;font-weight:800}
#ks-stage #ks-fx-current{font-size:.68rem;letter-spacing:0;color:#f6d6ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ks-stage .ks-fx-scroll{display:flex;align-items:stretch;gap:7px;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#a16ccd66 transparent;padding:2px 1px 4px;position:relative;user-select:none;-webkit-user-select:none}
#ks-stage .ks-fx-card{flex:0 0 clamp(62px,18vw,82px);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:4px 3px 5px;border-radius:11px;scroll-snap-align:start;min-height:0;background:#ffffff09;border:1px solid #c7a0ff26;box-shadow:none}
#ks-stage .ks-fx-card img{width:37px;height:37px;object-fit:cover;border-radius:8px;pointer-events:none;flex:none}
#ks-stage .ks-fx-card span{font-size:.59rem;line-height:1.15;text-align:center;overflow-wrap:anywhere;color:#decfee;pointer-events:none}
#ks-stage .ks-fx-card[aria-pressed=true]{background:linear-gradient(145deg,#9f47cc55,#ed4aa430);border-color:#e69aff;box-shadow:inset 0 0 0 1px #e69aff33}
#ks-stage .ks-fx-card[aria-pressed=true] span{color:#fff;font-weight:800}
#ks-stage .ks-buttons button:focus-visible,#ks-stage .ks-fx-card:focus-visible{outline:2px solid #f0c1ff;outline-offset:-2px}
@media(max-height:620px) and (orientation:portrait){#ks-stage .ks-buttons button{min-height:47px}#ks-stage .ks-fx-card img{width:30px;height:30px}#ks-stage .ks-foot{gap:4px}}

/* v95.19: Sing setup only — aligned heading, proportional icon, compact actions. */
#p-sing>.hero,#p-sing:has(#kar:not([hidden]))>.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;text-align:left;padding:0 0 10px;margin:0;width:100%;}
#p-sing>.hero h2,#p-sing:has(#kar:not([hidden]))>.hero h2{grid-column:1;grid-row:1;font-size:1.15rem;line-height:1.25;margin:0;min-width:0}
#p-sing>.hero #sh{grid-column:1/-1;grid-row:2;margin:0;font-size:.75rem;color:#cdbce8}
#p-sing>.hero #mb{grid-column:2;grid-row:1;float:none;justify-self:end;min-height:36px;padding:6px 11px;white-space:nowrap;box-shadow:none;font-size:.73rem;border:1px solid #ffffff26;background:#ffffff0c}
#p-sing>.hero #mb[aria-pressed=true]{background:#9a44ce35;border-color:#d99bf785;color:#f4dcff}
#p-sing #kar{clear:none;margin:0;gap:8px}
#p-sing #kar .kar-stage,#p-sing #kar .kar-fx{padding:10px 11px}
#p-sing #kar .kar-avatar{width:42px;height:42px;flex:0 0 42px;line-height:1;overflow:hidden;box-shadow:0 0 0 2px #ffffff20}
#p-sing #kar #kav .ic{display:grid;place-items:center;width:24px;height:24px;line-height:1}
#p-sing #kar #kav .ic svg{display:block;width:22px;height:22px;max-width:100%;max-height:100%}
#p-sing #kar .kar-viz{height:10px;margin-top:5px;gap:3px}
#p-sing #kar .kar-stage.live .kar-viz{height:24px}
#p-sing #kar .kar-session{margin-top:8px;padding-top:8px;gap:6px}
#p-sing #kar .kar-session-actions:has(#ks-preview:not([hidden])):has(#kl:not([hidden])){grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px}
#p-sing #kar .kar-session-actions #ks{grid-column:1/-1}
#p-sing #kar #ks-preview{min-height:44px;padding:5px 7px;font-size:.73rem;line-height:1.2;white-space:normal}
#p-sing #kar #kc{gap:5px}
#p-sing #kar #ks-preview-hint{font-size:.64rem;margin:0;line-height:1.3;color:#cebee8}
#p-sing #kar #kc .kar-hear,#p-sing #kar #kc .kar-noise-btn{min-height:40px;padding:6px 8px}
#p-sing #kar .kar-tip{display:none} /* the private-preview hint already recommends headphones */
#p-sing #kar #knc-help{font-size:.62rem}
#p-sing #kar .kar-setup{margin:0;padding:0 11px;border:1px solid #ffffff20;border-radius:16px;background:#ffffff09;min-width:0}
#p-sing #kar .kar-setup>summary{display:flex;align-items:center;gap:8px;min-height:44px;line-height:1.3;list-style:none;font-size:.77rem;font-weight:700;cursor:pointer}
#p-sing #kar .kar-setup>summary::-webkit-details-marker{display:none}
#p-sing #kar .kar-setup>summary small{margin-left:auto;font-size:.67rem;color:#cdb4ef;white-space:nowrap}
#p-sing #kar .kar-setup>summary::after{content:"";width:7px;height:7px;border-right:2px solid #cdb4ef;border-bottom:2px solid #cdb4ef;transform:rotate(45deg);margin:0 3px 4px 0;flex:none}
#p-sing #kar .kar-setup[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
#p-sing #kar .kar-setup .kar-settings{padding:9px 0 11px;background:none;border:0;border-top:1px solid #ffffff18;border-radius:0;box-shadow:none}
#p-sing:has(#kar:not([hidden])){padding-bottom:110px;scroll-padding-bottom:110px}
/* Normal floating bar docks just above the actual navigation, including its raised mic.
   Music Discovery still uses its original independent slot and drag bounds. */
body>#mini{bottom:calc(var(--mini-base,calc(133px + var(--sab,env(safe-area-inset-bottom,0px)) + var(--sab,env(safe-area-inset-bottom,0px)))) + var(--mini-lift,0px))!important}
#p-sing #kar .kar-setup:not([open])>.kar-settings{display:none}
/* Remove the older large gradient disclosure treatment inside this one pane. */
#p-sing #kar details>summary{background:none;border:0;box-shadow:none;border-radius:0;padding:7px 0;min-height:36px;line-height:1.3;gap:8px}
#p-sing #kar details>summary::after{background:none;box-shadow:none;border-radius:0;width:7px;height:7px;border:0;border-right:2px solid #cdb4ef;border-bottom:2px solid #cdb4ef;transform:rotate(45deg);margin:0 3px 4px 0;flex:none}
#p-sing #kar details[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
#p-sing #kar .kar-setup>summary{min-height:44px}
#p-sing #kar .kar-fx>details{margin-top:5px;padding-top:4px}

/* v95.19: stage video contains only the official player; no app-level tap controls. */
html body.ks-stage-video #room .stage,html body.ks-stage-video #room .stage .deck,html body.ks-stage-video #room .stage .disc,html body.ks-stage-video #room .stage .label{pointer-events:none!important}
html body.ks-stage-video #room .stage .label #pl{pointer-events:auto!important}

/* v95.21: accessible slim stage scrubber; only inside the karaoke dialog. */
#ks-stage .ks-progress{height:26px;display:flex;align-items:center;overflow:visible;background:none;border-radius:0;flex:none;min-width:0}
#ks-stage #ks-seek{appearance:none;-webkit-appearance:none;width:100%;min-width:0;display:block;height:26px;margin:0;padding:0;background:transparent;border:0;border-radius:0;outline-offset:2px;touch-action:pan-y;cursor:pointer;box-shadow:none}
#ks-stage #ks-seek::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(90deg,#ffb050,#ff4e9c,#b544ed) 0/var(--ks-fill,0%) 100% no-repeat,#ffffff24}
#ks-stage #ks-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:#ffe0f8;border:1px solid #e68bff;margin-top:-4.5px;box-shadow:0 0 8px #f16beaa0}
#ks-stage #ks-seek::-moz-range-track{height:4px;border-radius:99px;background:linear-gradient(90deg,#ffb050,#ff4e9c,#b544ed) 0/var(--ks-fill,0%) 100% no-repeat,#ffffff24}
#ks-stage #ks-seek::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#ffe0f8;border:1px solid #e68bff;box-shadow:0 0 8px #f16beaa0}
#ks-stage #ks-seek:disabled{opacity:.55;cursor:default}#ks-stage #ks-seek:focus-visible{outline:2px solid #f0c1ff;border-radius:5px}

/* v95.24 — karaoke-only video and retry controls; no element covers the YouTube iframe. */
html body.ks-stage-open.ks-stage-video #room .stage .deck > :not(.disc),html body.ks-stage-open.ks-stage-video #room .stage .label > :not(#pl),html body.ks-stage-open.ks-stage-video #room .stage .vr-fv-open,html body.ks-stage-open.ks-stage-video #room .stage .vr-fv-tools,html body.ks-stage-open.ks-stage-video #room .stage .vr-fv-dock,html body.ks-stage-open.ks-stage-video #room .stage .vr-fv-presence{display:none!important;visibility:hidden!important;pointer-events:none!important}
#ks-stage #ks-media:not([hidden]){height:200px;display:flex;flex-direction:column;background:#000;flex-shrink:0}
#ks-stage #ks-video-slot{height:100%;flex:1 1 auto;width:100%}
#ks-stage .ks-lyric-panel{display:contents}
#ks-stage .ks-lyric-actions{display:flex;align-items:center;gap:6px;flex:none}
#ks-stage #ks-retry[hidden]{display:none!important}

/* v95.26 — stage-only compact sound mixer. No changes to navigation or player frame. */
#ks-stage .ks-mix-anchor{position:relative;display:flex;justify-content:center;height:20px;min-height:20px;flex:none;z-index:3}
#ks-stage #ks-mix-toggle,#ks-stage #ks-mix-close{display:grid;place-items:center;width:36px;height:20px;min-height:20px;padding:0;border:0;background:transparent;color:#d7b8f2;border-radius:8px;touch-action:none;cursor:pointer}
#ks-stage #ks-mix-toggle svg,#ks-stage #ks-mix-close svg{width:12px;height:12px}
#ks-stage #ks-mix-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
#ks-stage #ks-mix-sheet{position:absolute;bottom:calc(100% + 3px);left:50%;translate:-50% 0;width:min(100%,238px);padding:5px 12px 9px;display:grid;gap:2px;border:1px solid #bc8ce767;border-radius:15px;background:#302047;box-shadow:0 7px 22px #0007;animation:ks-mix-rise .16s ease-out}
#ks-stage #ks-mix-sheet[hidden]{display:none!important}
#ks-stage #ks-mix-close{justify-self:center;height:19px;min-height:19px}
#ks-stage #ks-mix-sheet h3{margin:0 0 3px;font-size:.8rem;color:#f5eaff;font-weight:700}
#ks-stage #ks-mix-sheet label{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.7rem;color:#e2d0f4;font-weight:600}
#ks-stage #ks-mix-sheet output{font-variant-numeric:tabular-nums;color:#dcaaff}
#ks-stage #ks-mix-sheet input{appearance:none;-webkit-appearance:none;width:100%;height:22px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;touch-action:none;cursor:pointer}
#ks-stage #ks-mix-sheet input::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(90deg,#e591fd,#a855f7) 0/var(--ks-mix-fill,0%) 100% no-repeat,#ffffff26}
#ks-stage #ks-mix-sheet input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin-top:-4px;border:1px solid #e8b4ff;border-radius:50%;background:#fae9ff}
#ks-stage #ks-mix-sheet input::-moz-range-track{height:4px;border-radius:99px;background:linear-gradient(90deg,#e591fd,#a855f7) 0/var(--ks-mix-fill,0%) 100% no-repeat,#ffffff26}
#ks-stage #ks-mix-sheet input::-moz-range-thumb{width:12px;height:12px;border:1px solid #e8b4ff;border-radius:50%;background:#fae9ff}
@keyframes ks-mix-rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#ks-stage #ks-mix-sheet{animation:none}}

/* v95.27: freeze covered room decorations while the karaoke stage is open.
   The video iframe, stage itself, lyrics and controls are not affected. */
body.ks-stage-open #room > :not(#ks-stage),body.ks-stage-open #room > :not(#ks-stage) *,body.ks-stage-open #room > :not(#ks-stage)::before,body.ks-stage-open #room > :not(#ks-stage)::after,body.ks-stage-open #room > :not(#ks-stage) *::before,body.ks-stage-open #room > :not(#ks-stage) *::after{animation-play-state:paused!important;}
body.ks-stage-open #room > :not(#ks-stage) *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}

/* v95.28: all background/backdrop blur declarations are permanently off across every app page. Decorative foreground filter:blur(), glows and animations remain unchanged. */

/* v95.29 — pause offscreen keyframes (including pseudo-elements), never media.
   The landing particles had an explicit running!important rule, so match that
   selector's specificity as well. Removing the marker restores original CSS. */
html:root body [data-vr-motion-paused],html:root body [data-vr-motion-paused]::before,html:root body [data-vr-motion-paused]::after,
html.vr-motion-hidden:root body *,html.vr-motion-hidden:root body *::before,html.vr-motion-hidden:root body *::after,
html:root body #fx #stars span[data-vr-motion-paused],html:root body #fx #fnotes span[data-vr-motion-paused],
html.vr-motion-hidden:root body #fx #stars span,html.vr-motion-hidden:root body #fx #fnotes span{animation-play-state:paused!important;}

html.vr-motion-hidden:root,html.vr-motion-hidden:root::before,html.vr-motion-hidden:root::after,html.vr-motion-hidden:root body,html.vr-motion-hidden:root body::before,html.vr-motion-hidden:root body::after,html[data-vr-motion-paused],html[data-vr-motion-paused]::before,html[data-vr-motion-paused]::after,body[data-vr-motion-paused],body[data-vr-motion-paused]::before,body[data-vr-motion-paused]::after{animation-play-state:paused!important;}

/* Keep the portrait header and status in their original positions. */
#ks-stage .ks-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center;flex:none}
#ks-stage .ks-top .ks-head{grid-column:1;grid-row:1}
#ks-stage .ks-top #ks-close{grid-column:2;grid-row:1}
#ks-stage .ks-top .ks-status{grid-column:1/-1;grid-row:2}
@media(max-height:620px) and (orientation:portrait){#ks-stage .ks-top{row-gap:5px}}
/* v95.30 — karaoke landscape only. Equal-height media/lyrics panels, compact
   transport/effects row; keep the original portrait stack and the real iframe. */
@media (orientation:landscape) and (min-width:568px){
 #ks-stage .ks-shell{width:min(100%,1440px);height:100%;max-height:min(100%,calc(36vw + 200px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(132px,1fr) auto auto;gap:6px 10px;align-items:stretch;padding:clamp(8px,1.35vw,18px);border-radius:20px}
 #ks-stage .ks-top{grid-column:1/-1;grid-row:1;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
 #ks-stage .ks-top .ks-head{grid-column:1;grid-row:1;gap:8px}
 #ks-stage .ks-top .ks-status{grid-column:2;grid-row:1;gap:10px}
 #ks-stage .ks-top #ks-close{grid-column:3;grid-row:1}
 #ks-stage #ks-state{max-width:22vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #ks-stage .ks-head img{width:clamp(32px,4vw,52px);height:clamp(32px,4vw,52px)}
 #ks-stage .ks-head h2{font-size:clamp(1.05rem,2.3vw,1.5rem)}
 #ks-stage #ks-close{width:36px;height:36px;min-height:36px}
 #ks-stage #ks-media:not([hidden]){grid-column:1;grid-row:2;width:100%;height:100%;min-height:0;max-width:none;align-self:stretch;display:grid;place-items:center;container-type:size}
 #ks-stage #ks-video-slot{width:100%;height:100%;min-height:0}
 @supports (width:1cqw){#ks-stage #ks-video-slot{width:min(100cqw,calc(100cqh * 16 / 9));height:min(100cqh,calc(100cqw * 9 / 16))}}
 #ks-stage .ks-lyric-panel{grid-column:2;grid-row:2;display:flex;flex-direction:column;min-height:0;gap:5px;padding:7px;border:1px solid #c4a0ff30;border-radius:12px;background:#ffffff06}
 #ks-stage .ks-shell:has(.ks-media[hidden]) .ks-lyric-panel{grid-column:1/-1}
 #ks-stage .ks-lyrics-head{min-height:28px;gap:4px;padding:0 2px}
 #ks-stage #ks-lyric-mode{overflow-wrap:anywhere;line-height:1.2}
 #ks-stage .ks-lyrics-area{min-height:0;border-radius:10px;flex:1 1 0}
 #ks-stage .ks-lyrics{padding:10px 12px 14px}
 #ks-stage .ks-line{font-size:clamp(.9rem,2.1vw,1.55rem);line-height:1.4;margin-bottom:12px}
 #ks-stage .ks-lyrics:has(.ks-empty){overflow-y:auto;touch-action:pan-y;mask-image:none;scrollbar-width:thin;padding:6px}
 #ks-stage .ks-empty{font-size:clamp(.72rem,1.45vw,1rem);padding:6px;line-height:1.45}
 #ks-stage .ks-progress{grid-column:1/-1;grid-row:3;height:22px}
 #ks-stage #ks-seek{height:22px}
 #ks-stage .ks-foot{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:3px 10px;align-items:center}
 #ks-stage .ks-mix-anchor{grid-column:2;grid-row:1;height:16px;min-height:16px}
 #ks-stage #ks-mix-toggle{height:16px;min-height:16px}
 #ks-stage .ks-buttons{grid-column:1;grid-row:1/3;align-self:center}
 #ks-stage .ks-buttons button{min-height:clamp(44px,6vw,64px);font-size:clamp(.57rem,1.15vw,.75rem);padding:4px 2px;gap:3px}
 #ks-stage .ks-buttons svg{width:19px;height:19px}
 #ks-stage .ks-effect{grid-column:2;grid-row:2;gap:3px}
 #ks-stage .ks-fx-scroll{gap:5px;padding:1px 1px 2px}
 #ks-stage .ks-fx-card{flex-basis:clamp(52px,6.5vw,80px);padding:3px 2px;gap:3px}
 #ks-stage .ks-fx-card img{width:clamp(25px,3.2vw,38px);height:clamp(25px,3.2vw,38px)}
 #ks-stage .ks-foot>.ks-note,#ks-stage #ks-save{grid-column:1/-1}
}
@media (orientation:landscape) and (min-width:568px) and (max-height:430px){
 #ks-stage .ks-shell{padding:7px;gap:4px 8px;border-radius:15px;grid-template-rows:auto minmax(112px,1fr) auto auto}
 #ks-stage .ks-head img{width:30px;height:30px}
 #ks-stage .ks-head>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
 #ks-stage .ks-head small{font-size:.5rem;grid-column:1;grid-row:1;white-space:nowrap}
 #ks-stage .ks-head h2{grid-column:1;grid-row:2}
 #ks-stage .ks-head p{grid-column:2;grid-row:1/3}
 #ks-stage .ks-top .ks-status{gap:6px}
 #ks-stage .ks-head h2{font-size:1rem;margin:0}
 #ks-stage .ks-head p{font-size:.65rem}
 #ks-stage #ks-close{width:32px;height:32px;min-height:32px}
 #ks-stage .ks-status{font-size:.65rem}
 #ks-stage .ks-lyric-panel{padding:4px;gap:3px}
 #ks-stage .ks-lyrics-head{min-height:24px;font-size:.65rem}
 #ks-stage button.ks-import{min-height:24px;padding:3px 6px;font-size:.62rem}
 #ks-stage .ks-progress,#ks-stage #ks-seek{height:18px}
 #ks-stage .ks-foot{gap:2px 8px}
 #ks-stage .ks-buttons button{min-height:44px}
 #ks-stage .ks-fx-card img{width:25px;height:25px}
 #ks-stage .ks-fx-card span{font-size:.56rem}
 #ks-stage .ks-note{font-size:.58rem}
}

/* v95.35: Liked Songs only — compact authoritative queue feedback. */
.likes-list li>button[data-like][data-queue-state="queued"],.likes-list li>button[data-like][data-queue-state="playing"],.likes-list li>button[data-like][data-queue-state="requested"]{background:#25483f;color:#c2f7da;border-color:#6ce3ae55;opacity:1;cursor:default}
.likes-list li>button[data-like][data-queue-state="pending"]{opacity:.7;cursor:wait}
.likes-queue-notice{position:fixed;z-index:71;top:calc(55px + var(--sat,env(safe-area-inset-top,0px)));right:calc(min(340px,88vw) / 2);transform:translateX(50%);width:max-content;max-width:calc(min(340px,88vw) - 28px);padding:7px 12px;border-radius:999px;border:1px solid #6ce3ae80;background:#183d34;color:#dcffeb;font-size:.72rem;font-weight:700;line-height:1.3;text-align:center;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 4px 12px #0005}
.likes-queue-notice.is-error{background:#542239;color:#ffe5eb;border-color:#ffa3ba88}

/* v95.40: Queue-only pager. Existing add/search/upload/request area is untouched. */
#room[data-tab=queue] #p-queue{display:flex;flex-direction:column;overflow-y:auto}
#p-queue > :not(#queue-browser){flex:none}
#queue-browser{display:flex;flex-direction:column;flex:1 0 172px;min-width:0;min-height:172px;margin-top:12px;gap:8px}
#queue-subtabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border:1px solid #ffffff20;border-radius:16px;background:#12082080;flex:none}
#queue-subtabs button{min-width:0;min-height:40px;border:1px solid transparent;border-radius:12px;padding:3px 2px;background:transparent;color:#c8b5e1;font-size:clamp(.65rem,2.65vw,.82rem);font-weight:700;line-height:1.12;box-shadow:none;white-space:normal;touch-action:manipulation}
#queue-subtabs button[aria-selected=true]{background:linear-gradient(135deg,#6537b0,#852769);border-color:#ffffff20;color:white}
#queue-subtabs button:focus-visible{outline:2px solid #dfb5ff;outline-offset:-2px}
#queue-swipe-window{position:relative;overflow:hidden;flex:1 1 auto;min-height:108px;min-width:0;touch-action:pan-y pinch-zoom;isolation:isolate;user-select:none;-webkit-user-select:none}
#queue-swipe-track{display:flex;width:100%;height:100%;min-width:0;transform:translateX(var(--queue-offset,0%));transition:transform .26s cubic-bezier(.22,.75,.25,1)}
#queue-swipe-window.is-dragging #queue-swipe-track{transition:none;will-change:transform}
#queue-swipe-window.no-transition #queue-swipe-track{transition:none}
#queue-swipe-track>.queue-page{flex:0 0 100%;min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;scrollbar-width:thin;padding:3px 2px 76px;box-sizing:border-box;touch-action:pan-y pinch-zoom}
#p-queue .queue-page h3,#p-queue .queue-page h3:first-of-type{margin:4px 0 9px}
#p-queue .queue-page .playlist-heading h3{margin:4px auto 9px 0}
#p-queue .queue-page li{gap:7px;padding:7px 8px;border-radius:13px}
#p-queue .queue-page li img{width:43px;height:43px;flex:none;border-radius:9px;-webkit-user-drag:none}
#p-queue .queue-page li>div{min-width:0;flex:1 1 0}
#p-queue .queue-page li button{flex:none;white-space:nowrap;padding:3px 8px;min-height:34px;font-size:.72rem}
#p-queue .queue-page li>div>b.queue-title-clip{display:block;white-space:nowrap;overflow:hidden;text-overflow:clip;overflow-wrap:normal;font-size:.83rem;line-height:1.4;-webkit-line-clamp:unset;-webkit-box-orient:initial;max-width:100%}
#p-queue .queue-page li>div>small{font-size:.71rem}
#p-queue .queue-title-text{display:inline-block;white-space:nowrap;max-width:none;vertical-align:top}
#p-queue .queue-page.is-active .queue-title-clip.is-overflowing .queue-title-text{animation:queue-title-glide var(--queue-title-duration,10s) ease-in-out infinite alternate}
#p-queue .queue-page:not(.is-active) *{animation-play-state:paused!important}
body.cool #queue-browser .queue-title-text,body.idle #queue-browser .queue-title-text{animation-play-state:paused!important}
@keyframes queue-title-glide{0%,16%{transform:translateX(0)}84%,100%{transform:translateX(var(--queue-title-distance,0px))}}
#p-queue .queue-empty{color:var(--mu);font-size:.82rem;text-align:center;padding:16px 8px;border:1px dashed #ffffff26;border-radius:12px;margin:4px 0}
@media(prefers-reduced-motion:reduce){#queue-swipe-track{transition:none}#p-queue .queue-page.is-active .queue-title-clip.is-overflowing .queue-title-text{animation:none;white-space:normal;overflow-wrap:anywhere;width:100%}#p-queue .queue-title-clip.is-overflowing{mask-image:none}}

/* v95.46: App controls are not selectable text. Editing and explicit copy
   actions remain available; do not disable browser zoom or page scrolling. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input:not([type]),input[type=text],input[type=search],input[type=url],input[type=email],input[type=password],input[type=tel],input[type=number],textarea,[contenteditable]:not([contenteditable=false]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
button,button *,input[type=range],.time,img,svg{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
img,button svg{-webkit-user-drag:none}
/* The visual 4px track / 14px thumb stay untouched. The range occupies the
   existing speaker-button row vertically, not just the visible thumb. */
#room[data-tab=play] .stage .ctl .vol #vol{height:44px;margin-block:0;touch-action:none;min-width:0;cursor:pointer;direction:ltr}
@media (orientation:landscape) and (min-width:560px) and (max-height:500px){
 #room[data-tab=play] .stage .ctl .vol #vol{height:clamp(28px,7svh,40px)}
}
@media (orientation:landscape) and (min-width:560px) and (max-height:350px){
 #room[data-tab=play] .stage .ctl .vol #vol{height:24px!important}
}

/* v95.49: native tap tint is separate from text selection. Suppress it on
   every app surface, including links and nested icons. Keep editable text,
   explicit copy actions, scrolling, gestures and keyboard focus intact. */
html,body,body :where(*){-webkit-tap-highlight-color:transparent}
body :where(:not(input,textarea,[contenteditable]):not([contenteditable]:not([contenteditable=false]) *)){
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
/* Reserve the exact final square before the deferred avatar source arrives.
   No percentage/intrinsic sizing or animated geometry in the grid cell. */
#gate #join-fields .gate-profile{--gate-avatar-size:48px}
#gate #join-fields #gate-avatar-preview,
#gate #join-fields #gate-avatar{
  box-sizing:border-box;width:var(--gate-avatar-size);height:var(--gate-avatar-size);
  min-width:var(--gate-avatar-size);max-width:var(--gate-avatar-size);
  min-height:var(--gate-avatar-size);max-height:var(--gate-avatar-size);
  aspect-ratio:1/1;border-radius:50%;transition:none;animation:none;
}
#gate #join-fields #gate-avatar-preview{
  position:relative;display:block;justify-self:start;align-self:center;
  flex:none;padding:0;border:0;transform:none;background:#2b1545;
}
#gate #join-fields #gate-avatar{
  position:absolute;inset:0;display:block;object-fit:cover;object-position:center;
  pointer-events:none;transform:none;-webkit-user-drag:none;
}
#gate #join-fields #gate-avatar:not([src]){visibility:hidden}
@media(max-width:360px){#gate #join-fields .gate-profile{--gate-avatar-size:44px}}

/* v95.50 — Library: preserve the existing swipe pane and player. */
#queue-subtabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:4px}
#queue-subtabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:53px;padding:4px 1px;font-size:clamp(9px,2.5vw,12px);line-height:1.12;font-weight:650;letter-spacing:-.025em;word-break:normal}
#queue-subtabs button svg{width:17px;height:17px;flex:none;pointer-events:none}
#queue-subtabs button span{display:block;max-width:100%;text-align:center;pointer-events:none}
#queue-subtabs button[aria-selected=true] svg{color:#f6d7ff}
#p-queue button,#p-queue button *,#p-queue label,#p-queue img,#p-queue .queue-page{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#p-queue #au{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.library-upload{margin-top:9px;min-width:0}
#p-queue #up-audio{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;margin:0;padding:8px 10px;text-align:left;border:1px solid #ffffff26;border-radius:15px;background:linear-gradient(125deg,#8150bd24,#ffffff08);box-shadow:none;touch-action:manipulation;color:#fff}
#up-audio .upload-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#ac75ed25;color:#dfbeff;flex:none}
#up-audio .upload-symbol svg{width:19px;height:19px;color:inherit}
#up-audio .upload-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#up-audio strong{font-size:.82rem;line-height:1.2;font-weight:700}
#up-audio small{font-size:clamp(.63rem,2.7vw,.72rem);line-height:1.25;color:#c9b9e0;font-weight:500}
#up-audio .upload-chevron{display:flex;flex:none;color:#d4b4f1}
#up-audio .upload-chevron svg{width:16px;height:16px;color:inherit}
#up-audio:disabled{opacity:.65;cursor:default;transform:none}
#up-note{overflow-wrap:anywhere;text-align:left;font-size:.72rem;line-height:1.35;margin:6px 3px 0}
#up-progress{display:block;width:100%;height:5px;margin:6px 0 0;accent-color:#bd83fa;border:0;border-radius:8px;overflow:hidden}
#up-progress[hidden]{display:none}
.library-rec-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 7px}
#p-queue .library-rec-head h3{margin:0 0 2px}
.library-rec-head small,#library-rec-status{color:#c8b5e1;font-size:.72rem;line-height:1.35}
#library-rec-status{margin:4px 0 9px;overflow-wrap:anywhere}
#library-rec-status.is-error{color:#ffb2c1}
#library-rec-refresh{display:flex;align-items:center;gap:4px;flex:none;min-height:36px;padding:5px 9px;border-radius:10px;background:#ffffff0d;border:1px solid #ffffff26;font-size:.71rem;color:#ebd8ff;box-shadow:none}
#library-rec-refresh svg{width:13px;height:13px}
#library-recommendations{display:grid;gap:7px;min-width:0}
.library-rec-card{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #ffffff18;border-radius:13px;background:#ffffff08}
.library-rec-card>img{width:64px;aspect-ratio:1;object-fit:cover;border-radius:9px}
.library-rec-info{min-width:0;display:grid;gap:3px}
.library-rec-info>b{font-size:.78rem;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.library-rec-info>small{font-size:.68rem;color:#c8b5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-rec-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#p-queue .library-rec-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;min-width:30px;padding:5px 6px;border-radius:9px;border:1px solid #ffffff23;background:#ffffff0d;color:#ead7ff;box-shadow:none;font-size:.66rem;line-height:1.15;touch-action:manipulation}
#p-queue .library-rec-actions button svg{width:15px;height:15px;pointer-events:none}
#p-queue .library-rec-actions button.is-liked{color:#ff87b9;background:#ff5d9c20}
#p-queue .library-rec-actions button.is-following{color:#adf5cb}
#p-queue .library-rec-actions button.yt-queue-text{background:#8d4dcc38;color:white}
#p-queue .library-rec-actions button:disabled{opacity:.5;cursor:default}
#library-recommendations .yt-search-empty{padding:18px 10px;display:grid;justify-items:center;gap:7px;text-align:center;color:#d2bfe9;border:1px dashed #ffffff26;border-radius:13px;font-size:.76rem}

/* v95.52 — public live chat only. A real enlarged button, a small visual
   edge pill, and a circular floating state. Inset the touch target from the
   OS/browser's reserved edge-swipe strip. */
html:has(#live-chat-shell:not([hidden])){overscroll-behavior-x:none}
#live-chat-tab{
  width:52px!important;height:60px!important;min-width:0!important;min-height:0!important;
  right:calc(12px + var(--sar,env(safe-area-inset-right,0px)));left:auto;
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;align-items:flex-end!important;padding:0 5px 0 0!important;
  touch-action:none!important;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;user-select:none;-webkit-user-select:none;isolation:isolate;
}
#live-chat-tab::before{content:"";position:absolute;right:0;top:3px;bottom:3px;width:24px;
  border-radius:16px 6px 6px 16px;background:linear-gradient(150deg,#7548ad,#321b62);
  border:1px solid #d5b9ff65;box-shadow:0 3px 10px #120a304a;z-index:-1;pointer-events:none}
#live-chat-tab>*{pointer-events:none;margin-right:1px}
.live-chat-left #live-chat-tab{left:calc(12px + var(--sal,env(safe-area-inset-left,0px)));right:auto;
  border:0!important;border-radius:0!important;box-shadow:none!important;align-items:flex-start!important;padding:0 0 0 5px!important}
.live-chat-left #live-chat-tab::before{left:0;right:auto;border-radius:6px 16px 16px 6px}
.live-chat-unread #live-chat-tab::before{border-color:#8bffcd99}
.live-chat-dragging #live-chat-tab{opacity:1!important;align-items:center!important;padding:0!important;transition:none!important}
.live-chat-dragging #live-chat-tab::before{left:50%;right:auto;transform:translateX(-50%);width:32px;border-radius:18px}
.live-chat-floating #live-chat-tab{width:48px!important;height:48px!important;border-radius:50%!important}
.live-chat-floating #live-chat-tab::before{width:46px;height:46px;top:1px;bottom:auto;border-radius:50%;background:linear-gradient(145deg,#975bdb,#452176);box-shadow:0 5px 18px #150b3988}
.live-chat-floating .live-chat-chevron{transform:none!important}
#live-chat-panel{width:min(340px,calc(100vw - 76px))!important;height:min(54dvh,435px)!important;
  right:calc(70px + var(--sar,env(safe-area-inset-right,0px)))!important;
  border-radius:22px!important;border:1px solid #cdb2ff52!important;
  background:linear-gradient(155deg,#30204ef5,#1c1235fa)!important;
  box-shadow:0 18px 38px #13092485,inset 0 1px #ffffff14!important;overscroll-behavior:contain;touch-action:pan-y}
.live-chat-left #live-chat-panel{left:calc(70px + var(--sal,env(safe-area-inset-left,0px)))!important;right:auto!important}
@media(max-width:370px){#live-chat-panel{width:calc(100vw - 76px)!important}}
@media(orientation:landscape) and (max-height:550px){#live-chat-panel{height:min(81dvh,320px)!important}}
.live-chat-head{min-height:54px!important;padding:10px 12px!important;gap:10px!important;border-bottom:1px solid #ffffff14!important;background:#ffffff05!important}
.live-chat-head-icon{width:32px;height:32px;border-radius:11px;color:#ebd6ff;background:linear-gradient(140deg,#8750be,#52318c)}
.live-chat-head-icon svg{width:19px;height:19px}
.live-chat-head b{font-size:.91rem;letter-spacing:-.02em}
.live-chat-head small{font-size:.65rem;color:#d3c4e7}
#live-chat-close{width:34px;height:34px;border-radius:10px!important;background:#ffffff0b!important;touch-action:manipulation}
#live-chat-feed{padding:12px 10px;gap:12px;mask-image:none;-webkit-mask-image:none;touch-action:pan-y}
.live-chat-message{max-width:100%;gap:8px;align-items:flex-start}
.live-chat-avatar{width:29px;height:29px;aspect-ratio:1;overflow:hidden;border-radius:50%;flex:0 0 29px;margin-top:3px;box-shadow:0 0 0 1px #ffffff35}
.live-chat-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;pointer-events:none}
.live-chat-bubble{padding:9px 10px;border-radius:5px 14px 14px 14px;background:#ffffff0d;border:1px solid #ffffff19;box-shadow:none}
.live-chat-own .live-chat-bubble{background:#7543ac40;border-color:#b082e444;border-radius:14px 5px 14px 14px}
.live-chat-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 5px;margin-bottom:4px}
.live-chat-meta b{font-size:.72rem;max-width:100%;color:#f3eaff;min-width:0}
.live-chat-meta time{font-size:.55rem;color:#c7b6dc;opacity:1}
.live-chat-bubble p{font-size:.79rem;line-height:1.42;color:#f8f3ff}
.live-chat-role{display:inline-flex;align-items:center;gap:3px;flex:none;padding:2px 5px;border-radius:5px;font-size:.57rem;line-height:1.3;font-weight:800;white-space:nowrap}
.live-chat-role svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.live-chat-role-host .live-chat-role{background:#f6cb6e25;color:#ffdc8f;border:1px solid #f6cb6e55}
.live-chat-role-host .live-chat-bubble{background:linear-gradient(135deg,#78502d65,#6e3e8560);border-color:#f5c977aa;box-shadow:inset 0 0 0 1px #f5c97717}
.live-chat-role-host .live-chat-avatar{box-shadow:0 0 0 2px #f5c977}
.live-chat-role-cohost .live-chat-role{background:#a58bff1f;color:#d2c5ff;border:1px solid #a58bff50}
.live-chat-role-cohost .live-chat-bubble{background:#8f68cd22;border-color:#b29ae75e}
.live-chat-role-cohost .live-chat-avatar{box-shadow:0 0 0 1px #bda5ff}
.live-chat-compose{padding:10px!important;gap:8px!important;border-top:1px solid #ffffff14!important;background:#190f30!important}
#live-chat-input{height:42px!important;min-height:42px!important;border-radius:13px!important;background:#ffffff0b!important;border:1px solid #d3b8ff38!important;font-size:16px!important;padding:8px 10px!important;color:#fff!important;box-shadow:none!important}
#live-chat-input::placeholder{font-size:12px;color:#cdbce5;opacity:1}
#live-chat-send{width:42px;height:42px;border-radius:13px!important;background:linear-gradient(145deg,#e963ad,#935ae6)!important;box-shadow:0 3px 10px #a357d544!important;touch-action:manipulation}
#live-chat-send:disabled{opacity:.48;filter:none;cursor:default;transform:none}
#live-chat-shell :is(button,svg,.live-chat-message){-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}

/* v95.53 — temporary host chat badge, distinct from the creator. */
.live-chat-role-acting .live-chat-role{background:#a58bff30;color:#e8dbff;border:1px solid #c0a0ff70}
.live-chat-role-acting .live-chat-bubble{background:#8f68cd33;border-color:#c0a0ff90}
.live-chat-role-acting .live-chat-avatar{box-shadow:0 0 0 2px #bda5ff}


/* v95.54: Sing-off hero card and premium karaoke action surfaces. */
#kar-off{margin-top:12px}
#kar-off[hidden]{display:none!important}
#kar-off .kar-off-card{position:relative;display:grid;gap:14px;padding:18px 16px;border-radius:22px;border:1px solid #ffffff22;background:radial-gradient(circle at top,#8b58ff30,transparent 34%),linear-gradient(155deg,#34176e,#160826 72%,#2b0f49);box-shadow:0 16px 36px -22px #000d}
#kar-off .kar-off-copy{display:grid;gap:6px;text-align:center}
#kar-off .kar-off-copy small{font-size:.68rem;font-weight:800;letter-spacing:.16em;color:#d4b5ff}
#kar-off .kar-off-copy h3{margin:0;font-size:1.35rem;line-height:1.12;color:#fff}
#kar-off .kar-off-copy p{margin:0;color:#dbcdf5;font-size:.82rem;line-height:1.5}
#kar-off-toggle{display:grid;justify-items:center;gap:10px;padding:0 10px 12px;background:none;border:0;box-shadow:none;color:#fff;touch-action:manipulation}
#kar-off-toggle strong{font-size:1rem;line-height:1.2}
#kar-off-toggle b{font-size:.72rem;font-weight:750;color:#d8c2ff;padding:4px 10px;border-radius:999px;border:1px solid #ffffff26;background:#ffffff10}
#kar-off-toggle[disabled]{opacity:.82;cursor:default}
#kar-off-toggle .kar-off-ring{display:grid;place-items:center;width:min(54vw,196px);aspect-ratio:1;border-radius:50%;padding:12px;background:conic-gradient(from 220deg,#ff7db6,#a45cff,#61c7ff,#ff7db6);box-shadow:0 0 0 1px #ffffff22,0 26px 45px -24px #000;animation:karOffPulse 2.4s ease-in-out infinite}
#kar-off-toggle[disabled] .kar-off-ring{animation:none;filter:saturate(.85)}
#kar-off-toggle .kar-off-core{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 30% 30%,#53279a,#1b0b35 68%);box-shadow:inset 0 0 0 1px #ffffff24,inset 0 16px 32px -24px #fff5}
#kar-off-toggle svg{width:44%;height:44%;color:#fff;filter:drop-shadow(0 4px 10px #0008)}
#kar-off .kar-off-points{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
#kar-off .kar-off-points span{padding:6px 10px;border-radius:999px;border:1px solid #ffffff1f;background:#ffffff0d;color:#ead9ff;font-size:.71rem;font-weight:650}
@keyframes karOffPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 1px #ffffff22,0 26px 45px -24px #000}50%{transform:scale(1.03);box-shadow:0 0 0 7px #b16dff12,0 30px 48px -22px #000}}

#ks-stage .ks-buttons button{position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(180deg,#ffffff12,#ffffff08);border:1px solid #ffffff20;box-shadow:inset 0 1px 0 #ffffff12}
#ks-stage .ks-buttons button::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#ffffff0d,transparent 45%);pointer-events:none}
#ks-stage .ks-buttons button svg{filter:drop-shadow(0 5px 10px #0006)}
#ks-stage #ks-pause{background:linear-gradient(135deg,#ff5aa3,#8e41ff)}
#ks-stage #ks-stop{background:linear-gradient(135deg,#ffffff12,#ffffff08)}
#ks-stage #ks-restart{background:linear-gradient(135deg,#8c6cff22,#ffffff08)}
#ks-stage #ks-record{background:linear-gradient(135deg,#ff638f18,#ffffff08)}
#ks-stage #ks-hear{background:linear-gradient(135deg,#62c7ff18,#ffffff08)}
#ks-stage #ks-record.recording{animation:ksRecordPulse .95s ease-in-out infinite;background:linear-gradient(135deg,#ff4f74,#a73258);border-color:#ff90a7;color:#fff}
@keyframes ksRecordPulse{0%,100%{box-shadow:0 0 0 0 #ff6d8f66}50%{box-shadow:0 0 0 8px #ff6d8f10}}
#ks-record-modal{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#080212bf;backdrop-filter:blur(10px);z-index:5}
#ks-record-modal .ks-record-card{width:min(420px,100%);display:grid;gap:12px;padding:16px;border-radius:20px;border:1px solid #ffffff22;background:linear-gradient(180deg,#2c124b,#18092f);box-shadow:0 30px 60px -30px #000}
#ks-record-modal .ks-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#ks-record-modal .ks-record-head small{display:block;font-size:.68rem;font-weight:800;letter-spacing:.12em;color:#d7b7ff;text-transform:uppercase}
#ks-record-modal .ks-record-head h3{margin:3px 0 0;font-size:1.15rem}
#ks-record-modal #ks-record-close{width:38px;height:38px;min-height:38px;padding:0;border-radius:12px;background:#ffffff10;border:1px solid #ffffff20;color:#fff}
#ks-record-modal #ks-record-audio{width:100%;min-width:0}
#ks-record-modal .ks-record-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
#ks-record-modal .ks-record-save,#ks-record-modal #ks-record-done{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:14px;font-weight:800;text-decoration:none}
#ks-record-modal .ks-record-save{background:linear-gradient(135deg,#ff5aa3,#8e41ff);color:#fff;border:1px solid #f6a5ff60}
#ks-record-modal #ks-record-done{background:#ffffff10;border:1px solid #ffffff20;color:#fff}

@media (orientation:landscape) and (min-width:568px){
 #ks-stage .ks-foot{grid-column:1/-1;grid-row:4;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:7px;align-items:stretch}
 #ks-stage .ks-mix-anchor{grid-column:1;grid-row:1;justify-self:end;height:18px;min-height:18px}
 #ks-stage .ks-buttons{grid-column:1;grid-row:2;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-self:stretch}
 #ks-stage .ks-buttons button{min-height:clamp(52px,7vw,74px);padding:6px 4px;gap:4px}
 #ks-stage .ks-effect{grid-column:1;grid-row:3;gap:6px;padding:10px 10px 8px;border:1px solid #ffffff18;border-radius:14px;background:#ffffff08}
 #ks-stage .ks-fx-head{margin-bottom:2px}
 #ks-stage .ks-fx-scroll{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;padding:2px 0 4px}
 #ks-stage .ks-fx-scroll::-webkit-scrollbar{display:none}
 #ks-stage .ks-fx-card{flex:0 0 clamp(68px,7vw,88px);padding:5px 3px 6px;gap:4px;border-radius:12px}
 #ks-stage .ks-foot>.ks-note,#ks-stage #ks-save{grid-column:1}
}


/* v95.55 — Library page visual polish only. Keeps behavior untouched while
   making section tabs, recommendation cards and action controls feel premium. */
#queue-browser{gap:10px}
#queue-subtabs{gap:6px;padding:6px;border-radius:20px;background:linear-gradient(180deg,rgba(21,8,37,.92),rgba(28,10,46,.88));border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
#queue-subtabs button{position:relative;display:grid;grid-template-rows:18px auto;align-content:center;justify-items:center;gap:6px;min-height:68px;padding:8px 6px 7px;border-radius:16px;color:#d4c2f1;font-size:clamp(.63rem,2.45vw,.78rem);font-weight:760;letter-spacing:-.02em;line-height:1.08;text-align:center;transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease}
#queue-subtabs button svg{width:18px;height:18px;opacity:.92}
#queue-subtabs button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}
#queue-subtabs button[aria-selected=true]{background:linear-gradient(180deg,#ab61ff,#d554a0);border-color:rgba(255,255,255,.2);color:#fff;box-shadow:0 8px 18px -10px rgba(231,100,184,.9), inset 0 1px 0 rgba(255,255,255,.18)}
#queue-subtabs button[aria-selected=true] svg{opacity:1}
#queue-subtabs button:active{transform:scale(.985)}
.library-rec-head{align-items:flex-end;gap:10px;margin:4px 0 10px}
#library-rec-refresh{min-height:42px;padding:0 14px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:.8rem;font-weight:700;gap:6px}
#library-rec-refresh svg{width:15px;height:15px}
#library-recommendations{display:grid;gap:10px;min-width:0}
.library-rec-card{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;padding:10px 11px;border-radius:18px;border:1px solid rgba(255,255,255,.11);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.04));box-shadow:0 8px 22px -14px rgba(0,0,0,.55)}
.library-rec-card>img{width:76px;height:76px;border-radius:14px;box-shadow:0 10px 22px -14px rgba(0,0,0,.75)}
.library-rec-info{display:grid;gap:6px;min-width:0}
.library-rec-title{display:block;min-width:0;overflow:hidden;white-space:nowrap;font-size:.97rem;line-height:1.28;font-weight:800;letter-spacing:-.02em;color:#fff}
.library-rec-title-text{display:inline-block;white-space:nowrap;will-change:transform}
.library-rec-title.is-overflowing .library-rec-title-text{animation:library-title-glide var(--library-title-duration,10s) ease-in-out infinite alternate}
.library-rec-info>small{font-size:.75rem;color:#c8b5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-rec-actions{display:grid;grid-template-columns:38px 38px minmax(94px,1fr) minmax(72px,.8fr);gap:8px;align-items:center;min-width:0}
#p-queue .library-rec-actions button{min-width:0;min-height:38px;padding:0 10px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);color:#f0ddff;font-size:.76rem;font-weight:760;line-height:1;letter-spacing:-.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p-queue .library-rec-actions button svg{width:16px;height:16px;flex:none}
#p-queue .library-rec-actions button span{overflow:hidden;text-overflow:ellipsis}
#p-queue .library-rec-actions .library-action-btn.is-primary{background:linear-gradient(180deg,rgba(165,92,255,.44),rgba(123,62,212,.4));border-color:rgba(219,172,255,.28);color:#fff}
#p-queue .library-rec-actions .library-action-btn.is-secondary{background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.08));border-color:rgba(255,255,255,.14)}
#p-queue .library-rec-actions .library-action-btn.is-liked{color:#ff8dbb;background:rgba(255,87,154,.12);border-color:rgba(255,135,185,.2)}
#p-queue .library-rec-actions .library-action-btn.is-following{color:#b3f4cf;background:rgba(79,186,136,.13);border-color:rgba(156,255,207,.18)}
#p-queue .library-rec-actions button:disabled{opacity:.55;cursor:default}
#p-queue .library-rec-card .yt-search-empty{margin:0}
@keyframes library-title-glide{0%,14%{transform:translateX(0)}86%,100%{transform:translateX(var(--library-title-distance,0px))}}
@media(max-width:430px){
  .library-rec-card{grid-template-columns:70px minmax(0,1fr);padding:9px 10px}
  .library-rec-card>img{width:70px;height:70px}
  .library-rec-title{font-size:.92rem}
  .library-rec-actions{grid-template-columns:36px 36px minmax(90px,1fr) minmax(68px,.78fr);gap:6px}
  #p-queue .library-rec-actions button{min-height:36px;padding:0 8px;font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){.library-rec-title.is-overflowing .library-rec-title-text{animation:none;transform:none}}

/* v95.56: equal icon baselines and responsive Library actions. */
#queue-subtabs{gap:3px;padding:4px}
#queue-subtabs button{grid-template-rows:18px 2.4em;align-content:center;align-items:center;gap:5px;min-height:62px;padding:5px 1px;font-size:clamp(9px,2.5vw,12px);line-height:1.15}
#queue-subtabs button span{display:grid;place-content:center;height:2.4em;max-width:100%;white-space:normal}
#p-queue .library-rec-head h3:first-of-type{margin:0 0 4px}
.library-rec-actions{display:flex;flex-wrap:nowrap;gap:5px;min-width:0}
#p-queue .library-rec-actions button{flex:0 0 36px;width:36px;min-width:0;min-height:38px;padding:0 4px;gap:4px}
#p-queue .library-rec-actions .is-primary{flex:1 1 0;width:auto;min-width:0}
#p-queue .library-rec-actions .is-secondary{flex:0 0 36px;width:36px}
#p-queue .library-rec-actions .is-secondary span{display:none}
#p-queue .library-rec-actions .is-liked svg{fill:#ff499d80}
.library-rec-title-text{will-change:auto}
.library-rec-title:not(.is-visible) .library-rec-title-text,body.cool .library-rec-title-text,body.idle .library-rec-title-text{animation-play-state:paused!important}
@media(min-width:520px){#p-queue .library-rec-actions .is-secondary{flex:0 0 70px;width:70px}#p-queue .library-rec-actions .is-secondary span{display:inline}}
@media(max-width:375px){.library-rec-card{grid-template-columns:54px minmax(0,1fr);gap:6px;padding:8px}.library-rec-card>img{width:54px;height:54px;grid-row:1/3;align-self:center}.library-rec-info{display:contents}.library-rec-title{grid-column:2;grid-row:1;align-self:end}.library-rec-info>small{grid-column:2;grid-row:2;align-self:start}.library-rec-actions{grid-column:1/-1;grid-row:3}}
@media(prefers-reduced-motion:reduce){.library-rec-title{white-space:normal;overflow-wrap:anywhere}.library-rec-title-text{white-space:normal}}

/* v95.57: discovery-only typeahead controls */
#yt-search-query::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
#yt-search-clear{display:grid;place-items:center;flex:none;width:32px;height:40px;min-height:40px;padding:0;border:0;background:transparent;box-shadow:none;color:#d9c2f6;border-radius:10px;touch-action:manipulation}
#yt-search-clear svg{width:17px;height:17px;pointer-events:none}
#yt-live-progress{display:flex;align-items:center;gap:8px;padding:4px 9px;color:#d2b8f4;font-size:.72rem;flex:none}
#yt-live-progress i{width:14px;height:14px;border:2px solid #ffffff22;border-top-color:#d9a3ff;border-radius:50%;animation:yt-live-spin .8s linear infinite}
@keyframes yt-live-spin{to{transform:rotate(360deg)}}
#yt-live-suggestion{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;text-align:left;padding:8px 11px;margin:2px 0 6px;border-radius:12px;border:1px solid #c58aff44;background:#a76aff16;box-shadow:none;min-width:0;flex:none;color:#fff;touch-action:manipulation}
#yt-live-suggestion>span:first-child{grid-column:1;font-size:.62rem;color:#d3b0f9;font-weight:650}
#yt-live-suggestion strong{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}
#yt-live-suggestion>span:last-child{grid-column:2;grid-row:1/3;color:#debfff}
#yt-search-clear[hidden],#yt-live-progress[hidden],#yt-live-suggestion[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#yt-live-progress i{animation:none}}

/* v95.59: public chat above the karaoke stage, never in a private room.
   The shell itself stays pointer-transparent outside its handle and panel. */
#live-chat-shell:not(.live-chat-public),#live-chat-shell[hidden]{display:none!important}
body.ks-stage-open #live-chat-shell.live-chat-public:not([hidden]){z-index:2147483000!important}
body.ks-stage-open #live-chat-panel:not([hidden]){animation:none!important;opacity:1!important;transform:none!important;pointer-events:auto!important}
#ks-stage #ks-hear:disabled,#kar .kar-hear:has(input:disabled){opacity:.48;cursor:default}

/* v95.60 — Karaoke landscape only. Budget height from the actual available
   viewport, not its width. The footer has intrinsic height; only the media
   row flexes. Keep the original YouTube iframe and all stage commands. */
@media (orientation:landscape) and (min-width:480px){
 #ks-stage{padding:max(4px,var(--sat,env(safe-area-inset-top,0px))) max(4px,var(--sar,env(safe-area-inset-right,0px))) max(4px,var(--sab,env(safe-area-inset-bottom,0px))) max(4px,var(--sal,env(safe-area-inset-left,0px)))}
 #ks-stage .ks-shell{position:relative;width:100%;max-width:none;height:100%;max-height:none;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(64px,1fr) auto auto;gap:6px 10px;padding:clamp(7px,1vw,16px);border-radius:18px;align-items:stretch;overflow:auto}
 #ks-stage .ks-top{grid-column:1/-1;grid-row:1;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}
 #ks-stage .ks-top .ks-head{grid-column:1;grid-row:1;gap:8px}
 #ks-stage .ks-top .ks-status{grid-column:2;grid-row:1;gap:8px;white-space:nowrap}
 #ks-stage .ks-top #ks-close{grid-column:3;grid-row:1;width:38px;height:38px;min-height:38px}
 #ks-stage .ks-head img{width:clamp(30px,3.5vw,48px);height:clamp(30px,3.5vw,48px)}
 #ks-stage #ks-state{max-width:24vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #ks-stage #ks-media:not([hidden]){grid-column:1;grid-row:2;width:100%;height:100%;min-height:0;max-width:none;display:grid;place-items:center;container-type:size;align-self:stretch}
 #ks-stage #ks-video-slot{width:100%;height:100%;min-height:0}
 @supports (width:1cqw){#ks-stage #ks-video-slot{width:min(100cqw,calc(100cqh * 16 / 9));height:min(100cqh,calc(100cqw * 9 / 16))}}
 #ks-stage .ks-lyric-panel{grid-column:2;grid-row:2;min-height:0;display:flex;flex-direction:column;gap:5px;padding:7px;border:1px solid #c4a0ff30;border-radius:12px;background:#ffffff06}
 #ks-stage .ks-shell:has(.ks-media[hidden]) .ks-lyric-panel{grid-column:1/-1}
 #ks-stage .ks-lyrics-area{flex:1 1 0;min-height:0;border-radius:10px}
 #ks-stage .ks-lyrics-head{min-height:26px;gap:4px}
 #ks-stage .ks-lyrics{padding:8px 10px 12px}
 #ks-stage .ks-line{font-size:clamp(.85rem,1.75vw,1.6rem);line-height:1.4;margin-bottom:10px}
 #ks-stage .ks-lyrics:has(.ks-empty){overflow-y:auto;touch-action:pan-y;mask-image:none;scrollbar-width:thin;padding:4px}
 #ks-stage .ks-empty{font-size:clamp(.72rem,1.25vw,.95rem);line-height:1.4;padding:4px}
 #ks-stage .ks-progress{grid-column:1/-1;grid-row:3;height:20px}
 #ks-stage #ks-seek{height:20px}
 #ks-stage .ks-foot{grid-column:1/-1;grid-row:4;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto;gap:5px 7px;align-items:center;align-content:start;min-height:0}
 #ks-stage .ks-buttons{grid-column:1;grid-row:1;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-self:stretch}
 #ks-stage .ks-buttons button{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;height:clamp(44px,5.5vh,54px);min-height:44px;padding:4px 5px;border-radius:11px;font-size:clamp(.66rem,1.15vw,.84rem);line-height:1.15;text-align:center}
 #ks-stage .ks-buttons svg{width:clamp(17px,2vw,23px);height:clamp(17px,2vw,23px);flex:none;filter:none}
 #ks-stage .ks-mix-anchor{grid-column:2;grid-row:1;justify-self:stretch;align-self:stretch;min-height:44px;height:auto;display:grid;place-items:center}
 #ks-stage #ks-mix-toggle{width:100%;height:100%;min-height:44px;border-radius:11px;background:#ffffff0d;border:1px solid #ffffff25}
 #ks-stage #ks-mix-toggle svg{width:15px;height:15px}
 #ks-stage #ks-mix-sheet{width:min(238px,65vw);left:auto;right:0;translate:none;bottom:calc(100% + 4px);z-index:5}
 #ks-stage .ks-effect{grid-column:1/-1;grid-row:2;gap:4px;padding:5px 6px;border:1px solid #ffffff18;border-radius:11px;background:#ffffff08}
 #ks-stage .ks-fx-head{margin:0;font-size:.64rem;line-height:1.15}
 #ks-stage .ks-fx-scroll{gap:5px;padding:1px 1px 3px;scrollbar-width:none;align-items:stretch}
 #ks-stage .ks-fx-card{flex:0 0 clamp(58px,6.6vw,86px);min-height:0;padding:4px 2px;gap:3px;justify-content:center;border-radius:9px}
 #ks-stage .ks-fx-card img{width:clamp(25px,3.1vh,36px);height:clamp(25px,3.1vh,36px)}
 #ks-stage .ks-fx-card span{font-size:clamp(.56rem,1vw,.69rem);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 #ks-stage .ks-foot>.ks-note,#ks-stage #ks-save{grid-column:1/-1;font-size:.65rem;line-height:1.2;overflow-wrap:anywhere}
 #ks-stage .ks-foot>.ks-note:empty{display:none}
 #ks-record-modal{border-radius:inherit;overflow:auto}
 #ks-record-modal .ks-record-card{max-height:100%;overflow:auto}
}
@media (orientation:landscape) and (min-width:480px) and (max-height:460px){
 #ks-stage .ks-shell{padding:7px;gap:4px 7px;border-radius:13px}
 #ks-stage .ks-top{gap:6px}
 #ks-stage .ks-head img{width:28px;height:28px}
 #ks-stage .ks-head>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:7px;align-items:center}
 #ks-stage .ks-head small{font-size:.49rem;grid-column:1;grid-row:1;white-space:nowrap}
 #ks-stage .ks-head h2{font-size:1rem;grid-column:1;grid-row:2;margin:0}
 #ks-stage .ks-head p{grid-column:2;grid-row:1/3;font-size:.66rem}
 #ks-stage .ks-top #ks-close{width:32px;height:32px;min-height:32px}
 #ks-stage .ks-status{font-size:.65rem}
 #ks-stage .ks-lyric-panel{padding:4px;gap:3px}
 #ks-stage .ks-lyrics-head{min-height:24px;font-size:.65rem}
 #ks-stage button.ks-import{min-height:24px;padding:3px 5px;font-size:.61rem}
 #ks-stage .ks-progress,#ks-stage #ks-seek{height:18px}
 #ks-stage .ks-foot{gap:3px 5px;grid-template-columns:minmax(0,1fr) 40px}
 #ks-stage .ks-buttons{gap:4px}
 #ks-stage .ks-buttons button{gap:4px;height:44px;min-height:44px;padding:3px;font-size:.66rem}
 #ks-stage .ks-buttons svg{width:17px;height:17px}
 #ks-stage .ks-effect{padding:3px 5px;gap:3px}
 #ks-stage .ks-fx-card{flex-basis:62px;padding:3px 2px;gap:2px}
 #ks-stage .ks-fx-card img{width:25px;height:25px}
 #ks-stage .ks-fx-card span{font-size:.58rem}
 #ks-stage .ks-foot>.ks-note,#ks-stage #ks-save{font-size:.59rem}
}
@media (orientation:landscape) and (min-width:480px) and (max-width:680px){
 #ks-stage .ks-buttons button{flex-direction:column;gap:2px;font-size:.58rem}
 #ks-stage .ks-buttons svg{width:16px;height:16px}
}

/* v95.67 Audius source switch — existing Discovery layout retained. */
.yt-source-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 2px 6px;flex:none}.yt-source-row button{border:1px solid rgba(193,155,255,.35);background:rgba(150,86,230,.12);border-radius:10px;color:inherit;padding:6px 10px;font-size:11px;font-weight:700;cursor:pointer}.yt-source-row button[aria-pressed=true]{background:#8248bd;color:white;border-color:#c498ff}.yt-source-row small{font-size:10px;opacity:.75}

/* v95.68: compact third source and attribution; no player layout changes. */
.yt-source-row{justify-content:flex-start;gap:5px}.yt-source-row button{padding:6px 9px;white-space:nowrap}.yt-source-row small{margin-left:auto;text-align:right;min-width:0}.yt-jamendo-credit{grid-column:1/-1;font-size:10px;padding:2px 4px;color:inherit;opacity:.85}.yt-jamendo-credit a{color:inherit;text-decoration:underline}

@media(max-width:360px){.yt-source-row{gap:4px}.yt-source-row button{padding:6px 6px;font-size:10px}.yt-source-row small{font-size:9px}}
#ch a{color:inherit;text-decoration:underline}

/* Audius / Jamendo only: cover art rotates with the record, and the existing
   video toggle shows the full uncropped cover in the stationary video area. */
.deck .track-artwork[hidden]{display:none!important}
.deck.external-artwork .label{width:86%;border-width:2px}
.deck.external-artwork .label #pl{visibility:hidden!important;pointer-events:none!important}
.deck.external-artwork .track-artwork{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;user-select:none}
.deck.external-artwork.vid .label{width:100%;border:0}
.deck.external-artwork.vid .track-artwork{object-fit:contain}

/* v95.70 — landscape secondary tabs only. Keep the original portrait and
   Play layouts, stage overlay, navigation handlers and media nodes intact. */
@media (orientation:landscape) and (min-width:480px){
  body:not(.vr-fullview) #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]){
    width:100%!important;max-width:1440px!important;
    padding-left:max(10px,var(--sal,env(safe-area-inset-left,0px)))!important;
    padding-right:max(10px,var(--sar,env(safe-area-inset-right,0px)))!important;
    padding-bottom:calc(76px + var(--sab,env(safe-area-inset-bottom,0px)))!important;
  }
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>header{min-height:0;padding:4px 0 6px;gap:clamp(4px,1vw,10px)}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>header .logo{width:clamp(28px,8svh,46px);height:clamp(28px,8svh,46px)}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>header .rt b{font-size:clamp(.83rem,2.7svh,1.04rem)}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>header .rt small{font-size:clamp(.62rem,1.8svh,.75rem)}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>aside{flex:1 1 0;min-width:0;min-height:0;overflow:hidden}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>aside>.pane{min-width:0;min-height:0;height:100%;margin:0;padding:clamp(8px,1.3vw,18px);border-radius:18px;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-bottom:12px;scrollbar-width:thin}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>aside>.pane h3{font-size:.96rem;margin:0 0 7px;line-height:1.3}
  /* Split footer: mini-player on the left, existing five-tab dock on the right. */
  body:not(.vr-fullview) #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs{
    left:auto!important;right:max(10px,var(--sar,env(safe-area-inset-right,0px)),calc((100vw - min(100vw,1440px))/2 + 10px))!important;transform:none!important;
    width: min(calc((100vw - max(20px,var(--sal,0px) + var(--sar,0px)) - 22px)*.53),620px)!important;max-width:620px!important;
    bottom:calc(3mm + var(--sab,0px))!important;padding:4px 5px!important;border-radius:24px!important;
  }
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs button{min-height:40px;padding:1px;min-width:0}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs button span{font-size:clamp(.58rem,1.5vw,.73rem)}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs button i svg{width:19px;height:19px}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs .mic{margin-top:-7px!important}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs .mic i{width:48px!important;height:48px!important;border-width:4px!important}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs .mic i svg{width:22px;height:22px}
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini{
    --mini-base:calc(3mm + var(--sab,0px))!important;
    left:max(10px,var(--sal,env(safe-area-inset-left,0px)),calc((100vw - min(100vw,1440px))/2 + 10px))!important;
    width:min(calc((100vw - max(20px,var(--sal,0px) + var(--sar,0px)) - 22px)*.45),600px)!important;max-width:600px!important;
    transform:translateY(160%)!important;min-height:48px!important;
  }
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini.show{transform:translateY(0)!important}
  /* Library: input tools + requests on the left, independent five-page list on the right. */
  #room[data-tab=queue] #p-queue{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.65fr);grid-template-rows:auto auto auto auto minmax(0,1fr);gap:6px 12px;align-content:start;overflow-y:auto}
  #p-queue>#af{grid-column:1;grid-row:1;min-width:0;gap:5px}
  #p-queue #au{min-width:0;flex:1;padding:6px 9px;font-size:.78rem}
  #p-queue>#af button{padding:5px 12px;min-height:40px;flex:none}
  #p-queue>#yt-search-open{grid-column:1;grid-row:2;margin:0;min-height:40px;width:100%}
  #p-queue>#video-check{grid-column:1;grid-row:3;margin:0;overflow-wrap:anywhere}
  #p-queue>.library-upload{grid-column:1;grid-row:4;margin:0}
  #p-queue #up-audio{min-height:48px;padding:6px 8px;gap:6px}
  #p-queue>#rqw{grid-column:1;grid-row:5;overflow:auto;min-height:0;min-width:0;padding:2px 0}
  #p-queue>#queue-browser{grid-column:2;grid-row:1/6;min-height:0;height:100%;margin:0;gap:6px;min-width:0;padding-left:10px;border-left:1px solid #ffffff18}
  #p-queue #queue-subtabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:3px;border-radius:12px}
  #p-queue #queue-subtabs button{min-height:47px;grid-template-rows:15px auto;gap:3px;padding:4px 1px;font-size:clamp(9px,1.15vw,12px)}
  #p-queue #queue-subtabs button span{height:auto;min-height:2em;line-height:1.1}
  #p-queue #queue-subtabs button svg{width:16px;height:16px}
  #p-queue #queue-swipe-window{min-height:76px}
  #p-queue #queue-swipe-track>.queue-page{padding:3px 3px 10px}
  #p-queue .queue-page li{padding:6px 7px;gap:6px}
  #p-queue .queue-page li img{width:39px;height:39px}
  #p-queue .queue-page ol{gap:6px}
  #p-queue .library-rec-card{min-width:0}
  /* Room: members and live moderation remain independently reachable. */
  #room[data-tab=room] #p-room{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px 14px;align-content:start}
  #p-room>h3{grid-column:1;grid-row:1;margin:0!important}
  #p-room>#ul{grid-column:1;grid-row:2;min-height:0;overflow-y:auto;align-content:start;gap:6px;padding:2px 3px 8px 0}
  #p-room>#live-room-settings{grid-column:2;grid-row:1/3;min-width:0;min-height:0;overflow-y:auto;margin:0;padding:10px;align-self:start;max-height:100%}
  #p-room:has(#live-room-settings[hidden])>h3,#p-room:has(#live-room-settings[hidden])>#ul{grid-column:1/-1}
  #p-room:has(#live-room-settings[hidden])>#ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  #p-room #ul li{min-width:0;padding:7px 9px;gap:5px;border-radius:12px;align-content:start;align-self:start}
  #p-room #ul .uacts{gap:4px!important}
  #p-room #ul .uacts button{min-height:34px;font-size:.7rem;padding:5px 6px}
  #p-room #live-room-settings .live-room-settings-head{margin-bottom:6px}
  #p-room #live-request-wrap{padding:8px;margin-bottom:8px}
  /* Sing: the off state is a horizontal hero; the enabled state is a two-column studio. */
  #room[data-tab=sing] #p-sing{padding-bottom:12px;scroll-padding-bottom:12px}
  #p-sing>.hero,#p-sing:has(#kar:not([hidden]))>.hero{padding:0 0 8px;gap:3px 8px}
  #p-sing>.hero h2{font-size:1.05rem}
  #p-sing #kar-off{margin:0}
  #p-sing #kar-off .kar-off-card{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:auto auto;gap:8px 14px;align-items:center;padding:clamp(10px,2vw,24px);min-height:0}
  #p-sing #kar-off .kar-off-copy{grid-column:1;grid-row:1;text-align:left;align-self:end}
  #p-sing #kar-off .kar-off-copy h3{font-size:clamp(1rem,2.4vw,1.65rem)}
  #p-sing #kar-off .kar-off-points{grid-column:1;grid-row:2;justify-content:flex-start;align-self:start;gap:5px}
  #p-sing #kar-off .kar-off-points span{padding:4px 7px;font-size:.66rem}
  #p-sing #kar-off-toggle{grid-column:2;grid-row:1/3;padding:0;gap:5px}
  #p-sing #kar-off-toggle .kar-off-ring{width:clamp(70px,27svh,172px);padding:8px}
  #p-sing #kar-off-toggle strong{font-size:.85rem}
  #p-sing #kar:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);grid-template-rows:auto auto;gap:8px 12px;align-items:start}
  #p-sing #kar>.kar-stage{grid-column:1;grid-row:1/3}
  #p-sing #kar>.kar-fx{grid-column:2;grid-row:1}
  #p-sing #kar>.kar-setup{grid-column:2;grid-row:2;align-self:start}
  #p-sing #kar #kf button{flex:0 0 auto;min-height:42px;gap:5px;padding:4px 8px 4px 4px}
  #p-sing #kar .kar-setup .kar-settings{grid-template-columns:minmax(0,1fr);gap:8px}
  #p-sing #kar .kar-setup .kar-mix{padding:6px 0 0;border-left:0;border-top:1px solid #ffffff18}
  /* More: profile and exit grouped together, settings in their own column. */
  #room[data-tab=me] #p-me{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-rows:auto auto auto;gap:8px 14px;align-content:start;align-items:start}
  #p-me>h3{grid-column:1;grid-row:1;margin:0!important}
  #p-me>#me{grid-column:1;grid-row:2;min-width:0;gap:6px}
  #p-me>#bg-tip{grid-column:2;grid-row:1/3;margin:0;padding:10px;min-width:0}
  #p-me>#cool-card{grid-column:2;grid-row:3;margin:0;padding:10px;min-width:0}
  #p-me>#leave{grid-column:1;grid-row:3;margin:0;width:100%;min-height:42px;align-self:start}
  #p-me:has(#bg-tip[hidden])>#cool-card{grid-row:1/4}
  #p-me #bg-tip a{margin:3px 0;padding:7px 10px;font-size:.73rem}
  #p-me .cool-desc{margin:4px 0 0;line-height:1.35}
}
@media (orientation:landscape) and (min-width:480px) and (max-height:460px){
  body:not(.vr-fullview) #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]){padding-bottom:calc(72px + var(--sab,0px))!important}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me])>aside>.pane{padding:8px;border-radius:14px}
  #p-sing #kar-off .kar-off-card{padding:8px 12px}
  #p-sing #kar-off .kar-off-copy p{font-size:.76rem}
  #p-sing #kar .kar-stage,#p-sing #kar .kar-fx{padding:8px}
  #p-sing #kar .kar-session{margin-top:5px;padding-top:5px}
  #p-queue #queue-subtabs button{min-height:42px}
}
@media (orientation:landscape) and (min-width:480px) and (max-width:680px){
  #room[data-tab=queue] #p-queue{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);column-gap:7px}
  #p-queue>#queue-browser{padding-left:6px}
  #p-queue #up-audio .upload-symbol{width:26px;height:26px}
  #p-queue #up-audio .upload-copy small{font-size:.59rem}
  #p-queue #queue-subtabs button{font-size:9px}
  #p-sing #kar:not([hidden]){column-gap:7px}
  #p-sing #kar .kar-monitor-grid{grid-template-columns:minmax(0,1fr)}
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini{gap:4px!important;padding:5px!important}
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini img{width:28px!important;height:28px!important}
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini button{width:28px!important;height:28px!important;min-height:28px!important}
}
@media (orientation:landscape) and (min-width:480px){
  html.ipad.standalone body:not(.vr-fullview) #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs{bottom:calc(3mm + var(--sab,0px) - var(--ipad-shell-extra,0px))!important}
  html.ipad.standalone body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini{--mini-base:calc(3mm + var(--sab,0px) - var(--ipad-shell-extra,0px))!important}
}
@media (orientation:landscape) and (min-width:480px){
  body:not(.vr-fullview) #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]){padding-bottom:calc(88px + var(--sab,0px))!important}
  body:has(#room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]):not([hidden]))>#mini{transition:none!important}
  #room:is([data-tab=queue],[data-tab=room],[data-tab=sing],[data-tab=me]) #tabs .mic{gap:0}
}
@media (orientation:landscape) and (min-width:480px){
  /* Requests can grow past the smallest viewport, but never collapse to an
     untappable sliver. The outer pane then scrolls to reveal the entire area. */
  #room[data-tab=queue] #p-queue:has(>#rqw:not([hidden])){grid-template-rows:auto auto auto auto minmax(76px,1fr)}
  #room[data-tab=me] #p-me{grid-template-rows:auto auto auto auto}
  #p-me>#bg-tip{grid-row:1/5}
  #p-me>#cool-card{grid-column:1;grid-row:3}
  #p-me>#leave{grid-row:4}
  #p-me:has(#bg-tip[hidden])>#cool-card{grid-column:2;grid-row:1/5}
}
@media (orientation:landscape) and (min-width:1000px){
  #p-room:has(#live-room-settings[hidden])>#ul{grid-template-columns:repeat(3,minmax(0,1fr))}
  #room[data-tab=me] #p-me{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto auto auto}
  #p-me>#bg-tip{grid-column:2;grid-row:1/4}
  #p-me>#cool-card{grid-column:3;grid-row:1/4}
  #p-me>#leave{grid-row:3}
  #room[data-tab=me] #p-me:has(#bg-tip[hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* v95.71: match the scrolling card and its outer clipping boundary.
   The large outer shadow was clipped at the square aside edges. */
#room:is([data-tab=queue],[data-tab=sing],[data-tab=room],[data-tab=me]) > aside {
  --secondary-pane-radius:30px;
  border-radius:var(--secondary-pane-radius);
  background:transparent;
  -webkit-clip-path:inset(0 round var(--secondary-pane-radius));
  clip-path:inset(0 round var(--secondary-pane-radius));
}
#room:is([data-tab=queue],[data-tab=sing],[data-tab=room],[data-tab=me]) > aside > .pane {
  border-radius:var(--secondary-pane-radius);
  background-clip:padding-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
@media (orientation:landscape) and (min-width:480px) {
  #room:is([data-tab=queue],[data-tab=sing],[data-tab=room],[data-tab=me]) > aside {--secondary-pane-radius:18px}
}
@media (orientation:landscape) and (min-width:480px) and (max-height:460px) {
  #room:is([data-tab=queue],[data-tab=sing],[data-tab=room],[data-tab=me]) > aside {--secondary-pane-radius:14px}
}

/* v95.74: snap layout geometry during rotation without blanking the page.
   No opaque overlay, no opacity animation, no new player layer. */
html.vr-rotating #room,html.vr-rotating #room > *,html.vr-rotating #room .stage,
html.vr-rotating #room .deck,html.vr-rotating #room .disc,html.vr-rotating #room .pane,
html.vr-rotating #tabs,html.vr-rotating #mini,html.vr-rotating #live-chat-tab,
html.vr-rotating #live-chat-panel,html.vr-rotating #ks-stage{transition:none!important}

/* v95.73: Tab changes are immediate; the mini-player is not animated between
   incompatible portrait/landscape dock coordinates. Drag position is retained. */
body.in-room #mini{transition:none!important}
#p-me .bg-tip{padding:10px;margin:8px 0}
#p-me .bg-tip h4{margin:0 0 4px}
#p-me .bg-tip p{font-size:.73rem;line-height:1.35;margin:0 0 6px}
#p-me .bg-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#p-me .bg-links a{flex:1 1 120px;text-align:center;margin:0;min-width:0;padding:8px 9px;font-size:.73rem;line-height:1.25}
#p-me .bg-links a[hidden],#p-me #bg-youtube-note[hidden]{display:none!important}
#p-me #bg-youtube-note{margin:6px 0 0;color:var(--mu);font-size:.68rem}
#p-me .cool-desc{margin:5px 0 0;font-size:.76rem;line-height:1.35}

/* v95.74: public landscape controls only. The room like button has a
   dedicated part of the title row, independent of the video controls. */
@media (orientation:landscape) and (min-width:560px) and (max-height:550px){
 body:not(.vr-fullview):not(.ks-stage-open) #room[data-tab="play"] .stage:has(#live-room-like:not([hidden])) #tt{width:calc(100% - 70px)!important;justify-self:start}
 body:not(.vr-fullview):not(.ks-stage-open) #room[data-tab="play"] .stage #live-room-like:not([hidden]){position:relative!important;inset:auto!important;grid-column:2;grid-row:1;justify-self:end;align-self:center;width:64px;min-width:0;height:28px;min-height:28px!important;padding:3px 6px!important;gap:4px;font-size:10px}
 #live-room-likes-count{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 /* Keep the dock at the safe device boundary, not the player-card edge.
    Reserve its hit area in the Play layout on whichever side is selected. */
 #live-chat-shell:not(.live-chat-dragging) #live-chat-tab{right:var(--sar,env(safe-area-inset-right,0px));width:40px!important;height:52px!important;padding-right:4px!important}
 #live-chat-shell.live-chat-left:not(.live-chat-dragging) #live-chat-tab{left:var(--sal,env(safe-area-inset-left,0px));right:auto;padding-left:4px!important;padding-right:0!important}
 #live-chat-shell:not(.live-chat-dragging) #live-chat-tab::before{width:22px;top:2px;bottom:2px}
 body:not(.vr-fullview):not(.ks-stage-open):has(#live-chat-shell.live-chat-public.live-chat-right:not([hidden])) #room[data-tab="play"]{padding-right:calc(42px + var(--sar,env(safe-area-inset-right,0px)))!important}
 body:not(.vr-fullview):not(.ks-stage-open):has(#live-chat-shell.live-chat-public.live-chat-left:not([hidden])) #room[data-tab="play"]{padding-left:calc(42px + var(--sal,env(safe-area-inset-left,0px)))!important}
 #live-chat-panel{right:calc(46px + var(--sar,env(safe-area-inset-right,0px)))!important}
 .live-chat-left #live-chat-panel{left:calc(46px + var(--sal,env(safe-area-inset-left,0px)))!important;right:auto!important}
}
/* Compact More shortcuts; keep accessible full labels and original links. */
#p-me .bg-links a{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 100px;min-height:36px;padding:6px 8px!important;font-size:.72rem!important;line-height:1.2}
#p-me .bg-links a svg{width:18px;height:18px;flex:0 0 18px;display:block}
#p-me .bg-links a .bg-youtube-icon{width:20px;flex-basis:20px}
#p-me .bg-links a[hidden]{display:none!important}

/* v95.75: recording editor only; never affects the live player or stage layout. */
#ks-record-modal[hidden],#ks-record-modal [hidden]{display:none!important}
#ks-record-modal{position:fixed;inset:0;z-index:2147483000;box-sizing:border-box;color:#f7efff;color-scheme:dark;font:400 14px/1.35 Poppins,system-ui,sans-serif;padding:max(10px,var(--sat,0px)) max(10px,var(--sar,0px)) max(10px,var(--sab,0px)) max(10px,var(--sal,0px));overflow:auto}
#ks-record-modal .ks-record-card{box-sizing:border-box;width:min(440px,100%);max-height:100%;overflow:auto;gap:10px;min-width:0;overscroll-behavior:contain}
#ks-record-modal h3,#ks-record-modal p{margin:0}
#ks-record-modal .ks-note,#ks-record-modal small{color:#d8c2ee;font-size:.76rem;line-height:1.35}
#ks-record-editor{display:grid;gap:9px;min-width:0}
#ks-record-modal button,#ks-record-modal a{cursor:pointer;color:#fff;font:inherit;font-weight:650;box-sizing:border-box}
#ks-record-modal button{border:1px solid #ffffff29;background:#ffffff10;border-radius:10px;min-height:34px;padding:5px 9px}
#ks-record-modal button:disabled{opacity:.5}
#ks-record-modal .ks-record-transport{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
#ks-record-modal .ks-record-level{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;color:#ebd8ff;font-weight:650}
#ks-record-modal .ks-record-level input{grid-column:1/-1}
#ks-record-modal input[type=range]{width:100%;min-width:0;accent-color:#c55df2;margin:0;height:20px}
#ks-record-modal .ks-record-source{display:flex;flex-wrap:wrap;gap:6px}
#ks-record-modal .ks-record-source small{flex-basis:100%}
#ks-record-modal .ks-record-preview-note{color:#c8b3df}
#ks-record-modal #ks-record-status:empty{display:none}
@media (orientation:landscape) and (max-height:480px){#ks-record-modal .ks-record-card{width:min(560px,100%);padding:10px;gap:6px}#ks-record-editor{gap:5px}#ks-record-modal .ks-record-level{grid-template-columns:92px minmax(0,1fr) 40px;gap:6px}#ks-record-modal .ks-record-level input{grid-column:2;grid-row:1}#ks-record-modal .ks-record-level output{grid-column:3;grid-row:1}#ks-record-modal .ks-record-head h3{font-size:1rem}}

#ks-record-modal .ks-record-raw{font-size:.75rem;text-decoration:underline;color:#d8b7ff;justify-self:start}

/* v95.76: provider lyrics without timestamps stay readable, never animated as if timed. */
#ks-stage .ks-lyrics.ks-plain{overflow-y:auto;touch-action:pan-y;mask-image:none;scrollbar-width:thin}
#ks-stage .ks-plain-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:0;color:inherit;font-size:.94rem;text-align:center}
#ks-stage .ks-lyric-actions{flex-wrap:wrap;justify-content:flex-end}
#ks-stage #ks-lyric-mode{min-width:0}


/* v95.78 — compact Library queue/request counts and liked-song confirmation. */
#tabs button[data-t="queue"] .library-count,#queue-tab-next .library-count{
 position:absolute;z-index:3;display:grid;place-items:center;box-sizing:border-box;
 min-width:15px;height:15px;padding:0 3px;margin:0;white-space:nowrap;
 border:1px solid #ffffff80;border-radius:999px;font-style:normal;
 font-size:9px!important;font-weight:800!important;line-height:1!important;
 font-variant-numeric:tabular-nums;letter-spacing:0;pointer-events:none;
 box-shadow:0 2px 5px #16072590;color:#fff;
}
#tabs button[data-t="queue"] .queue-count,#queue-tab-next .queue-count{background:#7140c7;right:auto;left:calc(50% + 8px)}
#tabs button[data-t="queue"] .request-count,#queue-tab-next .request-count{background:#ffb84d;color:#331a00;right:calc(50% + 8px);left:auto;display:flex;align-items:center;justify-content:center;gap:1px}
#tabs button[data-t="queue"] .request-count::before,#queue-tab-next .request-count::before{content:"!";font-size:8px;font-weight:900}
#tabs button[data-t="queue"] .library-count{top:0}
#queue-tab-next .library-count{top:3px}
#tabs button[data-t="queue"] .library-count[hidden],#queue-tab-next .library-count[hidden]{display:none!important}
#room>header #likes-btn{position:relative;display:grid!important;place-items:center!important;width:34px;height:34px;min-width:0;padding:0!important;border-radius:50%;line-height:0;overflow:visible;}
#room>header #likes-btn>svg{display:block;flex:none;margin:0;align-self:center;justify-self:center;vertical-align:middle;transform-origin:50% 50%;}
#likes-added-feedback{position:absolute;top:calc(100% + 7px);right:0;z-index:40;pointer-events:none;
 display:block;padding:7px 10px;border:1px solid #ff8ab480;border-radius:12px;background:#3a1748;color:#fff;
 font-size:10px;font-weight:650;line-height:1.3;white-space:nowrap;box-shadow:0 4px 16px #13001f70;}
#likes-btn.liked-added{z-index:41}
#likes-btn.liked-added>svg{animation:liked-heart-pop .46s ease-out;color:#ff8bb1}
#likes-btn.liked-added #likes-added-feedback{animation:liked-feedback-fade 1.55s ease both}
@keyframes liked-heart-pop{0%{transform:scale(1)}36%{transform:scale(1.3)}68%{transform:scale(.94)}100%{transform:scale(1)}}
@keyframes liked-feedback-fade{0%{opacity:0;transform:translateY(-5px) scale(.92)}17%,68%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(8px) scale(.98)}}
@media(prefers-reduced-motion:reduce){#likes-btn.liked-added>svg,#likes-btn.liked-added #likes-added-feedback{animation:none}}
