/* =========================================================
   Chreang — marketing site
   THEMING: change the accent by setting data-accent on <html>
   (indigo | coral | emerald | violet | amber | rose | teal | mono)
   or add your own preset below with --h (hue) and --c (chroma).
   ========================================================= */

:root {
  /* Accent (default: indigo) */
  --h: 265;
  --c: 0.19;
  --accent: oklch(55% var(--c) var(--h));
  --accent-hover: oklch(49% var(--c) var(--h));
  --accent-soft: oklch(95% calc(var(--c) * 0.25) var(--h));
  --accent-ink: oklch(99% 0 0);
  --accent-glow: oklch(70% var(--c) var(--h) / 0.35);
  --accent-text: oklch(46% var(--c) var(--h)); /* accent used for text: passes 4.5:1 on the page background */

  /* Neutrals */
  --bg: oklch(99.5% 0.002 var(--h));
  --bg-tint: oklch(97.4% 0.006 var(--h));
  --surface: oklch(100% 0 0);
  --fg: oklch(19% 0.015 var(--h));
  --muted: oklch(50% 0.015 var(--h));
  --border: oklch(91% 0.008 var(--h));
  --border-strong: oklch(84% 0.01 var(--h));
  --dark: oklch(17% 0.02 var(--h));

  /* Type */
  --font: 'Inter Tight', 'Kantumruy Pro', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-km: 'Inter Tight', 'Kantumruy Pro', system-ui, sans-serif; /* Latin in Inter, Khmer glyphs fall through to Kantumruy */

  /* Shape & motion */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px oklch(20% 0.02 var(--h) / 0.05), 0 8px 24px -8px oklch(20% 0.02 var(--h) / 0.12);
  --shadow-lg: 0 30px 80px -20px oklch(20% 0.04 var(--h) / 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --maxw: 1180px;
}

/* Accent presets */
[data-accent="indigo"]  { --h: 265; --c: 0.19; }
[data-accent="coral"]   { --h: 32;  --c: 0.18; }
[data-accent="emerald"] { --h: 160; --c: 0.14; }
[data-accent="violet"]  { --h: 295; --c: 0.2; }
[data-accent="amber"]   { --h: 65;  --c: 0.16; }
[data-accent="rose"]    { --h: 5;   --c: 0.19; }
[data-accent="teal"]    { --h: 200; --c: 0.12; }
[data-accent="mono"]    { --h: 260; --c: 0; }
[data-accent="mono"] { --accent-text: oklch(22% 0 0); --accent: oklch(22% 0 0); --accent-hover: oklch(32% 0 0); --accent-soft: oklch(95% 0 0); --accent-glow: oklch(60% 0 0 / 0.25); }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(15% 0.012 var(--h));
    --bg-tint: oklch(18% 0.014 var(--h));
    --surface: oklch(21% 0.014 var(--h));
    --fg: oklch(96% 0.005 var(--h));
    --muted: oklch(70% 0.012 var(--h));
    --border: oklch(28% 0.014 var(--h));
    --border-strong: oklch(36% 0.016 var(--h));
    --accent: oklch(66% var(--c) var(--h));
    --accent-hover: oklch(72% var(--c) var(--h));
    --accent-soft: oklch(28% calc(var(--c) * 0.45) var(--h));
    --accent-ink: oklch(15% 0.02 var(--h));
    --accent-text: oklch(76% var(--c) var(--h));
    --dark: oklch(22% 0.02 var(--h));
  }
  :root[data-accent="mono"]:not([data-theme="light"]) { --accent-text: oklch(95% 0 0); --accent: oklch(95% 0 0); --accent-hover: oklch(85% 0 0); --accent-soft: oklch(28% 0 0); }
}
:root[data-theme="dark"] {
  --bg: oklch(15% 0.012 var(--h));
  --bg-tint: oklch(18% 0.014 var(--h));
  --surface: oklch(21% 0.014 var(--h));
  --fg: oklch(96% 0.005 var(--h));
  --muted: oklch(70% 0.012 var(--h));
  --border: oklch(28% 0.014 var(--h));
  --border-strong: oklch(36% 0.016 var(--h));
  --accent: oklch(66% var(--c) var(--h));
  --accent-hover: oklch(72% var(--c) var(--h));
  --accent-soft: oklch(28% calc(var(--c) * 0.45) var(--h));
  --accent-ink: oklch(15% 0.02 var(--h));
  --accent-text: oklch(76% var(--c) var(--h));
  --dark: oklch(22% 0.02 var(--h));
}
:root[data-theme="dark"][data-accent="mono"] { --accent-text: oklch(95% 0 0); --accent: oklch(95% 0 0); --accent-hover: oklch(85% 0 0); --accent-soft: oklch(28% 0 0); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.km { font-family: var(--font-km); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.display {
  margin: 0 0 20px;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin: 0 0 32px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.sub { margin: 16px 0 0; color: var(--muted); max-width: 34em; }
.sub a { color: var(--accent-text); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--ghost svg { transition: transform .2s var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: 18px; line-height: 1.05;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .01em; }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn--light { background: #fff; color: #111; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--fg);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--bg-tint); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--fg); }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo__mark {
  display: grid; place-items: center; flex: none; overflow: hidden;
  width: 44px; height: 44px; padding: 5px; border-radius: 13px;
  background: #fff; box-shadow: inset 0 0 0 1px oklch(0% 0 0 / .08);
  transition: background .2s;
}
.logo__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__actions .btn { margin-left: 6px; }
.nav__burger { display: none; }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats { display: flex; gap: 40px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.halo {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(20px);
}

.phone {
  position: relative;
  width: 290px; height: 590px;
  padding: 12px;
  border-radius: 48px;
  background: oklch(14% 0.01 var(--h));
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px oklch(35% 0.01 var(--h));
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 37px; overflow: hidden;
  background: oklch(13% 0.02 var(--h));
  color: #fff;
  padding: 56px 20px 22px;
  display: flex; flex-direction: column;
}
.np__art {
  position: relative;
  aspect-ratio: 1; border-radius: 20px;
  background-size: cover; background-position: center;
}
.np__badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: oklch(0% 0 0 / .5); backdrop-filter: blur(8px);
}
.live { width: 6px; height: 6px; border-radius: 50%; background: oklch(65% 0.22 25); animation: pulse 1.4s infinite; }
.np__meta { margin: 18px 0 14px; }
.np__meta strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.np__meta span { font-size: 12px; color: oklch(75% 0.01 var(--h)); }

.lyrics { display: grid; gap: 9px; margin-bottom: 18px; }
.lyric { display: block; height: 8px; width: var(--w); border-radius: 4px; background: oklch(100% 0 0 / .14); position: relative; overflow: hidden; }
.lyric--past { background: oklch(100% 0 0 / .32); }
.lyric--now { height: 10px; background: oklch(100% 0 0 / .22); }
.lyric--now i { position: absolute; inset: 0; width: 0; background: oklch(75% var(--c) var(--h)); border-radius: inherit; animation: sing 4s linear infinite; }
[data-accent="mono"] .lyric--now i { background: #fff; }

.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 14px; }
.wave i { flex: 1; height: 30%; border-radius: 2px; background: oklch(100% 0 0 / .5); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n)   { animation-delay: -.2s; }
.wave i:nth-child(3n+1) { animation-delay: -.5s; }
.wave i:nth-child(4n)   { animation-delay: -.8s; }
.wave i:nth-child(5n)   { animation-delay: -.35s; }

.np__progress { height: 3px; border-radius: 3px; background: oklch(100% 0 0 / .15); margin-bottom: auto; }
.np__progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: #fff; }
.np__controls { display: flex; align-items: center; justify-content: center; gap: 28px; }
.ctl { display: grid; place-items: center; width: 40px; height: 40px; color: oklch(85% 0 0); }
.ctl--main { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #111; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.25;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.float-card--fx { top: 14%; left: -2%; animation: float 6s ease-in-out infinite -2s; }
.float-card--like { bottom: 12%; right: -4%; animation: float 8s ease-in-out infinite -4s; }
.avatars { display: flex; }
.avatars img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -8px; }
.avatars img:first-child { margin-left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .sub { margin-inline: auto; }

/* ---------- Songs ---------- */
.songs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.song { position: relative; display: block; }
.song__art { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--bg-tint); }
.song__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.song__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0% 0 0 / .35), transparent 50%); opacity: 0; transition: opacity .3s; }
.play {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.song:hover .song__art img { transform: scale(1.05); }
.song:hover .song__art::after { opacity: 1; }
.song:hover .play, .song:focus-visible .play { opacity: 1; transform: none; }
.song__meta { padding: 14px 2px 0; }
.song__meta strong { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.song__meta span { font-size: 14px; color: var(--muted); }
.song__num { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 9px; border-radius: 999px; background: oklch(0% 0 0 / .35); backdrop-filter: blur(6px); }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 260px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 28em; }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.tile--wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile--wide .tile__copy { flex: 1; }
.tile--img {
  grid-row: span 2;
  position: relative; overflow: hidden;
  color: #fff; border: 0;
  background-color: var(--dark); background-size: cover; background-position: center;
  justify-content: flex-end;
}
.tile--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(10% 0.02 var(--h) / .92), oklch(10% 0.02 var(--h) / .1) 70%); }
.tile--img > * { position: relative; }
.tile--img p { color: oklch(88% 0.01 var(--h)); }
.tile--img .tile__icon { background: oklch(100% 0 0 / .14); color: #fff; backdrop-filter: blur(8px); }

.search-demo { flex: 1; display: grid; gap: 10px; max-width: 340px; }
.search-demo__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.search-demo__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.search-demo__row img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.search-demo__row span { flex: 1; line-height: 1.25; }
.search-demo__row b { display: block; font-size: 14px; font-weight: 600; }
.search-demo__row small { color: var(--muted); font-size: 12px; }
.search-demo__row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

.tile--full { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
.tile--full .tile__copy { flex: 1; }
.lyric-demo { flex: 1.2; display: flex; align-items: center; gap: 32px; }
.lyric-demo__word { font-size: clamp(44px, 5vw, 64px); font-weight: 600; line-height: 1.2; color: var(--accent); }
.lyric-demo__bars { flex: 1; display: grid; gap: 12px; }
.lyric-demo__bars span { position: relative; display: block; height: 10px; width: var(--w); border-radius: 5px; background: var(--border); overflow: hidden; }
.lyric-demo__bars .is-now i { position: absolute; inset: 0; width: 0; background: var(--accent); border-radius: inherit; animation: sing 4s linear infinite; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.how__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; }
.how__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li > span {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.steps li:hover > span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps h4 { margin: 4px 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--border-strong); }
.faq__list details:first-child { border-top: 1px solid var(--border-strong); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { margin: -6px 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: #fff;
}
.cta::before {
  content: ""; position: absolute; right: -10%; top: -60%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(60% var(--c) var(--h) / .55), transparent 65%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta p { margin: 12px 0 0; color: oklch(80% 0.01 var(--h)); font-size: 17px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h5 { margin: 0 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.footer__cols a.ficon { display: inline-flex; align-items: center; gap: 10px; }
.footer__cols a.ficon svg { flex: none; opacity: .8; transition: opacity .2s, color .2s; }
.footer__cols a.ficon:hover svg { opacity: 1; color: var(--accent-text); }
.footer__cols a { font-size: 15px; color: var(--muted); transition: color .2s; }
.footer__cols a:hover { color: var(--fg); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ---------- Discover page ---------- */
.nav__links a[aria-current="page"] { color: var(--fg); }
.nav__mobile a[aria-current="page"] { color: var(--accent); }
.h1 { margin: 0; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; display: flex; align-items: center; gap: 10px; }
.disc-hero { padding: clamp(40px, 6vw, 72px) 0 8px; }
.toolbar { display: flex; gap: 12px; margin-top: 32px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px;
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search kbd { font: 500 12px var(--font); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.seg { display: flex; padding: 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.seg button { display: grid; place-items: center; width: 42px; border-radius: 10px; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--bg-tint); color: var(--fg); }

.row-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.count { font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); letter-spacing: 0; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--accent-text); }

/* Cover artwork: soft pastel tile with a music note in a deeper tone of the same hue (one hue per singer). */
.cover {
  --bgL: 94.5%; --bgC: .035; --fgL: 60%; --fgC: .09;
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background: oklch(var(--bgL) var(--bgC) var(--hue, 265));
  color: oklch(var(--fgL) var(--fgC) var(--hue, 265));
}
.cover__note { width: 30%; height: auto; max-width: 96px; transition: transform .5s var(--ease); }
.rec:hover .cover__note, .featured:hover .cover__note { transform: scale(1.08) rotate(-4deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover { --bgL: 29%; --bgC: .05; --fgL: 76%; --fgC: .1; } }
:root[data-theme="dark"] .cover { --bgL: 29%; --bgC: .05; --fgL: 76%; --fgC: .1; }
.avatar {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font: 600 13px var(--font-km); color: #fff;
  background: linear-gradient(145deg, oklch(62% var(--c) calc(var(--h) + var(--o))), oklch(42% calc(var(--c) * .8) calc(var(--h) + var(--o) - 30)));
}
.avatar--sm { width: 22px; height: 22px; font-size: 11px; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
[data-accent="mono"] .avatar { --c: 0; }

/* Singers strip */
.singers-wrap { padding-top: 40px; }
.singers { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.singers::-webkit-scrollbar { display: none; }
.singer {
  flex: none; width: 112px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px 14px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.singer:hover { background: var(--bg-tint); }
.singer .avatar { margin-bottom: 8px; transition: box-shadow .2s; }
.singer[aria-checked="true"] { background: var(--accent-soft); }
.singer[aria-checked="true"] .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.singer__name { font: 600 14px/1.3 var(--font-km); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.singer__count { font-size: 12px; color: var(--muted); }

/* Featured */
#featuredWrap { padding-top: 28px; }
.featured {
  display: grid; grid-template-columns: 300px 1fr; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.featured:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.featured__art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.featured__art .cover--featured { width: 100%; height: 100%; }
.featured__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured:hover .featured__photo { transform: scale(1.04); }
.cover--featured { aspect-ratio: 1; height: auto; }
.featured__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.featured__title { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.featured__by { display: flex; align-items: center; gap: 10px; font-family: var(--font-km); font-weight: 500; color: var(--muted); }
.featured__cta { margin-top: 10px; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.tag { font: 600 11px var(--font); letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }

/* Recordings: grid */
.recs-wrap { padding-top: 56px; }
.recs[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.rec { position: relative; display: block; min-width: 0; }
.rec__art { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.rec__art .cover, .rec__art .rec__photo { transition: transform .6s var(--ease); }
.rec:hover .rec__art .cover, .rec:hover .rec__art .rec__photo { transform: scale(1.05); }
.rec__play {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: #111; box-shadow: 0 6px 20px oklch(0% 0 0 / .25);
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.rec:hover .rec__play, .rec:focus-visible .rec__play { opacity: 1; transform: none; }
.rec__num, .rec__go { display: none; }
.rec__meta { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; min-width: 0; }
.rec__title { font-size: 16px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec__extra { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__by { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.recs[data-view="grid"] .rec__tag { position: absolute; top: 10px; left: 10px; background: oklch(0% 0 0 / .35); border-color: transparent; color: #fff; backdrop-filter: blur(6px); }
.recs[data-view="grid"] .rec__tag:empty { display: none; }

/* Recordings: list */
.recs[data-view="list"] { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.recs[data-view="list"] .rec {
  display: grid; grid-template-columns: 32px 56px minmax(0, 1fr) 90px 40px; align-items: center; gap: 16px;
  padding: 12px 12px 12px 4px; border-bottom: 1px solid var(--border);
  transition: background-color .2s;
}
.recs[data-view="list"] .rec:hover { background: var(--bg-tint); }
.recs[data-view="list"] .rec__num { display: block; order: -1; font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.recs[data-view="list"] .rec__art { width: 56px; border-radius: 10px; }
.recs[data-view="list"] .rec__play { display: none; }
.recs[data-view="list"] .rec__meta { padding: 0; gap: 2px; }
.recs[data-view="list"] .rec__title { -webkit-line-clamp: 1; font-size: 15px; }
.recs[data-view="list"] .rec__extra { display: none; }
.recs[data-view="list"] .rec__by { font-size: 13px; margin: 0; }
.recs[data-view="list"] .rec__tag { justify-self: start; }
.recs[data-view="list"] .rec__go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--fg);
  transition: background-color .2s, color .2s, border-color .2s;
}
.recs[data-view="list"] .rec:hover .rec__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 64px 16px; color: var(--muted); }
.empty h3 { margin: 10px 0 0; font-size: 18px; color: var(--fg); }
.empty p { margin: 0 0 16px; }
.section--compact { padding-top: clamp(56px, 8vw, 96px); }

@media (max-width: 720px) {
  .featured { grid-template-columns: 1fr; }
  .cover--featured { aspect-ratio: 16/9; }
  .recs[data-view="grid"] { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .recs[data-view="list"] .rec { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 12px; padding: 10px 0; }
  .recs[data-view="list"] .rec__num, .recs[data-view="list"] .rec__tag { display: none; }
  .recs[data-view="list"] .rec__art { width: 48px; }
  .search kbd { display: none; }
  .singer { width: 96px; }
  .avatar--lg { width: 56px; height: 56px; font-size: 21px; }
}

/* ---------- Live data bits (avatars with photos, stats, skeletons) ---------- */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--md { width: 40px; height: 40px; font-size: 16px; }
.stat { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.stat svg { opacity: .7; }
.rec__stats, .featured__stats, .pl-stats, .un__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.rec__when { white-space: nowrap; }
.rec__by .km { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec__mv {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: #fff;
  background: oklch(0% 0 0 / .35); backdrop-filter: blur(6px);
}
.recs[data-view="list"] .rec__mv, .recs[data-view="list"] .rec__stats { display: none; }
.recs[data-view="list"] .rec__when { display: none; }

.skel { display: block; background: var(--bg-tint); border-radius: 8px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--surface) 70%, transparent), transparent); animation: shimmer 1.4s infinite; }
.skel--line { height: 12px; width: 80%; margin-top: 10px; }
.skel--short { width: 50%; }
.rec--skel .rec__art { aspect-ratio: 1; }
.recs[data-view="list"] .rec--skel { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recs[data-view="list"] .rec--skel .rec__art { width: 56px; }
.singer--skel { pointer-events: none; }
.singer--skel .skel--line { width: 70%; margin-top: 4px; }
@keyframes shimmer { to { transform: translateX(100%); } }

.recs--home[data-view="grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .recs--home[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Grid cards (Home Trending + Discover): photo cover with the text overlaid on it */
.recs[data-view="grid"] .rec { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; isolation: isolate; clip-path: inset(0 round var(--r)); background: var(--bg-tint); }
.recs[data-view="grid"] .rec__art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; clip-path: none; }
.recs[data-view="grid"] .rec__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 56px 16px 16px; gap: 4px; color: #fff;
  background: linear-gradient(to top, oklch(8% 0.02 var(--h) / .85) 0%, oklch(8% 0.02 var(--h) / .55) 55%, transparent 100%);
}
.recs[data-view="grid"] .rec__title { color: #fff; font-size: 17px; text-shadow: 0 1px 8px oklch(0% 0 0 / .35); }
.recs[data-view="grid"] .rec__extra { display: none; }
.recs[data-view="grid"] .rec__by { color: oklch(100% 0 0 / .85); }
.recs[data-view="grid"] .rec__by .avatar { display: none; }
.recs[data-view="grid"] .rec__when { color: oklch(100% 0 0 / .65); }
.recs[data-view="grid"] .rec__stats { display: flex; gap: 12px; color: oklch(100% 0 0 / .8); }
.recs[data-view="grid"] .rec__stats .stat { color: inherit; }
.recs[data-view="grid"] .rec__play { top: 12px; right: 12px; bottom: auto; width: 40px; height: 40px; }

.float-card__text { display: flex; flex-direction: column; min-width: 0; max-width: 180px; }
.float-card__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.demo-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--accent-soft); color: var(--fg); max-width: 40em; }
#sentinel { height: 1px; }
.end { text-align: center; color: var(--muted); font-size: 14px; margin: 40px 0 0; }

/* ---------- Player page ---------- */
.player-page { padding-top: 24px; padding-bottom: 24px; }
.player-page.is-loading .pl-grid { opacity: .55; transition: opacity .2s; pointer-events: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.back:hover { color: var(--fg); }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }

.stage {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: oklch(14% 0.02 var(--h));
  display: grid; place-items: center;
}
.stage__backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.stage__backdrop:not([style*="url"]) { background: radial-gradient(60% 80% at 50% 40%, oklch(45% var(--c) var(--h) / .6), transparent 70%); opacity: 1; }
.stage__art { position: relative; width: min(58%, 340px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px oklch(0% 0 0 / .6); }
.stage__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); z-index: 1; }
.stage__art img.is-on { opacity: 1; }
.stage__media { display: none; }
.stage.is-video .stage__media { display: block; position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.stage.is-video .stage__art, .stage.is-video .stage__backdrop { display: none; }
.stage__play {
  position: absolute; z-index: 3;
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: #111; box-shadow: 0 12px 40px oklch(0% 0 0 / .35);
  transition: transform .2s var(--ease), opacity .3s var(--ease);
}
.stage__play svg { margin-left: 3px; }
.stage__play:hover { transform: scale(1.06); }
/* While playing, the big button becomes a pause button: shown on hover/focus, and always on touch screens. */
.is-playing .stage__play { opacity: 0; }
.is-playing .stage__play svg { margin-left: 0; }
.is-playing .stage:hover .stage__play, .is-playing .stage__play:focus-visible { opacity: 1; }
@media (hover: none) { .is-playing .stage__play { opacity: .9; width: 60px; height: 60px; top: auto; right: 16px; bottom: 16px; } }
/* Photo slideshow: the singer's album fills the stage, slowly zooming (Ken Burns) while playing. */
.stage.has-photos .stage__art { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.stage.has-photos .stage__backdrop { display: none; }
.stage.has-photos .stage__art img { object-position: 50% 30%; transform-origin: 50% 35%; animation: kenburns 20s ease-in-out infinite alternate; animation-play-state: paused; }
.is-playing .stage.has-photos .stage__art img { animation-play-state: running; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .stage.has-photos .stage__art img { animation: none; } }
/* Spectrum overlay (audio recordings) */
.stage__scrim { position: absolute; inset: auto 0 0 0; height: 55%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: linear-gradient(to top, oklch(8% 0.02 var(--h) / .78), transparent); }
.stage__spectrum { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; z-index: 2; pointer-events: none; color: #fff; opacity: 0; transition: opacity .5s; }
.is-playing .stage__scrim, .is-playing .stage__spectrum { opacity: 1; }
.stage.is-video .stage__scrim, .stage.is-video .stage__spectrum { display: none; }
.stage__badge { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; color: #fff; background: oklch(0% 0 0 / .45); backdrop-filter: blur(8px); }

.controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px 14px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.ctrl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--fg); transition: background-color .2s; }
.ctrl:hover { background: var(--bg-tint); }
.ctrl--main { width: 44px; height: 44px; background: var(--accent); color: var(--accent-ink); }
.ctrl--main:hover { background: var(--accent-hover); }
.ctrl .i-mute, .is-muted .ctrl .i-vol { display: none; }
.is-muted .ctrl .i-mute { display: block; }
.time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 38px; text-align: center; }
.seek { flex: 1; min-width: 0; height: 20px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--border-strong); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 0; }
.seek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border-strong); }
.seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.media-error { margin: 12px 4px 0; font-size: 14px; color: oklch(55% 0.18 25); }

.pl-info { margin-top: 28px; }
.pl-title { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.pl-extra { margin: 6px 0 0; color: var(--muted); }
.pl-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pl-by strong { display: block; font-weight: 600; }
.pl-when { font-size: 13px; color: var(--muted); }
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pl-stats { font-size: 14px; gap: 6px 20px; }
.pl-stats svg { width: 16px; height: 16px; }
.pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.comments { margin-top: 36px; }
.comments__note { margin: 6px 0 20px; font-size: 14px; color: var(--muted); }
.comments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.comment__head { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.comment__head span { font-size: 12px; color: var(--muted); }
.comment__text { margin: 2px 0 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.comments__empty { color: var(--muted); font-size: 14px; padding: 16px 0; }

.upnext { position: sticky; top: 88px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.upnext__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.upnext__head .h3 { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.upnext__list { list-style: none; margin: 0; padding: 8px; max-height: calc(100vh - 200px); overflow-y: auto; }
.un { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background-color .2s; }
.un:hover { background: var(--bg-tint); }
.un.is-current { background: var(--accent-soft); }
.rec__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.un__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.un__art { position: relative; width: 56px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.un__eq { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; background: oklch(0% 0 0 / .45); }
.un__eq i { width: 3px; height: 30%; background: #fff; border-radius: 2px; animation: wave 1s ease-in-out infinite; animation-play-state: paused; }
.un__eq i:nth-child(2) { animation-delay: -.4s; } .un__eq i:nth-child(3) { animation-delay: -.7s; }
.is-playing .un__eq i { animation-play-state: running; }
.un__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.un__title { font-size: 14px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un__by { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un__sub { font-size: 12px; gap: 4px 10px; }
.un__sub svg { width: 12px; height: 12px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); flex: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px oklch(0% 0 0 / .25); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.pl-missing { padding: 120px 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; translate: -50% 20px; padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 960px) {
  .pl-grid { grid-template-columns: 1fr; }
  .upnext { position: static; }
  .upnext__list { max-height: none; }
}
@media (max-width: 640px) {
  .stage { aspect-ratio: 1; border-radius: var(--r); margin: 0 -4px; }
  .stage__art { width: 62%; }
  .controls { gap: 8px; }
  .time { min-width: 32px; font-size: 12px; }
  .pl-actions { width: 100%; }
  .pl-actions .btn { flex: 1; }
}

/* Rounded boxes that hold images/animations: clip them from the first paint.
   Safari otherwise only applies the rounded corners once the box is hovered (compositing bug). */
.stage, .stage__art, .rec__art, .song__art, .un__art, .how__media, .tile--img, .cover, .search-demo__row img {
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.stage { clip-path: inset(0 round var(--r-lg)); }
.stage__art { clip-path: inset(0 round 22px); }
.rec__art, .song__art { clip-path: inset(0 round var(--r)); }
.recs[data-view="list"] .rec__art, .un__art { clip-path: inset(0 round 10px); }
.how__media { clip-path: inset(0 round var(--r-lg)); }
.featured, .upnext, .tile { isolation: isolate; }

/* ---------- Home: hero texture, ticker, stats band ---------- */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 85% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(var(--border) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero > .container { position: relative; }

.ticker { display: flex; align-items: center; border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 20px 0 max(16px, calc((100vw - var(--maxw)) / 2 + 24px)); height: 64px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface); position: relative; z-index: 1; box-shadow: 14px 0 14px -6px var(--surface); }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 28px; white-space: nowrap; border-left: 1px solid var(--border); transition: background-color .2s; }
.tick:hover { background: var(--bg-tint); }
.tick__t { font-size: 14px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tick__s { font-size: 13px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__viewport { overflow-x: auto; } .ticker__track { animation: none; } }

.band { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.band::before { content: ""; position: absolute; left: 50%; top: -80%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, oklch(60% var(--c) var(--h) / .45), transparent 65%); pointer-events: none; }
.band__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.band__item { display: flex; flex-direction: column; gap: 6px; padding-left: 24px; border-left: 1px solid oklch(100% 0 0 / .16); }
.band__item strong { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.band__item span { color: oklch(78% 0.012 var(--h)); font-size: 15px; }
@media (max-width: 640px) { .band__grid { grid-template-columns: 1fr; gap: 28px; } .ticker__label { padding-left: 16px; } .ticker__label { height: 56px; } .tick { height: 56px; padding: 0 20px; } }

.section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.steps li { transition: transform .3s var(--ease); }

/* ---------- Legal pages (privacy) ---------- */
.legal-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: 24px; padding-bottom: clamp(56px, 8vw, 104px); }
.toc { position: sticky; top: 92px; }
.toc summary { list-style: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px 14px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc__links { display: flex; flex-direction: column; }
.toc__links a { display: flex; gap: 10px; padding: 8px 12px 8px 14px; border-left: 2px solid var(--border); font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.toc__links a span { flex: none; font-variant-numeric: tabular-nums; opacity: .6; }
.toc__links a:hover { color: var(--fg); background: var(--bg-tint); }
.toc__links a.is-active { color: var(--fg); font-weight: 600; border-left-color: var(--accent); background: var(--accent-soft); }

.prose { max-width: 720px; min-width: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: color-mix(in oklch, var(--fg) 86%, var(--bg)); overflow-wrap: anywhere; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose section { scroll-margin-top: 92px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.prose h2 .num { flex: none; font-size: .6em; font-weight: 600; letter-spacing: 0; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prose h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose .short { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent); color: var(--fg); font-size: 15px; }
.prose > p:first-child { font-size: 18px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .toc { position: static; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; color: var(--fg); }
  .toc summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
  .toc__d[open] summary::after { rotate: 225deg; translate: 0 2px; }
  .toc__links { padding: 0 8px 10px; max-height: 60vh; overflow-y: auto; }
  .prose h2 { margin-top: 40px; }
}

/* ---------- Theme picker ---------- */
.theme { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.theme__toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease);
}
.theme__toggle:hover { transform: rotate(-12deg); }
.theme__panel {
  position: absolute; right: 0; bottom: 60px;
  width: 212px; padding: 16px;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.theme.is-open .theme__panel { opacity: 1; visibility: visible; transform: none; }
.theme__panel p { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.theme__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme__swatches button {
  aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / .1);
  transition: transform .2s var(--ease);
}
.theme__swatches button:hover { transform: scale(1.1); }
.theme__swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg); }
.theme__swatches [data-set="indigo"]  { background: oklch(55% 0.19 265); }
.theme__swatches [data-set="coral"]   { background: oklch(62% 0.18 32); }
.theme__swatches [data-set="emerald"] { background: oklch(58% 0.14 160); }
.theme__swatches [data-set="violet"]  { background: oklch(55% 0.2 295); }
.theme__swatches [data-set="amber"]   { background: oklch(72% 0.16 65); }
.theme__swatches [data-set="rose"]    { background: oklch(60% 0.19 5); }
.theme__swatches [data-set="teal"]    { background: oklch(58% 0.12 200); }
.theme__swatches [data-set="mono"]    { background: linear-gradient(135deg, #111 50%, #eee 50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes sing { from { width: 0; } to { width: 100%; } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .lyric--now i { width: 60%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .stats { justify-content: center; }
  .hero__visual { min-height: 560px; }
  .songs { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--img { grid-row: auto; min-height: 340px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__mobile {
    display: grid; gap: 4px;
    max-height: 0; overflow: hidden;
    padding: 0 24px;
    transition: max-height .35s var(--ease), padding .35s var(--ease);
  }
  .nav__mobile a { padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--border); }
  .nav.is-open .nav__mobile { max-height: 320px; padding: 8px 24px 20px; }
  .how, .faq { grid-template-columns: 1fr; }
  .how__media { aspect-ratio: 16/10; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav__actions .btn { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--full { grid-column: auto; flex-direction: column; align-items: stretch; }
  .lyric-demo { gap: 20px; }
  .search-demo { max-width: none; }
  .tile { padding: 24px; }
  .songs { gap: 14px; }
  .stats { gap: 24px; }
  .stats dd { font-size: 22px; }
  .hero__visual { min-height: 520px; }
  .phone { width: 250px; height: 510px; border-radius: 42px; }
  .phone__screen { border-radius: 32px; padding: 50px 16px 18px; }
  .float-card { font-size: 13px; padding: 10px 12px 10px 10px; }
  .float-card--fx { left: 0; top: 6%; }
  .float-card--like { right: 0; bottom: 6%; }
  .halo { width: 360px; height: 360px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .theme { right: 16px; bottom: 16px; }
}
