#radio-dock{min-width:0;width:100%;align-self:start;--rd-ink:var(--game-ink,#413143);--rd-line:var(--game-line,#715367)}
#radio-dock>.djcard{width:100%;margin:0}
#radio-dock:has(#radio-player:not([hidden]))>.djcard{display:none}
#radio-dock #radio-player{position:static;inset:auto;z-index:auto;width:100%;min-width:0;display:grid;gap:6px;padding:8px 9px;color:var(--rd-ink);background:#fff8e9;border:2px solid var(--rd-line);border-radius:6px;box-shadow:2px 3px 0 #503b4d4a}
#radio-dock #radio-player[hidden],#radio-dock [hidden]{display:none!important}
#radio-player header{position:static;width:auto;min-height:0;height:auto;padding:0;background:transparent;border:0;display:flex;gap:7px;align-items:center;justify-content:initial}
#radio-dock button{touch-action:manipulation}
#radio-player header button,#radio-dock .rd-transport button,#radio-dock #tap-tempo{display:inline-flex;align-items:center;justify-content:center;min-width:31px;min-height:31px;padding:3px 6px;color:var(--rd-ink);background:#f8ecdf;border:1px solid #bda9a2;border-radius:4px;line-height:1;box-shadow:0 1px 0 #ad9691}
#radio-player header .rd-library{color:#fff4df;background:#5a3e53;border-color:#614359}
#radio-player .rd-caption{flex:1;min-width:0;display:grid;gap:1px}
#radio-player .rd-caption small{color:#7e6776;font:650 .61rem/1.1 "Room Sans",sans-serif;letter-spacing:.08em}
#radio-player #player-name{display:block;color:var(--rd-ink);font:650 .87rem/1.35 "Room Sans",sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#radio-player header .rd-stop{min-width:29px;min-height:29px;background:transparent}
#rd-status{font-size:.74rem;line-height:1.35;color:#6b5262}
#rd-status:empty{display:none}
#radio-dock #yt-mount{min-width:200px;width:100%;min-height:200px;height:200px;overflow:hidden;line-height:0;border:0;border-radius:3px;background:#292431}
#radio-dock #yt-mount iframe{display:block;width:100%;height:100%;min-width:200px;min-height:200px;border:0}
#radio-dock .rd-transport{display:flex;align-items:center;gap:5px}
#radio-dock .rd-transport input{flex:1;min-width:36px;height:25px;margin:0 2px;accent-color:#7d5c79}
#radio-dock .rd-speaker{display:inline-block;position:relative;width:14px;height:13px;background:currentColor;clip-path:polygon(0 30%,28% 30%,65% 0,65% 100%,28% 69%,0 69%)}
#radio-dock #yt-mute[aria-pressed="true"]{color:#8b463c;background:#f5d8cc}
#radio-dock #yt-mute[aria-pressed="true"]::after{content:'×';font:bold 10px/1 sans-serif;margin-left:-4px}
#radio-dock .rd-external{display:flex;align-items:start;justify-content:space-between;gap:5px}
#radio-dock .rd-external summary,#radio-dock #yt-original{font-size:.71rem;color:#71586e;cursor:pointer}
#radio-dock #rd-tempo>div{display:flex;align-items:center;gap:5px;margin:3px 0 0;font-size:.7rem}
#radio-dock #tap-tempo{min-height:27px}
#radio-dock:has(#radio-player:not([hidden])){min-width:0}
/* Playback lives inside a reserved HUD rail. It never sizes the WebGL canvas. */
@media(min-width:721px){
 body:not(.game-open) .layout>.side{
  top:clamp(64px,12%,90px);bottom:12px;transform:none;margin:0;
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px;
 }
 .layout>.side>*{flex:none}
 body:not(.game-open) .layout>.side>:first-child{margin-top:auto}
 body:not(.game-open) .layout>.side>:last-child{margin-bottom:auto}
}
@media(max-width:720px){
 .layout>.side{display:flex;flex-direction:column;gap:7px}
 #radio-player header button,#radio-dock .rd-transport button{min-width:34px;min-height:34px}
}
body.game-open .layout:has(#radio-player:not([hidden])){
 position:fixed;inset:0;z-index:40;margin:0;padding:0;display:block;overflow:hidden;
}
body.game-open .layout:has(#radio-player:not([hidden]))>#stage.mobile-full{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0;
}
body.game-open .layout:has(#radio-player:not([hidden]))>.side{
 visibility:visible;position:absolute;z-index:6;right:max(12px,env(safe-area-inset-right));top:max(58px,env(safe-area-inset-top));
 width:clamp(220px,25vw,350px);max-height:calc(100% - 120px);min-width:0;transform:none;margin:0;
 display:block;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
body.game-open .layout:has(#radio-player:not([hidden]))>.side>.timer-card{display:none}
@media(max-width:720px) and (orientation:portrait){
 body.game-open .layout:has(#radio-player:not([hidden]))>.side{
  top:auto;bottom:calc(66px + env(safe-area-inset-bottom));right:50%;transform:translateX(50%);
  width:min(360px,calc(100% - 20px));max-height:38dvh;
 }
}
.rd-full-library{display:none}
#stage.mobile-full .rd-full-library{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;background:var(--game-paper);border:2px solid var(--game-line);border-radius:4px;box-shadow:2px 3px 0 #4832475a;font-weight:650;font-size:.8rem}
.game-open .layout:has(#radio-player:not([hidden])) .rd-full-library{display:none}
#radio-dock #radio-player{grid-template-columns:minmax(0,1fr)}
#radio-player header,#radio-player .rd-external,#radio-player .rd-transport{min-width:0}
.layout:has(#radio-player:not([hidden]))>.side>.timer-card{flex:0 0 auto}
#radio-dock #radio-player{color:var(--night-text);background:var(--night-panel);border-color:color-mix(in srgb,var(--night-mist) 45%,var(--night-edge))}
#radio-dock .rd-caption small,#radio-dock #rd-status,#radio-dock #yt-original,#radio-dock #tempo-readout{color:var(--night-faint)}
#radio-dock .rd-transport button,#radio-dock .rd-library,#radio-dock .rd-end,#radio-dock .tempo button{color:#342638}

#radio-dock #radio-player{background:linear-gradient(125deg,color-mix(in srgb,var(--night-mid) 73%,#35263e),var(--night-panel));border-color:var(--panel-edge)}
#radio-dock .rd-caption #player-name{color:var(--night-text)}
#radio-dock .rd-caption small{color:var(--lamp)}
#radio-dock .rd-library{background:var(--studio-paper);color:var(--studio-ink)}
#stage .quick-transport,#radio-player header .quick-transport{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;
  min-height:44px;min-width:74px;padding:5px 8px;line-height:1.2;white-space:nowrap;
  border:1px solid var(--panel-edge);border-radius:5px;box-shadow:inset 0 2px #fff7e38a,0 2px 0 #21162968;
  color:var(--studio-ink);background:linear-gradient(135deg,var(--lamp),var(--night-mist));font-weight:750;font-size:.82rem;
}
#stage .quick-transport[hidden],.quick-transport i[hidden]{display:none!important}
.quick-transport i,.quick-transport svg{width:17px;height:17px}
#radio-player header .quick-transport:disabled,#stage .quick-transport:disabled{opacity:.72;cursor:wait}
#stage .quick-transport:hover:not(:disabled),#radio-player header .quick-transport:hover:not(:disabled){background:var(--lamp)}
#radio-player header #yt-close{color:var(--night-faint);background:transparent;min-height:44px;box-shadow:none;border-color:transparent}
#radio-dock #spotify-mount{min-width:0;height:152px}
#spotify-mount iframe{display:block;width:100%;height:100%;border:0;border-radius:8px}
@media(max-width:720px){#stage-audio-toggle{position:absolute;left:0;top:calc(100% + 6px)}}

/* The session's real card follows the room. Radio iframes keep their browsing context. */
#full-clock[hidden]{display:none}
#full-clock{position:absolute;z-index:8;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:clamp(210px,23vw,304px)}
#full-clock #timer-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;margin:0;padding:11px 14px}
#full-clock .cardhead,#full-clock .roundline,#full-clock .nextline,#full-clock [data-do=reset]{display:none}
#full-clock .timer-title{grid-area:1/1;margin:0;gap:3px}
#full-clock .timer-title h2{font-size:.78rem;line-height:1.25}
#full-clock .timer-title button{min-height:24px;min-width:25px;padding:2px}
#full-clock .digits{grid-area:2/1;line-height:1;font-size:clamp(30px,3.3vw,48px);margin:0}
#full-clock .timer-actions{grid-area:1/2/span 2;margin:0;display:flex}
#full-clock #start{min-width:42px;min-height:44px;width:auto;padding:0 11px;display:grid;place-items:center}
#full-clock #start span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#full-clock #skip:not([hidden]){grid-column:1/-1;justify-self:start;margin:0;padding:1px 4px}
body.game-open .layout:has(#radio-player:not([hidden]))>.side{top:calc(max(14px,env(safe-area-inset-top)) + 119px);max-height:calc(100% - 194px);right:max(14px,env(safe-area-inset-right))}
@media(max-width:720px){
 #full-clock{top:max(7px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));width:142px}
 #full-clock #timer-card{gap:1px 4px;padding:5px 7px;border-radius:11px}
 #full-clock .digits{font-size:30px}
 #full-clock #start{min-width:38px;padding:0 6px}
 #stage.mobile-full .room-back-dock{left:max(8px,env(safe-area-inset-left));right:auto;top:max(9px,env(safe-area-inset-top));transform:none;max-width:calc(100% - 165px);flex-wrap:wrap;justify-content:flex-start}
 #stage.mobile-full .room-back-dock .home-view,#stage.mobile-full .room-back-dock .rd-full-library{min-width:38px;font-size:0;gap:0;padding:4px 8px}
 #stage.mobile-full .tarn-chat{top:max(86px,calc(env(safe-area-inset-top) + 80px))}
}
@media(max-width:720px) and (orientation:portrait){
 body.game-open .layout:has(#radio-player:not([hidden]))>.side{top:auto;right:50%;max-height:38dvh}
}

#theme-credit{font-size:.72rem;color:inherit;justify-self:start;text-underline-offset:.18em}
#theme-credit[hidden]{display:none}

.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:clamp(4px,.7vw,10px);min-width:0}
.room-mute.icon{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;color:#375a46;background:var(--studio-paper,#faf7f2);border:1px solid var(--panel-edge,#acae9b);border-radius:10px;box-shadow:0 2px 4px #3329191f}
.room-mute[aria-pressed=true]{background:#405b4c;color:#fffaf1}
.room-speaker{display:block;position:relative;width:21px;height:18px}
.room-speaker::before{content:"";position:absolute;inset:1px 8px 1px 0;background:currentColor;clip-path:polygon(0 32%,35% 32%,35% 22%,51% 22%,51% 12%,69% 12%,69% 0,84% 0,84% 100%,69% 100%,69% 88%,51% 88%,51% 77%,35% 77%,35% 67%,0 67%)}
.room-speaker::after{content:"";position:absolute;right:0;top:1px;width:9px;height:16px;background:currentColor;clip-path:polygon(0 25%,23% 25%,23% 38%,40% 38%,40% 63%,23% 63%,23% 75%,0 75%,0 63%,17% 63%,17% 38%,0 38%,0 25%,51% 0,73% 0,73% 12%,88% 12%,88% 25%,100% 25%,100% 75%,88% 75%,88% 88%,73% 88%,73% 100%,51% 100%,51% 88%,67% 88%,67% 75%,80% 75%,80% 25%,67% 25%,67% 12%,51% 12%)}
.room-mute[aria-pressed=true] .room-speaker::after{top:4px;height:10px;clip-path:polygon(0 0,25% 0,50% 32%,75% 0,100% 0,100% 22%,67% 50%,100% 78%,100% 100%,75% 100%,50% 68%,25% 100%,0 100%,0 78%,33% 50%,0 22%)}
#stage:not(.mobile-full) .room-mute{display:none}
#panel .dialog-head>.room-mute{margin-left:auto}
#panel .dialog-head>.room-mute+.dialog-home{margin-left:0}
@media(max-width:720px){.top .header-actions{gap:4px}#stage.mobile-full .room-mute.icon{width:40px;min-width:40px}}
