/* VINYL — AI Music Room · stylesheet */
:root {
  --bg: #eef2f8; --bg-2: #e1e7f1; --panel: #ffffff; --panel-2: #f8faff;
  --accent: #3f7ff2; --accent-deep: #2158c9; --accent-ink: #1d4fd6; --accent-soft: #e2ebff;
  --accent-glow: rgba(63,127,242,0.3);
  --ink: #0c1220; --ink-2: #202a3c; --muted: #4b5870;
  --line: #cfd8e7; --line-2: #bcc9dc;
  --skel: #e7ecf7; --skel-2: #f1f4fb;
  --shadow-sm: 0 6px 18px rgba(15,22,45,0.07); --shadow: 0 12px 36px rgba(15,22,45,0.1); --shadow-lg: 0 26px 60px rgba(15,22,45,0.16);
  --r-sm: 14px; --r: 20px; --r-lg: 28px;
  --sidebar: 256px; --rail: 0px; --bar: 76px;
  --ease: cubic-bezier(0.22,1,0.36,1); --spring: cubic-bezier(0.34,1.56,0.64,1); --dur: 260ms;
  --amb-color: var(--accent);
}
[data-theme="dark"] {
  --bg: #090d18; --bg-2: #111827; --panel: #0f1524; --panel-2: #141b2e;
  --accent: #6ea8ff; --accent-deep: #2e6eff; --accent-ink: #bcd6ff; --accent-soft: #152340;
  --accent-glow: rgba(110,168,255,0.32);
  --ink: #f2f5fc; --ink-2: #d3dbec; --muted: #92a0bd;
  --line: #2b354a; --line-2: #3a4761;
  --skel: #161d2e; --skel-2: #1c2438;
  --shadow-sm: 0 6px 18px rgba(0,0,4,0.45); --shadow: 0 12px 36px rgba(0,0,4,0.55); --shadow-lg: 0 26px 60px rgba(0,0,4,0.65);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Jost, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 78% -8%, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0%, transparent 60%), radial-gradient(900px 500px at -6% 108%, color-mix(in srgb, var(--accent) 6%, var(--bg)) 0%, transparent 55%), var(--bg);
  color: var(--ink); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; overflow: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; }
.brandface { font-family: "Bodoni Moda", Georgia, serif; letter-spacing: 0.24em; font-weight: 500; }
.serif { font-family: "Bodoni Moda", Georgia, serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px var(--accent-glow); border-radius: 8px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.cover { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 28% 18%, rgba(255,255,255,0.35), transparent 55%); }
[data-theme="dark"] .cover::after { background: radial-gradient(120% 90% at 28% 18%, rgba(255,255,255,0.12), transparent 55%); }

.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: 1fr var(--bar); grid-template-areas: "side main" "player player"; height: 100vh; }

/* SIDEBAR */
.side { grid-area: side; background: linear-gradient(180deg, color-mix(in srgb, var(--amb-color) 6%, var(--bg-2)), var(--bg-2)); border-right: 1px solid var(--line); padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; transition: background 700ms var(--ease); }
.logo { font-size: 25px; padding: 0 10px 2px; }
.logo .dot { color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 12px 3px; }
.nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 13px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 180ms var(--ease); }
.nav a i { width: 19px; height: 19px; stroke-width: 1.8; transition: transform var(--dur) var(--ease); }
.nav a:hover { background: var(--panel); color: var(--ink); transform: translateX(2px); }
.nav a:hover i { transform: scale(1.08); }
.nav a.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav a.active::before { content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 3px; background: var(--accent); }
.nav a.active i { color: var(--accent); }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.pl-head button { width: 24px; height: 24px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.pl-head button:hover { background: var(--panel); color: var(--accent); }
.pl-list { display: flex; flex-direction: column; gap: 2px; }
.pl-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 13px; transition: background var(--dur) var(--ease), transform 160ms var(--ease); text-align: left; width: 100%; }
.pl-item:hover { background: var(--panel); transform: translateX(2px); }
.pl-item:active { transform: scale(0.99); }
.pl-cover { width: 40px; height: 40px; border-radius: 11px; flex: none; box-shadow: var(--shadow-sm); }
.pl-item strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item span { font-size: 11.5px; color: var(--muted); }
.upgrade { margin-top: auto; background: linear-gradient(165deg, var(--panel), color-mix(in srgb, var(--accent) 6%, var(--panel))); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.upgrade .u-ico { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--accent-soft), color-mix(in srgb, var(--accent) 40%, var(--accent-soft))); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; }
.upgrade h4 { font-size: 16px; font-weight: 600; }
.upgrade p { font-size: 12.5px; color: var(--muted); margin: 5px 0 15px; line-height: 1.55; }
.btn-premium { width: 100%; padding: 12px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.03em; box-shadow: 0 8px 20px var(--accent-glow); transition: transform 160ms var(--spring), box-shadow var(--dur) var(--ease); }
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
.btn-premium:active { transform: scale(0.97); }

/* MAIN + TOPBAR */
.main { grid-area: main; overflow-y: auto; padding: 22px 32px 40px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: sticky; top: 0; z-index: 15; }
.search { flex: 1; position: relative; }
.search-btn { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); z-index: 1; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.search-btn i { width: 18px; height: 18px; pointer-events: none; }
.search-btn:hover { color: var(--accent-ink); background: var(--bg-2); }
.search-btn:active { transform: translateY(-50%) scale(0.92); }
.search input { width: 100%; height: 48px; border-radius: 15px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent); backdrop-filter: blur(8px); padding: 0 20px 0 50px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none; transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--panel); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.suggest { position: absolute; top: 54px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; max-height: 380px; overflow-y: auto; }
.suggest .q-item strong { font-size: 13.5px; }
.suggest .sug-head { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px 4px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--muted); position: relative; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 160ms var(--ease); }
.icon-btn i { stroke-width: 1.8; }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn .dot { position: absolute; top: 11px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #d9694f; border: 1.5px solid var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); }

/* TURNTABLE */
.stage { position: relative; background: linear-gradient(155deg, var(--panel) 0%, color-mix(in srgb, var(--accent) 4%, var(--panel)) 60%, var(--bg-2) 100%); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 34px; aspect-ratio: 16 / 10.2; display: grid; place-items: center; overflow: hidden; perspective: 1400px; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 76% 6%, rgba(255,255,255,0.7), transparent 55%); pointer-events: none; }
[data-theme="dark"] .stage::before { background: radial-gradient(90% 70% at 76% 6%, rgba(255,255,255,0.06), transparent 55%); }
.stage.ambient { box-shadow: var(--shadow), 0 0 90px -20px var(--amb, transparent); }
.stage-btn { position: absolute; z-index: 4; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, var(--panel), color-mix(in srgb, var(--muted) 12%, var(--panel))); box-shadow: 0 8px 18px rgba(0,0,0,0.14), inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--muted); transition: transform 160ms var(--spring), color var(--dur) var(--ease); }
.stage-btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.stage-btn:active { transform: scale(0.92); }
.platter { position: relative; width: min(64%, 452px); aspect-ratio: 1; display: grid; place-items: center; transform-origin: center; will-change: transform; }
.platter.settle { transition: transform 480ms var(--spring); }
@media (prefers-reduced-motion: reduce) { .platter, .platter.settle { transition: none !important; } }
.mat { position: absolute; inset: -3.5%; border-radius: 50%; background: radial-gradient(circle at center, #1b1b1e 0 62%, #222 62% 100%); box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.mat::after { content: ""; position: absolute; left: 50%; bottom: -13%; width: 66%; height: 20%; transform: translateX(-50%) translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * 8px)); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,0.28), transparent 72%); filter: blur(5px); pointer-events: none; }
.vinyl { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at center, rgba(255,255,255,0.05) 0 0.6px, transparent 0.6px 2px), repeating-radial-gradient(circle at center, rgba(255,255,255,0.045) 0 1px, transparent 1px 3px), radial-gradient(circle at 42% 34%, #333 0 8%, transparent 30%), radial-gradient(circle at center, #262626 0 30%, #101010 30% 100%); box-shadow: 0 24px 48px rgba(0,0,0,0.36), inset 0 0 70px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06); animation: spin 1.8s linear infinite; animation-play-state: paused; }
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 40%, rgba(255,255,255,0.10) 48%, transparent 56% 100%); animation: sheen 9s linear infinite; transform: translate(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px)); }
.vinyl.spinning { animation-play-state: running; }
.platter.settle .mat::after, .platter.settle .vinyl::before { transition: transform 480ms var(--spring); }
.label { position: absolute; inset: 32%; border-radius: 50%; z-index: 2; background-size: cover; background-position: center; display: grid; place-items: center; text-align: center; padding: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 2px 10px rgba(0,0,0,0.3); overflow: hidden; transition: background 700ms var(--ease); }
.label .lbl-tint { position: absolute; inset: 0; background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--amb-color) 20%, #fbf5ea), color-mix(in srgb, var(--amb-color) 28%, #ead9bf) 78%); transition: background 700ms var(--ease); }
.label.has-art .lbl-tint { background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45)); }
.label span, .label strong { position: relative; z-index: 2; }
.label span { font-size: 9px; letter-spacing: 0.18em; color: #7a5f38; font-weight: 600; text-transform: uppercase; }
.label.has-art span, .label.has-art strong { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.label strong { font-family: "Bodoni Moda", Georgia, serif; font-size: 13px; color: #4b3a22; font-weight: 600; line-height: 1.15; max-width: 88%; margin-top: 2px; }
.label .hole { position: absolute; z-index: 3; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.tonearm { position: absolute; top: 4%; right: 1%; width: 48%; height: 48%; transform-origin: 88% 12%; transform: rotate(-64deg); transition: transform 650ms var(--ease); z-index: 3; }
.playing .tonearm { transition: transform 700ms var(--spring); }
.tonearm .pivot { position: absolute; top: 2%; right: 2%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff, #d6d2c8); box-shadow: 0 8px 16px rgba(0,0,0,0.2), inset 0 0 0 1px var(--line-2); }
.tonearm .weight { position: absolute; top: 5%; right: 12%; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(125deg, #f5f3ee 0%, #cfccc3 38%, #868276 58%, #d2cec3 100%); box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.5); }
.tonearm .arm { position: absolute; top: 12%; right: 10%; width: 62%; height: 6px; background: linear-gradient(180deg, #fbf9f4 0%, #d8d5cb 32%, #a9a599 50%, #cac6bb 68%, #efece6 100%); border-radius: 6px; transform: rotate(34deg); transform-origin: right center; box-shadow: 0 4px 10px rgba(0,0,0,0.22); }
.tonearm .head { position: absolute; bottom: 28%; left: 13%; width: 24px; height: 14px; background: linear-gradient(150deg, #ece9e2 0%, #dbd7ce 40%, #a8a497 58%, #c3bfb5 100%); border-radius: 3px; box-shadow: 0 3px 6px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.4); }
.tonearm .head::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 22px; height: 6px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,0.32), transparent 74%); filter: blur(2px); pointer-events: none; }
.playing .tonearm .head { animation: needle 0.16s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { to { transform: rotate(360deg); } }
@keyframes needle { from { transform: translateY(0); } to { transform: translateY(var(--needle-amp, 0.5px)); } }

.now-head { margin-top: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.eyebrow { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 6px; }
.now-head h1 { font-family: "Bodoni Moda", Georgia, serif; font-size: 38px; font-weight: 500; line-height: 1.05; }
.now-head p { font-size: 15px; color: var(--muted); margin-top: 7px; }
.now-actions { display: flex; gap: 8px; padding-top: 8px; }
.seek { margin: 22px 0 16px; display: flex; align-items: center; gap: 14px; }
.seek .t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 40px; }
.seek .t.end { text-align: right; }
/* .track-bar is now a tall click/drag target; ::before draws the thin baseline
   line it always looked like, so nothing shifts before the waveform (or on
   browsers where it never loads) — .has-wave just fades that baseline + the
   plain .track-fill out once the canvas has real bars to show instead. */
.track-bar { flex: 1; height: 30px; position: relative; cursor: pointer; }
.track-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 6px; background: var(--bg-2); transition: opacity 200ms var(--ease); }
.track-bar.has-wave::before { opacity: 0; }
.track-bar:hover .track-fill::after, .vol-bar:hover .vol-fill::after { transform: translateY(-50%) scale(1); }
.track-fill { position: absolute; left: 0; top: 50%; height: 6px; transform: translateY(-50%); width: 0%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); transition: opacity 200ms var(--ease); }
.track-bar.has-wave .track-fill { opacity: 0; }
.track-fill::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%) scale(0.6); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.28), inset 0 0 0 1px var(--line-2); transition: transform 160ms var(--spring); }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.wave-tip { position: absolute; bottom: 100%; margin-bottom: 7px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-lg); z-index: 3; }
.transport { display: flex; align-items: center; justify-content: center; gap: 26px; }
.t-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: color var(--dur) var(--ease), transform 150ms var(--spring), background var(--dur) var(--ease); }
.t-btn i { stroke-width: 1.8; }
.t-btn:hover { color: var(--ink); background: var(--panel); }
.t-btn.on { color: var(--accent-ink); }
.t-btn.on::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.t-btn:active { transform: scale(0.9); }
.play-lg { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 12px 26px var(--accent-glow); }
.play-lg:hover { color: #fff; transform: scale(1.05); box-shadow: 0 16px 32px var(--accent-glow); }
.playing .play-lg { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 26px var(--accent-glow); } 50% { box-shadow: 0 12px 26px var(--accent-glow), 0 0 0 10px color-mix(in srgb, var(--accent) 12%, transparent); } }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 15px; }
.section-head h3 { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.section-head h2 { font-family: "Bodoni Moda", Georgia, serif; font-size: 24px; font-weight: 500; }
.link { font-size: 12.5px; color: var(--accent-ink); font-weight: 600; cursor: pointer; transition: color var(--dur) var(--ease); }
.link:hover { color: var(--accent-deep); }
.genre-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.genre { position: relative; aspect-ratio: 1 / 0.94; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--accent); overflow: hidden; transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.genre::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--accent-soft), transparent); opacity: 0; transition: opacity var(--dur) var(--ease); }
.genre i { position: relative; stroke-width: 1.6; transition: transform var(--dur) var(--spring); }
.genre span { position: relative; font-size: 12.5px; color: var(--ink); font-weight: 500; }
.genre:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.genre:hover::before { opacity: 1; }
.genre:hover i { transform: scale(1.15) translateY(-1px); }
.genre:active { transform: translateY(-2px) scale(0.96); }

/* CARD GRID (views) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease); text-align: left; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile:active { transform: translateY(-2px) scale(0.98); }
.tile .art { width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.tile.round .art { border-radius: 50%; }
.tile strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { font-size: 12px; color: var(--muted); }
.tile .play-hint { position: absolute; }
.view-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 26px; }
.view-head .big-art { width: 168px; height: 168px; border-radius: var(--r); box-shadow: var(--shadow-lg); flex: none; }
.view-head.round .big-art { border-radius: 50%; }
.view-head .eyebrow { margin-bottom: 8px; }
.view-head h1 { font-family: "Bodoni Moda", Georgia, serif; font-size: 40px; font-weight: 500; line-height: 1.02; }
.view-head p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.view-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 13px; font-weight: 600; font-size: 13.5px; transition: transform 150ms var(--spring), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 8px 20px var(--accent-glow); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
.btn.ghost { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--bg-2); }
.btn:active { transform: scale(0.97); }

/* TRACK ROWS */
.tracks { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; transition: background var(--dur) var(--ease); }
.trow:hover { background: var(--panel); }
.trow:active { background: var(--bg-2); }
.trow.active { background: var(--accent-soft); }
.trow-play { display: grid; grid-template-columns: 30px 44px 1fr; align-items: center; gap: 14px; min-width: 0; text-align: left; border-radius: 10px; }
.trow-play:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.trow .idx { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.trow .rcov { width: 44px; height: 44px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.trow .meta { min-width: 0; }
.trow .meta strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .meta span { font-size: 12.5px; color: var(--muted); }
.trow .dur { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow .gstat { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow .gstat i { width: 11px; height: 11px; stroke-width: 2; }
.trow .gstat:empty { display: none; }
.trow .rlike { color: var(--muted); opacity: 0; transition: opacity var(--dur), color var(--dur); }
.trow:hover .rlike, .trow .rlike:focus-visible { opacity: 1; }
.trow .rlike.liked { opacity: 1; color: var(--accent); }
.trow .rlike.liked i { fill: var(--accent); }
.trow .rlist { color: var(--muted); opacity: 0; transition: opacity var(--dur), color var(--dur); }
.trow:hover .rlist, .trow .rlist:focus-visible { opacity: 1; }
.trow .rlist:hover { color: var(--accent-ink); }
.trow.dragging { opacity: 0.5; }
.trow.drop-target { box-shadow: inset 0 2px 0 var(--accent); }
@media (hover: none) {
  .trow .rlike, .trow .rlist, .q-del, .q-grip { opacity: 1; }
}

/* RAIL */
.rail { grid-area: rail; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--amb-color) 5%, transparent)); border-left: 1px solid var(--line); padding: 24px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; transition: background 700ms var(--ease); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card-t { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.np { padding: 18px; }
.np-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.np-row { display: flex; align-items: center; gap: 12px; }
.np-cover { width: 50px; height: 50px; border-radius: 13px; box-shadow: var(--shadow-sm); flex: none; }
.np-row strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row span { font-size: 12.5px; color: var(--muted); }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 22px; margin-left: auto; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; transition: height 80ms linear; }
.queue { padding: 16px 18px; }
.q-list { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; max-height: 336px; overflow-y: auto; scrollbar-width: thin; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 13px; transition: background var(--dur) var(--ease), transform 150ms var(--ease); width: 100%; text-align: left; }
.q-item:hover { background: var(--bg-2); }
.q-item.dragging { opacity: 0.5; }
.q-item.drop-target { box-shadow: inset 0 2px 0 var(--accent); }
.q-cover { width: 42px; height: 42px; border-radius: 11px; flex: none; box-shadow: var(--shadow-sm); }
.q-item .qmeta { min-width: 0; flex: 1; }
.q-item strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item span { font-size: 12px; color: var(--muted); }
.q-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-del { color: var(--muted); opacity: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; transition: opacity var(--dur), background var(--dur); }
.q-item:hover .q-del { opacity: 1; }
.q-del:hover { background: var(--bg-2); color: #d9694f; }
.q-grip { color: var(--muted); cursor: grab; opacity: 0; }
.q-item:hover .q-grip { opacity: 0.6; }
.q-btn { width: 100%; padding: 12px; border-radius: 13px; background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 13px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.q-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.pop { padding: 16px 18px; }

/* BOTTOM PLAYER */
.player { grid-area: player; background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid color-mix(in srgb, var(--amb-color) 18%, var(--line)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 24px; box-shadow: 0 -8px 30px rgba(0,0,0,0.05); transition: border-color 700ms var(--ease); }
.p-meta { display: flex; align-items: center; gap: 15px; min-width: 0; }
.p-cover { width: 56px; height: 56px; border-radius: 13px; flex: none; box-shadow: var(--shadow-sm); }
.p-meta .pm { min-width: 0; }
.p-meta strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta span { font-size: 12.5px; color: var(--muted); }
.p-like { margin-left: 6px; color: var(--muted); transition: color var(--dur) var(--ease), transform 150ms var(--spring); }
.p-like:hover { color: var(--accent); }
.p-like:active { transform: scale(1.2); }
.p-like.liked { color: var(--accent); }
.p-like.liked i, .p-like.liked svg { fill: var(--accent); }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 65% { transform: scale(0.88); } 100% { transform: scale(1); } }
.p-like.pop, .rlike.pop { animation: heartPop 420ms var(--spring); }
.p-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.p-controls { display: flex; align-items: center; gap: 20px; }
.p-mini-seek { display: flex; align-items: center; gap: 8px; width: 380px; max-width: 42vw; }
.playback-health { max-width: 320px; padding: 3px 8px; border-radius: 4px; color: var(--ink-2); background: var(--bg-2); font-size: 9px; line-height: 1.3; }
.playback-health.buffering, .playback-health.reconnecting { color: var(--accent-ink); }
.playback-health.offline, .playback-health.error { color: #a13535; border: 1px solid color-mix(in srgb, #a13535 35%, var(--line)); }
.playback-health:not(:disabled) { cursor: pointer; }
.p-mini-seek .t { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: center; }
.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.chip-btn { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line-2); transition: all var(--dur) var(--ease), transform 150ms var(--spring); }
.chip-btn:hover { color: var(--ink); }
.chip-btn:active { transform: scale(0.93); }
.chip-btn.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.chip-btn.on i { color: var(--accent); }
.vol { display: flex; align-items: center; gap: 10px; width: 130px; }
.vol-bar { flex: 1; height: 5px; border-radius: 5px; background: var(--bg-2); position: relative; cursor: pointer; }
.vol-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 70%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.vol-fill::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) scale(0); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.28), inset 0 0 0 1px var(--line-2); transition: transform 160ms var(--spring); }

/* STATS */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .sv { font-family: "Bodoni Moda", Georgia, serif; font-size: 34px; font-weight: 500; }
.stat .sl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.heatmap-wrap { overflow-x: auto; padding-bottom: 6px; }
.heatmap-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; width: max-content; }
.heatmap-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--bg-2); }
.heatmap-cell.empty { background: transparent; }
.heatmap-cell.lv1 { background: color-mix(in srgb, var(--accent) 30%, var(--bg-2)); }
.heatmap-cell.lv2 { background: color-mix(in srgb, var(--accent) 55%, var(--bg-2)); }
.heatmap-cell.lv3 { background: color-mix(in srgb, var(--accent) 78%, var(--bg-2)); }
.heatmap-cell.lv4 { background: var(--accent); }
.heatmap-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heatmap-legend i { display: inline-block; }

/* FULLSCREEN VINYL + LYRICS */
.stage-expand { top: 26px; right: 26px; }
.fs-bar, .fs-lyrics { display: none; }
body.vinyl-fullscreen { overflow: hidden; }
body.vinyl-fullscreen .stage {
  position: fixed; inset: 0; z-index: 499; border-radius: 0; aspect-ratio: auto; padding: 0;
  opacity: 1; transform: none;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--amb-color) 20%, var(--bg)), var(--bg) 70%);
  box-shadow: none; border: none; animation: fadeIn 260ms var(--ease) forwards;
}
body.vinyl-fullscreen .stage-expand { display: none; }
.fs-aurora { display: none; }
body.vinyl-fullscreen .fs-aurora {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}
body.vinyl-fullscreen .platter { width: min(80vmin, 720px); transition: width 420ms var(--spring), position 0s; }
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .platter { width: min(30vmin, 220px); position: fixed; bottom: 32px; left: 32px; z-index: 502; }
@keyframes fadeIn { from { opacity: 0; } }
.fs-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 503; align-items: center; justify-content: space-between; padding: 22px 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 70%, transparent 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: 40px; }
body.vinyl-fullscreen .fs-bar { display: flex; }
.fs-bar-title { text-align: center; display: flex; flex-direction: column; }
.fs-bar-title strong { font-size: 14px; font-weight: 600; }
.fs-bar-title span { font-size: 12px; color: var(--muted); }
.fs-lyrics { position: fixed; inset: 0; z-index: 501; flex-direction: column; align-items: center; justify-content: center; overflow-y: auto; padding: 140px 24px 100px; gap: 16px; text-align: center; }
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .fs-lyrics { display: flex; }
.fs-lyrics p { font-size: 21px; font-weight: 500; color: var(--muted); transition: color 280ms var(--ease), transform 280ms var(--ease); max-width: 620px; }
.fs-lyrics p.active { color: var(--ink); font-size: 27px; transform: scale(1.03); }
.fs-lyrics .empty-state { padding: 0; }
@media (max-width: 760px) {
  body.vinyl-fullscreen.vinyl-fullscreen-lyrics .platter { width: 96px; bottom: 20px; left: 20px; }
  .fs-lyrics p { font-size: 17px; }
  .fs-lyrics p.active { font-size: 21px; }
}

/* Private Club P0-P2 */
.club-nav { color: var(--accent-ink) !important; }
.upgrade.is-member { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft), var(--shadow-sm); }
.club-hero { min-height: 230px; display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: center; padding: 34px 0 30px; border-bottom: 1px solid var(--line-2); }
.club-hero h1 { max-width: 760px; margin: 8px 0 10px; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; font-weight: 500; }
.club-hero p { max-width: 650px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.vip-kicker { display: block; color: var(--accent-ink); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.member-pass { min-height: 158px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto 1fr; align-items: center; gap: 2px 12px; padding: 20px; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--accent-soft) 55%, var(--panel))); box-shadow: var(--shadow-sm); }
.member-pass > svg { grid-row: 1 / 3; width: 25px; color: var(--accent-ink); }
.member-pass span { font-family: "Bodoni Moda", Georgia, serif; font-size: 22px; }
.member-pass strong { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.member-pass button { grid-column: 1 / -1; align-self: end; height: 35px; border-top: 1px solid var(--line); color: var(--accent-ink); font-weight: 700; font-size: 12px; text-align: left; }
.club-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 26px 0 14px; }
.club-toolbar > div:first-child { display: flex; flex-direction: column; }
.club-toolbar strong { font-size: 18px; }
.club-toolbar span, .phase-legend { color: var(--muted); font-size: 11.5px; }
.phase-legend b { margin-left: 12px; color: var(--ink); }
.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); margin-bottom: 40px; }
.club-feature { position: relative; min-height: 220px; padding: 24px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 78%, transparent); text-align: left; transition: background var(--dur), transform 160ms var(--ease), box-shadow var(--dur); }
.club-feature:hover { z-index: 1; background: var(--panel); box-shadow: var(--shadow); transform: translateY(-2px); }
.club-feature > svg { width: 25px; height: 25px; margin: 22px 0 16px; color: var(--accent-ink); }
.club-feature > strong, .club-feature > p { display: block; }
.club-feature > strong { font-size: 16px; }
.club-feature > p { min-height: 48px; margin: 7px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.club-feature.locked { opacity: .7; }
.feature-phase { position: absolute; top: 16px; right: 16px; padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.feature-status { position: absolute; top: 18px; left: 24px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 86px); color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-status i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.club-feature.locked .feature-status i { background: var(--muted); box-shadow: none; }
.feature-action { display: flex; align-items: center; gap: 5px; color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.feature-action svg { width: 14px; }
.drawer-dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.drawer-dual-actions .q-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.drawer-dual-actions svg { width: 15px; }

.vip-modal { width: min(680px, 100%); border-radius: 8px; }
.vip-modal.wide { width: min(960px, 100%); }
.vip-modal .btn:not(.ghost) { background: var(--accent); color: #fff; }
.vip-modal input:not([type="range"]):not([type="checkbox"]), .vip-modal select, .vip-modal textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--ink); font: inherit; outline: 0; resize: vertical; }
.vip-modal input:not([type="range"]):not([type="checkbox"]):focus, .vip-modal select:focus, .vip-modal textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.vip-field { display: grid; gap: 6px; margin: 14px 0; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.vip-gate { padding: 6px; text-align: center; }
.vip-gate > svg { width: 42px; height: 42px; margin-bottom: 16px; color: var(--accent-ink); }
.vip-gate .view-actions { justify-content: center; }
.studio-head { display: flex; justify-content: space-between; gap: 16px; }
.live-pill { align-self: start; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #3d8c63; border-radius: 5px; color: #287449; font-size: 10px; font-weight: 800; }
.live-pill svg { width: 14px; }
.master-bands { display: grid; grid-template-columns: repeat(10, minmax(36px, 1fr)); min-height: 250px; margin: 22px 0; padding: 20px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.master-bands label { display: grid; grid-template-rows: 24px 1fr 20px; place-items: center; color: var(--muted); font-size: 10px; }
.master-bands input { width: 150px; transform: rotate(-90deg); align-self: center; }
.master-bands output { color: var(--ink); font-variant-numeric: tabular-nums; }
.studio-two { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.studio-two section { padding: 20px; }
.studio-two section + section { border-left: 1px solid var(--line-2); }
.studio-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.studio-section-title span { color: var(--muted); font-size: 10px; }
.studio-range { display: grid; gap: 7px; margin: 13px 0; }
.studio-range > span { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.studio-range output { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.studio-range input { width: 100%; accent-color: var(--accent); }
.profile-row, .cloud-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.profile-row select { flex: 1; }
.switch input { position: absolute; opacity: 0; }
.switch span { display: block; width: 38px; height: 22px; border-radius: 12px; background: var(--line-2); padding: 3px; }
.switch span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--dur); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.dj-command { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.dj-command input { margin: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.dj-result { min-height: 86px; margin-top: 14px; padding: 16px; border-left: 3px solid var(--accent); background: var(--panel-2); }
.dj-result:empty::before { content: "Your DJ brief will be interpreted here."; color: var(--muted); font-size: 12px; }
.dj-result:not(:empty) { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dj-result p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.signal-path { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: center; margin: 24px 0; padding: 20px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.signal-path div { display: grid; gap: 3px; }
.signal-path span, .signal-path small { color: var(--muted); font-size: 9px; }
.signal-path > svg { width: 16px; color: var(--accent); }
.quality-modes, .edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.quality-modes button { padding: 18px; text-align: left; border-right: 1px solid var(--line-2); }
.quality-modes button:last-child { border: 0; }
.quality-modes button.on { background: var(--accent-soft); box-shadow: inset 0 -3px var(--accent); }
.quality-modes strong, .quality-modes span { display: block; }
.quality-modes span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.fineprint { margin-top: 12px; color: var(--muted); font-size: 10.5px; }
.version-list { display: grid; max-height: 190px; overflow: auto; margin-top: 12px; }
.version-list button { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--line); font-size: 11px; }
.version-list button strong { color: var(--accent-ink); }
.room-entry { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 22px 0; }
.room-entry > div { display: flex; gap: 5px; }
.room-state { min-height: 140px; padding: 18px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.room-code { display: flex; align-items: baseline; gap: 12px; }
.room-code strong { font-size: 28px; letter-spacing: .12em; }
.room-code span, .room-code small { color: var(--muted); font-size: 10px; }
.reaction-row { display: flex; gap: 6px; margin: 15px 0; }
.reaction-row button { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 10px; font-weight: 700; }
.room-live { display: grid; gap: 4px; margin: 15px 0; padding: 12px; border-left: 3px solid var(--accent); background: var(--panel); }
.room-live .live-pill { justify-self: start; margin-bottom: 4px; }
.room-live small { color: var(--muted); font-size: 10px; }
.room-audio-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 12px 0 16px; padding: 14px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft); }
.room-audio-panel > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.room-audio-panel > div > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent-ink); }
.room-audio-panel span, .room-audio-panel strong, .room-audio-panel small { display: block; }
.room-audio-panel strong { color: var(--ink); font-size: 12px; }
.room-audio-panel small { margin-top: 3px; color: var(--ink-2); font-size: 10px; line-height: 1.4; }
.room-audio-panel.is-ready { border-color: color-mix(in srgb, #0e9f6e 55%, var(--line-2)); background: color-mix(in srgb, #0e9f6e 9%, var(--panel)); }
.room-audio-panel.is-ready > div > svg { color: #087a55; }
.room-audio-panel .btn { white-space: nowrap; }
.room-queue { display: grid; border-top: 1px solid var(--line); }
.room-queue button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11px; text-align: left; }
.room-queue button b { color: var(--accent-ink); }
.full-queue { max-height: min(62vh, 620px); overflow: auto; margin-top: 18px; border-block: 1px solid var(--line-2); }
.queue-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.fq-item { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr) 34px 20px; align-items: center; gap: 10px; min-height: 62px; padding: 8px 4px; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: 62px; }
.fq-item.current { grid-template-columns: 42px 42px minmax(0, 1fr) auto; background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.fq-play { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.fq-play span { font-size: 9px; }
.fq-play svg { width: 15px; height: 15px; }
.fq-item .q-cover { width: 42px; height: 42px; border-radius: 4px; }
.fq-item .qmeta { min-width: 0; }
.fq-item .qmeta strong, .fq-item .qmeta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-item .qmeta span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.fq-live { padding: 4px 7px; color: var(--accent-ink); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
@media (max-width: 560px) { .room-audio-panel { grid-template-columns: 1fr; } .room-audio-panel .btn { width: 100%; justify-content: center; } }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check-row { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: var(--ink-2); font-size: 12px; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--accent); }
.edition-grid { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.edition { padding: 10px; text-align: left; border-right: 1px solid var(--line-2); }
.edition:last-child { border: 0; }
.edition.on { background: var(--accent-soft); box-shadow: inset 0 -3px var(--accent); }
.edition-swatch { display: block; height: 90px; margin-bottom: 10px; border-radius: 5px; background: #e7ecf6; }
.edition-swatch.noir { background: #10131a; }
.edition-swatch.gallery { background: linear-gradient(135deg, #f3f2ed 50%, #cf433d 50%); }
.edition-swatch.founders { background: linear-gradient(135deg, #10295e, #4a84df); }
.edition strong, .edition small { display: block; }
.edition small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.chronicle { min-height: 480px; padding: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(155deg, var(--panel), var(--accent-soft)); }
.chronicle > span { color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.chronicle h3 { margin: 28px 0 45px; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.chronicle-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.chronicle-stats div { padding: 22px 8px; border-right: 1px solid var(--line-2); }
.chronicle-stats div:last-child { border: 0; }
.chronicle-stats strong, .chronicle-stats span { display: block; }
.chronicle-stats strong { font-size: 30px; }
.chronicle-stats span { color: var(--muted); font-size: 10px; }
.chronicle > p { margin-top: 30px; color: var(--muted); }
.concierge-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.concierge-form .check-row { grid-column: 1 / -1; }
.schedule-list { display: grid; border-top: 1px solid var(--line); }
.schedule-list > div { display: grid; grid-template-columns: 26px 1fr 34px 34px; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.schedule-list > div.off { opacity: .48; }
.schedule-list button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.schedule-list button:hover { color: var(--ink); border-color: var(--line-2); }
.schedule-list button svg { width: 15px; height: 15px; }
.schedule-list span { display: grid; }
.schedule-list small { color: var(--muted); }

[data-edition="noir"] { --bg: #07090d; --bg-2: #11141a; --panel: #0d1016; --panel-2: #151922; --ink: #f4f0e8; --ink-2: #ddd8ce; --muted: #9d9a93; --line: #292e37; --line-2: #3b424d; --accent: #d6b873; --accent-deep: #9e7937; --accent-ink: #f0d397; --accent-soft: #292316; }
[data-edition="gallery"] { --accent: #cf433d; --accent-deep: #9f2c28; --accent-ink: #a82d29; --accent-soft: #f8dfdd; --bg: #f1f0eb; --bg-2: #e4e3de; }
[data-edition="founders"] { --accent: #246fd8; --accent-deep: #144a9b; --accent-ink: #174f9f; --accent-soft: #dbe9ff; }

@media (max-width: 980px) {
  .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-hero { grid-template-columns: 1fr; }
  .member-pass { max-width: 360px; }
  .phase-legend { display: none; }
}
@media (max-width: 760px) {
  .club-hero { min-height: 0; padding-top: 15px; gap: 20px; }
  .club-hero h1 { font-size: 38px; }
  .club-grid { grid-template-columns: 1fr; }
  .club-feature { min-height: 180px; }
  .vip-modal { padding: 19px; }
  .studio-two, .concierge-form { grid-template-columns: 1fr; }
  .studio-two section + section { border-left: 0; border-top: 1px solid var(--line-2); }
  .master-bands { overflow-x: auto; grid-template-columns: repeat(10, 55px); }
  .profile-row, .cloud-actions, .view-actions { flex-wrap: wrap; }
  .signal-path { grid-template-columns: 1fr; gap: 8px; }
  .signal-path > svg { transform: rotate(90deg); }
  .quality-modes, .edition-grid { grid-template-columns: 1fr 1fr; }
  .room-entry { grid-template-columns: 1fr; }
  .room-entry > span { display: none; }
}

/* EMPTY STATE */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state .e-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.empty-state .e-ico i { width: 26px; height: 26px; stroke-width: 1.6; }
.empty-state h4 { font-family: "Bodoni Moda", Georgia, serif; font-size: 19px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; max-width: 340px; line-height: 1.55; }
.empty-state .btn { margin-top: 18px; }

/* SKELETON */
.skel { position: relative; overflow: hidden; background: var(--skel); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skel-2), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-line { height: 12px; border-radius: 6px; margin: 6px 0; }

/* MODAL + TOAST */
.modal-scrim { position: fixed; inset: 0; background: rgba(10,8,5,0.5); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; animation: fade 0.25s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 84vh; overflow-y: auto; padding: 26px; transform: translateY(14px) scale(0.98); animation: pop 0.3s var(--spring) forwards; }
@keyframes pop { to { transform: none; } }
.modal h3 { font-family: "Bodoni Moda", Georgia, serif; font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.modal p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.modal input[type="text"] { width: 100%; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 16px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none; margin: 6px 0 18px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.modal input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.inline-rename { font-family: "Bodoni Moda", Georgia, serif; font-size: 40px; font-weight: 500; background: none; border: none; border-bottom: 2px solid var(--accent); color: var(--ink); outline: none; width: 100%; padding: 0 0 4px; }
.eq-row { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: 12px; margin-bottom: 14px; }
.eq-row > span:first-child { font-size: 13px; color: var(--muted); }
.eq-val { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.eq-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; background: var(--bg-2); outline: none; }
.eq-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: var(--shadow-sm); }
.eq-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
.eq-presets { display: flex; gap: 8px; margin: 4px 0 18px; }
.eq-normalize { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.eq-normalize input { width: 16px; height: 16px; accent-color: var(--accent); }
.sound-modal { width: min(880px, 100%); max-height: 90vh; padding: 0; overflow: auto; }
.sound-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 28px 18px; }
.sound-head h3 { margin: 2px 0 3px; font-size: 30px; }
.sound-head p.sub { margin: 0; }
.sound-bypass { flex: none; min-width: 104px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.sound-bypass i, .sound-bypass svg { width: 15px; height: 15px; }
.sound-bypass.on { border-color: var(--line-2); background: var(--bg-2); color: var(--muted); }
.signal-monitor { padding: 14px 28px 13px; background: color-mix(in srgb, var(--ink) 94%, #101a2d); color: var(--bg); }
.signal-bars { height: 72px; display: flex; align-items: flex-end; gap: 5px; }
.signal-bars i { flex: 1; min-width: 3px; height: 9%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #80d9be 0 22%, #79a9ff 22% 100%); opacity: 0.9; transition: height 90ms linear; }
.signal-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 9.5px; text-transform: uppercase; }
.signal-meta span { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.signal-meta b { color: #fff; font-size: 11px; }
.sound-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sound-presets button { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px; border-right: 1px solid var(--line); color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.sound-presets button:last-child { border-right: 0; }
.sound-presets button:hover, .sound-presets button.on { background: var(--accent-soft); color: var(--accent-ink); }
.sound-presets i, .sound-presets svg { width: 18px; height: 18px; flex: none; }
.sound-presets span, .sound-presets strong, .sound-presets small { display: block; text-align: left; }
.sound-presets strong { font-size: 12.5px; }
.sound-presets small { color: var(--muted); font-size: 10px; }
.sound-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); }
.sound-section { padding: 22px 28px 20px; min-width: 0; }
.sound-section + .sound-section { border-left: 1px solid var(--line); }
.sound-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sound-section-head span, .sound-section-head strong { display: block; }
.sound-section-head strong { margin-top: 3px; font-size: 15px; }
.sound-section-head > small { color: var(--muted); font-size: 10px; }
.sound-eq-row { display: grid; grid-template-columns: 78px minmax(100px, 1fr) 58px; align-items: center; gap: 12px; min-height: 54px; border-top: 1px solid var(--line); }
.sound-eq-row > div strong, .sound-eq-row > div small { display: block; }
.sound-eq-row > div strong { font-size: 12.5px; }
.sound-eq-row > div small { color: var(--muted); font-size: 9.5px; }
.sound-eq-row output { color: var(--ink-2); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.sound-modal input[type="range"] { --range: 50%; appearance: none; width: 100%; height: 4px; border-radius: 4px; outline: none; background: linear-gradient(90deg, var(--accent) 0 var(--range), var(--line) var(--range) 100%); }
.sound-modal input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border: 3px solid var(--panel); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.sound-modal input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 3px solid var(--panel); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.trim-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.trim-control strong, .trim-control small { display: block; }
.trim-control strong { font-size: 12.5px; }
.trim-control small { color: var(--muted); font-size: 10px; }
.trim-control output { color: var(--accent-ink); font-size: 11px; font-weight: 750; white-space: nowrap; }
#outputTrim { margin-bottom: 18px; }
.sound-switch { min-height: 54px; display: grid; grid-template-columns: 1fr 36px; align-items: center; gap: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.sound-switch span, .sound-switch strong, .sound-switch small { display: block; }
.sound-switch strong { font-size: 12.5px; }
.sound-switch small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.sound-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sound-switch > i { position: relative; width: 36px; height: 20px; border-radius: 20px; background: var(--line-2); transition: background var(--dur); }
.sound-switch > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.sound-switch input:checked + i { background: var(--accent); }
.sound-switch input:checked + i::after { transform: translateX(16px); }
.sound-switch input:focus-visible + i { outline: 3px solid var(--focus, var(--accent-glow)); outline-offset: 2px; }
.sound-switch:has(input:disabled) { cursor: default; opacity: .82; }
.sound-foot { min-height: 66px; display: flex; align-items: center; gap: 9px; padding: 12px 28px; border-top: 1px solid var(--line); background: var(--panel-2); }
.sound-foot > span { flex: 1; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; }
.sound-foot > span i, .sound-foot > span svg { width: 15px; height: 15px; }
.pl-item.custom .pl-cover { box-shadow: var(--shadow-sm), 0 0 0 2px var(--accent-soft); }
.modal .mclose { position: absolute; }
.mood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.mood { padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; cursor: pointer; transition: all var(--dur) var(--ease); }
.mood:hover, .mood.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.mood strong { display: block; font-size: 14px; }
.mood span { font-size: 12px; color: var(--muted); }
.mood.sel span { color: var(--accent-ink); }
#toasts { position: fixed; bottom: calc(var(--bar) + 20px); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; padding: 12px 18px; border-radius: 13px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; animation: toastin 0.3s var(--spring); }
.toast button { color: var(--accent); font-weight: 600; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.6s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .vinyl, .vinyl::before, .playing .tonearm .head, .playing .play-lg { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ULTRA-WIDE */
@media (min-width: 1800px) {
  :root { --rail: 372px; --sidebar: 276px; }
  .main { padding-left: 48px; padding-right: 48px; }
  .genre-grid { gap: 16px; }
}
@media (min-width: 2200px) {
  .main > * { max-width: 1480px; margin-left: auto; margin-right: auto; }
  .stage { max-width: 920px; }
}

.mobile-nav, .mobile-top { display: none; }
@media (max-width: 1160px) {
  :root { --rail: 0px; }
  .app { grid-template-columns: var(--sidebar) 1fr; grid-template-areas: "side main" "player player player"; }
  .rail { display: none; }
  .genre-grid { grid-template-columns: repeat(4, 1fr); }
  .p-mini-seek { width: 260px; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app { display: block; height: auto; min-height: 100vh; padding-bottom: calc(var(--bar) + 66px); }
  .side { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); z-index: 20; border-bottom: 1px solid var(--line); }
  .mobile-top .logo { font-size: 20px; padding: 0; }
  .mobile-top .icon-btn { width: 40px; height: 40px; }
  .main { padding: 16px; height: auto; overflow: visible; }
  .topbar { position: static; }
  .genre-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .now-head h1 { font-size: 28px; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .player { position: fixed; left: 8px; right: 8px; bottom: 68px; z-index: 30; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 18px; height: 66px; padding: 0 12px; box-shadow: var(--shadow-lg); }
  .player .p-right, .p-mini-seek { display: none; }
  .p-controls { gap: 6px; }
  .p-controls .t-btn:not(.play-lg):not(.mob-keep) { display: none; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 500; text-decoration: none; padding: 4px 12px; cursor: pointer; }
  .mobile-nav a.active { color: var(--accent-ink); }
  .mobile-nav a i { width: 22px; height: 22px; }
}

/* PROMAX home upgrade: tighter hierarchy, denser lists, grouped controls */
.home-stage {
  min-height: clamp(340px, 40vh, 480px);
  aspect-ratio: auto;
  grid-template-columns: minmax(280px, 0.82fr) minmax(330px, 0.92fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 46px);
}
.home-stage::before {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amb-color) 7%, transparent), transparent 48%),
    radial-gradient(80% 70% at 72% 14%, rgba(255,255,255,0.74), transparent 58%);
}
[data-theme="dark"] .home-stage::before {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amb-color) 9%, transparent), transparent 52%),
    radial-gradient(80% 70% at 72% 14%, rgba(255,255,255,0.07), transparent 58%);
}
.home-stage .platter {
  width: min(84%, 378px);
  justify-self: center;
}
.hero-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  padding: clamp(20px, 1.9vw, 28px);
  border-radius: 24px;
  background:
    linear-gradient(158deg,
      color-mix(in srgb, var(--panel) 80%, transparent),
      color-mix(in srgb, var(--amb-color) 9%, color-mix(in srgb, var(--panel) 66%, transparent)));
  border: 1px solid color-mix(in srgb, var(--amb-color) 24%, var(--line-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.4);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: border-color 700ms var(--ease), background 700ms var(--ease);
}
[data-theme="dark"] .hero-panel {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-panel h1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(30px, 2.6vw, 46px);
  font-weight: 500;
  line-height: 1.04;
  max-width: 14ch;
  overflow-wrap: anywhere;
}
.hero-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
/* its own card, separate from .hero-lyrics above — two distinct blocks with
   real breathing room between them, not two bar-charts pressed together */
.hero-seek {
  margin: 22px 0 20px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-2) 55%, transparent);
}
.hero-seek .track-bar { height: 52px; }
.hero-seek .t {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero-seek .end { text-align: right; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-actions .play-lg {
  width: 62px;
  height: 62px;
}
.hero-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line-2) 82%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.section-head { margin: 28px 0 14px; }
.section-head h3,
.card-t,
.nav-label {
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
}
.genre-grid {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 13px;
}
/* art-backed genre tiles with depth + hover play */
.genre {
  aspect-ratio: auto;
  min-height: 118px;
  border-radius: 18px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding: 12px;
  border-color: transparent;
  color: #fff;
}
.genre::before { content: none; } /* drop the old light hover wash — art tiles carry their own scrim */
.genre .g-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 480ms var(--ease);
}
.genre .g-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.10) 0%, rgba(10,8,6,0.18) 42%, rgba(10,8,6,0.74) 100%);
}
.genre .g-ico {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--panel) 24%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.genre .g-ico i { width: 17px; height: 17px; stroke-width: 1.9; color: #fff; }
.genre span {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.genre .g-count {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  margin-top: 1px;
}
.genre .g-play {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px var(--accent-glow);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring);
}
.genre .g-play i { width: 15px; height: 15px; fill: #fff; }
.genre:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.genre:hover .g-art { transform: scale(1.09); }
.genre:hover .g-play { opacity: 1; transform: none; }

/* "Made for you" rich-card carousel above the detailed list */
.rec-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rec-card {
  flex: 0 0 clamp(146px, 15vw, 176px);
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease);
}
.rec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rec-card:active { transform: translateY(-2px) scale(0.98); }
.rec-card .rc-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 11px;
  overflow: hidden;
}
.rec-card .rc-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring);
}
.rec-card .rc-play i { width: 18px; height: 18px; fill: #fff; }
.rec-card:hover .rc-play { opacity: 1; transform: none; }
.rec-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-card > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-recs {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}
.track-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 36px 36px 52px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.trow {
  grid-template-columns: minmax(0, 1fr) 70px 36px 36px 52px;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.trow:last-child { border-bottom: 0; }
.trow:hover {
  background: color-mix(in srgb, var(--accent-soft) 44%, var(--panel));
}
.trow.active {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--panel));
  box-shadow: inset 3px 0 0 var(--accent);
}
.trow-play {
  grid-template-columns: 28px 42px minmax(0, 1fr);
  gap: 12px;
}
.trow .meta strong { font-size: 14.2px; }
.trow .meta span { font-size: 12px; }
.trow .rlike,
.trow .rlist {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.trow .rlike:hover,
.trow .rlist:hover {
  background: var(--panel);
}
.rail {
  padding: 22px 20px calc(var(--bar) + 20px);
  gap: 14px;
}
.rail .np {
  position: sticky;
  top: 0;
  z-index: 4;
}
.q-list { gap: 2px; }
/* rail segmented tabs: Up Next / Lyrics */
.rail-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  border: 1px solid var(--line);
}
.rail-tab {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rail-tab:hover { color: var(--ink); }
.rail-tab.on {
  color: var(--accent-ink);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.rail-lyrics {
  margin: 12px 0;
  max-height: 224px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.rail-lyrics p {
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--muted) 92%, transparent);
  transition: color 240ms var(--ease), transform 240ms var(--ease);
  transform-origin: left center;
}
.rail-lyrics p.active {
  color: var(--ink);
  font-weight: 600;
  transform: scale(1.02);
}
.rail-lyrics .rl-msg {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 4px;
}
.rail-lyrics .rl-plain {
  white-space: pre-line;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.q-item {
  padding: 7px;
  border-radius: 12px;
}
.q-cover {
  width: 38px;
  height: 38px;
}
.q-item strong { font-size: 13px; }
.q-item span { font-size: 11.5px; }
.q-grip { order: -1; }
.p-right,
.p-tools,
.p-output {
  display: flex;
  align-items: center;
}
.p-right {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.p-tools {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
}
.p-output {
  gap: 8px;
}
.chip-btn {
  min-height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.vol { width: clamp(88px, 8vw, 128px); }

@media (max-width: 1440px) {
  :root { --sidebar: 236px; --rail: 300px; }
  .main { padding-left: 24px; padding-right: 24px; }
  .p-tools #crossfadeBtn,
  .p-tools #speedBtn { display: none; }
}
@media (max-width: 1160px) {
  .app { grid-template-columns: var(--sidebar) 1fr; grid-template-areas: "side main" "player player"; }
  .home-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }
  .home-stage .platter { width: min(70vw, 390px); }
  .hero-panel {
    width: min(100%, 620px);
    justify-self: center;
    text-align: center;
  }
  .hero-panel h1 {
    max-width: 16ch;
    margin: 0 auto;
  }
  .hero-actions,
  .hero-note { justify-content: center; }
  .track-head,
  .trow {
    grid-template-columns: minmax(0, 1fr) 58px 34px 34px 48px;
  }
  .p-right { display: none; }
}
@media (max-width: 760px) {
  .home-stage {
    padding: 20px 16px 22px;
    border-radius: 22px;
    gap: 18px;
  }
  .home-stage .platter { width: min(78vw, 300px); }
  .stage-expand { top: 16px; right: 16px; }
  .hero-panel h1 { font-size: clamp(28px, 10vw, 40px); }
  .hero-seek {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
    margin: 18px 0 16px;
    padding: 8px 12px;
  }
  .hero-seek .track-bar { height: 40px; }
  .hero-actions .icon-btn,
  .hero-actions .t-btn:not(.play-lg) {
    width: 40px;
    height: 40px;
  }
  .hero-actions .play-lg {
    width: 56px;
    height: 56px;
  }
  .hero-note {
    flex-direction: column;
    gap: 10px;
  }
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .track-head { display: none; }
  .home-recs {
    border-radius: 16px;
  }
  .trow {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    padding: 10px;
    border-radius: 0;
  }
  .trow .gstat,
  .trow .dur {
    display: none;
  }
  .trow-play {
    grid-template-columns: 24px 40px minmax(0, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   AURORA GLASS 2.0 — frosted-glass frame used for: home stage, the track
   frame, and the Up Next/Lyrics rail card. Reference look: an almost-black
   navy card, a faint graph-paper grid fading in toward the bottom, and one
   soft blue glow rising off the bottom edge — NOT a card filled with vivid
   blue. Applying it re-points the design TOKENS (--ink, --muted, --panel,
   --accent, --line…) that every existing component already reads, instead of
   re-styling each child by hand, so buttons/rows/tabs inside an aurora frame
   automatically relight for the backdrop. ::before paints the grid + glow;
   backdrop-filter lives on the element itself (not a pseudo-layer) so real
   children never need to fight it for stacking order. The color VALUES are
   theme-scoped below ([data-theme="dark"] vs [data-theme="light"]) so the
   same aurora identity (deep navy + electric blue) reads correctly whichever
   theme the rest of the app is in, instead of forcing dark-on-light. */
.aurora-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  backdrop-filter: blur(30px) saturate(1.15);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
}
[data-theme="dark"] .aurora-glass {
  --ink: #f5f8ff; --ink-2: #dbe3f7; --muted: #8b9dc9;
  --panel: rgba(11,20,42,0.55); --panel-2: rgba(11,20,42,0.7);
  --bg-2: rgba(6,12,28,0.55);
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.15);
  --accent: #4d8dff; --accent-deep: #2e6eff; --accent-ink: #cfe0ff; --accent-soft: rgba(77,141,255,0.16);
  --accent-glow: rgba(46,110,255,0.55);
  --amb-color: #2e6eff;
  --shadow-sm: 0 10px 24px rgba(2,6,18,0.45);
  --shadow: 0 24px 56px rgba(2,6,18,0.5), 0 20px 60px -14px rgba(46,110,255,0.3);
  --shadow-lg: 0 40px 60px -10px rgba(46,110,255,0.4), 0 30px 90px rgba(2,6,18,0.6);
  --aurora-grid: rgba(150,182,255,0.06);
  --aurora-glowspot: rgba(46,110,255,0.5), rgba(46,110,255,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(175deg, #050b1c 0%, #060e22 46%, #071229 100%);
}
[data-theme="light"] .aurora-glass {
  --ink: #101d3a; --ink-2: #24345c; --muted: #5b6b93;
  --panel: rgba(255,255,255,0.6); --panel-2: rgba(255,255,255,0.78);
  --bg-2: rgba(219,231,255,0.55);
  --line: rgba(37,73,168,0.12); --line-2: rgba(37,73,168,0.2);
  --accent: #2e6eff; --accent-deep: #1d4fd6; --accent-ink: #1d4fd6; --accent-soft: rgba(46,110,255,0.12);
  --accent-glow: rgba(46,110,255,0.4);
  --amb-color: #2e6eff;
  --shadow-sm: 0 10px 22px rgba(46,90,190,0.14);
  --shadow: 0 22px 48px rgba(46,90,190,0.16), 0 18px 50px -14px rgba(46,110,255,0.28);
  --shadow-lg: 0 34px 60px -10px rgba(46,110,255,0.3), 0 26px 70px rgba(46,90,190,0.18);
  --aurora-grid: rgba(46,90,200,0.09);
  --aurora-glowspot: rgba(46,110,255,0.4), rgba(46,110,255,0.14);
  border: 1px solid rgba(46,110,255,0.16);
  background: linear-gradient(175deg, #f6f9ff 0%, #eef4ff 46%, #e6efff 100%);
}
.aurora-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 116%, var(--aurora-glowspot), transparent 74%),
    linear-gradient(var(--aurora-grid) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--aurora-grid) 1px, transparent 1px) 0 0 / 34px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 36%, #000 64%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 36%, #000 64%, #000 100%);
  animation: auroraGlow 7s ease-in-out infinite;
}
/* main-stage-only: a slim blue line hugging the frame's own border, layered
   on top of (not instead of) its regular shadow — a thin edge-light, not a
   big blooming halo. */
.home-stage.aurora-glass {
  box-shadow:
    inset 0 0 0 1px rgba(120,170,255,0.45),
    0 0 0 1px rgba(46,110,255,0.22),
    0 0 16px 0px var(--accent-glow),
    var(--shadow-lg);
}
/* Real children that are static (no position of their own — most of
   .track-frame's and .card.queue's content) sit BEHIND non-inline
   non-positioned content in paint order by default, so ::before (which is
   positioned, z-index:0) would otherwise cover them; lifting them into the
   same stacking step with position:relative fixes that. .hero-panel
   (z-index:3) and .stage-btn (z-index:4) already sit above it either way. */
.browse-frame.aurora-glass > *,
.track-frame.aurora-glass > *,
.card.queue.aurora-glass > * {
  position: relative;
  z-index: 1;
}
@keyframes auroraGlow {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-glass::before { animation: none; }
}
/* the vinyl label/mat keep their own hardcoded physical-material colors on
   purpose (a record doesn't relight with the UI theme) — only the parts of
   .home-stage that already read design tokens (hero-panel, text, controls)
   pick up the aurora palette via the custom-property cascade above. Because
   .aurora-glass::before is declared after .home-stage::before with equal
   specificity, it naturally wins and replaces the light-sheen background
   with the grid+underglow — no extra override rule needed. */

/* ---------- browse frame (Favorite Artists + Your Playlists) & track frame ---------- */
.browse-frame, .track-frame {
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 32px);
  margin-top: 28px;
}
.browse-frame .section-head:first-child, .track-frame .section-head:first-child { margin-top: 0; }
.browse-frame .grid { margin-top: 4px; }
.track-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 8px;
  padding: 0 4px;
}
.track-group-head:first-of-type { margin-top: 4px; }
.track-group-head span:first-child {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}
.track-group-head .tg-count {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Favorite Artists list — below the track list; clicking a row
   swaps the track list above to that artist's songs. ---------- */
.artist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.artist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform 150ms var(--ease);
}
.artist-row:hover { background: var(--panel); transform: translateX(2px); }
.artist-row:active { transform: scale(0.99); }
.artist-row.active { background: var(--accent-soft); }
.artist-row .ar-art {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-2);
}
.artist-row .ar-meta { flex: 1; min-width: 0; }
.artist-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-row span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.artist-row span i { width: 11px; height: 11px; color: var(--accent); fill: var(--accent); }
.artist-row .ar-chev { width: 17px; height: 17px; color: var(--muted); flex: none; transition: transform 150ms var(--ease); }
.artist-row.active .ar-chev, .artist-row:hover .ar-chev { transform: translateX(2px); color: var(--accent-ink); }

/* ==========================================================================
   KARAOKE LYRIC LINE — a left-to-right gradient wipe over the active lyric
   line, timed via inline animation-duration/animation-delay set in JS from
   each line's real LRC timestamp gap (so it tracks the song's actual rhythm,
   not a generic fixed speed). Negative animation-delay lets it resume at the
   right spot after a seek instead of restarting from zero.
   ========================================================================== */
.klyric { position: relative; display: inline-block; max-width: 100%; }
.lyric-romanization, .lyric-translation {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: "Jost", sans-serif;
  font-size: 0.48em;
  font-weight: 500;
  line-height: 1.35;
}
.lyric-translation { color: var(--accent-ink); }
.klyric-base { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.klyric-words { white-space: pre-wrap; }
.kword { position: relative; display: inline-block; white-space: pre; }
.kword-base { color: color-mix(in srgb, var(--ink) 42%, transparent); }
.kword-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--word-progress, 0%);
  overflow: hidden;
  white-space: pre;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px var(--accent-glow);
}
.klyric-fill {
  position: absolute; left: 0; top: 0; width: var(--lyric-progress, 0%); overflow: hidden; white-space: nowrap; max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px var(--accent-glow);
}
@media (prefers-reduced-motion: reduce) {
  .klyric-fill, .kword-fill { transition: none !important; }
}

/* ---------- hero inline lyrics — the "Now Playing" teleprompter beside the
   vinyl. A plain text-only card on purpose: no bar-chart backdrop here, so
   it never reads as "another waveform" next to the real one below it. ---------- */
.hero-lyrics {
  margin-top: 16px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-2) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent);
  min-width: 0;
  overflow: hidden;
}
.hl-prev, .hl-next {
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hl-prev:empty, .hl-next:empty { opacity: 0; }
.hl-current {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.32;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: lyricLineIn 320ms var(--ease);
}
.hl-current .hl-idle { color: var(--muted); font-family: Jost, system-ui, sans-serif; font-size: 14.5px; font-weight: 500; white-space: normal; }
.lyric-retry { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 42px; padding: 8px 10px; color: var(--accent-ink); border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); font-family: Jost, system-ui, sans-serif; font-size: 11px; font-weight: 700; }
.lyric-retry svg { width: 16px; height: 16px; }
.lyric-retry span, .lyric-retry small { display: block; }
.lyric-retry small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
@keyframes lyricLineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero-lyrics { padding: 12px 14px; min-height: 72px; }
  .hl-current { font-size: 16px; }
}

/* Context drawer + compact transport */
.context-dock { position: fixed; z-index: 55; right: 14px; top: calc(50% - var(--bar) / 2); transform: translateY(-50%); width: 72px; display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur); }
.context-dock button { position: relative; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 6px; color: var(--muted); font-size: 9.5px; font-weight: 650; transition: background var(--dur), color var(--dur), transform 150ms var(--ease); }
.context-dock button:hover { background: var(--bg-2); color: var(--ink); transform: translateX(-2px); }
.context-dock button.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset -3px 0 0 var(--accent); }
.context-dock button i, .context-dock button svg { width: 19px; height: 19px; }
.context-dock button b { position: absolute; right: 6px; top: 5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--panel); border-radius: 10px; background: var(--accent); color: #fff; font-size: 8px; line-height: 1; }
.dock-divider { height: 1px; margin: 3px 7px; background: var(--line); }
body.drawer-open .context-dock { opacity: 0; visibility: hidden; transform: translate(12px, -50%); pointer-events: none; }
@media (min-width: 1180px) {
  .main { padding-right: 112px; }
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: rgba(8, 13, 24, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
body.drawer-open .drawer-scrim { opacity: 1; }
.context-drawer {
  display: flex;
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 94vw);
  padding: 20px;
  gap: 16px;
  background: var(--panel);
  border-left: 1px solid var(--line-2);
  box-shadow: -24px 0 64px rgba(13, 23, 42, 0.2);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 320ms;
  overflow: hidden;
  overscroll-behavior: contain;
}
body.drawer-open .context-drawer { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head .np-row { flex: 1; min-width: 0; }
.drawer-head .np-cover { width: 52px; height: 52px; border-radius: 10px; }
.drawer-track { min-width: 0; display: flex; flex-direction: column; }
.drawer-track .card-t { margin-bottom: 3px; }
.drawer-track strong, .drawer-track > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-track strong { font-size: 14px; }
.drawer-track > span:last-child { color: var(--muted); font-size: 12px; }
.drawer-close { flex: none; width: 38px; height: 38px; border: 1px solid var(--line); }
.context-drawer .rail-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; padding: 4px; border-color: var(--line-2); }
.context-drawer .rail-tab { min-width: 0; padding: 8px 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; letter-spacing: 0; text-transform: none; font-size: 10.5px; }
.context-drawer .rail-tab i { width: 16px; height: 16px; }
.context-drawer .rail-tab:hover { background: color-mix(in srgb, var(--accent-soft) 56%, var(--panel)); }
.context-drawer .rail-tab.on { color: var(--accent-ink); box-shadow: 0 2px 9px rgba(16, 32, 60, 0.12); }
.drawer-panel { flex: 1; min-height: 0; overflow: hidden; flex-direction: column; }
.drawer-panel.on { display: flex; animation: drawerPanelIn 180ms var(--ease); }
@keyframes drawerPanelIn { from { opacity: 0; transform: translateY(5px); } }
.drawer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 10px; }
.drawer-section-head > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.drawer-section-head strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-panel .q-list { flex: 1; max-height: none; min-height: 0; margin: 4px 0 12px; }
.drawer-panel .rail-lyrics { flex: 1; max-height: none; min-height: 0; margin: 4px 0 12px; padding: 14px 8px 35vh 4px; gap: 12px; scroll-behavior: smooth; }
.drawer-panel .rail-lyrics p { font-size: 14px; line-height: 1.55; opacity: 0.62; }
.drawer-panel .rail-lyrics p.active { font-size: 16px; opacity: 1; transform: none; }
.lyric-offset { display: grid; grid-template-columns: 28px 48px 28px; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; flex: none; }
.lyric-offset button { height: 28px; font-size: 17px; color: var(--ink-2); }
.lyric-offset button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.lyric-offset output { text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.credit-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.credit-list > div { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.credit-list dt { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.credit-list dd { color: var(--ink); font-size: 13.5px; margin-top: 4px; overflow-wrap: anywhere; }
.session-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 8px; margin: 4px 0 16px; overflow: hidden; }
.session-summary > div { padding: 14px 8px; text-align: center; border-right: 1px solid var(--line); }
.session-summary > div:last-child { border-right: 0; }
.session-summary strong { display: block; font-size: 18px; }
.session-summary span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.session-actions { display: flex; flex-direction: column; gap: 8px; }
.drawer-action { min-height: 62px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); transition: border-color var(--dur), background var(--dur), transform 150ms var(--ease); }
.drawer-action:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-1px); }
.drawer-action.on { border-color: var(--accent); background: var(--accent-soft); }
.drawer-action > i { width: 20px; color: var(--accent-ink); justify-self: center; }
.drawer-action span { display: flex; flex-direction: column; }
.drawer-action strong { font-size: 13.5px; }
.drawer-action small { color: var(--muted); font-size: 11.5px; }
.drawer-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 7px; color: var(--ink-2); font-size: 10.5px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.drawer-subhead .card-t { min-width: 0; }
.drawer-subhead small { flex: none; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.analysis-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 2px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.analysis-strip span { min-width: 0; padding: 10px 5px; color: var(--muted); font-size: 9.5px; text-align: center; border-right: 1px solid var(--line); }
.analysis-strip span:last-child { border-right: 0; }
.analysis-strip strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.taste-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.taste-actions button { min-height: 36px; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--ink-2); font-size: 11.5px; font-weight: 650; text-align: left; transition: border-color var(--dur), background var(--dur), color var(--dur); }
.taste-actions button i, .taste-actions button svg { width: 16px; height: 16px; flex: none; }
.taste-actions button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.taste-actions button:focus-visible, .smart-rule:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sync-status { margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--accent); background: var(--bg-2); color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.sync-action { width: 100%; margin-top: 8px; }
.smart-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.smart-rule { min-height: 76px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--ink); text-align: left; transition: border-color var(--dur), background var(--dur), transform 150ms var(--ease); }
.smart-rule:hover { border-color: var(--accent); background: var(--bg-2); transform: translateY(-1px); }
.smart-rule.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.smart-rule strong, .smart-rule span { display: block; }
.smart-rule strong { margin-bottom: 4px; font-size: 13px; }
.smart-rule span { color: var(--muted); font-size: 11.5px; line-height: 1.35; }

.player { grid-template-columns: minmax(180px, 1fr) minmax(440px, 1.45fr) minmax(180px, 1fr); gap: 16px; padding: 0 18px; border-color: var(--line-2); }
.p-cover { width: 44px; height: 44px; border-radius: 9px; }
.p-meta { gap: 11px; }
.p-meta strong { font-size: 13.5px; }
.p-meta span { font-size: 11.5px; }
.p-like { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.p-like:hover, .p-output .t-btn:hover { background: var(--bg-2); color: var(--ink); }
.p-center { flex-direction: row; justify-content: center; gap: 14px; min-width: 0; }
.p-controls { gap: 8px; }
.p-controls .t-btn, .p-output .t-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.p-controls .play-lg { width: 46px; height: 46px; color: #fff; }
.p-controls .play-lg[data-state="playing"] { box-shadow: 0 0 0 4px var(--accent-soft), 0 9px 24px var(--accent-glow); }
body.playing .play-lg { animation: none; }
.play-lg:active { transform: scale(0.92); }
.p-mini-seek { width: clamp(230px, 30vw, 480px); max-width: none; }
.p-right { min-width: 0; }
.p-output { padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 66%, transparent); }
.p-output .vol { width: clamp(70px, 7vw, 105px); }
#lyricsBtn, #soundBtn, #fullQueueBtn2 { display: none; }
.vol-bar { height: 18px; background: transparent; }
.vol-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: var(--line-2); }
.vol-fill { top: 7px; bottom: auto; height: 4px; }
.vol-bar:hover .vol-fill::after, .vol-bar:focus-visible .vol-fill::after { transform: translateY(-50%) scale(1); }

.p-like.heart-burst::before, .rlike.heart-burst::before { content: ""; position: absolute; inset: 3px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; animation: heartRing 520ms var(--ease) forwards; }
.p-like.heart-burst i, .p-like.heart-burst svg, .rlike.heart-burst i, .rlike.heart-burst svg { animation: heartBeat 520ms var(--spring); }
.rlike { position: relative; }
.rlike.liked i, .rlike.liked svg { fill: var(--accent); }
@keyframes heartRing { from { opacity: 0.85; transform: scale(0.35); } to { opacity: 0; transform: scale(1.65); } }
@keyframes heartBeat { 0% { transform: scale(0.7); } 42% { transform: scale(1.45) rotate(-7deg); } 72% { transform: scale(0.92); } 100% { transform: scale(1); } }

@media (max-width: 1160px) {
  .context-drawer { display: flex; }
  .player { grid-template-columns: minmax(170px, 0.8fr) minmax(420px, 1.4fr); }
  .player .p-right { display: flex; }
  .p-output .vol, #soundBtn { display: none; }
}
@media (max-width: 760px) {
  .context-dock { display: none; }
  .context-drawer { display: flex; left: 0; right: 0; width: 100%; padding: 16px; box-sizing: border-box; }
  .drawer-scrim { display: none; }
  .player { grid-template-columns: minmax(0, 1fr) auto 36px; gap: 4px; height: 64px; padding: 0 8px; }
  .player .p-right { display: flex; }
  .player .p-output { padding: 0; border: 0; background: none; }
  .player .p-output > :not(#fullQueueBtn2) { display: none; }
  #fullQueueBtn2 { display: grid; }
  .p-meta .pm { max-width: 28vw; }
  .p-like { margin-left: 0; }
  .p-center { gap: 0; }
  .p-controls .play-lg { width: 44px; height: 44px; }
  .home-stage, .hero-panel, .hero-lyrics, .hl-current { min-width: 0; max-width: 100%; }
  .hero-panel h1 { width: 100%; max-width: 100%; font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
  .topbar-actions { display: none; }
  .topbar .search { width: 100%; max-width: none; }
  .smart-rule-grid { grid-template-columns: 1fr; }
  .sound-modal { max-height: 94vh; }
  .sound-head { padding: 20px 18px 15px; }
  .sound-head h3 { font-size: 25px; }
  .sound-head p.sub { max-width: 220px; }
  .signal-monitor { padding: 13px 18px; }
  .signal-bars { height: 52px; gap: 3px; }
  .signal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sound-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sound-presets button:nth-child(2) { border-right: 0; }
  .sound-presets button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sound-grid { grid-template-columns: 1fr; }
  .sound-section { padding: 20px 18px; }
  .sound-section + .sound-section { border-left: 0; border-top: 1px solid var(--line); }
  .sound-foot { padding: 12px 18px; flex-wrap: wrap; }
  .sound-foot > span { flex-basis: 100%; }
}

/* Reference stage: precision deck + signal console */
.home-stage {
  min-height: clamp(500px, 58vh, 640px);
  grid-template-columns: minmax(390px, 0.96fr) minmax(410px, 0.9fr);
  gap: clamp(28px, 4vw, 68px);
  padding: clamp(34px, 4vw, 64px);
}
.deck-module {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  min-height: 458px;
  justify-self: center;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 18px 20px 16px;
  border: 1px solid color-mix(in srgb, var(--line-2) 86%, var(--ink));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 76%, #c8d1df);
  box-shadow: 0 28px 54px rgba(21, 34, 64, 0.2), inset 0 1px 0 rgba(255,255,255,0.72), inset 0 -1px 0 rgba(38,52,76,0.12);
  overflow: hidden;
}
[data-theme="dark"] .deck-module {
  background: color-mix(in srgb, var(--panel) 88%, #172033);
  box-shadow: 0 30px 62px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}
.deck-module::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 5px;
  pointer-events: none;
}
.deck-head, .deck-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.deck-head { letter-spacing: 0.14em; }
.deck-led { display: inline-flex; align-items: center; gap: 7px; }
.deck-led i, .mastering-state i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20b87a;
  box-shadow: 0 0 0 3px rgba(32,184,122,0.12), 0 0 12px rgba(32,184,122,0.64);
}
.deck-footer {
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--line-2) 84%, transparent);
  letter-spacing: 0.08em;
}
.deck-footer span { display: grid; gap: 3px; color: var(--muted); }
.deck-footer span:nth-child(2) { text-align: center; }
.deck-footer span:last-child { text-align: right; }
.deck-footer b { color: var(--ink); font-size: 11px; letter-spacing: 0; }
.deck-module .platter {
  width: min(86%, 406px);
  justify-self: center;
}
.deck-module .mat {
  inset: -5%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 48px rgba(0,0,0,0.34), 0 0 0 6px #252a31, 0 0 0 8px #101318;
}
.deck-module .mat::before {
  content: "";
  position: absolute;
  inset: -1.8%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(230,237,247,0.76) 0 0.8deg, rgba(30,35,42,0.86) 0.8deg 2.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 91%, #000 91.3% 93%, transparent 93.3%);
  mask: radial-gradient(circle, transparent 0 91%, #000 91.3% 93%, transparent 93.3%);
  opacity: 0.66;
}
.deck-module .vinyl {
  box-shadow: 0 24px 44px rgba(0,0,0,0.44), inset 0 0 80px rgba(0,0,0,0.72), inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 2px #08090b;
}
.deck-module .vinyl::after {
  content: "";
  position: absolute;
  inset: 5.5%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,0.012), inset 0 0 0 34px rgba(0,0,0,0.08), inset 0 0 0 48px rgba(255,255,255,0.012);
}
.deck-module .label .hole {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 38% 32%, #fff 0 12%, #d8dde3 13% 38%, #7d8793 40% 62%, #202630 64%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 0 0 2px rgba(255,255,255,0.2);
}
.deck-module .tonearm .pivot {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 9px 18px rgba(0,0,0,0.28), inset 0 0 0 5px rgba(72,82,92,0.12), 0 0 0 4px #3e4650;
}
.deck-module .tonearm .pivot::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #1d232b;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.hero-panel {
  border-radius: 8px;
  padding: clamp(24px, 2.4vw, 34px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line-2));
  box-shadow: 0 24px 54px rgba(32,63,128,0.18), inset 0 1px 0 rgba(255,255,255,0.62);
}
.hero-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 18px;
  border-block: 1px solid var(--line-2);
}
.hero-specs > span { min-width: 0; display: grid; gap: 5px; padding: 12px 10px; }
.hero-specs > span:first-child { padding-left: 0; }
.hero-specs > span + span { border-left: 1px solid var(--line); }
.hero-specs small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.hero-specs b { color: var(--ink); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mastering-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-transform: uppercase; font-size: 9px; letter-spacing: 0.1em; }

body.vinyl-fullscreen .home-stage {
  inset: 0;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.96fr) minmax(440px, 0.84fr);
  gap: clamp(46px, 5.5vw, 110px);
  align-items: center;
  padding: clamp(96px, 12vh, 126px) clamp(48px, 5vw, 96px) clamp(82px, 10vh, 108px);
}
body.vinyl-fullscreen .deck-module {
  width: min(100%, 690px);
  max-width: 690px;
  min-height: min(70vh, 680px);
  justify-self: end;
  padding: 22px 24px 18px;
}
body.vinyl-fullscreen .deck-module .platter {
  width: min(86%, 58vh, 560px);
  max-width: 100%;
}
body.vinyl-fullscreen .hero-panel {
  width: min(100%, 670px);
  max-height: calc(100vh - 188px);
  justify-self: start;
  overflow: auto;
  scrollbar-width: thin;
}
body.vinyl-fullscreen .fs-bar { padding: 22px clamp(34px, 4.5vw, 86px) 42px; }
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .deck-module {
  position: static;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .deck-module::before,
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .deck-head,
body.vinyl-fullscreen.vinyl-fullscreen-lyrics .deck-footer { display: none; }

@media (max-width: 1280px) {
  .home-stage { grid-template-columns: minmax(340px, 0.9fr) minmax(390px, 1fr); padding: 32px; gap: 28px; }
  .deck-module { min-height: 420px; }
  .deck-module .platter { width: min(82%, 360px); }
  body.vinyl-fullscreen .home-stage { grid-template-columns: minmax(360px, 0.88fr) minmax(410px, 1fr); gap: 38px; padding-inline: 48px; }
  body.vinyl-fullscreen .deck-module { min-height: min(65vh, 570px); }
  body.vinyl-fullscreen .deck-module .platter { width: min(82%, 52vh, 470px); }
}
@media (max-width: 980px) {
  .home-stage { grid-template-columns: 1fr; min-height: auto; padding: 28px; }
  .deck-module { width: min(100%, 540px); }
  .hero-panel { width: min(100%, 640px); justify-self: center; }
  body.vinyl-fullscreen .home-stage { grid-template-columns: minmax(300px, 0.82fr) minmax(370px, 1fr); gap: 26px; padding: 92px 28px 78px; }
  body.vinyl-fullscreen .deck-module { min-height: 430px; }
  body.vinyl-fullscreen .deck-module .platter { width: min(78%, 45vh, 360px); }
}
@media (max-width: 720px) {
  .home-stage { padding: 18px 12px 20px; gap: 16px; border-radius: 8px; }
  .deck-module { min-height: 338px; padding: 14px 14px 12px; }
  .deck-module .platter { width: min(76vw, 292px); }
  .deck-head { font-size: 8px; }
  .deck-footer span:nth-child(2) { display: none; }
  .hero-console-head { gap: 12px; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-specs > span:nth-child(3) { border-left: 0; }
  .hero-specs > span:nth-child(n+3) { border-top: 1px solid var(--line); }
  body.vinyl-fullscreen .home-stage {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    overflow-y: auto;
    padding: 82px 16px 28px;
  }
  body.vinyl-fullscreen .deck-module { width: min(100%, 420px); min-height: 330px; justify-self: center; }
  body.vinyl-fullscreen .deck-module .platter { width: min(78%, 66vw, 270px); }
  body.vinyl-fullscreen .hero-panel { width: min(100%, 520px); max-height: none; justify-self: center; overflow: visible; }
  body.vinyl-fullscreen .fs-bar { padding: 16px 18px 30px; }
}

/* Mobile listening surface: keep the record, metadata and transport within
   the first viewport, then move secondary tools into a true bottom sheet. */
@media (max-width: 720px) {
  .main { padding: 12px; }
  .home-stage { min-height: 0; padding: 12px 10px 14px; gap: 10px; }
  .deck-module { min-height: 262px; padding: 11px 12px 9px; }
  .deck-module .platter { width: min(60vw, 220px); }
  .deck-head { font-size: 7px; }
  .deck-footer { padding-top: 8px; }
  .deck-footer b { font-size: 9px; }
  .hero-panel { padding: 16px; }
  .hero-console-head { justify-content: center; gap: 0; text-align: center; }
  .hero-console-head > div { width: 100%; min-width: 0; }
  .hero-panel h1 { max-width: 100%; font-size: 27px; line-height: 1.06; }
  .hero-panel p { margin-top: 4px; font-size: 12px; }
  .hero-specs { display: none; }
  .hero-lyrics { margin-top: 12px; min-height: 58px; padding: 9px 11px; }
  .hl-prev, .hl-next { display: none; }
  .hl-current { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hero-seek { margin: 12px 0 10px; padding: 6px 9px; }
  .hero-seek .track-bar { height: 34px; }
  .hero-actions { gap: 4px; }
  .hero-actions .play-lg { width: 48px; height: 48px; }
  .hero-actions .icon-btn, .hero-actions .t-btn:not(.play-lg) { width: 36px; height: 36px; }
  .hero-note { display: none; }
  .player { border-radius: 10px; grid-template-columns: minmax(0, 1fr) auto 36px; }
  .p-meta { gap: 8px; }
  .p-cover { width: 42px; height: 42px; }
  .p-meta .pm { max-width: none; }
  .p-meta strong { font-size: 12px; }
  .p-meta span { font-size: 10px; }
  .p-like { display: none; }
  .playback-health { position: fixed; left: 16px; right: 16px; bottom: 142px; max-width: none; z-index: 45; padding: 7px 10px; }
  .context-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(82vh, 720px);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border: 1px solid var(--line-2);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -24px 64px rgba(13, 23, 42, 0.24);
  }
  body.drawer-open .context-drawer { transform: translateY(0); }
  .drawer-scrim { display: block; pointer-events: none; }
  .drawer-scrim[hidden] { display: none !important; }
  body.drawer-open .drawer-scrim { pointer-events: auto; }
  body.drawer-open .player { opacity: 0; pointer-events: none; }
}
