/* Earworm. Colours follow the album art of whatever is playing (--accent-h and --accent-s). */
@property --accent-h { syntax: '<number>'; inherits: true; initial-value: 268; }
@property --hue-2 { syntax: '<number>'; inherits: true; initial-value: 318; }
@property --hue-3 { syntax: '<number>'; inherits: true; initial-value: 208; }
@property --accent-s { syntax: '<percentage>'; inherits: true; initial-value: 88%; }

:root {
  color-scheme: dark;
  --accent-h: 268;
  --accent-s: 88%;
  --hue-2: 318;
  --hue-3: 208;
  --accent-l: var(--l1-dark, 70%);
  --l2: var(--l2-dark, 74%);
  --accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-2: hsl(var(--hue-2) var(--accent-s) var(--l2));
  --accent-soft: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.16);
  --accent-ink: #06080b;
  --bg: #09090d;
  --solid: #15151c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-2: #cdcdd6;
  --muted: #9a9aa8;
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --series: var(--accent);
  --heat-0: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --side: 232px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: --accent-h 1.4s ease, --hue-2 1.4s ease, --hue-3 1.4s ease, --accent-s 1.4s ease;
}
:root[data-theme="light"] {
  color-scheme: light;
  --accent-l: var(--l1-light, 46%);
  --l2: var(--l2-light, 48%);
  --accent-ink: #ffffff;
  --bg: #f2f2f5;
  --solid: #ffffff;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-2: rgba(15, 15, 25, 0.07);
  --border: rgba(15, 15, 25, 0.1);
  --text: #101015;
  --text-2: #35353f;
  --muted: #5d5d69;
  --good: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --heat-0: rgba(15, 15, 25, 0.07);
  --shadow: 0 18px 40px rgba(30, 30, 60, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 8px; }
a { color: inherit; text-underline-offset: 3px; }
code { display: inline-block; background: var(--surface-2); border-radius: 8px; padding: 3px 8px; margin: 2px 6px 2px 0; font-size: 13px; overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 24px; text-align: center; font: 600 12px/1 inherit; font-family: inherit; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 5px 7px; margin-right: 4px; color: var(--text-2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 14px 4px; }
.icon { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--solid); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#wash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.7); transform: scale(1.35); opacity: 0; transition: opacity 0.9s ease; }
#wash img.in { opacity: 0.3; }
#wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg) 88%); }
:root[data-theme="light"] #wash img.in { opacity: 0.2; }
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

/* ---------- frame ---------- */
.shell { display: flex; align-items: flex-start; }
.side {
  position: sticky; top: 0; width: var(--side); height: 100dvh; flex: none;
  display: flex; flex-direction: column; gap: 22px; padding: 22px 14px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 6px 20px rgba(224, 71, 158, 0.35); transition: transform 0.3s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.wordmark { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.wordmark b { font-weight: 800; background: linear-gradient(100deg, #a98bff, #f472b6 55%, #ffab6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .wordmark b { background-image: linear-gradient(100deg, #6d3df0, #c0267a 55%, #d9641d); }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side-foot { margin-top: auto; }
.side nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px;
  border-radius: 14px; color: var(--muted); text-decoration: none; font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.side nav a:hover { background: var(--surface); color: var(--text); transform: translateX(2px); }
.side nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.side nav a[aria-current="page"] .icon { color: var(--accent); }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 11px; bottom: 11px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.page { flex: 1; min-width: 0; }
.bar-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 32px; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(22px); border-bottom: 1px solid var(--border); }
.bar-top .brand { display: none; }
.search-btn { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); margin-right: auto; color: var(--muted); font-weight: 500; }
.search-btn span { margin-right: auto; }
.avatar { display: flex; border-radius: 50%; }
#banner, main { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
main { padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
body.has-mini main { padding-bottom: 130px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(24px); border-top: 1px solid var(--border); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1; min-height: 50px; background: none; border: 0; padding: 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--accent); }

.enter > * { animation: rise 0.5s var(--ease) both; }
.enter > :nth-child(2) { animation-delay: 0.06s; }
.enter > :nth-child(3) { animation-delay: 0.12s; }
.enter > :nth-child(4) { animation-delay: 0.18s; }
.enter > :nth-child(n + 5) { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- controls ---------- */
button, .button, input {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 15px;
}
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; cursor: pointer;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, filter 0.2s;
}
button:hover, .button:hover { border-color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.5); }
button:active, .button:active { transform: scale(0.96); }
button:disabled { opacity: 0.45; cursor: default; }
.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--accent-ink); }
.primary:hover { filter: brightness(1.08); border-color: transparent; }
.danger { color: var(--bad); }
.small.button, button.small { min-height: 32px; padding: 3px 11px; font-size: 12px; border-radius: 10px; }
.icon-btn { width: 40px; height: 40px; padding: 0; background: transparent; border-color: transparent; }
.icon-btn:hover { background: var(--surface-2); }
input { min-height: 40px; }
input[type="text"], input[type="search"] { width: 100%; max-width: 320px; }
input[type="number"] { width: 100px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
details summary { cursor: pointer; color: var(--muted); margin: 10px 0; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.tight { gap: 2px; flex-wrap: nowrap; }
.row.center { justify-content: center; }
.row.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.head, .toolbar, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.head p, .section-head p { margin: 4px 0 0; }
.section-head { margin-top: 8px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.tabs a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="true"] { background: var(--text); color: var(--bg); }

/* ---------- cards and grids ---------- */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 18px; align-items: stretch; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.stat:hover { transform: translateY(-3px); border-color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.stat .label, .record-card .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .label .icon, .record-card .label .icon { color: var(--accent); }
.stat .value { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; overflow-wrap: anywhere; }
.stat .note { color: var(--muted); font-size: 12.5px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--warn); }

.hint { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px dashed hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45); background: var(--accent-soft); }
.hint > .icon { color: var(--accent); }
.hint div { display: flex; flex-direction: column; margin-right: auto; }
.hint span { color: var(--text-2); font-size: 13px; }

/* ---------- artwork ---------- */
.art { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, hsl(var(--hue, 200) 55% 42%), hsl(calc(var(--hue, 200) + 60) 55% 22%)); color: #fff; font-weight: 800; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade 0.4s ease; }
.art.round { border-radius: 50%; }
.art.sm { width: 40px; height: 40px; border-radius: 8px; }
.art.sm.round { border-radius: 50%; }
.art.xl { width: 250px; height: 250px; border-radius: 20px; font-size: 90px; box-shadow: var(--shadow); }
.art.xl.round { border-radius: 50%; }
.art.fill { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; font-size: 48px; }
.art.fill.round { border-radius: 50%; }
@keyframes fade { from { opacity: 0; } }

/* ---------- now playing ---------- */
.hero { padding: 34px; overflow: hidden; background: linear-gradient(130deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.2), var(--surface) 55%); }
.hero-live { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 110px; align-items: center; }
.record { position: relative; width: 250px; height: 250px; flex: none; }
.record > .art { position: relative; z-index: 1; }
.vinyl {
  position: absolute; width: 236px; height: 236px; top: 7px; left: 88px; border-radius: 50%;
  background:
    conic-gradient(from 40deg, transparent 0 12%, rgba(255, 255, 255, 0.16) 18%, transparent 26% 62%, rgba(255, 255, 255, 0.12) 68%, transparent 76%),
    repeating-radial-gradient(circle, #101014 0 2px, #1d1d23 3px 4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.label-art { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; }
.label-art .art { width: 100%; height: 100%; border-radius: 50%; font-size: 28px; }
.label-art::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: #0b0b0f; }
.record.spinning .vinyl { animation: spin 3.2s linear infinite; }
.vinyl.solo { position: relative; left: 0; top: 0; }
.vinyl.solo::before { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.vinyl.solo::after { content: ""; position: absolute; inset: 47%; border-radius: 50%; background: #0b0b0f; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-text { min-width: 0; }
.hero-text h1 { font-size: clamp(30px, 4.2vw, 54px); margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-text h1 a { text-decoration: none; }
.hero-text h1 a:hover { text-decoration: underline; }
.hero-text .by { font-size: 18px; color: var(--text-2); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.actions { margin: 16px 0 10px; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(0.25); }
.eq.on i { animation: bounce 0.9s ease-in-out infinite alternate; }
.eq.on i:nth-child(2) { animation-delay: -0.5s; animation-duration: 0.7s; }
.eq.on i:nth-child(3) { animation-delay: -0.2s; animation-duration: 1.05s; }
.eq.on i:nth-child(4) { animation-delay: -0.7s; animation-duration: 0.8s; }
.eq.on i:nth-child(5) { animation-delay: -0.35s; }
.eq.on i:nth-child(6) { animation-delay: -0.9s; animation-duration: 0.75s; }
.eq.on i:nth-child(7) { animation-delay: -0.1s; animation-duration: 1.1s; }
.eq.big { height: 70px; gap: 7px; }
.eq.big i { width: 9px; border-radius: 6px; }
@keyframes bounce { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.progress { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; max-width: 560px; }
.progress .track { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.progress .track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.5s linear; }
.time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.chip .icon { color: var(--accent); }

#mini { position: fixed; z-index: 25; left: calc(var(--side) + 20px); right: 20px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: color-mix(in srgb, var(--solid) 78%, transparent); backdrop-filter: blur(26px); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; animation: rise 0.4s var(--ease); }
.mini-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.mini-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s linear; }
#mini .who { margin-right: auto; }

#stage { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #07070a; color: #f5f5f7; overflow: auto; animation: fade 0.4s ease; --text: #f5f5f7; --text-2: #cdcdd6; --muted: #a9a9b6; --surface-2: rgba(255, 255, 255, 0.12); --border: rgba(255, 255, 255, 0.14); --accent-l: var(--l1-dark, 68%); --accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l)); --accent-2: hsl(var(--hue-2) var(--accent-s) var(--l2-dark, 72%)); --accent-soft: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18); --accent-ink: #06080b; }
body.staged { overflow: hidden; }
.stage-wash { position: absolute; inset: 0; overflow: hidden; }
.stage-wash img { width: 100%; height: 100%; object-fit: cover; filter: blur(80px) saturate(1.6) brightness(0.55); transform: scale(1.3); animation: drift 22s ease-in-out infinite alternate; }
.stage-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; }
.stage-clock { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.85; }
.stage-body { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(90px, 12vw, 210px); padding: 20px 6vw 60px; }
.stage-body .record, .stage-body .art.xl { width: min(40vw, 52vh); height: min(40vw, 52vh); }
.stage-body .vinyl { width: 94%; height: 94%; top: 3%; left: 36%; }
.stage-text { min-width: 0; max-width: 620px; }
.stage-text h1 { font-size: clamp(36px, 5.4vw, 82px); margin: 12px 0; }
.stage-text .by { font-size: clamp(18px, 2vw, 28px); color: var(--text-2); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; isolation: isolate; transition: background 0.2s; animation: rise 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.list li::before { content: ""; position: absolute; z-index: -1; left: 0; top: 4px; bottom: 4px; width: var(--share, 0); border-radius: 12px; background: var(--accent-soft); opacity: 0.7; }
.list li:hover { background: var(--surface-2); }
.list.compact li { grid-template-columns: 40px minmax(0, 1fr) auto; }
.list.plain li { grid-template-columns: minmax(0, 1fr) auto; }
.list.history li { grid-template-columns: 48px 40px minmax(0, 1fr) auto; animation: none; }
.rank { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.list li:nth-child(-n + 3) .rank { color: var(--accent); }
.when { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.who { display: block; min-width: 0; }
.who .title, .who .by { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.who .title { font-weight: 650; }
.who .by { color: var(--muted); font-size: 13px; }
a.title:hover, a.by:hover { text-decoration: underline; }
.figure { text-align: right; white-space: nowrap; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.summary { margin-bottom: 14px; }
.big { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }

.covers { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.covers.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.covers li { min-width: 0; animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.covers a { display: block; text-decoration: none; }
.cover-wrap { position: relative; display: block; margin-bottom: 10px; }
.cover-wrap .art { transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.covers a:hover .art { transform: translateY(-6px); box-shadow: var(--shadow); }
.badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 800; }
.covers .title, .covers .by { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.covers .title { font-weight: 650; }
.covers .by { color: var(--muted); font-size: 12.5px; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; padding-top: 8px; }
.place { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; min-width: 0; }
.place .art { width: min(100%, 108px); height: auto; aspect-ratio: 1; font-size: 34px; margin-bottom: 10px; transition: transform 0.3s var(--ease); }
.place.p1 .art { width: min(100%, 140px); box-shadow: 0 0 0 4px var(--accent), var(--shadow); }
.place:hover .art { transform: translateY(-6px) scale(1.03); }
.place .title { max-width: 100%; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place .by { color: var(--muted); font-size: 12.5px; }
.step { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 10px; border-radius: 14px 14px 6px 6px; background: var(--surface-2); font-size: 20px; font-weight: 800; }
.p1 .step { height: 84px; background: linear-gradient(180deg, var(--accent-soft), var(--surface-2)); color: var(--accent); }
.p2 .step { height: 60px; }

/* ---------- week goal ---------- */
.week { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.week-side { width: 100%; }
.goal-text { text-align: center; margin-bottom: 14px; }
.goal-text .row { justify-content: center; }
.goal-ring { display: grid; place-items: center; width: 136px; height: 136px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--share) * 360deg), var(--surface-2) 0); }
.goal-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 50%; background: var(--solid); }
.goal-ring strong { font-size: 28px; line-height: 1.1; }
.goal-ring span { color: var(--muted); font-size: 12px; }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 76px; }
.week-day { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.week-day i { width: 100%; max-width: 22px; height: max(4px, calc(var(--share) * 52px)); border-radius: 6px; background: var(--surface-2); }
.week-day span { font-size: 11px; color: var(--muted); font-weight: 600; }
.week-day:not(.future) i { background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.55); }
.week-day.today i { background: var(--accent); }
.week-day.today span { color: var(--text); }

/* ---------- feature, insights, recaps, awards ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: linear-gradient(130deg, var(--accent-soft), var(--surface) 60%); }
.feature h1 { margin: 8px 0; }
.feature .by { font-size: 17px; color: var(--text-2); }
.persona { font-size: clamp(26px, 3vw, 36px); font-weight: 850; letter-spacing: -0.03em; background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small-persona { font-size: 24px; }
.traits { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.trait-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.trait-line { position: relative; height: 8px; margin: 7px 0 5px; border-radius: 8px; background: var(--surface-2); }
.trait-line i { position: absolute; top: 50%; left: clamp(8px, var(--at), calc(100% - 8px)); width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--solid); transform: translate(-50%, -50%); }
.clock-wrap { display: grid; place-items: center; }
.chart.clock-wrap svg { width: min(100%, 360px); }
.records { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.record-card { display: block; min-width: 0; padding: 16px; border-radius: 16px; background: var(--surface-2); text-decoration: none; transition: transform 0.25s var(--ease); }
a.record-card:hover { transform: translateY(-3px); }
.record-card .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; }
.record-card .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.recap-hero { text-align: center; padding: 44px 22px; background: radial-gradient(80% 120% at 50% 0%, var(--accent-soft), var(--surface)); }
.recap-hero .eyebrow { justify-content: center; }
.recap-big { font-size: clamp(64px, 13vw, 150px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.05; background: linear-gradient(110deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.recap-unit { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.overall { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.overall i { display: block; height: 100%; width: var(--share); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.awards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.award { --tier: var(--muted); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: transform 0.25s var(--ease); }
.award:hover { transform: translateY(-4px); }
.award.bronze { --tier: #d08b4c; }
.award.silver { --tier: #b9c3d3; }
.award.gold { --tier: #f2c14e; }
.award.platinum { --tier: #67d4f5; }
.award.diamond { --tier: #b794ff; }
.medal { display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: 12px; border-radius: 50%; background: conic-gradient(var(--tier) calc(var(--share) * 360deg), var(--surface-2) 0); }
.award.locked .medal { background: conic-gradient(var(--accent) calc(var(--share) * 360deg), var(--surface-2) 0); }
.medal > div { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--solid); color: var(--tier); }
.award .tier { margin: 6px 0 0; font-weight: 800; color: var(--tier); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.award p { margin-bottom: 2px; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .baseline { stroke: var(--border); stroke-width: 1; }
.chart .column { fill: var(--series); transition: filter 0.2s; }
.chart .column.on { filter: brightness(1.3); }
.chart .area { fill: var(--series); opacity: 0.14; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .marker { fill: var(--series); stroke: var(--solid); stroke-width: 2; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart .ring { fill: none; stroke: var(--border); }
.chart .clock-peak { fill: var(--text); font-size: 22px; font-weight: 800; }
.heat-wrap { overflow-x: auto; }
.chart.heat-wrap svg { width: auto; margin: 0 auto; }
.chart .h0, .legend .h0 { fill: var(--heat-0); background: var(--heat-0); }
.chart .h1, .legend .h1 { fill: color-mix(in srgb, var(--accent) 28%, var(--solid)); background: color-mix(in srgb, var(--accent) 28%, var(--solid)); }
.chart .h2, .legend .h2 { fill: color-mix(in srgb, var(--accent) 50%, var(--solid)); background: color-mix(in srgb, var(--accent) 50%, var(--solid)); }
.chart .h3, .legend .h3 { fill: color-mix(in srgb, var(--accent) 74%, var(--solid)); background: color-mix(in srgb, var(--accent) 74%, var(--solid)); }
.chart .h4, .legend .h4 { fill: var(--accent); background: var(--accent); }
.legend { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.table-scroll { max-height: 280px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; }
th { position: sticky; top: 0; background: var(--solid); color: var(--muted); }
#tooltip { position: fixed; z-index: 200; pointer-events: none; padding: 8px 12px; border-radius: 12px; background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; }
#tooltip b { display: block; }
#tooltip span { color: var(--muted); }

/* ---------- share ---------- */
.share-stage { display: flex; justify-content: center; margin-bottom: 18px; }
.share-canvas { max-width: min(100%, 460px); height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.share-canvas.receipt { max-width: min(100%, 360px); border-radius: 4px; }

/* ---------- import, settings, messages ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; text-align: center; border: 2px dashed var(--border); border-radius: 18px; transition: border-color 0.2s, background 0.2s; }
.drop > .icon { color: var(--accent); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 44px; min-height: 30px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.account { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.switch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.notice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warn); }
#banner .notice { margin-top: 18px; }
.notice.bad { border-left-color: var(--bad); }
.notice.good { border-left-color: var(--good); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 16px; }
.empty > .icon { color: var(--accent); }
.empty p { color: var(--muted); max-width: 420px; }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.tall { height: 300px; }
@keyframes shimmer { to { background-position: -200% 0; } }

#toasts { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
body.has-mini #toasts { bottom: 100px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: 16px; background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow); animation: slide 0.4s var(--ease); transition: opacity 0.3s, transform 0.3s; }
.toast.bad { border-color: var(--bad); }
.toast.out { opacity: 0; transform: translateX(24px); }
.toast div { min-width: 0; }
.toast strong, .toast span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast span { color: var(--muted); font-size: 13px; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }

/* ---------- search and sheets ---------- */
#modal { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; }
.scrim { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.6); backdrop-filter: blur(6px); animation: fade 0.2s ease; }
.sheet { position: relative; width: min(640px, 100%); max-height: 74vh; display: flex; flex-direction: column; padding: 14px; border-radius: 22px; background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: auto; animation: rise 0.25s var(--ease); }
.palette-head { display: flex; align-items: center; gap: 12px; padding: 2px 8px 12px; border-bottom: 1px solid var(--border); }
.palette-head .icon { color: var(--accent); }
.palette-head input.palette-input { flex: 1; max-width: none; background: none; border: 0; outline: none; font-size: 17px; }
.palette-list { overflow: auto; padding-top: 6px; min-height: 0; }
.palette-title { padding: 10px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.palette-row { display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 12px; padding: 7px 10px; background: none; border-color: transparent; text-align: left; font-weight: 500; }
.palette-row[aria-selected="true"] { background: var(--accent-soft); }
.palette-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid button { flex-direction: column; min-height: 84px; }

/* ---------- signed out ---------- */
body.signed-out main { max-width: 1120px; gap: 44px; padding-top: 22px; }
.landing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: 52vh; }
.landing h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 850; letter-spacing: -0.045em; }
.landing h1 em { font-style: normal; background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--text-2); max-width: 520px; margin: 20px 0 26px; }
.button.spotify { min-height: 56px; padding: 0 30px; border-radius: 99px; font-size: 17px; background: #1ed760; border-color: transparent; color: #04130a; box-shadow: 0 14px 34px rgba(30, 215, 96, 0.32); margin-bottom: 16px; }
.button.spotify:hover { transform: translateY(-2px); border-color: transparent; }
.landing-art { position: relative; display: grid; place-items: center; gap: 34px; }
.landing-art .vinyl { width: min(80vw, 360px); height: min(80vw, 360px); animation: spin 9s linear infinite; box-shadow: 0 30px 90px hsl(var(--accent-h) var(--accent-s) 40% / 0.4); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.setup form input { max-width: 360px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .grid.main-side { grid-template-columns: minmax(0, 1fr); }
  .week { flex-direction: row; justify-content: center; gap: 32px; }
  .week-side { max-width: 360px; }
  .hero-live { gap: 100px; }
  .hero .record, .hero .art.xl { width: 200px; height: 200px; }
  .hero .vinyl { width: 188px; height: 188px; top: 6px; left: 72px; }
}
@media (max-width: 900px) {
  .side { display: none; }
  .signed-in .tabbar { display: flex; }
  .bar-top { padding: 10px 16px; gap: 8px; }
  .bar-top .brand { display: flex; padding: 0; }
  .bar-top .brand span { display: none; }
  .search-btn kbd { display: none; }
  #banner, main { padding-left: 16px; padding-right: 16px; }
  body.signed-in main { padding-bottom: 110px; }
  body.signed-in.has-mini main { padding-bottom: 180px; }
  #mini { left: 10px; right: 10px; bottom: 72px; }
  #toasts { bottom: 80px; right: 10px; left: 10px; align-items: flex-end; }
  body.has-mini #toasts { bottom: 150px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing { grid-template-columns: minmax(0, 1fr); }
  .stage-body { flex-direction: column; gap: 30px; text-align: center; }
  .stage-body .record, .stage-body .art.xl { width: min(62vw, 40vh); height: min(62vw, 40vh); }
  .stage-body .vinyl { display: none; }
  .stage-text .eyebrow, .stage-text .chips, .stage-text .progress { justify-content: center; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .hero { padding: 22px; }
  .hero-live { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 22px; }
  .hero .vinyl { display: none; }
  .hero .eyebrow, .hero .chips, .hero .actions { justify-content: center; }
  .progress { margin-left: auto; margin-right: auto; }
  .hide-small { display: none; }
  .search-btn span { display: none; }
  .search-btn { width: auto; }
  .card { padding: 16px; }
  .week { flex-direction: column; }
  .covers { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .covers.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .covers.five li:nth-child(n + 4) { display: none; }
  .list li { grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; padding: 7px 4px; }
  .list.compact li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .list.plain li { grid-template-columns: minmax(0, 1fr) auto; }
  .list.history li { grid-template-columns: 42px 40px minmax(0, 1fr) auto; }
  .list .art { width: 44px; height: 44px; }
  .list .art.sm { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .eq.on i { transform: scaleY(0.7); }
}

/* ---------- polish ---------- */
.backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .backdrop::after { opacity: 0.045; }
#wash img.in { opacity: 0.36; }
.card, .stat, .award, .feature-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.22); }
:root[data-theme="light"] .card, :root[data-theme="light"] .stat, :root[data-theme="light"] .award { box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(30, 30, 60, 0.07); }

.greet h1 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.035em; }
.greet em { font-style: normal; background: linear-gradient(105deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet p { margin: 6px 0 0; }
.section-head h2::before { content: ""; display: inline-block; width: 4px; height: 17px; margin-right: 10px; vertical-align: -3px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }

.hero { position: relative; isolation: isolate; padding: 42px 36px 60px; border-color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 70px hsl(var(--accent-h) var(--accent-s) 18% / 0.35); }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.15) 10%, #000 75%); mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.15) 10%, #000 75%); }
.hero-art img { position: absolute; right: -8%; top: -45%; width: 72%; height: 190%; object-fit: cover; filter: blur(46px) saturate(1.8); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate, fade 0.9s ease; }
:root[data-theme="light"] .hero-art img { opacity: 0.28; }
.viz { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; display: flex; align-items: flex-end; gap: 3px; height: 46px; padding: 0 16px; opacity: 0.55; }
.viz i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; transform-origin: bottom; transform: scaleY(0.12); background: linear-gradient(to top, color-mix(in oklab, var(--accent-2) var(--t), var(--accent)), transparent); }
.viz.on i { animation: wave var(--d) ease-in-out var(--delay) infinite alternate; }
@keyframes wave { from { transform: scaleY(0.14); } to { transform: scaleY(1); } }
.record > .art { box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tonearm { position: absolute; z-index: 2; left: 127%; top: -5%; width: 5px; height: 60%; border-radius: 4px; background: linear-gradient(90deg, #6d6d78, #e9e9ef 45%, #7a7a86); transform-origin: 50% 0; transform: rotate(-9deg); transition: transform 1s var(--ease); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.tonearm::before { content: ""; position: absolute; left: -10px; top: -12px; width: 25px; height: 25px; border-radius: 50%; background: radial-gradient(circle, #f2f2f6 0 20%, #565661 22% 55%, #b9b9c4 58%); }
.tonearm i { position: absolute; left: -5px; bottom: -14px; width: 15px; height: 24px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }
.record.spinning .tonearm { transform: rotate(13deg); }

.played { min-width: 0; }
.played .section-head { margin: 4px 0 12px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.play { min-width: 0; scroll-snap-align: start; text-decoration: none; transition: transform 0.25s var(--ease); animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.play:hover { transform: translateY(-5px); }
.play .art { margin-bottom: 9px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
.play .title, .play .by, .play .when { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.play .title { font-weight: 650; font-size: 13.5px; }
.play .by { color: var(--text-2); font-size: 12.5px; }
.play .when { color: var(--muted); font-size: 11.5px; }

.stat { display: flex; flex-direction: column; }
.stat .spark { display: block; width: 100%; height: 34px; margin-top: auto; padding-top: 8px; box-sizing: content-box; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--accent-soft); }
.faces { display: flex; height: 42px; margin-top: auto; padding-top: 8px; }
.faces .art { width: 34px; height: 34px; margin-right: -9px; border: 2px solid var(--solid); transition: margin 0.3s var(--ease), transform 0.3s var(--ease); }
.stat:hover .faces .art { margin-right: 4px; }

.chart .fade-top { stop-color: var(--series); stop-opacity: 0.42; }
.chart .fade-end { stop-color: var(--series); stop-opacity: 0; }
.chart .area.graded { opacity: 1; }
.chart .line { filter: drop-shadow(0 6px 8px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4)); }

.side nav a[aria-current="page"] { background: linear-gradient(100deg, var(--accent-soft), transparent); box-shadow: inset 0 0 0 1px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.22); }
.place.p1 .art { box-shadow: 0 0 0 3px var(--solid), 0 0 0 6px var(--accent), 0 16px 44px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.4); }
.list .art { transition: transform 0.25s var(--ease); }
.list li:hover .art { transform: scale(1.08) rotate(-2deg); }
.cover-wrap { overflow: visible; }
.covers a:hover .art { transform: translateY(-6px) scale(1.03); }

@media (max-width: 1180px) { .hero { padding: 34px 28px 56px; } }
@media (max-width: 720px) {
  .hero { padding: 24px 16px 52px; }
  .tonearm { display: none; }
  .strip { grid-auto-columns: 112px; gap: 12px; }
  .hero-art img { width: 120%; right: -10%; }
}

/* ---------- colour matching ---------- */
:root[data-colour="vivid"] {
  --bg: hsl(var(--accent-h) calc(var(--accent-s) * 0.38) 4.5%);
  --solid: hsl(var(--accent-h) calc(var(--accent-s) * 0.26) 9.5%);
  --surface: hsl(var(--accent-h) var(--accent-s) 82% / 0.055);
  --surface-2: hsl(var(--accent-h) var(--accent-s) 84% / 0.1);
  --border: hsl(var(--accent-h) var(--accent-s) 82% / 0.13);
}
:root[data-theme="light"][data-colour="vivid"] {
  --bg: hsl(var(--accent-h) calc(var(--accent-s) * 0.45) 95%);
  --solid: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: hsl(var(--accent-h) var(--accent-s) 25% / 0.08);
  --border: hsl(var(--accent-h) var(--accent-s) 30% / 0.14);
}

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { --c: var(--accent-h); position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.2; background: radial-gradient(closest-side, hsl(var(--c) var(--accent-s) 52% / 0.9), transparent); transition: opacity 1.2s ease; animation: float 29s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -24vmax; top: -34vmax; }
.aurora i:nth-child(2) { --c: var(--hue-2); right: -28vmax; top: -20vmax; animation-duration: 37s; animation-delay: -11s; }
.aurora i:nth-child(3) { --c: var(--hue-3); left: 14%; bottom: -48vmax; animation-duration: 33s; animation-delay: -21s; }
.aurora i:nth-child(4) { --c: var(--hue-2); right: 4%; bottom: -30vmax; width: 44vmax; height: 44vmax; animation-duration: 23s; animation-delay: -5s; }
@keyframes float { 35% { transform: translate3d(15vmax, 9vmax, 0) scale(1.22); } 70% { transform: translate3d(-9vmax, 15vmax, 0) scale(0.86); } 100% { transform: translate3d(11vmax, -7vmax, 0) scale(1.08); } }
:root[data-colour="vivid"] .aurora i { opacity: 0.3; }
:root.is-playing[data-colour="vivid"] .aurora i { opacity: 0.42; }
:root[data-theme="light"] .aurora i { opacity: 0.16; }
:root[data-theme="light"].is-playing[data-colour="vivid"] .aurora i { opacity: 0.24; }
:root[data-colour="subtle"] .aurora i { animation: none; }
#stage .aurora i { opacity: 0.4; mix-blend-mode: screen; }
:root.is-playing #stage .aurora i { opacity: 0.55; animation-name: float; }

.bloom { position: fixed; z-index: 90; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, transparent 52%, hsl(var(--accent-h) var(--accent-s) 60% / 0.26) 80%, hsl(var(--hue-2) var(--accent-s) 68% / 0.45) 93%, transparent); animation: bloom 1.6s var(--ease) forwards; }
@keyframes bloom { from { transform: scale(0.04); opacity: 1; } to { transform: scale(1); opacity: 0; } }

.hero { background: linear-gradient(125deg, hsl(var(--accent-h) var(--accent-s) 55% / 0.24), hsl(var(--hue-2) var(--accent-s) 55% / 0.08) 48%, hsl(var(--hue-3) var(--accent-s) 55% / 0.16)), var(--surface); }
.record::before { content: ""; position: absolute; inset: -17%; border-radius: 50%; pointer-events: none; opacity: 0.34; filter: blur(40px); background: conic-gradient(hsl(var(--accent-h) var(--accent-s) 62%), hsl(var(--hue-2) var(--accent-s) 62%), hsl(var(--hue-3) var(--accent-s) 62%), hsl(var(--accent-h) var(--accent-s) 62%)); }
:root:not([data-colour="subtle"]) .record.spinning::before { animation: spin 11s linear infinite, breathe 2.6s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.3; } to { opacity: 0.62; } }

.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.swatches:empty { display: none; }
.swatches span { margin-right: 8px; }
.swatch, .swatch:hover { width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; background: transparent; }
.swatch::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; border-radius: 50%; background: hsl(var(--c) var(--accent-s) 62%); box-shadow: 0 0 16px hsl(var(--c) var(--accent-s) 62% / 0.75); transition: transform 0.2s var(--ease); }
.swatch:hover::before { transform: scale(1.25); }
.swatch[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--solid), 0 0 0 4px var(--text), 0 0 18px hsl(var(--c) var(--accent-s) 62% / 0.8); }
.switch select { margin-left: auto; max-width: 100%; }
select { min-height: 40px; max-width: 100%; font: inherit; color: var(--text); background: var(--solid); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }

@media (max-width: 720px) {
  .swatches { justify-content: center; }
  .switch { flex-wrap: wrap; }
}

/* keep small text readable on bright covers */
.hero .muted, .hero .time, .hero .swatches { color: var(--text-2); }
.hero-art img { filter: blur(46px) saturate(1.7) brightness(0.68); }
:root[data-theme="light"] .hero-art img { filter: blur(46px) saturate(1.7); opacity: 0.24; }
