/* Self-hosted fonts (variable, latin + latin-ext). No third-party requests. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Base reset (was supplied by the preview wrapper) */
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; }

/* Layout: app shell. Sidebar (desktop) or pill tabs (phone), shelves that scroll sideways on a dark stage, an ambient glow taken from the record in the player, and a floating mini-player. Single deliberate dark theme. */
:root {
  --bg: #0D0D0D;
  --surface: #171717;
  --surface-2: #222222;
  --line: #2A2A2A;
  --text: #F6F1E7;
  --muted: #A49F95;
  --faint: #79746C;
  --acid: #D5FF00;
  --ink: #111111;
  --error: #FF8F80;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --g: 16px;
  --side: 244px;
  --r: 12px;
  --c1: #3B4A6B;
  --c2: #6E5F33;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --g: 28px; } }
@media (min-width: 1024px) { :root { --g: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acid); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.demo { background: var(--acid); color: var(--ink); font-size: 12px; font-weight: 500; padding-block: 6px; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }

/* Brand */
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; display: inline-block; }
.wordmark .v { position: relative; display: inline-block; }
.wordmark .v::after { content: ""; position: absolute; left: 50%; bottom: 0.08em; width: 0.22em; height: 0.62em; background: var(--acid); transform: translateX(-10%) skewX(-24deg); }
.wordmark .v span { position: relative; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background 160ms, border-color 160ms; }
.btn svg { width: 16px; height: 16px; }
.btn-acid { background: var(--acid); color: var(--ink); }
.btn-acid:hover { background: #E4FF4D; }
.top-submit { min-height: 44px; padding-inline: 14px; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }
.btn:disabled { background: var(--surface); color: var(--faint); border-color: var(--line); cursor: not-allowed; }

/* Shell */
.app { min-height: 100vh; }
@media (min-width: 1024px) { .app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); } }
.side { display: none; }
@media (min-width: 1024px) {
  .side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--line); background: #0A0A0A; }
  .side .wordmark { padding-left: 12px; }
}
.nav { display: grid; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 0 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); transition: background 160ms, color 160ms; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] svg { color: var(--acid); }
.nav svg, .icon-btn svg, .tabs svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; display: grid; gap: 14px; }
.side-foot .small { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--faint); padding-left: 12px; }
.side-foot .small a { min-height: 32px; display: inline-flex; align-items: center; }
.side-foot .small a:hover, .side-foot .small a[aria-current="page"] { color: var(--text); }

/* Phone top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-block: 8px 10px; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.icon-btn[aria-current="page"] { color: var(--acid); }
.tabs { margin-top: 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; width: max-content; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--surface-2); color: var(--acid); }

/* Main stage */
.main { position: relative; min-width: 0; padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); isolation: isolate; }
.ambient { position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(55% 75% at 12% 0%, color-mix(in srgb, var(--c1) 80%, transparent), transparent 70%),
    radial-gradient(45% 60% at 88% 6%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
  transition: opacity 400ms; }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.inner { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); max-width: 1400px; }
.page { padding-block: 28px 0; display: grid; gap: 44px; }
@media (min-width: 1024px) { .page { padding-block: 44px 0; gap: 56px; } }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.intro { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.035em; color: var(--faint); max-width: 20ch; }
.intro b { color: var(--text); font-weight: 700; }
.p-head { display: grid; gap: 12px; }
.p-title { font-size: clamp(42px, 6.4vw, 80px); line-height: 0.95; letter-spacing: -0.045em; }
.p-head > p:not(.eyebrow) { color: var(--muted); max-width: 56ch; font-size: 16px; }
.lower-mark { text-transform: lowercase; }
.lower-mark::after { content: ""; display: block; width: clamp(64px, 8vw, 110px); height: 7px; background: var(--acid); margin-top: 14px; }

/* Shelves */
.shelf { display: grid; gap: 16px; min-width: 0; align-content: start; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shelf-head h2 { font-size: 22px; letter-spacing: -0.025em; }
.shelf-head h2 a { display: inline-flex; align-items: center; gap: 4px; }
.shelf-head h2 a:hover { color: var(--acid); }
.shelf-head h2 svg { width: 18px; height: 18px; color: var(--muted); }
.row-ctrl { display: none; gap: 8px; }
@media (min-width: 1024px) { .row-ctrl { display: flex; } }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.round:hover { border-color: var(--faint); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 16px; height: 16px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 240px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-right: calc(-1 * max(var(--g), env(safe-area-inset-right, 0px))); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; position: relative; }
.row, .album, .circle, .grid-tiles > * { position: relative; }
@media (min-width: 640px) { .row { grid-auto-columns: min(38%, 240px); } }
@media (min-width: 1024px) { .row { grid-auto-columns: calc((100% - 3 * 16px - var(--g)) / 4.3); gap: 16px; } }

/* Covers */
.cv { display: block; width: 100%; position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; border-radius: 8px; max-width: 100%; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv-miss { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 12px; color: var(--faint); background: repeating-linear-gradient(135deg, #1D1D1D 0 10px, #161616 10px 20px); }
.cv.sm .cv-miss { font-size: 0; }

/* Portrait tile (On repeat, unpopular) */
.tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--tc, #333) 42%, #121212); border: 1px solid rgba(255,255,255,.06); transition: border-color 180ms, transform 180ms; min-width: 0; }
.tile:hover { border-color: rgba(255,255,255,.22); }
.tile .cv { border-radius: 0; }
.tile .cv::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(to top, color-mix(in srgb, var(--tc, #333) 42%, #121212), transparent); }
.tile-num { position: absolute; z-index: 2; top: 8px; left: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); font-variant-numeric: tabular-nums; }
.tile-tag { position: absolute; z-index: 2; top: 10px; right: 10px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: var(--text); }
.tile-cap { position: relative; display: grid; gap: 2px; text-align: center; padding: 6px 12px 16px; min-width: 0; }
.tile-cap b { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-cap small { font-size: 13px; color: rgba(246,241,231,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Track list */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 36px; }
@media (min-width: 900px) { .tracks.two { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); } }
.trk { display: grid; grid-template-columns: 52px 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background 160ms; }
.trk:hover { background: var(--surface); }
.trk .cv { width: 52px; border-radius: 6px; }
.trk-n { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; line-height: 1.15; }
.trk-n.big { font-size: 22px; color: var(--text); }
.trk-t { display: grid; gap: 1px; min-width: 0; }
.trk-t b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-t small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-x { display: flex; gap: 6px; align-items: center; }
@media (max-width: 420px) { .trk { grid-template-columns: 48px 40px minmax(0, 1fr) auto; gap: 10px; } .trk .cv { width: 48px; } .trk-x .mini:not(.acid) { display: none; } }
.mini { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.mini.acid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.mini.solid { background: var(--text); color: var(--ink); border-color: var(--text); }

/* Era squares (Nostalgia) */
.album { display: grid; gap: 10px; min-width: 0; align-content: start; }
.era-sq { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 0% 0%, #2B2B2B, #121212); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: space-between; padding: 16px; max-width: 100%; }
.era-sq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: -1; filter: grayscale(.4); }
/* With a real photo: show it in full, darken only behind the years (top) and the name (bottom) */
.era-sq.has-img img { opacity: 1; filter: none; }
.era-sq.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.78) 100%); }
.era-sq.has-img .y span { opacity: .75; }
.era-sq .y { font-family: var(--display); font-weight: 700; color: var(--acid); font-size: clamp(36px, 3.6vw, 52px); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.era-sq .y span { display: block; color: var(--text); opacity: .45; }
.era-sq .who { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.album:hover .era-sq { border-color: rgba(255,255,255,.22); }
.cap { display: grid; gap: 2px; min-width: 0; }
.cap b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap small { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Circles (Where did you go?) */
.circle { display: grid; gap: 12px; justify-items: center; text-align: center; min-width: 0; align-content: start; }
.circle-art { width: 100%; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2E2E2E, #111 70%); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 7vw, 104px); color: var(--acid); line-height: 1; transition: border-color 180ms; }
.circle:hover .circle-art { border-color: rgba(255,255,255,.25); }
.circle .cap { justify-items: center; }

/* Small thumbs for lists */
.thumb-era { width: 52px; aspect-ratio: 1; border-radius: 6px; background: #1C1C1C; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--acid); font-variant-numeric: tabular-nums; }
.thumb-q { width: 52px; aspect-ratio: 1; border-radius: 50%; background: #1C1C1C; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--acid); }

/* Grids for section pages */
.grid-tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14px; cursor: pointer; color: var(--muted); }
.chip-btn:hover { color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

.invite { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.invite p { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.foot { padding-block: 24px 0; color: var(--faint); font-size: 13px; display: grid; gap: 4px; border-top: 1px solid var(--line); }

/* Detail pages */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-weight: 500; width: max-content; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.d-head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 768px) { .d-head { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 40px; } }
.d-art { width: 100%; max-width: 300px; }
.d-art .cv, .d-art .era-sq { border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.d-art .circle-art { box-shadow: 0 30px 60px rgba(0,0,0,.5); font-size: clamp(90px, 12vw, 150px); }
.d-meta { display: grid; gap: 12px; min-width: 0; align-content: end; }
.d-title { font-size: clamp(40px, 6.2vw, 88px); line-height: 0.95; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.d-by { font-family: var(--display); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.d-body { display: grid; gap: 40px; }
@media (min-width: 1024px) { .d-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.prose { display: grid; gap: 1em; font-size: 17px; line-height: 1.65; max-width: 62ch; color: #E6E1D6; align-content: start; }
.prose .lead { font-size: 20px; line-height: 1.5; color: var(--text); font-weight: 500; }
.h-sm { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; }
.note { font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .k { color: var(--faint); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rows .v { min-width: 0; overflow-wrap: anywhere; }
.rows .v small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.rows .r { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.rows.kv li { grid-template-columns: 110px minmax(0, 1fr); }
.rows.kv .k { font-family: var(--body); font-weight: 500; }
.rows .pending { color: var(--faint); font-style: italic; }
.source { font-size: 13px; color: var(--faint); margin-top: 10px; }
.source a { text-decoration: underline; text-underline-offset: 3px; }

/* Search */
.search { display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 54px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; min-height: 50px; }
.search:focus-within { border-color: var(--acid); }
.count { color: var(--muted); font-size: 14px; }
.empty { display: grid; gap: 10px; justify-items: start; padding-block: 20px; }
.empty h2 { font-size: 22px; }

/* Form */
.form { display: grid; gap: 22px; max-width: 720px; }
.two { display: grid; gap: 22px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, legend { font-weight: 600; font-size: 14px; padding: 0; }
.hint { font-size: 13px; color: var(--muted); }
.opt { font-weight: 500; color: var(--faint); font-size: 13px; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid #3A3A3A; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--faint); }
.input[aria-invalid="true"] { border: 2px solid var(--error); }
.err { color: var(--error); font-size: 14px; font-weight: 500; }
.err::before { content: "Error: "; font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #3A3A3A; background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; }
.choice:has(input:checked) { border-color: var(--acid); }
.choice input, .consent input { accent-color: var(--acid); width: 18px; height: 18px; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { margin-top: 2px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.error-summary { border: 2px solid var(--error); border-radius: 10px; padding: 14px; display: grid; gap: 6px; }
.error-summary h2 { font-size: 18px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); text-decoration: underline; }
.status { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; background: var(--surface); }
.status h2 { font-size: 18px; }
.status pre { margin: 0; overflow-x: auto; font-size: 12px; background: #0A0A0A; padding: 12px; border-radius: 8px; max-height: 260px; }

/* Mini-player */
.player { position: fixed; z-index: 50; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now ctrl"; align-items: center; gap: 8px; padding: 8px;
  border-radius: 18px; background: color-mix(in srgb, #1C1C1C 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
@media (min-width: 1024px) {
  .player { left: calc(var(--side) + 28px); right: 28px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 1000px; margin-inline: auto; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ctrl now side"; padding: 10px 16px 10px 10px; gap: 14px; }
}
.pl-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 4px; }
.pl-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.pl-btn:hover { background: var(--surface-2); }
.pl-btn:disabled { opacity: .3; cursor: default; background: none; }
.pl-btn svg { width: 18px; height: 18px; }
.pl-listen { width: 48px; height: 48px; background: var(--acid); color: var(--ink); }
.pl-listen:hover { background: #E4FF4D; }
.pl-listen svg { width: 20px; height: 20px; }
button.pl-listen:disabled { background: var(--surface-2); color: var(--faint); opacity: 1; }
@media (max-width: 1023px) { .pl-prev { display: none; } }
.pl-now { grid-area: now; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 4px 10px 4px 4px; border-radius: 12px; }
.pl-now:hover { background: rgba(255,255,255,.05); }
.pl-now .cv { width: 46px; border-radius: 6px; }
.pl-txt { display: grid; min-width: 0; }
.pl-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-side { grid-area: side; display: none; }
@media (min-width: 1024px) { .pl-side { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; } }


/* Feature hero (On repeat) */
.feature { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); display: grid; gap: 24px; padding: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 72%, #0D0D0D) 0%, color-mix(in srgb, var(--c2) 38%, #0D0D0D) 100%); transition: background 400ms; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@media (min-width: 768px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 40px 44px; align-items: center; min-height: 400px; gap: 40px; } }
.feature-art { width: min(72%, 300px); justify-self: start; order: -1; }
@media (min-width: 768px) { .feature-art { width: min(100%, 380px); justify-self: end; order: 0; } }
.feature-art .cv { border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.feature-text { display: grid; gap: 14px; min-width: 0; align-content: center; }
.feature h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 0.94; letter-spacing: -0.045em; }
.feature h1 b { color: var(--acid); font-weight: 700; }
.now-line { display: grid; gap: 2px; padding-top: 6px; }
.now-line a { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.now-line a:hover { text-decoration: underline; text-underline-offset: 5px; }
.now-line span { color: rgba(246,241,231,.75); font-size: 16px; }
.feature .why { max-width: 46ch; color: #ECE7DC; font-size: 16px; line-height: 1.55; }
.feature-text > * { transition: opacity 220ms; }
.feature.swap .feature-text > *:not(h1), .feature.swap .feature-art { opacity: .2; }
.feature-art { transition: opacity 220ms; }

/* Square cards (On repeat row) */
.sq { all: unset; box-sizing: border-box; display: grid; gap: 10px; align-content: start; cursor: pointer; min-width: 0; border-radius: 10px; }
.sq .cv { border-radius: 10px; transition: transform 180ms; }
.sq:hover .cv { transform: translateY(-2px); }
.sq-play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--acid); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.4); opacity: 0; transform: translateY(6px); transition: opacity 180ms, transform 180ms; }
.sq-play svg { width: 18px; height: 18px; }
.sq-wrap { position: relative; display: block; }
.feature-art > a, .d-art > a { display: block; }
.sq:hover .sq-play, .sq:focus-visible .sq-play, .sq[aria-pressed="true"] .sq-play { opacity: 1; transform: none; }
.sq[aria-pressed="true"] .cv { box-shadow: 0 0 0 2px var(--acid); }
.sq:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

/* Two lists side by side */
.split { display: grid; gap: 44px; }
@media (min-width: 1100px) { .split { grid-template-columns: 1fr 1fr; gap: 44px; } }


/* Preview options bar */
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.opt-g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.opt-g span { font-weight: 600; margin-right: 4px; }
.opt-g button { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(17,17,17,.5); background: transparent; color: var(--ink); font-weight: 600; font-size: 12px; cursor: pointer; }
.opt-g button[aria-pressed="true"] { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.demo :focus-visible { outline-color: var(--ink); }

/* Top bar layout (phone always; desktop when chosen) */
.top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo actions" "tabs tabs"; align-items: center; column-gap: 16px; }
.top-logo { grid-area: logo; }
.top-actions { grid-area: actions; justify-self: end; }
.tabs { grid-area: tabs; min-width: 0; }
html.nav-top .side { display: none !important; }
@media (min-width: 1024px) {
  html:not(.nav-top) .top { display: none; }
  html.nav-top .app { display: block; }
  html.nav-top .top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo tabs actions"; padding-block: 12px; }
  html.nav-top .tabs { margin-top: 0; justify-self: center; }
  html.nav-top .player { left: 28px; }
}

/* Banner 1: the song is the headline */
.feat-title { font-size: clamp(44px, 6.6vw, 104px); line-height: 0.92; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.feat-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.feat-by { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; color: rgba(246,241,231,.82); }
.play-big { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 22px 6px 6px; border-radius: 999px; background: var(--acid); color: var(--ink); font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.play-big .disc { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--acid); display: grid; place-items: center; }
.play-big .disc svg { width: 18px; height: 18px; }
.play-big:hover { background: #E4FF4D; }
.play-big:disabled { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
.play-big:disabled .disc { background: #111; color: var(--faint); }

/* Banner 2: no banner, bigger first shelf */
.row.big { grid-auto-columns: min(78%, 320px); }
@media (min-width: 1024px) { .row.big { grid-auto-columns: calc((100% - 2 * 16px - var(--g)) / 3.25); } }

/* Spotify embed mockup inside the player */
.sp-mock { grid-area: now; display: none; min-width: 0; }
.sp-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 12px; background: #2A2A2A; }
.sp-mock .cv { width: 52px; border-radius: 6px; }
.sp-mock .pl-txt small.hint { color: var(--acid); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.sp-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acid); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sp-play:hover { background: #E4FF4D; }
.sp-play svg { width: 18px; height: 18px; }
.player.embed .sp-mock { display: block; }
.sp-live iframe { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; background: #2A2A2A; }
.player.embed .pl-now, .player.embed.has-sp #pl-listen-slot { display: none; }


/* Our Picks cards (v1 structure, dark) */
.pgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pcard { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 14px 16px; background: #151515; border: 1px solid var(--line); border-radius: 14px; transition: border-color 160ms; }
.pcard:hover { border-color: #4A4A4A; }
.pcard.promoted { border-color: color-mix(in srgb, var(--acid) 45%, var(--line)); }
.pcard .cv { border-radius: 10px; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
@media (max-width: 639px) {
  .pcard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; }
  .pcard-body { gap: 8px; }
}
.pcard .t { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pcard .t a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.pcard .t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .a { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; margin-top: -6px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; padding: 5px 7px; border: 1px solid #4A4A4A; border-radius: 4px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tag.solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.tag.acid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.tag.promo { border-color: var(--acid); color: var(--acid); }
.pcard-foot { margin-top: auto; padding-top: 2px; }
.pc-play { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid #4A4A4A; background: transparent; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.pc-play .disc { width: 32px; height: 32px; border-radius: 50%; background: var(--acid); color: var(--ink); display: grid; place-items: center; }
.pc-play .disc svg { width: 14px; height: 14px; }
.pc-play:hover { border-color: var(--acid); }
.pc-play[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); }


/* unpopular masthead (from version 1) */
.unpop-intro { display: grid; gap: 16px; margin-bottom: 22px; }
@media (min-width: 1024px) { .unpop-intro { grid-template-columns: 1fr 1fr; align-items: end; } }
.unpop-title { font-family: var(--display); font-size: clamp(56px, 8.6vw, 112px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; text-transform: lowercase; }
.unpop-title::after { content: ""; display: block; width: clamp(80px, 9vw, 124px); height: 7px; background: var(--acid); margin-top: 14px; }
.mast-title { font-family: var(--display); font-size: clamp(48px, 7.6vw, 104px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 700; }
.mast-title::after { content: ""; display: block; width: clamp(80px, 9vw, 124px); height: 7px; background: var(--acid); margin-top: 14px; }
.mast-title .q { color: var(--acid); }
.mast-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mast-line .all { margin-left: auto; }
.unpop-intro p { color: #DCD6CA; max-width: 48ch; font-size: 17px; line-height: 1.55; }
.flow-head .shelf-label { display: flex; align-items: baseline; gap: 12px; font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.flow-head .all { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; min-height: 40px; display: inline-flex; align-items: center; }
.flow-head .all:hover { color: var(--acid); }

/* unpopular cover flow (v1 effect) */
.flow { --cw: clamp(200px, 28vw, 360px); min-width: 0; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.flow-head h2 { font-size: 22px; letter-spacing: -0.025em; }
.flow-head h2 a { display: inline-flex; align-items: center; gap: 4px; }
.flow-head h2 a:hover { color: var(--acid); }
.flow-head h2 svg { width: 18px; height: 18px; color: var(--muted); }
.flow-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.flow-stage { position: relative; height: calc(var(--cw) + 24px); perspective: 1400px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden; margin-inline: calc(-1 * max(var(--g), env(safe-area-inset-left, 0px))) calc(-1 * max(var(--g), env(safe-area-inset-right, 0px))); }
.flow-stage:active { cursor: grabbing; }
.flow-stage:focus-visible { outline: 2px solid var(--acid); outline-offset: -4px; border-radius: 12px; }
.flow-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.flow-card { position: absolute; left: 50%; top: 0; width: var(--cw); display: block; transform-style: preserve-3d; transition: transform 520ms cubic-bezier(.2,.75,.2,1), opacity 300ms, filter 300ms; -webkit-user-drag: none; }
.flow-card .cv { border-radius: 10px; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.flow-card img { pointer-events: none; -webkit-user-drag: none; }
.flow-card:not(.is-center) { filter: brightness(.55); }
.flow-card:not(.is-center):hover { filter: brightness(.8); }
.flow-num { position: absolute; z-index: 2; left: 0; bottom: 0; background: var(--acid); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; padding: 8px 10px; border-radius: 0 8px 0 10px; font-variant-numeric: tabular-nums; }
.flow-caption { display: grid; justify-items: center; text-align: center; gap: 8px; margin-top: 10px; min-height: 176px; }
.flow-pill { display: inline-grid; justify-items: center; gap: 2px; padding: 10px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
.flow-pill .t { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.flow-pill .a { font-size: 14px; color: var(--muted); }
.flow-caption .why { max-width: 52ch; color: #DCD6CA; font-size: 16px; }
.flow-caption .actions { justify-content: center; }
.flow-ctrl { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; }
.flow-dots { display: flex; gap: 6px; align-items: center; margin-inline: 8px; }
.flow-dots span { width: 6px; height: 6px; border-radius: 50%; background: #3A3A3A; transition: width 160ms, background 160ms; }
.flow-dots span.on { width: 22px; border-radius: 3px; background: var(--acid); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
