@font-face {
  font-family: Inter; font-weight: 400 750; font-style: normal; font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter; font-weight: 400 750; font-style: normal; font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --night: #080c13; --panel: #101721; --raised: #1c2736; --field: #0a1019;
  --text: #eff4fc; --muted: #acb8ca; --quiet: #92a1b5; --line: #2b3544; --edge: #434f62;
  --accent: #91baff; --accent-strong: #669bff; --accent-ink: #091932; --alert: #ffabae;
  --settle: cubic-bezier(.16,1,.28,1);
  --hair: rgb(219 229 242 / .15); --ghost: rgb(211 229 251 / .045);
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 78px);
  font: 16px/1.5 var(--font); background: var(--night); color: var(--text);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
* { box-sizing: border-box }
body { margin: 0; min-width: 290px }
button, select, input, textarea { font: inherit }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent }
button { border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer }
a { color: inherit }
button:disabled { opacity: .31; cursor: default }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }
[hidden] { display: none !important }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { overflow-wrap: anywhere }
h1 { font-size: clamp(40px,6.3vw,86px); font-weight: 560; line-height: .98; letter-spacing: -.078em }
h2 { font-size: clamp(23px,3vw,37px); font-weight: 590; line-height: 1.08; letter-spacing: -.05em }
h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.025em }
.icon { width: 17px; height: 17px; flex: none; vertical-align: middle; pointer-events: none }
.skip { position: absolute; transform: translateY(-180%); left: 10px; top: 8px; z-index: 20; background: var(--panel); padding: 8px }
.skip:focus { transform: none }
.shell { max-width:1370px; margin-inline:auto; padding-inline:var(--gutter) }
.mast { position:relative; z-index:4 }
.mast-inner { height:90px; max-width:1750px; padding:0 clamp(24px,2.8vw,52px); margin:auto; display:flex; align-items:center; justify-content:space-between; gap:12px }
.wordmark { width:fit-content; margin-inline-end:auto; color:#f4f4f3; display:inline-flex; align-items:center; text-decoration:none; font-weight:745; font-size:34px; letter-spacing:-.086em; line-height:1 }
.brand-period { color:var(--accent) }
.brand-coil { width:24px; height:24px; margin-right:5px; display:inline-flex; align-items:center; justify-content:center; transform:rotate(22deg) }
.brand-coil i { width:5px; height:15px; border:1.55px solid #c1d0df; border-right-color:#7893aa; border-radius:50%; margin-left:-1px }
.brand-coil i:nth-child(2) {height:21px}
.station-add { display:none; position:relative; isolation:isolate; overflow:hidden; align-items:center; justify-content:center; flex:none; gap:9px;
  min-height:44px; padding:0 17px 0 13px; border-radius:30px; pointer-events:auto;
  color:#e7f1ff; background:linear-gradient(145deg,#172b48,#0a1424 69%); border:1px solid #42618b;
  font:570 14px/1 var(--font); letter-spacing:-.022em; box-shadow:inset 0 1px #accfff1a,0 3px 12px #0003 }
body:has(.wave-stage) .station-add { display:inline-flex }
.station-add::before { content:''; position:absolute; z-index:-1; inset:-20% -60%; pointer-events:none; opacity:0;
  background:linear-gradient(108deg,transparent 39%,#97c2ff25 48%,#cde8ff32 51%,transparent 62%);transform:translateX(-75%) }
.add-mark {width:23px;height:23px;overflow:visible;flex:none;color:#a6caff}
.add-disc {transform-origin:10.5px 10.5px;transition:transform .72s var(--settle)}
.add-knockout {stroke:#112039;stroke-width:4.7}
.add-cross {color:#dbeaff;transform-origin:18px 17px;transition:transform .5s var(--settle)}
.station-add:focus-visible .add-disc {transform:rotate(46deg)}
@media(hover:hover) {
  .station-add:hover {border-color:#77a0d4;box-shadow:inset 0 1px #cde4ff32,0 2px 18px #376bc52b}
  .station-add:hover .add-disc {transform:rotate(46deg)}
  .station-add:hover .add-cross {transform:scale(1.13)}
  .station-add:hover::before {animation:key-reflection .8s var(--settle)}
}
.station-add:active .add-cross {transform:scale(.84)}
.site-menu { position:relative; pointer-events:auto }
.site-menu > summary { display:flex; align-items:center; justify-content:center; gap:10px; height:44px; padding-inline:15px; color:var(--text);
  border:1px solid var(--hair); border-radius:30px; background:linear-gradient(140deg,#171b21,#090c10); font-size:14px; font-weight:530; line-height:1; letter-spacing:-.025em; transition:border-color .18s ease, box-shadow .18s ease }
.site-menu > summary:hover,.site-menu[open] > summary { border-color:#647280; box-shadow:inset 0 1px 5px #7897af14 }
.menu-lines { position:relative; width:17px; height:12px; display:block }
.menu-lines::before,.menu-lines::after { content:''; position:absolute; width:100%; height:1px; background:currentColor; left:0; transition:transform .18s ease,top .18s ease }
.menu-lines::before { top:3px }.menu-lines::after { top:9px }
.site-menu[open] .menu-lines::before { top:6px; transform:rotate(45deg) }.site-menu[open] .menu-lines::after { top:6px; transform:rotate(-45deg) }
.menu-body { position:absolute; right:0; top:calc(100% + 10px); z-index:4; width:284px; max-width:calc(100vw - 32px); max-height:calc(100svh - 93px - env(safe-area-inset-top)); overflow:auto; overscroll-behavior:contain;
  padding:10px; border-radius:18px; border:1px solid var(--edge); background:linear-gradient(145deg,#191f26,#101418 74%); color:var(--text); box-shadow:0 16px 54px #000a,inset 0 1px #eff7ff0d; scrollbar-width:thin }
.tabs,.menu-section { display:grid; gap:1px }
.menu-section { border-top:1px solid #303033; margin-top:6px; padding-top:6px }
.menu-body .tabs button,.menu-action,.wave-settings summary,.motion-switch,.menu-body .account { display:flex; align-items:center; justify-content:flex-start; gap:11px; padding:7px 10px; min-height:38px; width:100%;
  color:#d5d4d7; text-align:left; font:500 .84rem/1.35 var(--font); text-decoration:none; background:transparent; border:0; border-radius:9px; transition:background .16s ease,color .16s ease }
.menu-body .tabs button:hover,.menu-action:hover,.wave-settings summary:hover,.motion-switch:hover,.menu-body .account:hover { color:var(--text); background:var(--raised) }
.menu-body .tabs button[aria-current="page"] { color:var(--accent); background:#78aaff12 }
.menu-body .icon { width:16px; height:16px; color:inherit }
.menu-body .account { margin-top:6px; color:#f1eef2 }
.menu-body .footer { margin:5px 0 0; min-height:0; padding:9px 10px 0; display:flex; flex-wrap:wrap; gap:2px 12px; border-top:1px solid #303033 }
.menu-body .footer a { color:#a5a4aa; text-decoration:none; font-size:.65rem; line-height:1.5; padding-block:5px; min-height:24px }
.menu-body .footer a:hover { color:white; text-decoration:underline }
body:not(:has(.wave-stage)) #station-actions { display:none }
.button, .icon-button, .wave-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  color: var(--text); border: 1px solid var(--line); background: var(--ghost); border-radius: 24px;
  font-size: .85rem; font-weight: 580; line-height: 1.2; text-decoration: none;
  transition: background .17s ease, color .17s ease, transform .17s ease;
}
.button:hover, .icon-button:hover, .wave-control:hover:not(:disabled) { background: var(--raised) }
.button:active, .icon-button:active, .wave-control:active:not(:disabled) { transform: scale(.97) }
.button.primary, .button.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent }
.button.primary:hover, .button.accent:hover { background: var(--text) }
.icon-button { padding: 0; width: 42px; min-width: 42px }
.shell { padding-top: clamp(34px,4.4vw,70px); min-height: 73svh }
.station-head { display:flex; justify-content:space-between; align-items:end; gap:20px }
.station-head > div { min-width:0 }
.eyebrow { margin-bottom:12px; color:var(--muted); font:590 .68rem/1.35 var(--font); text-transform:uppercase; letter-spacing:.15em; display:flex; gap:9px; align-items:center }
.eyebrow .icon { width:14px; height:14px }
.head-actions, .actions, .inline-group, .dialog-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.head-actions { flex:none; margin-bottom:5px; max-width:100% }
summary { list-style:none; cursor:pointer }
summary::-webkit-details-marker { display:none }
.genre-panel, .genre-bar { display:flex; gap:6px; flex-wrap:wrap }
.chip { border:1px solid var(--line); background:var(--ghost); border-radius:18px; color:var(--muted); font:520 .82rem/1.2 var(--font); padding:8px 13px; transition:background .16s ease,color .16s ease }
.chip:hover { background:var(--raised); color:var(--text) }
.chip[aria-pressed="true"] { background:var(--accent); color:var(--accent-ink); border-color:var(--accent) }

body:has(.wave-stage) { background:#010204 }
body:has(.wave-stage) .mast { position:absolute; inset:0 0 auto; pointer-events:none }
body:has(.wave-stage) .wordmark { pointer-events:auto }
body:has(.wave-stage) .shell { max-width:none; padding:0; min-height:0 }
.wave-stage { isolation:isolate; color:var(--text); background:#010204 }
.wave-field { position:relative; width:100%; height:100svh; min-height:350px; overflow:hidden; background:inherit; isolation:isolate }
.wave-field > uradio-wave { display:block; position:absolute; inset:0; pointer-events:none; z-index:-1 }
.wave-heading { position:absolute; left:calc(clamp(24px,2.8vw,52px) + 145px); right:300px; top:0; height:90px; display:flex; align-items:center; pointer-events:none; z-index:1 }
.wave-heading h1 { width:fit-content; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-inline:5px; font-size:14px; font-weight:480; letter-spacing:-.017em; line-height:1.6; color:#b7bcc0 }
.wave-heading h1::before { content:''; display:inline-block; width:5px; height:5px; margin-right:9px; border-radius:50%; background:#677581; vertical-align:3px; transition:background .3s ease,box-shadow .3s ease }
.wave-stage[data-playing="true"] .wave-heading h1::before { background:#a5d1ff; box-shadow:0 0 9px #67a8ffba }
.wave-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center;
  width:min(81.8vw,65.6svh); aspect-ratio:1; border-radius:50%; color:#f8f6f8; background:transparent; z-index:1 }
.wave-play-face { display:grid;place-items:center;position:relative;width:72px;height:72px;border-radius:50%;color:#edf6ff;
  border:1px solid #b0d7ffb0;background:linear-gradient(145deg,#213c5ded,#0a1828ed 64%,#172b4ceb);
  box-shadow:inset 0 1px 3px #e5f4ff42,inset 0 -1px 3px #5a91ff5c,0 4px 17px #020b21a8 }
.wave-play-face::after {content:'';position:absolute;inset:-5px;border:1px solid #a7d2ffa6;border-radius:inherit;pointer-events:none;opacity:0}
.wave-stage[data-playing="true"] .wave-play-face::after {animation:start-ripple .95s cubic-bezier(.18,.67,.23,1) both}
.wave-stage[data-loading="true"] .wave-play-face::after {opacity:1;border-color:#789fdb36;border-top-color:#c3e6ff;animation:loading-turn 1s linear infinite}
.transport-glyph {display:block;position:relative;width:25px;height:25px}
.transport-glyph::before,.transport-glyph::after {content:'';position:absolute;inset:0;background:currentColor;
  transition:clip-path .4s cubic-bezier(.22,.85,.25,1),transform .42s var(--settle)}
.transport-glyph::before {clip-path:polygon(23% 6%,52% 23%,52% 77%,23% 94%)}
.transport-glyph::after {clip-path:polygon(51% 22%,97% 49.5%,97% 50.5%,51% 78%)}
.wave-stage:is([data-playing="true"],[data-loading="true"]) .transport-glyph::before {clip-path:polygon(18% 11%,38% 11%,38% 89%,18% 89%)}
.wave-stage:is([data-playing="true"],[data-loading="true"]) .transport-glyph::after {clip-path:polygon(62% 11%,82% 11%,82% 89%,62% 89%)}
.wave-play-label { position:absolute; top:calc(50% + 48px); left:0; right:0; font-size:15px; line-height:1.2; font-weight:600; letter-spacing:-.022em; color:#f3f8ff; text-shadow:0 1px 3px #01050b,0 1px 9px #01050b,0 0 16px #01050b }
@media (hover:hover) { .wave-play:hover .wave-play-face {transform:scale(1.065); border-color:#dbefff;box-shadow:inset 0 1px 3px #e8f4ff52,0 0 0 5px #7cb5ff21,0 5px 22px #04112894} }
.wave-play:active .wave-play-face { transform:scale(.94) }
.wave-play:focus-visible { outline:none }
.wave-play:focus-visible .wave-play-face { outline:2px solid #fff; outline-offset:5px }
.wave-control { display:inline-grid; place-items:center; flex:none; width:44px; height:44px; min-height:44px; padding:0; border:none; border-radius:50%; color:#aeacb3; background:transparent }
.wave-control:hover:not(:disabled) { color:var(--accent); background:#ffffff0e }
.wave-control[data-act="previous"] .icon { transform:rotate(180deg) }
.wave-control .icon { width:17px; height:17px }
.wave-control[aria-pressed="true"] { color:var(--accent); background:#8ebeff14 }
.menu-section .genre-panel { padding:8px 0 10px 7px }
.menu-section .chip { font-size:.72rem; padding:6px 9px }
.menu-chevron { width:7px; height:7px; margin-left:auto; margin-right:3px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg) }
.wave-settings[open] .menu-chevron { transform:rotate(-135deg) }
.genre-count { border-radius:30px; background:#565057; color:white; font-size:.65rem; padding:1px 5px }
.motion-rings { position:relative; width:16px; height:16px; border-radius:50%; border:1px solid currentColor; transform:rotate(19deg) }
.motion-rings::after { content:''; width:6px; position:absolute; top:0; bottom:0; left:4px; border:1px solid currentColor; border-radius:50% }
.switch-dot { margin-left:auto; width:25px; height:15px; padding:3px; border-radius:13px; background:#464449 }
.switch-dot::after { content:''; display:block; width:9px; height:9px; background:#d1cfd3; border-radius:50%; transition:transform .18s ease }
.motion-switch[aria-pressed="true"] .switch-dot { background:var(--accent) }
.motion-switch[aria-pressed="true"] .switch-dot::after { background:var(--accent-ink); transform:translateX(10px) }
.wave-empty { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:14px; margin:auto; max-width:440px; padding:28px }
.wave-empty h2 { font-size:clamp(25px,3vw,40px); font-weight:540; line-height:1.07 }
.wave-empty p { font-size:.9rem; color:#a3a2a7 }
.wave-empty .button { margin-top:4px }
.station-head { margin-bottom: 28px; flex-wrap:wrap }
.description { color: var(--muted); margin-top: 14px; max-width: 64ch; overflow-wrap: anywhere }
.quiet, .form-note { color: var(--muted); font-size: .85rem }
.form-note:empty { display: none }
.leader-list, .room-list, .track-list { list-style: none; padding: 0; margin: 0 }
.lead-row, .room-row, .track-row { display: flex; align-items: center; width: 100%; gap: 16px; text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--line) }
.room-row, .track-row { transition: background .16s ease }
.room-row:hover, .track-row:hover { background: var(--ghost) }
.row-meta { min-width:0; flex:1; overflow-wrap:anywhere }
.row-meta strong, .row-meta small { display:block }
.row-meta strong { font-size: .96rem; font-weight: 620 }
.row-meta small { font-size: .8rem; color: var(--muted); margin-top: 3px }
.proposal-group {margin-top:32px}
.proposal-group h2 {margin:0;font-size:1.28rem}
.proposal-group > p,.proposal-status {margin:4px 0 0;color:var(--muted);font-size:.875rem}
.proposal-group > ul {margin-top:8px}
.proposal-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--line)}
.proposal-links {display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap}
.proposal-links button,.proposal-links a {min-height:44px}
.proposal-source {display:inline-flex;align-items:center;font-size:.85rem;color:var(--accent);text-underline-offset:3px}
.proposal-status {grid-column:1/-1;color:var(--accent)}
.proposal-status:empty {display:none}
.proposal-link {grid-column:1/-1;display:grid;gap:8px;max-width:38rem;padding:10px 0}
.proposal-link .form-note {margin:0}
.proposal-page > .button {margin-top:20px}
@media (max-width:670px) {
  .proposal-row {grid-template-columns:1fr}
  .proposal-page .station-head {align-items:flex-start;flex-direction:column}
}
.rank { color: var(--quiet); font-size: .81rem; font-variant-numeric: tabular-nums }
.initial, .room-sign { width: 41px; height: 41px; flex:none; display:grid; place-items:center; background:var(--raised); color:var(--accent); border-radius:50%; font-size:.86rem; font-weight:640 }
.room-sign { width:49px; height:49px; border-radius:14px }
.room-sign .icon { width:22px; height:22px }
.lead-row:first-child .initial { background:var(--accent); color:var(--accent-ink) }
.score, .badge { display:inline-flex; align-items:center; gap:6px; font-weight:580 }
.score { font-size:.87rem }
.badge { color:var(--accent); font-size:.76rem }
.score .icon, .badge .icon { width:14px; height:14px }
.medals { display:flex; flex-wrap:wrap; gap:8px; margin-top:7px }
.text-button { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:.85rem; font-weight:550; text-decoration:underline; text-underline-offset:4px }
.text-button:hover { color:var(--text) }
.text-button .icon { width:14px; height:14px }
.placeholder { display:grid; justify-items:start; gap:12px; color:var(--muted); padding:25px 0 }
.footer { min-height:63px; display:flex; justify-content:flex-end; align-items:center; gap:4px 20px; flex-wrap:wrap; color:var(--quiet); font-size:.75rem; margin-top:32px }
.footer a { text-decoration:none }
.footer a:hover { color:var(--text); text-decoration:underline }
dialog { width:min(460px,calc(100vw - 24px)); max-height:88svh; overflow-y:auto; padding:0; border:1px solid var(--edge); border-radius:18px; color:var(--text); background:linear-gradient(150deg,#1a2027,var(--panel) 40%); box-shadow:inset 0 1px #e8f4ff12,0 20px 70px #0009 }
dialog::backdrop { background:rgb(5 4 12/.74) }
#dialog-content { padding:clamp(18px,4.5vw,28px) }
.dialog-head { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:20px }
.dialog-head h2 { font-size:29px }
.dialog-head .icon-button { min-width:36px; width:36px; min-height:36px }
.dialog-stack, .form { display:grid; gap:15px }
.dialog-subtitle { font-weight:620 }
.account-label, .resolve-row { display:flex; gap:9px; align-items:center; flex-wrap:wrap; overflow-wrap:anywhere }
.resolve-row { justify-content:space-between }
.field { display:grid; gap:6px; color:var(--text); font-size:.84rem; font-weight:540 }
.field input, .field select, .field textarea, .share-url { min-width:0; width:100%; padding:11px 12px; border:1px solid var(--edge); border-radius:9px; color:var(--text); background:var(--field); font-size:1rem }
.field textarea { resize:vertical; min-height:68px }
.field input::file-selector-button { font:inherit; border:0; border-radius:6px; background:var(--raised); color:var(--text); padding:5px 10px; margin-right:10px; cursor:pointer }
.field ::placeholder { color:var(--quiet) }
.dialog-actions { margin-top:3px }
.form-error, .danger { color:var(--alert); font-size:.89rem }
.form-error:empty { display:none }
.local-login { border-top:1px solid var(--line); padding-top:15px }
.report-item { display:grid; gap:8px; padding:14px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere }
#notice { position:fixed; z-index:5; bottom:max(14px,env(safe-area-inset-bottom)); inset-inline:12px; width:max-content; max-width:calc(100% - 24px); margin:auto; padding:11px 17px; color:var(--accent-ink); background:var(--accent); font-size:.87rem; border-radius:12px; pointer-events:none }
#notice:empty { display:none }
.startup { color:var(--muted); padding-block:32px }
@media (min-width:1750px) {
  .wave-heading { left:calc((100vw - 1750px)/2 + 197px) }
}
@media (max-width:600px) {
  .mast-inner { height:calc(68px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left)) }
  .wordmark { font-size:28px }
  .brand-coil { width:19px; margin-right:4px }
  .brand-coil i { height:13px }.brand-coil i:nth-child(2) {height:18px}
  body:has(.wave-stage) .mast-inner { gap:7px }
  body:has(.wave-stage) .wordmark { align-self:center; padding-bottom:14px }
  .station-add { gap:6px; padding:0 10px 0 8px; font-size:12px }
  .station-add .add-mark { width:20px; height:20px }
  .site-menu > summary { font-size:13px; gap:8px; padding-inline:10px }
  body:has(.wave-stage) .site-menu > summary { width:44px; padding:0 }
  body:has(.wave-stage) .site-menu > summary > span { display:none }
  .menu-body { top:calc(100% + 1px); max-height:calc(100svh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) }
  .wave-heading { left:max(18px,env(safe-area-inset-left)); right:177px; top:calc(45px + env(safe-area-inset-top)); height:auto }
  .wave-heading h1 { font-size:11px; padding-inline:1px; line-height:1.3 }
  .wave-heading h1::before { margin-right:6px; vertical-align:2px }
  .wave-play-face { width:61px; height:61px }
  .wave-play-label { top:calc(50% + 42px); font-size:14px }
  .shell { padding-top:26px; min-height:68svh }
  .station-head { align-items:start; flex-wrap:wrap; margin-bottom:18px }
  .station-head h1 { font-size:clamp(37px,9vw,54px) }
  .lead-row,.room-row { gap:10px; padding:13px 0 }
  #notice { bottom:calc(15px + env(safe-area-inset-bottom)) }
}
@media (max-height:490px) {
  .wave-field { min-height:255px }
}

/* Keep the transport outside the patched wave tree so the iframe and seek gesture survive updates. */
body {
  --player-gutter:max(18px,env(safe-area-inset-left),min(3vw,48px));
  --player-bottom:max(18px,env(safe-area-inset-bottom),min(3.8svh,48px));
  --occupied-bottom:calc(var(--dock-height,200px) + var(--player-bottom) + 12px);
  --video-size:200px;
}
#station-player {
  display:none; position:fixed; z-index:2; left:var(--player-gutter); bottom:var(--player-bottom);
  --art-width:52px; --dock-width:490px;
  width:min(var(--dock-width),calc(100% - var(--player-gutter) - max(var(--player-gutter),env(safe-area-inset-right))));
  grid-template-columns:var(--art-width) minmax(0,1fr) auto;
  grid-template-areas:"art title actions" "art seek seek";
  align-items:center; gap:2px 12px; color:var(--text); isolation:isolate;
}
#station-player::before { content:''; position:absolute; inset:-9px; z-index:-1; pointer-events:none; border-radius:16px; border:1px solid #c1cbd02e;
  background:linear-gradient(117deg,#191d20fa,#101316fa 70%); box-shadow:inset 0 1px #f4f4ed0a,0 8px 26px #0005 }
.radio-layout:has(.wave-play) #station-player,
#station-player[data-media-active="true"] {display:grid}
.station-cover { grid-area:art; width:var(--art-width); height:var(--art-width); display:block; border:1px solid #aac2d33d; border-radius:7px }
#youtube-dock { grid-area:art; align-self:end; width:var(--video-size); height:var(--video-size); background:#101012; outline:1px solid #2a2930 }
#youtube-mount,#youtube-mount iframe { display:block; width:100%; height:100%; min-width:200px; min-height:200px; border:0 }
#station-player:has(#youtube-dock:not([hidden])) {
  --art-width:var(--video-size); --dock-width:550px;
  grid-template-areas:"art title" "art actions" "art seek";
  grid-template-columns:var(--art-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;
}
#station-player:has(#youtube-dock:not([hidden])) .station-cover { display:none }
#station-player:has(#youtube-dock:not([hidden])) .track-caption {align-self:center}
.track-caption { grid-area:title; min-width:0 }
.wave-track-title { color:var(--text); line-height:1.2; letter-spacing:-.032em; font-weight:610; font-size:clamp(16px,1.3vw,20px);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.track-byline,.track-credit { margin-top:3px; color:#b3bdc6; font-size:12px; line-height:1.35; overflow-wrap:anywhere }
.track-genre,.track-credit { color:#98a3ad; font-size:11px }
.wave-track-artist:not(:empty) + .track-genre:not(:empty)::before { content:'·'; margin-inline:5px }
.track-actions { grid-area:actions; display:flex; align-items:center; justify-content:space-between; column-gap:12px }
.track-votes,.track-navigation { display:flex; align-items:center }
.track-vote { display:grid; place-items:center; width:46px; height:44px; border-radius:12px; color:#d3d4d3; position:relative }
.track-vote .icon { width:23px; height:23px; fill:transparent; transition:transform .42s var(--settle),fill .23s ease }
.track-vote[aria-pressed="true"] { color:var(--accent) }
.track-vote[data-act="dislike"][aria-pressed="true"] {color:#bbcbd5}
.track-vote[aria-pressed="true"] .icon {fill:currentColor}
.track-vote:disabled {opacity:.44}
.track-vote:focus-visible {outline-offset:-3px}
.track-vote:focus-visible::after {content:attr(aria-label);position:absolute;bottom:100%;width:max-content;padding:3px 8px;border-radius:4px;
  font:500 12px/1.5 var(--font);color:var(--text);background:var(--panel);border:1px solid var(--edge);pointer-events:none}
@media (hover:hover) {
  .track-vote:not(:disabled):hover .icon {transform:translateY(-1px) scale(1.12)}
}
.track-vote:not(:disabled):active .icon {transform:scale(.85);transition-duration:.09s}
.track-navigation .wave-control {color:#d2d7d9}
.track-navigation .wave-control:disabled {color:#8f9aa3;opacity:.5}
.dock-play {background:#ffffff12}
.dock-play .dock-pause-icon,.dock-play[data-playing="true"] .dock-play-icon,
.radio-layout:has(.wave-stage) .dock-play {display:none}
.dock-play[data-playing="true"] .dock-pause-icon {display:block}
.radio-layout:has(#station-player[data-media-active="true"]) .shell:not(:has(.wave-stage)) {padding-bottom:calc(var(--occupied-bottom) + 16px)}
.station-timeline { grid-area:seek; display:flex; align-items:center; gap:8px; color:#adb8bf; font:500 10px/1 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums }
.station-timeline > span { flex:none; min-width:3ch }
#seek-duration {text-align:right}
#station-seek {
  display:block; flex:1; width:0; min-width:0; height:26px; margin:0; padding:0; border:0; border-radius:4px;
  appearance:none; -webkit-appearance:none; background:transparent; color:var(--accent); cursor:pointer; touch-action:pan-y;
}
#station-seek:disabled {opacity:.5; cursor:default}
#station-seek::-webkit-slider-runnable-track {
  height:3px; border-radius:2px; background:linear-gradient(to right,currentColor var(--seek-progress,0%),#3c4752 0);
}
#station-seek::-webkit-slider-thumb {
  appearance:none; -webkit-appearance:none; margin-top:-3px; width:9px; height:9px; border-radius:50%; background:#c5deff; box-shadow:0 0 6px #64a5ff40;
  transition:transform .36s var(--settle),box-shadow .36s var(--settle);
}
#station-seek::-moz-range-track { height:3px; border-radius:2px; background:#3c4752 }
#station-seek::-moz-range-progress { height:3px; background:currentColor }
#station-seek::-moz-range-thumb { border:0; width:9px; height:9px; border-radius:50%; background:currentColor }
#station-seek:focus-visible {outline-offset:1px}
#station-seek:is(:active,:focus-visible):not(:disabled)::-webkit-slider-thumb {transform:scale(1.35);box-shadow:0 0 0 4px #75aeff29}
body:has(#youtube-dock:not([hidden])) .menu-body {max-height:calc(100svh - var(--occupied-bottom) - 83px - env(safe-area-inset-top))}
body:has(#youtube-dock:not([hidden])) #notice {bottom:var(--occupied-bottom)}
/* Modals pause the clip. Keep the provider's whole square visible below the dialog. */
body:has(#youtube-dock:not([hidden])) #dialog {inset:0 0 var(--occupied-bottom);max-height:calc(100svh - var(--occupied-bottom) - 12px)}
body:has(#youtube-dock:not([hidden])) #dialog::backdrop {
  background:linear-gradient(to bottom,rgb(5 4 12/.74) 0 calc(100% - var(--occupied-bottom)),transparent 0);
}
@media (max-width:760px) {
  body {--player-gutter:max(16px,env(safe-area-inset-left));--player-bottom:max(14px,env(safe-area-inset-bottom))}
  #station-player {--art-width:48px;gap:3px 10px}
  .wave-track-title {font-size:16px}
}
@media (max-width:670px) and (orientation:portrait) {
  #station-player {grid-template-columns:var(--art-width) minmax(0,1fr);grid-template-areas:"art title" "actions actions" "seek seek"}
  #station-player:has(#youtube-dock:not([hidden])) {
    grid-template-columns:var(--video-size) minmax(0,1fr);
    grid-template-areas:"art title" "actions actions" "seek seek";
    grid-template-rows:auto auto auto;gap:0 12px;
  }
  #station-player:has(#youtube-dock:not([hidden])) .wave-track-title {-webkit-line-clamp:6}
  .track-actions {margin-top:4px}
  .radio-layout:has(.wave-play) .wave-field > uradio-wave {bottom:var(--occupied-bottom)}
  .radio-layout:has(.wave-play) .wave-play {top:calc((100% - var(--occupied-bottom)) / 2);
    width:min(81.8vw,calc((100svh - var(--occupied-bottom)) * .656))}
}
@media (max-width:365px) and (orientation:portrait) {
  #station-player:has(#youtube-dock:not([hidden])) {grid-template-areas:"art byline" "art credit" "title title" "actions actions" "seek seek";
    grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto auto auto}
  #station-player:has(#youtube-dock:not([hidden])) .track-caption {display:contents}
  .wave-track-title {grid-area:title}
  #station-player:has(#youtube-dock:not([hidden])) .wave-track-title {margin-top:6px;-webkit-line-clamp:3}
  .track-byline {grid-area:byline;align-self:end}
  .track-credit {grid-area:credit;align-self:start}
}
@media (pointer:coarse) {
  #station-seek {height:44px}
}
@media (max-height:520px) and (orientation:landscape) {
  body {--player-gutter:max(12px,env(safe-area-inset-left));--player-bottom:max(8px,env(safe-area-inset-bottom))}
  .radio-layout:not(:has(#youtube-dock:not([hidden]))) .wave-field > uradio-wave {bottom:var(--occupied-bottom)}
  .radio-layout:not(:has(#youtube-dock:not([hidden]))) .wave-play {top:calc((100% - var(--occupied-bottom)) / 2);
    width:min(81.8vw,calc((100svh - var(--occupied-bottom)) * .656))}
  body:has(#youtube-dock:not([hidden])) {--occupied-left:calc(200px + max(12px,env(safe-area-inset-left)) + 12px)}
  #station-player:has(#youtube-dock:not([hidden])) {width:calc(100% - var(--player-gutter) - max(var(--player-gutter),env(safe-area-inset-right)));gap:0 10px;
    grid-template-areas:"art . ." "art title actions" "art seek seek";
    grid-template-columns:var(--video-size) minmax(0,1fr) auto;grid-template-rows:1fr auto auto;pointer-events:none}
  #station-player:has(#youtube-dock:not([hidden])) > * {pointer-events:auto}
  #station-player:has(#youtube-dock:not([hidden]))::before {inset:auto -6px -6px calc(var(--video-size) + 3px);height:93px}
  .radio-layout:has(#youtube-dock:not([hidden])) .wave-field > uradio-wave {left:var(--occupied-left);bottom:102px}
  .radio-layout:has(#youtube-dock:not([hidden])) .wave-play {left:calc((100% + var(--occupied-left)) / 2);top:calc((100% - 102px) / 2);
    width:min(calc((100vw - var(--occupied-left)) * .818),calc((100svh - 102px) * .656))}
  body:has(#youtube-dock:not([hidden])) .menu-body {max-width:calc(100vw - var(--occupied-left) - 24px);max-height:calc(100svh - 76px - env(safe-area-inset-top))}
  body:has(#youtube-dock:not([hidden])) #notice {inset-inline:var(--occupied-left) 6px;bottom:6px;max-width:calc(100vw - var(--occupied-left) - 12px)}
  body:has(#youtube-dock:not([hidden])) #dialog {inset:0 0 0 var(--occupied-left);width:calc(100vw - var(--occupied-left) - 16px);max-height:96svh}
  body:has(#youtube-dock:not([hidden])) #dialog::backdrop {background:linear-gradient(to right,transparent 0 var(--occupied-left),rgb(5 4 12/.74) 0)}
}
/* Movement starts on contact; the release has a longer deceleration. */
button:not(.wave-play),summary,.wave-play-face,.menu-lines::before,.menu-lines::after,.switch-dot::after {
  transition:transform .69s var(--settle),background-color .52s var(--settle),color .46s var(--settle),border-color .56s var(--settle),box-shadow .65s var(--settle),opacity .42s var(--settle),top .55s var(--settle);
}
:is(button:not(.wave-play),summary):active:not(:disabled) { transform:scale(.965); transition-duration:.11s }
.wave-play:active .wave-play-face { transition-duration:.12s }
.site-menu[open] .menu-body, dialog[open] #dialog-content { animation:surface-in .52s var(--settle) both }
.site-menu[open] .menu-body { transform-origin:94% 0 }
.wave-field:has(uradio-wave[data-arrival="entering"]) .wave-play-face {animation:tune-in .72s var(--settle) .18s backwards}
body:has(uradio-wave[data-arrival="entering"]) .station-add:not(:hover)::before {animation:key-reflection .95s ease-out .24s}
.wave-field:has(uradio-wave[data-arrival="entering"]) .wave-play-label { animation:label-in 1.15s var(--settle) .18s both }
@keyframes key-reflection {0% {transform:translateX(-75%);opacity:0} 26%,64% {opacity:1} 100% {transform:translateX(75%);opacity:0}}
@keyframes tune-in {from {opacity:0;transform:scale(.72)} 66% {opacity:1;transform:scale(1.07)} to {opacity:1;transform:scale(1)}}
@keyframes start-ripple {from {opacity:.85;transform:scale(.9)} to {opacity:0;transform:scale(1.66)}}
@keyframes loading-turn {to {transform:rotate(1turn)}}
@keyframes surface-in { from { opacity:.1; transform:translateY(-5px) scale(.978) } to { opacity:1; transform:none } }
@keyframes label-in { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition-duration:0s !important; scroll-behavior:auto !important }
}
body:has(.wave-stage[data-motion="false"]) :is(.station-add,.add-disc,.wave-play-face,.wave-play-label,.transport-glyph)::before,
body:has(.wave-stage[data-motion="false"]) :is(.station-add,.wave-play-face,.transport-glyph)::after,
.wave-stage[data-motion="false"] :is(.wave-play-face,.wave-play-label) {animation:none;transition:none}
