[hidden] { display: none !important; }
:root {
  --bg: #06070c; --ink: #eef1f8; --muted: #8b94ab; --dim: #5b6378; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(20, 23, 34, 0.62); --glass-2: rgba(30, 34, 50, 0.7); --well: rgba(4, 5, 9, 0.7);
  --a: #2de2e6; --b: #ff3cac; --hot: #ffb020; --good: #3ddc84; --bad: #ff5470;
  --r: 18px; --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 14px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; padding: 0 max(14px, env(safe-area-inset-right)) 24px max(14px, env(safe-area-inset-left));
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
.bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(60vw 50vh at 8% -10%, rgba(45, 226, 230, 0.16), transparent 60%),
  radial-gradient(60vw 50vh at 92% -10%, rgba(255, 60, 172, 0.16), transparent 60%),
  radial-gradient(80vw 60vh at 50% 110%, rgba(110, 70, 255, 0.14), transparent 60%), var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: 0.38; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.note { color: var(--muted); font-size: 12.5px; }
.note.ok { color: var(--good); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

/* ---------- header */
.top { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.home { color: var(--muted); text-decoration: none; font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 10px; }
.home:hover { color: var(--ink); background: var(--glass); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; }
.logo b { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 4px; }
.logo-disc { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #111 18%, var(--a) 19%, var(--a) 26%, #111 27%), repeating-radial-gradient(circle, #1a1d28 0 2px, #0c0e14 2px 4px);
  box-shadow: 0 0 16px rgba(45, 226, 230, 0.35); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top-mid { flex: 1; text-align: center; color: var(--muted); font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-mid b { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; }
.chip { height: 32px; padding: 0 13px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 7px; }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--a); color: var(--a); box-shadow: 0 0 16px rgba(45, 226, 230, 0.25); }
.am.on { background: linear-gradient(90deg, rgba(45, 226, 230, 0.18), rgba(255, 60, 172, 0.18)); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 22px rgba(255, 60, 172, 0.25); }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #6b1d2b; }
.rec.on { border-color: var(--bad); color: var(--bad); }
.rec.on i { background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.master { display: flex; align-items: center; gap: 8px; }
.master .lbl { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
.led-h { width: 80px; height: 8px; }

/* ---------- waveform bay */
.bay { padding: 8px; display: grid; gap: 6px; }
.lane { position: relative; height: 84px; border-radius: 12px; overflow: hidden; background: var(--well); touch-action: none; cursor: grab; }
.lane canvas { width: 100%; height: 100%; display: block; }
.lane-tag { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #000; background: var(--a); }
.lane[data-deck="1"] .lane-tag { background: var(--b); }
.lane:active { cursor: grabbing; }

/* ---------- stage */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 236px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.deck { padding: 14px; min-width: 0; --c: var(--a); --cg: rgba(45, 226, 230, 0.35); }
.deck[data-deck="1"] { --c: var(--b); --cg: rgba(255, 60, 172, 0.35); }
.d-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.d-art { width: 48px; height: 48px; border-radius: 12px; background: var(--glass-2) center / cover; box-shadow: 0 0 0 1px var(--line-2), 0 0 24px -6px var(--cg); }
.d-art.noart { background-image: linear-gradient(135deg, var(--c), transparent 120%) !important; opacity: 0.5; }
.d-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-artist { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-status { color: var(--c); font-size: 11.5px; }
.d-status:empty { display: none; }
.d-nums { text-align: right; }
.d-bpm { font: 700 24px/1 var(--mono); color: var(--c); text-shadow: 0 0 18px var(--cg); }
.d-bpm small { font: 600 10px system-ui; color: var(--muted); margin-left: 3px; letter-spacing: 0.08em; }
.d-key { display: inline-block; margin-top: 5px; font: 700 11px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.d-key.m2, .d-key.m1 { background: rgba(61, 220, 132, 0.16); color: var(--good); }
.d-key.m0 { background: rgba(255, 84, 112, 0.14); color: var(--bad); }
.d-over { position: relative; margin-top: 12px; height: 38px; border-radius: 10px; overflow: hidden; background: var(--well); cursor: pointer; touch-action: none; }
.d-over canvas { width: 100%; height: 100%; display: block; }
.d-time { position: absolute; inset: auto 6px 3px; display: flex; justify-content: space-between; font: 600 10.5px var(--mono); pointer-events: none; text-shadow: 0 1px 3px #000; }
.d-time .rem.warn { color: var(--bad); animation: blink 0.8s infinite; }
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; margin-top: 12px; align-items: center; }
.platter-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.platter { position: relative; width: min(100%, 230px); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; user-select: none;
  background: radial-gradient(circle, #1c2030 0 60%, #11131c 61% 100%); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.5); }
.platter.held { cursor: grabbing; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 2.4; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--c)); }
.vinyl { position: absolute; inset: 7%; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, transparent 31%, rgba(255, 255, 255, 0.04) 31.5%, transparent 33%),
    conic-gradient(from 30deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.07) 10%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.06) 60%, rgba(255, 255, 255, 0) 72%),
    repeating-radial-gradient(circle, #15171f 0 1.5px, #0b0c11 1.5px 3px); box-shadow: inset 0 0 0 2px #050608; }
.label { position: absolute; inset: 31%; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6); }
.label.noart { background-image: radial-gradient(circle, #0b0c11 9%, transparent 10%), linear-gradient(135deg, var(--c), #6e46ff) !important; }
.mark { position: absolute; left: 50%; top: 2%; width: 3px; height: 14%; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px var(--c); }
.hub { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #c8cfdc; box-shadow: 0 0 0 2px #0b0c11; }
.d-btns { display: flex; gap: 6px; }
.mini { height: 28px; padding: 0 10px; border-radius: 8px; background: var(--glass-2); border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.mini:not(:disabled):hover { border-color: var(--line-2); }
.mini:not(:disabled):active { transform: translateY(1px); }
.pitch { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: center; }
.pitch-sl { writing-mode: vertical-lr; direction: rtl; width: 30px; height: 150px; accent-color: var(--c); }
.pitch-val { font: 700 11px var(--mono); color: var(--muted); }
.nudge { display: flex; gap: 4px; }
.nudge .mini { width: 28px; padding: 0; font-size: 14px; }
.pitch .mini { padding: 0 7px; }
.d-bpmfix { display: flex; gap: 6px; margin-top: 10px; }
.d-bpmfix .sp { flex: 1; }
.transport { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; margin-top: 10px; }
.tbtn { height: 52px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); font-weight: 800; letter-spacing: 0.1em; font-size: 12.5px; display: grid; place-items: center; transition: 0.12s; }
.tbtn:not(:disabled):active { transform: scale(0.97); }
.tbtn svg { width: 24px; height: 24px; fill: currentColor; }
.tbtn .i-pause { display: none; }
.is-playing .tbtn.play .i-play { display: none; }
.is-playing .tbtn.play .i-pause { display: block; }
.tbtn.play { color: var(--c); border-color: var(--c); }
.is-playing .tbtn.play { background: var(--c); color: #05060a; box-shadow: 0 0 28px var(--cg); }
.tbtn.cue { color: var(--hot); }
.tbtn.sync.on { color: var(--c); border-color: var(--c); box-shadow: 0 0 16px -2px var(--cg); }
.pads { margin-top: 12px; }
.pad-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--well); padding: 3px; border-radius: 10px; }
.pad-modes button { height: 26px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.pad-modes button[aria-selected="true"] { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.pad { --pc: var(--c); height: 46px; border-radius: 11px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line);
  font: 700 12px var(--mono); color: var(--muted); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--pc) 35%, transparent); transition: background 0.1s, box-shadow 0.1s; touch-action: none; }
.pad.lit { color: #05060a; background: var(--pc); border-color: var(--pc); box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 55%, transparent); }
.pad.down { transform: scale(0.96); background: color-mix(in srgb, var(--pc) 70%, #fff); color: #05060a; }

/* ---------- mixer */
.mixer { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.mix-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; }
.mix-cols::after { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.mix-col { display: flex; flex-direction: column; align-items: center; gap: 4px; --c: var(--a); }
.mix-col[data-deck="1"] { --c: var(--b); }
.mix-h { font-weight: 800; color: var(--c); font-size: 12px; text-shadow: 0 0 12px var(--c); }
.sl { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; }
.sl-l { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--dim); }
.sl input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; touch-action: pan-y; }
.sl input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.1) calc(min(var(--p), var(--z)) * 100%), var(--sc) calc(min(var(--p), var(--z)) * 100%), var(--sc) calc(max(var(--p), var(--z)) * 100%), rgba(255,255,255,.1) calc(max(var(--p), var(--z)) * 100%)); }
.sl input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.sl input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sc); }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--sc); box-shadow: 0 0 10px var(--sc); }
.sl input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sc); }
.master .sl { grid-template-columns: minmax(0, 1fr); width: 110px; }
.fx-u .sl, .smp-vol .sl { grid-template-columns: minmax(0, 1fr); }
.fx-u .sl-l, .smp-vol .sl-l { text-align: center; }
.mix-col > div[data-k] { width: 100%; }
.smp-vol { width: 110px; }
@media (min-width: 1101px) { .mix-col .sl { grid-template-columns: 1fr; gap: 0; } .mix-col .sl-l { text-align: center; } }
.fader-wrap { display: flex; gap: 6px; align-items: stretch; margin-top: 6px; height: 150px; }
.led-v { width: 8px; height: 150px; }
.fader { writing-mode: vertical-lr; direction: rtl; width: 30px; height: 150px; accent-color: var(--c); }
.xf-wrap { margin-top: auto; padding: 4px 4px 0; }
#xf { width: 100%; accent-color: #c9d3ff; height: 28px; }
.xf-l { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--dim); }
.xf-l span:first-child { color: var(--a); } .xf-l span:last-child { color: var(--b); }

/* ---------- FX + sampler */
.fxbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.fx, .sampler { padding: 12px 14px; }
.fx { --c: var(--a); } .fx[data-deck="1"] { --c: var(--b); }
.fx-h { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fx-h .tag { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #000; background: var(--c); font-size: 10px; }
.fx-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx-u { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; background: var(--well); }
.fx-b { width: 100%; height: 30px; border-radius: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); background: var(--glass-2); border: 1px solid var(--line); }
.fx-b[aria-pressed="true"] { color: #05060a; background: var(--c); border-color: var(--c); box-shadow: 0 0 16px var(--c); }
.fx-beats { height: 22px; font-size: 10px; }
.sampler { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 12px; }
.sampler .fx-h { grid-column: 1 / -1; }
.smp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.smp { height: 50px; border-radius: 11px; background: linear-gradient(180deg, rgba(255, 176, 32, 0.1), rgba(255, 176, 32, 0.03)); border: 1px solid rgba(255, 176, 32, 0.22);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: #ffd38a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; transition: 0.1s; }
.smp span { font-size: 17px; line-height: 1; }
.smp.hit { background: var(--hot); color: #05060a; box-shadow: 0 0 22px rgba(255, 176, 32, 0.6); transform: scale(0.96); }
.smp-vol { align-self: center; }

/* ---------- library */
.library { margin-top: 12px; padding: 6px 14px 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -14px 12px; padding: 0 10px; overflow-x: auto; }
.tabs button { padding: 12px 14px; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--a); }
.tabs button span { font: 600 11px var(--mono); color: var(--dim); margin-left: 4px; }
.tabs .tab-add { margin-left: auto; color: var(--a); }
.crate-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.crate-bar .grow { flex: 1; margin: 0; }
input[type=search], .who input, select { background: var(--well); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; outline: none; }
input[type=search]:focus, .who input:focus { border-color: var(--a); }
#filter { flex: 1; min-width: 160px; }
.btn { height: 38px; padding: 0 16px; border-radius: 11px; background: var(--glass-2); border: 1px solid var(--line-2); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn.primary { background: linear-gradient(90deg, var(--a), #6e8bff); color: #05060a; border-color: transparent; }
.tracks { display: flex; flex-direction: column; }
.trk { display: grid; grid-template-columns: 40px minmax(0, 1fr) 54px 44px 46px auto; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 12px; }
.trk:not(.head):hover { background: rgba(255, 255, 255, 0.035); }
.trk.head { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--dim); padding-top: 0; padding-bottom: 4px; }
.trk .art { width: 40px; height: 40px; border-radius: 9px; background: var(--glass-2) center / cover; }
.trk .art.noart { background: linear-gradient(135deg, rgba(45, 226, 230, 0.35), rgba(255, 60, 172, 0.35)); }
.trk .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .ar { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .by { color: var(--dim); }
.trk .bad { color: var(--bad); }
.trk .num { font: 600 12px var(--mono); color: var(--muted); text-align: right; }
.key { display: inline-block; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.key.m2, .key.m1 { background: rgba(61, 220, 132, 0.16); color: var(--good); }
.trk .acts { display: flex; gap: 5px; justify-content: flex-end; }
.trk .ld, .trk .ic { width: 34px; height: 32px; border-radius: 9px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 800; font-size: 12px; }
.trk .ld.a { color: var(--a); } .trk .ld.b { color: var(--b); }
.trk .ld.a:hover { background: var(--a); color: #000; } .trk .ld.b:hover { background: var(--b); color: #000; }
.trk .ic { color: var(--muted); }
.trk .ic.q.on { color: #05060a; background: var(--hot); border-color: var(--hot); }
.trk .ic.del:hover { color: var(--bad); border-color: var(--bad); }
.trk.loaded-0 { box-shadow: inset 3px 0 0 var(--a); } .trk.loaded-1 { box-shadow: inset -3px 0 0 var(--b); }
.trk.loaded-0.loaded-1 { box-shadow: inset 3px 0 0 var(--a), inset -3px 0 0 var(--b); }
.bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--a), var(--b)); }
.empty { text-align: center; padding: 26px 10px; }
.empty p { margin: 6px 0; }
.empty-disc { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle, #0b0c11 12%, rgba(45, 226, 230, 0.6) 13%, rgba(255, 60, 172, 0.5) 30%, #0b0c11 31%), repeating-radial-gradient(circle, #1a1d28 0 2px, #0c0e14 2px 4px); animation: spin 4s linear infinite; opacity: 0.8; }
.add { display: flex; flex-direction: column; gap: 12px; }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.who input { flex: 1; max-width: 320px; }
.yt { display: flex; gap: 8px; } .yt input { flex: 1; min-width: 0; }
.yt-res { display: flex; flex-direction: column; gap: 6px; }
.yt-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; background: var(--well); }
.yt-row img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.yt-row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-row .ar { color: var(--muted); font-size: 12px; }
.up-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.up-row .or { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.yt-row { cursor: pointer; }
.yt-row:hover { background: rgba(255, 255, 255, 0.05); }
.who.need input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.25); }
.who.need { color: var(--bad); }
.foot { text-align: center; margin-top: 14px; }
.foot b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(16px); background: rgba(24, 28, 42, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 14px; opacity: 0; transition: 0.25s; pointer-events: none; max-width: calc(100vw - 32px); z-index: 9; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- smaller screens */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mixer { grid-column: 1 / -1; order: 3; }
  .mix-cols { gap: 18px; }
  .mix-col .fader-wrap { height: 40px; margin: 0; align-items: center; width: 100%; }
  .mix-col .fader { writing-mode: horizontal-tb; direction: ltr; width: 100%; height: 30px; }
  .mix-col .led-v { display: none; }
  .fxbar { grid-template-columns: 1fr 1fr; }
  .sampler { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
  body { padding-left: 10px; padding-right: 10px; }
  .top { flex-wrap: wrap; gap: 8px; }
  .top-mid { order: 5; flex-basis: 100%; text-align: left; }
  .top-mid:empty { display: none; }
  .top-right { margin-left: auto; gap: 6px; }
  .master .lbl, .led-h { display: none; }
  .master .sl { width: 76px; }
  .sampler { grid-template-columns: 1fr; }
  .smp-vol { width: 100%; margin-top: 10px; }
  .smp-vol .sl { grid-template-columns: 60px minmax(0, 1fr); }
  .smp-vol .sl-l { text-align: left; }
  .chip { padding: 0 10px; }
  .stage, .fxbar { grid-template-columns: 1fr; }
  .mixer { order: 0; }
  #deck-0 { order: -1; }
  .mix-cols { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sl { grid-template-columns: 40px minmax(0, 1fr); }
  .fxbar .fx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane { height: 64px; }
  .platter { width: min(100%, 190px); }
  .pitch-sl { height: 120px; }
  .trk { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .trk .art { width: 36px; height: 36px; }
  .trk .num, .trk.head { display: none; }
  .foot { display: none; }
  .yt-row { grid-template-columns: 64px minmax(0, 1fr) auto; } .yt-row img { width: 64px; }
}
/* phone held sideways */
@media (max-height: 520px) and (orientation: landscape) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lane { height: 52px; }
  .platter { width: min(100%, 150px); }
  .pitch-sl { height: 100px; }
  .tbtn { height: 42px; } .pad { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .logo-disc, .empty-disc { animation: none; } }
.unmute { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 10; padding: 12px 18px; border-radius: 14px; background: var(--bad); color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* Play it on the TV */
.tv.on { background: linear-gradient(90deg, rgba(255, 176, 32, 0.22), rgba(255, 60, 172, 0.2)); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 22px rgba(255, 176, 32, 0.3); }
.tv.wait { opacity: 0.7; }
.req { border-color: var(--hot); color: var(--hot); animation: blink 1.2s infinite; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--well); }
.req-row .t { font-weight: 700; } .req-row .ar { font-size: 12px; color: var(--muted); }
.req-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.req-btns .btn { height: 32px; padding: 0 10px; }
.cheer { position: fixed; bottom: 90px; z-index: 70; font-size: 34px; pointer-events: none; animation: cheer 2.6s ease-out forwards; text-align: center; }
.cheer small { display: block; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 0 4px #000; }
@keyframes cheer { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-260px); opacity: 0; } }
/* From the jukebox (in the Add songs tab) */
.from-jb { margin-top: 14px; }
#jb-res { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
#jb-res .yt-row img { object-fit: cover; }

/* Talk deck: podcasts, audiobooks and live radio over the mix */
.talk { margin-top: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; --c: #a46bff; }
.talk .fx-h { margin: 0; }
.talk-now { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.talk-art { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #a46bff, var(--b)) center / cover; }
.talk-t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.talk-row input[type=range] { flex: 1; accent-color: #a46bff; min-width: 60px; }
.talk-time { font: 600 11px var(--mono, monospace); color: var(--muted); white-space: nowrap; }
.talk-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.talk-ctl .btn { height: 34px; }
.talk-ctl .sl { width: 150px; }
.talk .play { width: 44px; height: 44px; border-radius: 50%; font-size: 16px; background: #a46bff; color: #05060a; border: 0; box-shadow: 0 0 18px rgba(164, 107, 255, 0.5); }
.talk .chip[aria-pressed="true"] { border-color: #a46bff; color: #d9c6ff; box-shadow: 0 0 14px rgba(164, 107, 255, 0.35); }
.talk-empty { color: var(--muted); font-size: 13px; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); display: grid; place-items: end center; }
.sheet-in { width: min(640px, 100%); max-height: 82vh; display: flex; flex-direction: column; padding: 14px; border-radius: 18px 18px 0 0; background: #0d0f18; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.talk-list { overflow-y: auto; display: grid; gap: 6px; margin-top: 10px; }
.talk-list .yt-row { cursor: pointer; }
.talk-list .yt-row img, .talk-list .yt-row .noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #a46bff, var(--b)); }
@media (max-width: 720px) {
  .talk { grid-template-columns: minmax(0, 1fr); }
  .talk-ctl { justify-content: flex-start; }
  .talk-ctl .sl { width: 100%; }
}
.talk-list .yt-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.name-form { display: flex; gap: 10px; margin: 4px 0 10px; }
.name-form input { flex: 1; min-width: 0; font-size: 18px; background: var(--well); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; outline: none; color: inherit; }
.name-form input:focus { border-color: var(--a); }
