:root {
  --bg: #0d0c0a;
  --bg2: #161410;
  --ink: #efe8d6;
  --mute: #92897a;
  --line: rgba(239, 232, 214, .13);
  --h: 38;
  --accent: hsl(var(--h) 92% 62%);
  --accent-ink: #14110a;
  --pad: clamp(16px, 4vw, 48px);
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
.mono { font-family: var(--mono); }
.ic { width: 22px; height: 22px; flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
.bg-veil { position: fixed; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13, 12, 10, .62) 0%, rgba(13, 12, 10, .2) 55%, rgba(13, 12, 10, .04) 100%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(13, 12, 10, .55) 100%); }
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  left: 38%; top: 34%; width: 80vmax; height: 80vmax; margin: -40vmax 0 0 -40vmax;
  background: radial-gradient(closest-side, hsl(var(--h) 90% 52% / .26), hsl(var(--h) 90% 52% / .07) 55%, transparent);
  opacity: .8; will-change: transform, opacity;
}
.top, .layout, .foot { position: relative; z-index: 1; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--pad); padding-top: max(18px, env(safe-area-inset-top)); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-word { font: 400 2rem/1 var(--disp); letter-spacing: -.01em; }
.logo-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo-bars i { width: 4px; border-radius: 2px; background: var(--accent); height: 40%; animation: lb 1.1s var(--ease) infinite alternate paused; }
.logo-bars i:nth-child(2) { height: 100%; animation-delay: -.4s; }
.logo-bars i:nth-child(3) { height: 60%; animation-delay: -.8s; }
body[data-state="live"] .logo-bars i { animation-play-state: running; }
@keyframes lb { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.logo-bars i { transform-origin: bottom; }

.top-actions { display: flex; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.chip .ic { width: 18px; height: 18px; }
.chip:hover { background: rgba(239, 232, 214, .07); border-color: rgba(239, 232, 214, .25); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.chip-accent:hover { background: var(--accent); filter: brightness(1.08); border-color: transparent; }
.btn-ghost, .btn-bare { display: inline-grid; place-items: center; border-radius: 50%; transition: background .25s, transform .25s var(--ease), color .25s; }
.btn-ghost { width: 50px; height: 50px; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(239, 232, 214, .08); }
.btn-ghost:active, .btn-bare:active { transform: scale(.92); }
.btn-bare { width: 40px; height: 40px; color: var(--mute); }
.btn-bare:hover { color: var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 64px); padding: 0 var(--pad); align-items: start; }
.col-main { min-width: 0; }

.stage { padding-top: clamp(4px, 2vh, 28px); }
.status { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.status-sep { opacity: .4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); transition: background .3s; }
body[data-state="live"] .dot { background: var(--accent); animation: dotp 1.6s ease-in-out infinite; }
body[data-state="connecting"] .dot { background: var(--ink); animation: dotp .7s ease-in-out infinite; }
body[data-state="error"] .dot { background: #ff6b57; }
body[data-state="live"] #statusText { color: var(--ink); }
@keyframes dotp { 50% { opacity: .25; transform: scale(.7); } }

.name {
  font: 400 clamp(3.4rem, 9vw, 8rem)/.9 var(--disp);
  letter-spacing: -.025em; margin: .2em 0 .12em; text-wrap: balance;
  min-height: 1.8em; display: flex; align-items: flex-end;
}
.name > span { display: block; }
.meta { color: var(--mute); max-width: 48ch; min-height: 1.5em; }
.meta b { color: var(--ink); font-weight: 500; }

.viz {
  height: clamp(150px, 25vh, 260px); margin: 20px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.viz { position: relative; }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.transport { display: flex; align-items: center; gap: 12px; }
.play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .35s var(--ease), filter .3s;
}
.play:hover { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.06); filter: brightness(1.07); }
.play:active { transform: scale(.94); }
.ch { display: inline-block; white-space: pre; }
.play .ic { width: 34px; height: 34px; grid-area: 1/1; transition: transform .35s var(--ease), opacity .2s; }
.play .ic-pause { opacity: 0; transform: scale(.4) rotate(-40deg); }
body[data-state="live"] .play .ic-play, body[data-state="connecting"] .play .ic-play { opacity: 0; transform: scale(.4) rotate(40deg); }
body[data-state="live"] .play .ic-pause, body[data-state="connecting"] .play .ic-pause { opacity: 1; transform: none; }
.play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
body[data-state="live"] .play::after { animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
.play-load { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ink); opacity: 0; transition: opacity .25s; }
body[data-state="connecting"] .play-load { opacity: .9; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-sm { width: 46px; height: 46px; }
.play-sm .ic { width: 20px; height: 20px; }

.vol { display: flex; align-items: center; gap: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; background: none; width: 120px; height: 28px; cursor: pointer; margin: 0; --p: 80%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 0; transition: transform .2s var(--ease); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 0; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.25); }

.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid var(--line); border-radius: 999px; --i: 0; }
.seg::before {
  content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i) * 100%));
  transition: transform .45s var(--ease);
}
.seg button { position: relative; padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--mute); transition: color .3s; }
.seg button[aria-checked="true"] { color: var(--accent-ink); }
.seg button:not([aria-checked="true"]):hover { color: var(--ink); }

.tuner { position: relative; margin-top: clamp(28px, 5vh, 56px); height: 124px; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.needle { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.needle::before { content: ''; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
.dial { height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; outline-offset: -4px; }
.dial::-webkit-scrollbar { display: none; }
.dial.drag { cursor: grabbing; scroll-snap-type: none; }
.track { display: flex; height: 100%; padding-inline: calc(50% - 60px); width: max-content; min-width: 100%; }
.tick {
  flex: 0 0 120px; scroll-snap-align: center; position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; padding-top: 22px; gap: 4px; text-align: center;
  color: var(--mute); transition: color .3s;
  background: repeating-linear-gradient(90deg, rgba(239, 232, 214, .22) 0 1px, transparent 1px 12px) bottom / 100% 9px no-repeat;
}
.tick::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 24px; background: rgba(239, 232, 214, .45); }
.tick-f { font: 500 1.3rem/1 var(--mono); transition: transform .4s var(--ease), color .3s; }
.tick-n { font-size: .78rem; max-width: 108px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick.is-cur { color: var(--ink); }
.tick.is-cur .tick-f { color: var(--accent); transform: scale(1.18); }
.tick:hover { color: var(--ink); }

.col-list { position: sticky; top: 0; max-height: 100dvh; display: flex; flex-direction: column; padding-top: clamp(12px, 4vh, 48px); padding-bottom: 24px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; }
.list-head h2 { font: 400 1.9rem/1 var(--disp); }
.list-head .mono { color: var(--mute); font-size: .78rem; }
.list { overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.row {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 13px 10px 13px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .35s var(--ease);
  animation: rowin .6s var(--ease) both; animation-delay: calc(var(--n) * 40ms);
}
@keyframes rowin { from { opacity: 0; transform: translateY(10px); } }
.row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s var(--ease); }
.row:hover { background: rgba(239, 232, 214, .045); }
.row.is-cur { background: hsl(var(--h) 90% 55% / .09); padding-left: 16px; }
.row.is-cur::before { transform: scaleY(1); }
.row-n { font: 500 .75rem var(--mono); color: var(--mute); }
.row-t { display: flex; flex-direction: column; min-width: 0; }
.row-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: .8rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqmini { display: flex; align-items: flex-end; gap: 2px; height: 16px; width: 18px; opacity: 0; transition: opacity .3s; }
.eqmini i { flex: 1; background: var(--accent); border-radius: 1px; height: 100%; transform-origin: bottom; animation: lb .9s ease-in-out infinite alternate paused; }
.eqmini i:nth-child(2) { animation-delay: -.3s; animation-duration: 1.1s; }
.eqmini i:nth-child(3) { animation-delay: -.6s; animation-duration: .8s; }
.row.is-cur .eqmini { opacity: 1; }
body[data-state="live"] .row.is-cur .eqmini i { animation-play-state: running; }

.foot { padding: 48px var(--pad) calc(48px + env(safe-area-inset-bottom)); color: var(--mute); font-size: .8rem; max-width: 900px; display: grid; gap: 10px; }
.foot a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
.foot-keys { font-size: .72rem; opacity: .7; }

.mini {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  background: rgba(22, 20, 16, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.mini-info { display: flex; flex-direction: column; min-width: 0; }
.mini-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-status { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
body.mini-on .mini { transform: none; }

dialog {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 22px 24px 24px; color: var(--ink); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .3s, transform .45s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete;
}
dialog[open] { opacity: 1; transform: none; }
dialog:focus, dialog:focus-visible { outline: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(18px) scale(.97); } }
dialog::backdrop { background: rgba(8, 7, 5, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .35s, backdrop-filter .35s, overlay .35s allow-discrete, display .35s allow-discrete; }
dialog[open]::backdrop { background: rgba(8, 7, 5, .62); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
@starting-style { dialog[open]::backdrop { background: rgba(8, 7, 5, 0); backdrop-filter: blur(0); } }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-head h3 { font: 600 1.15rem/1.2 var(--ui); }
.dlg-note { margin-top: 18px; font-size: .8rem; color: var(--mute); }
.dlg-note.warn { color: #e8b86a; }

.eq-stage { position: relative; height: 270px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.eq-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.eq-zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.eq-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.eq-fill { fill: hsl(var(--h) 90% 55% / .1); stroke: none; }
.eq-bands { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.eqb { display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 8px; }
.eqb-val { font: 500 .72rem var(--mono); color: var(--mute); height: 14px; }
.eqb-track { position: relative; flex: 1; width: 44px; cursor: ns-resize; touch-action: none; outline-offset: 2px; }
.eqb-track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--line); }
.eqb-fill { position: absolute; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); border-radius: 3px; }
.eqb-thumb { position: absolute; left: 50%; width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease); }
.eqb-track:hover .eqb-thumb, .eqb-track.on .eqb-thumb { transform: scale(1.18); }
.eqb-f { font: 500 .72rem var(--mono); color: var(--mute); }
.eq-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.eq-presets .chip { padding: 8px 14px; font-size: .82rem; }
.eq-presets .chip.on { background: var(--ink); color: var(--accent-ink); border-color: transparent; }

.dn-lead { color: var(--mute); font-size: .95rem; margin-bottom: 18px; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 999px; --i: 0; margin-bottom: 20px; }
.tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease); }
.tabs button { position: relative; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--mute); transition: color .3s; }
.tabs button small { font: 500 .62rem var(--mono); opacity: .7; margin-left: 4px; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); }
.dn-body { display: grid; grid-template-columns: 208px 1fr; gap: 22px; align-items: center; }
.qr { position: relative; width: 208px; height: 208px; border-radius: 16px; overflow: hidden; background: #f4eedf; }
.qr canvas { width: 208px; height: 208px; display: block; transition: opacity .35s, transform .5s var(--ease); }
.qr.swap canvas { opacity: 0; transform: scale(.94); }
.qr-empty { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px; color: #5b5445; font-size: .85rem; border: 2px dashed #b9b09a; border-radius: 16px; }
.qr.empty canvas { opacity: 0; }
.qr.empty .qr-empty { display: grid; }
.dn-info { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.dn-net { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.dn-addr { font: 500 .82rem/1.5 var(--mono); word-break: break-all; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; width: 100%; user-select: all; }
.dn-copy .ic-ok { display: none; }
.dn-copy.done .ic-ok { display: block; animation: pop .45s var(--ease); }
.dn-copy.done .ic-copy { display: none; }
.dn-copy[hidden] { display: none; }
@keyframes pop { from { transform: scale(.3); } }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); font-size: .85rem; font-weight: 500; pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .col-list { position: static; max-height: none; padding-top: 0; }
  .list { overflow: visible; }
  .mini { display: flex; }
  .foot { padding-bottom: 110px; }
  .foot-keys { display: none; }
  .glow { left: 50%; top: 22%; }
}
@media (max-width: 640px) {
  .chip span { display: none; }
  .chip { padding: 10px 12px; }
  .chip-accent span { display: inline; }
  .logo-word { font-size: 1.75rem; }
  .name { min-height: 1.05em; font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .viz { height: 180px; margin: 18px 0; }
  .controls { gap: 16px; justify-content: space-between; }
  .vol { order: 3; }
  input[type=range] { width: 96px; }
  .seg { width: 100%; order: 4; }
  .seg button { padding: 10px 6px; }
  .play { width: 76px; height: 76px; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .dn-body { grid-template-columns: 1fr; justify-items: center; }
  .dn-info { justify-items: stretch; width: 100%; }
  .dn-copy { justify-content: center; }
  .eq-stage { height: 250px; }
  .eqb-track { width: 36px; }
}
@media (hover: none) { .chip:hover, .play:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.tabs[hidden], .tabs button[hidden] { display: none; }

button, .tick, .row, .seg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vol { justify-content: center; }
@media (pointer: coarse) { .vol { display: none; } }   
@media (max-width: 960px) {
  .top { padding-block: 12px; }
  .layout { gap: 8px; }
  .col-main { min-height: calc(100svh - 70px - env(safe-area-inset-top)); display: flex; flex-direction: column; }
  .stage { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 6px; }
  .name { margin: .16em 0 .08em; }
  .meta { font-size: .95rem; line-height: 1.45; max-width: 36ch; }
  .viz { flex: 1 1 auto; height: auto; min-height: 190px; max-height: 44svh; margin: 18px 0 20px; }
  .controls { flex-direction: column; align-items: stretch; gap: 16px; }
  .transport { justify-content: center; gap: 22px; }
  .btn-ghost { width: 54px; height: 54px; }
  .play { width: 82px; height: 82px; }
  .play .ic { width: 32px; height: 32px; }
  .seg { width: 100%; }
  .seg button { padding: 11px 6px; }
  .tuner { margin-top: 20px; height: 112px; }
  .col-list { padding-top: 28px; }
  .list-head { padding-bottom: 12px; }
  .row { padding: 15px 12px 15px 8px; grid-template-columns: 38px 1fr auto; }
  .row.is-cur { padding-left: 16px; }
  .row-name { font-size: 1.04rem; }
  .row-sub { font-size: .82rem; margin-top: 1px; }
  .row:active { background: rgba(239, 232, 214, .08); }
}
@media (max-width: 640px) {
  dialog::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(239, 232, 214, .22); margin: -10px auto 14px; }
  dialog { touch-action: pan-y; }
  .dlg-head { touch-action: none; }
  .mini { left: 10px; right: 10px; padding: 8px 8px 8px 18px; }
}
@media (max-width: 640px) {
  .eq-presets { gap: 6px; flex-wrap: nowrap; }
  .eq-presets .chip { padding: 8px 11px; font-size: .8rem; flex: 1 1 auto; justify-content: center; }
}

.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bg-tile { display: grid; gap: 8px; text-align: left; font-size: .82rem; font-weight: 500; color: var(--mute); transition: color .25s, transform .35s var(--ease); }
.bg-tile:hover { color: var(--ink); transform: translateY(-2px); }
.bg-tile:active { transform: scale(.96); }
.bg-prev { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #0d0c0a; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.bg-tile[aria-checked="true"] { color: var(--ink); }
.bg-tile[aria-checked="true"] .bg-prev { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bg-prev::before, .bg-prev::after { content: ''; position: absolute; inset: 0; }
.bp-auto::before { background: conic-gradient(from 200deg at 50% 50%, hsl(150 80% 45% / .6), hsl(200 80% 50% / .6), hsl(330 80% 55% / .6), hsl(30 90% 55% / .6), hsl(150 80% 45% / .6)); filter: blur(14px); }
.bp-glow::before { background: radial-gradient(circle at 40% 35%, hsl(var(--h) 90% 52% / .75), transparent 62%); }
.bp-aurora::before { background: linear-gradient(100deg, transparent 10%, hsl(160 85% 50% / .55) 40%, hsl(var(--h) 85% 55% / .5) 60%, transparent 90%); transform: skewY(-14deg) translateY(10%); filter: blur(8px); }
.bp-stars::before { background-image: radial-gradient(1.5px 1.5px at 20% 25%, #fff, transparent), radial-gradient(1px 1px at 65% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent), radial-gradient(1px 1px at 35% 70%, #fff, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 12% 82%, #fff, transparent); }
.bp-horizon::before { top: 54%; background: repeating-linear-gradient(90deg, transparent 0 11px, hsl(var(--h) 90% 60% / .45) 11px 12px), linear-gradient(180deg, hsl(var(--h) 80% 50% / .25), transparent); }
.bp-horizon::after { background: radial-gradient(circle at 50% 54%, hsl(var(--h) 90% 62%) 0 19%, transparent 20%); clip-path: inset(0 0 46% 0); }
.bp-waves::before { background: radial-gradient(120% 40% at 30% 100%, hsl(var(--h) 85% 55% / .5), transparent 70%), radial-gradient(120% 40% at 80% 85%, hsl(calc(var(--h) + 30) 85% 55% / .4), transparent 70%); }
.bp-orbs::before { background: radial-gradient(circle at 30% 30%, hsl(var(--h) 85% 55% / .6), transparent 45%), radial-gradient(circle at 75% 55%, hsl(calc(var(--h) + 50) 85% 55% / .5), transparent 45%), radial-gradient(circle at 40% 85%, hsl(calc(var(--h) - 40) 85% 55% / .5), transparent 45%); }
.bp-none::before { background: none; }
.top, .stage > *, .tuner, .col-list { animation: rise .9s var(--ease) both; }
.top { animation-delay: .05s; }
.stage > :nth-child(1) { animation-delay: .12s; }
.stage > :nth-child(2) { animation-delay: .18s; }
.stage > :nth-child(3) { animation-delay: .26s; }
.stage > :nth-child(4) { animation-delay: .34s; }
.stage > :nth-child(5) { animation-delay: .42s; }
.tuner { animation-delay: .5s; }
.col-list { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 640px) { .bg-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 960px) { .bg-veil { background: linear-gradient(180deg, rgba(13, 12, 10, .5) 0%, rgba(13, 12, 10, .08) 38%, rgba(13, 12, 10, .45) 100%); } }
