:root {
  --bg: #06060a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --brand: #f6a400;
  --brand-soft: rgba(246, 164, 0, 0.13);
  --green: #1db954;
  --ok: #34d399;
  --no: #f87171;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(246, 164, 0, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(120, 80, 255, 0.08), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-text span { font-size: 12px; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.site-nav a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 99px; border: 1px solid transparent;
  transition: all .25s var(--ease);
}
.site-nav a:hover { color: #fff; background: var(--surface); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--surface-2); border-color: var(--line); }

/* ---------- Layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 8px 24px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin: 8px 0 28px; }
.crumbs a:hover { color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }

h1 {
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 800; margin-bottom: 20px; text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.03em;
  font-weight: 800; margin-bottom: 18px; text-wrap: balance;
}
h3 { font-size: 17px; letter-spacing: -.01em; font-weight: 700; }

.section { margin-top: 88px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 14px; max-width: 52ch; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lede { color: var(--text-soft); font-size: 18px; line-height: 1.65; max-width: 62ch; }
.lede + .lede { margin-top: 14px; color: var(--muted); font-size: 16px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 800; line-height: 1.1;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, #ffc400, #ff8a00 55%, #ff5e3a);
  color: #1a0800; box-shadow: 0 12px 34px rgba(255, 138, 0, .3);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255, 138, 0, .42); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-strong); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn svg { flex-shrink: 0; }
.cta-note { margin-top: 14px; color: var(--muted); font-size: 13px; max-width: 56ch; }
.cta-note a { color: var(--brand); border-bottom: 1px solid rgba(246,164,0,.35); }
.no-account { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; color: var(--text, #fff); font-weight: 600; white-space: nowrap; }
.no-account svg, .mobile-cta-note svg { color: var(--ok); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-art .stack {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #15151c;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.hero-art .stack img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .s0 { inset: 6% 6% 6% 6%; z-index: 3; }
.hero-art .s1 { inset: 12% 0 12% 22%; z-index: 2; transform: rotate(6deg); opacity: .75; }
.hero-art .s2 { inset: 12% 22% 12% 0; z-index: 1; transform: rotate(-6deg); opacity: .6; }
.hero-art.count-1 .s0 { inset: 0; }
.hero-art .glow {
  position: absolute; inset: 10%; z-index: 0; border-radius: 50%;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.5); opacity: .55;
}
.hero-badge {
  position: absolute; z-index: 4; left: -14px; bottom: 9%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 12, 18, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.hero-badge svg { color: var(--green); flex-shrink: 0; }
.hero-badge b { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.hero-badge span { display: block; font-size: 12px; color: var(--muted); }

.fallback-art {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a1d05, #3b1840 60%, #101826);
  color: rgba(255,255,255,.85); font-weight: 800; font-size: 28px; letter-spacing: -.02em;
  text-align: center; padding: 12%;
}

/* ---------- Facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.fact { padding: 24px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.fact dd { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.measured { margin-top: 12px; color: var(--faint); font-size: 12px; }

/* ---------- Playlists ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pl-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.pl-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.pl-cover { aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pl-card:hover .pl-cover img { transform: scale(1.04); }
.pl-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.pl-meta strong { color: #fff; font-weight: 700; }
.pl-desc { color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.pl-links { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.pl-links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-strong); color: #fff;
  transition: background .2s, border-color .2s;
}
.pl-links a:hover { background: var(--surface-2); }
.pl-links a.spotify { border-color: rgba(29,185,84,.45); color: #b9f5cf; }
.pl-links a.spotify:hover { background: rgba(29,185,84,.14); }

.pl-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.is-single .pl-card { flex-direction: row; }
.is-single .pl-cover { width: 300px; flex-shrink: 0; }
.is-single .pl-body { padding: 26px 28px; gap: 8px; }
.is-single h3 { font-size: 22px; }
.is-single .pl-links { margin-top: 4px; padding-top: 4px; }
.pl-embed { display: block; width: 100%; border: 0; border-radius: 12px; margin-top: 14px; background: rgba(255,255,255,.04); }
.is-single .pl-card:hover { transform: none; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-card {
  padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
}
.fit-card h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fit-card p { color: var(--text-soft); font-size: 15.5px; line-height: 1.65; }
.fit-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.fit-yes { background: linear-gradient(180deg, rgba(52,211,153,.08), rgba(255,255,255,.02)); border-color: rgba(52,211,153,.22); }
.fit-yes .fit-icon { background: rgba(52,211,153,.16); color: var(--ok); }
.fit-no .fit-icon { background: rgba(248,113,113,.14); color: var(--no); }

/* ---------- Artists ---------- */
.artists-intro { color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  padding: 10px 16px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text-soft); font-size: 14px; font-weight: 500;
}

/* ---------- Recent adds ---------- */
.adds { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.adds li {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, .8fr); gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line); align-items: baseline;
}
.adds li:first-child { border-top: 0; }
.adds time { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.adds .song { font-weight: 650; overflow-wrap: anywhere; }
.adds .artist { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.adds-note { margin-top: 10px; color: var(--faint); font-size: 12px; }

/* ---------- SOTD picks ---------- */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pick { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pick-art { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: #111; }
.pick-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pick:hover .pick-art img { transform: scale(1.05); }
.pick time { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pick strong { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pick span { color: var(--muted); font-size: 13px; }
.link-more { color: var(--muted); font-size: 14px; font-weight: 600; }
.link-more:hover { color: #fff; }

/* ---------- How to submit ---------- */
.submit-box {
  border-radius: var(--radius-xl); padding: 40px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(246,164,0,.14), transparent 70%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(246,164,0,.22);
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 6px 0 30px; counter-reset: s; }
.steps li { counter-increment: s; color: var(--text-soft); font-size: 14.5px; line-height: 1.55; padding-top: 44px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px;
  border: 1px solid rgba(246,164,0,.35);
}
.steps strong { color: #fff; }

.routes { width: 100%; border-collapse: collapse; margin-top: 34px; font-size: 14px; }
.routes caption { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 12px; }
.routes th, .routes td { text-align: left; padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.routes thead th { border-top: 0; color: var(--faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding-top: 0; }
.routes tbody th { font-weight: 700; color: #fff; white-space: nowrap; }
.routes td { color: var(--text-soft); }
.routes td:last-child { color: var(--muted); }
.routes tr.best th, .routes tr.best td { background: rgba(246,164,0,.07); }
.routes tr.best th { border-radius: 10px 0 0 10px; }
.routes tr.best td:last-child { border-radius: 0 10px 10px 0; }
.tag-best {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px;
  background: var(--brand); color: #1a0800; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}
.tag-noacc { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.rate-note { margin-top: 14px; color: var(--faint); font-size: 12px; }

/* ---------- Transparency ---------- */
.trust {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
}
.trust-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--brand); }
.trust h2 { font-size: 20px; margin-bottom: 6px; }
.trust p { color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-size: 17px; font-weight: 650; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 44px 22px 0; color: var(--text-soft); max-width: 72ch; }

/* ---------- Related ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.related a:hover { background: var(--surface-2); transform: translateY(-1px); }
.related a::after { content: "→"; color: var(--muted); }

/* ---------- Hub ---------- */
.hub-hero { text-align: center; max-width: 760px; margin: 10px auto 0; }
.hub-hero .lede { margin: 0 auto; }
.hub-hero .cta-row { justify-content: center; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 64px; }
.genre-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.genre-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.genre-covers {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 16 / 9; padding: 0 18px; background: #111; overflow: hidden;
}
.genre-bg {
  position: absolute; inset: -30%; z-index: -1; background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.4) brightness(.7); transform: scale(1.1);
}
.genre-covers img {
  height: 74%; width: auto; aspect-ratio: 1 / 1; object-fit: cover; min-width: 0;
  border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12);
  transition: transform .5s var(--ease);
}
.genre-covers[style*="--n:1"] img { height: 82%; }
.genre-covers[style*="--n:3"] img { height: 58%; }
.genre-card:hover .genre-covers img { transform: translateY(-4px) scale(1.03); }
.genre-body { padding: 18px 20px 20px; }
.genre-body h2 { font-size: 19px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.genre-body h2::after { content: "→"; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.genre-card:hover .genre-body h2::after { transform: translateX(4px); color: var(--brand); }
.genre-body p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; transform: translateY(140%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta-note {
  display: flex; align-items: center; justify-content: center; gap: 5px; width: max-content; margin: 0 auto 6px;
  padding: 3px 10px; border-radius: 99px; background: rgba(6,6,10,.8);
  color: var(--muted); font-size: 12px; font-weight: 500; backdrop-filter: blur(8px);
}
.mobile-cta .btn { width: 100%; box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 10px 30px rgba(255,138,0,.3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 380px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .site-header-inner { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .site-nav { justify-content: center; }
}
@media (max-width: 720px) {
  .wrap { padding: 4px 16px 32px; }
  .site-header { position: relative; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex-shrink: 0; padding: 7px 12px; }
  .section { margin-top: 64px; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-badge { left: 0; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .is-single .pl-card { flex-direction: column; }
  .is-single .pl-cover { width: 100%; max-height: 360px; }
  .is-single .pl-body { padding: 18px; }
  .adds li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 16px; }
  .submit-box { padding: 26px 18px; border-radius: var(--radius-lg); }
  .routes thead { display: none; }
  .routes, .routes caption, .routes tbody, .routes tr, .routes th, .routes td { display: block; width: 100%; }
  .routes tr { padding: 14px 12px; border-top: 1px solid var(--line); border-radius: 12px; }
  .routes th, .routes td { border: 0; padding: 2px 0; }
  .routes tbody th { white-space: normal; }
  .routes tr.best { background: rgba(246,164,0,.07); }
  .routes tr.best th, .routes tr.best td { background: none; }
  .trust { flex-direction: column; }
  .faq summary { font-size: 16px; }
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
