/* Hear Christ Radio
   Palette: Vigil navy faceplate, candle-gold needle, first-light page. */
:root {
  --navy: #0F1E3A;
  --navy-2: #182B50;
  --navy-line: #2A3F68;
  --on-navy: #EEF2FA;
  --on-navy-2: #A9B7D3;
  --gold: #F2A93B;
  --gold-deep: #D98E1F;
  --on-gold: #2A1A00;

  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --ink: #0F1E3A;
  --ink-2: #4A5A78;
  --ink-3: #75839E;
  --line: #D6DDE8;
  --blue: #2852A3;
  --focus: #2852A3;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --player-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1328;
    --surface: #111D38;
    --surface-2: #15233F;
    --ink: #EAF0FA;
    --ink-2: #A3B1CB;
    --ink-3: #7787A6;
    --line: #223457;
    --blue: #8DB0F5;
    --focus: #F2A93B;
    --navy: #0C1832;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1328; --surface: #111D38; --surface-2: #15233F; --ink: #EAF0FA; --ink-2: #A3B1CB;
  --ink-3: #7787A6; --line: #223457; --blue: #8DB0F5; --focus: #F2A93B; --navy: #0C1832;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--player-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body.has-player { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #F6B957; }
.btn-ghost { border-color: var(--navy-line); color: var(--on-navy); background: transparent; }
.btn-ghost svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost:hover { border-color: var(--on-navy-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Faceplate (header + tuner) ---------- */
.faceplate {
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(242,169,59,.14), transparent 60%),
    var(--navy);
  color: var(--on-navy);
  padding-bottom: 28px;
  position: relative;
}
.faceplate.compact { padding-bottom: 0; }
.faceplate.compact .tuner { display: none; }
.faceplate.searching { padding-bottom: 0; }
.faceplate.searching .tuner { display: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 64px; height: 64px; object-fit: contain; margin-block: -6px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; font-variation-settings: "opsz" 40; }

.search { position: relative; flex: 0 1 320px; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--on-navy-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border-radius: 999px; border: 1.5px solid var(--navy-line);
  background: var(--navy-2); color: var(--on-navy);
  font: inherit; font-size: .95rem;
}
.search input::placeholder { color: var(--on-navy-2); }
.search input:focus { outline: none; border-color: var(--gold); }

.tuner { padding-top: clamp(20px, 5vw, 56px); }
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 96;
  max-width: 21ch;
  margin: 0;
  text-wrap: balance;
}

/* The one big call to action */
.listen-btn {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: clamp(26px, 4vw, 40px);
  min-height: 84px; padding: 12px 40px 12px 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--on-gold);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: -.01em; font-variation-settings: "opsz" 40;
  box-shadow: 0 18px 40px -16px rgba(242,169,59,.55);
  transition: background-color .15s, transform .1s;
}
.listen-btn:hover { background: #F6B957; }
.listen-btn:active { transform: scale(.98); }
.listen-btn[disabled] { opacity: .5; cursor: not-allowed; }
.listen-icon {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
}
.listen-icon svg { width: 28px; height: 28px; fill: currentColor; }
.listen-icon .i-play { margin-left: 3px; }
.listen-btn .i-pause, .listen-btn.is-playing .i-play { display: none; }
.listen-btn.is-playing .i-pause { display: block; }

.dial-hint { margin: clamp(36px, 5vw, 52px) 0 0; color: var(--on-navy-2); font-size: .95rem; }

/* The dial: a horizontally scrolling band of stations under a fixed gold needle. */
.dial {
  position: relative;
  margin: 12px calc(var(--gutter) * -1) 0;
  border-block: 1px solid var(--navy-line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}
.dial::before, .dial::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none;
}
.dial::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.dial::after { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.dial-scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.dial-scroller::-webkit-scrollbar { display: none; }
.dial-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.dial-track {
  display: flex; align-items: stretch;
  padding-inline: 50%;
  width: max-content;
  position: relative;
}
.dial-track::before {
  /* tick marks: tall every 5th */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(169,183,211,.55) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(169,183,211,.28) 0 1px, transparent 1px 12px);
  background-size: 100% 26px, 100% 12px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.station {
  scroll-snap-align: center;
  flex: none;
  min-width: 128px;
  padding: 38px 26px 22px;
  background: none; border: 0; cursor: pointer;
  color: var(--on-navy-2);
  text-align: center;
  display: grid; gap: 2px; justify-items: center;
  transition: color .2s;
}
.station-freq { font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.station-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; white-space: nowrap; font-variation-settings: "opsz" 24; }
.station:hover { color: var(--on-navy); }
.station.is-empty { opacity: .45; }
.station[aria-pressed="true"] { color: var(--on-navy); }
.station[aria-pressed="true"] .station-name { color: var(--gold); }
.station:focus-visible { outline-offset: -6px; }

.needle {
  position: absolute; left: 50%; top: -7px; height: 40px; width: 3px; translate: -50% 0;
  background: var(--gold); border-radius: 3px; z-index: 3; pointer-events: none;
  box-shadow: 0 0 18px 2px rgba(242,169,59,.45);
}
.needle::before {
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0;
  border: 7px solid transparent; border-top-color: var(--gold); border-bottom: 0;
}


/* Sound + Language controls under the dial */
.tune-options { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 22px; }
.tune-group { display: flex; align-items: center; gap: 12px; }
.tune-label { color: var(--on-navy-2); font-size: .92rem; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--navy-line); }
.seg button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-navy-2); font-size: .92rem; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.seg button:hover { color: var(--on-navy); }
.seg button[aria-pressed="true"] { background: var(--on-navy); color: var(--navy); }
#langSelect {
  -webkit-appearance: none; appearance: none;
  min-height: 46px; padding: 0 42px 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--navy-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B7D3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  border: 1px solid var(--navy-line); color: var(--on-navy); font: inherit; font-size: .92rem; font-weight: 600;
}
#langSelect:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#langSelect option { color: #0F1E3A; background: #fff; }

/* ---------- Filters ---------- */
main { outline: none; }
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 28px 0 18px;
}
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { float: left; margin-right: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 600; padding: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.result-count { margin-left: auto; color: var(--ink-3); font-size: .9rem; }

/* ---------- Song list ---------- */
.list-title { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -.01em; margin: 32px 0 12px; }
.filters + .list-title { margin-top: 8px; }
.song-list { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.song-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, .9fr) auto auto 52px;
  align-items: center; gap: 18px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  border-radius: 0;
  transition: background-color .15s;
}
.song-row:hover { background: var(--surface); }
.song-row.is-current { background: var(--surface); }
.song-row.is-current .song-title { color: var(--blue); }
.thumb { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--line); position: relative; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-main { min-width: 0; }
.song-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.25;
  text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variation-settings: "opsz" 24;
}
.song-title::after { content: ""; position: absolute; inset: 0; } /* whole row opens the song */
.song-artist { color: var(--ink-2); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-topics { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; color: var(--ink-2);
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  white-space: nowrap; text-decoration: none;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--gold)); }
.song-meta { color: var(--ink-2); font-size: .88rem; white-space: nowrap; display: flex; gap: 14px; }
.song-meta .sound-acoustic { color: var(--ink); }
.song-dur { color: var(--ink-3); font-size: .88rem; font-variant-numeric: tabular-nums; }
.row-play {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.row-play:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.row-play svg { width: 18px; height: 18px; fill: currentColor; }
.row-play .i-pause { display: none; }
.song-row.is-playing .row-play { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.song-row.is-playing .row-play .i-play { display: none; }
.song-row.is-playing .row-play .i-pause { display: block; }
.demo-badge { font-size: .72rem; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--ink-3); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; font-family: var(--font-body); }

/* Equalizer overlay on the current thumbnail */
.eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; background: rgba(15,30,58,.55); }
.song-row.is-current .eq { display: flex; }
.eq span { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; }
.song-row.is-playing .eq span { animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.35s; }
.eq span:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }

.empty {
  text-align: left; padding: 48px 0 64px; max-width: 52ch;
}
.empty h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.01em; }
.empty p { color: var(--ink-2); margin: 0 0 18px; }
.empty .btn { background: var(--ink); color: var(--bg); }

/* ---------- Song page ---------- */
.back {
  display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px;
}
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.song-hero {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px);
  align-items: start; padding: 8px 0 40px;
}
.song-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--line); box-shadow: 0 30px 60px -30px rgba(15,30,58,.5); }
.song-cover img, .song-cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-info h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 0; text-wrap: balance; font-variation-settings: "opsz" 96;
}
.song-by { font-size: 1.2rem; color: var(--ink-2); margin: 10px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; }
.facts div { display: grid; }
.facts dt { font-size: .8rem; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.song-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn-play-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-play-lg svg { width: 22px; height: 22px; }
.btn-line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-line svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.song-desc { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; margin: 24px 0 0; }
.song-topics-lg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.song-topics-lg .tag { font-size: .9rem; padding: 6px 14px; }
.song-topics-lg .tag:hover { border-color: var(--ink-3); color: var(--ink); }
.scripture { margin-top: 18px; font-size: .98rem; }
.scripture a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

.listen {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px); margin-bottom: 48px;
}
.listen h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.listen > p { color: var(--ink-2); margin: 4px 0 18px; }
.listen-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px;
  border-radius: var(--r-md); text-decoration: none; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; text-align: left; width: 100%;
  transition: filter .15s, transform .1s;
}
.svc:hover { filter: brightness(1.06); }
.svc:active { transform: scale(.98); }
.svc svg { width: 30px; height: 30px; }
.svc small { display: block; font-weight: 500; font-size: .8rem; opacity: .85; }
.svc-spotify { background: #1DB954; color: #04210F; }
.svc-apple { background: linear-gradient(135deg, #FA5A6E, #F9324F); color: #fff; }
.svc-more { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.svc-more:hover { border-color: var(--ink-3); filter: none; }
.svc-more svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.more-wrap { position: relative; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: min(300px, 86vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -16px rgba(15,30,58,.35);
  padding: 6px; display: none;
}
.more-menu.open { display: block; }
.more-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500;
}
.more-menu a:hover, .more-menu a:focus-visible { background: var(--surface-2); }
.more-menu a span { color: var(--ink-3); font-size: .82rem; font-weight: 400; }
.svc.is-soon { cursor: default; filter: saturate(.35); opacity: .6; }
.svc.is-soon:hover { filter: saturate(.35); }
.svc.is-soon:active { transform: none; }
.listen.is-upcoming h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); margin-right: 10px; vertical-align: 2px;
  box-shadow: 0 0 0 4px rgba(242,169,59,.25);
}
.listen-note { color: var(--ink-3); font-size: .85rem; margin: 14px 0 0; }

/* Written-out scripture passages */
.scripture-section { margin-bottom: 48px; }
.passages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px 40px; }
.passage { margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.passage blockquote { margin: 0; }
.passage blockquote p { margin: 0; font-size: 1.12rem; line-height: 1.7; max-width: 62ch; }
.vn { font-size: .68em; font-weight: 700; color: var(--ink-3); margin-right: .3em; font-variant-numeric: tabular-nums; }
.passage figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12px; }
.passage-ref { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; }
.passage figcaption a { color: var(--blue); font-size: .9rem; font-weight: 600; text-underline-offset: 3px; }

.section-title { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; margin: 0 0 12px; letter-spacing: -.01em; }

/* ---------- Player bar ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--navy); color: var(--on-navy);
  border-top: 1px solid var(--navy-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.player[hidden] { display: none; }
.player-progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; display: none; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.player-inner {
  max-width: 1180px; margin: 0 auto; height: var(--player-h);
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) 140px; gap: 24px; align-items: center;
}
.player-song {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px;
  background: none; border: 0; padding: 0 8px 0 0; margin: 0; text-align: left; color: inherit; cursor: pointer; border-radius: var(--r-sm);
}
.player-song:hover .player-title { text-decoration: underline; text-underline-offset: 3px; }
.player-cover { width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--navy-2); }
.player-cover img, .player-cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-text { display: grid; min-width: 0; }
.player-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { color: var(--on-navy-2); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--on-navy);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--navy-2); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.play-btn { width: 50px; height: 50px; background: var(--gold); color: var(--on-gold); }
.play-btn:hover { background: #F6B957; }
.play-btn svg { stroke-width: 0; width: 22px; height: 22px; }
.play-btn .i-pause, .player.playing .play-btn .i-play { display: none; }
.player.playing .play-btn .i-pause { display: block; }
.player-seek { display: flex; align-items: center; gap: 10px; min-width: 0; }
.time { font-size: .8rem; color: var(--on-navy-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.player-volume { display: flex; align-items: center; gap: 8px; }
.player-volume svg { width: 20px; height: 20px; fill: var(--on-navy-2); stroke: var(--on-navy-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0;
  --pct: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--range-fill, var(--gold)) var(--pct), var(--range-rest, var(--navy-line)) var(--pct));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--range-rest, var(--navy-line)); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--range-fill, var(--gold)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--on-navy); margin-top: -5px; border: 0;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-navy); border: 0; }

/* ---------- Now Playing (full screen) ---------- */
.np { position: fixed; inset: 0; z-index: 60; color: #fff; }
.np[hidden] { display: none; }
.np-backdrop {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--np-color, #2852A3) 0%, color-mix(in srgb, var(--np-color, #2852A3) 45%, #070D1C) 55%, #070D1C 100%);
}
.np-backdrop img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(60px) saturate(1.3); opacity: .7; }
.np-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,13,28,.15), rgba(7,13,28,.75) 70%); }
.np-sheet {
  position: relative; height: 100%;
  max-width: 560px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  touch-action: pan-x;
}
.np.open .np-sheet { transform: none; }
.np.dragging .np-sheet { transition: none; }
.np-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 56px; }
.np-context { text-align: center; font-size: .82rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.np-icon {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.np-icon:hover { background: rgba(255,255,255,.12); }
.np-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.np-art {
  margin: auto 0 0; align-self: center;
  width: min(100%, calc(100dvh - 520px)); min-width: 180px; aspect-ratio: 1;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.np-art img, .np-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-meta { margin-top: 28px; min-width: 0; }
.np-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin: 0;
  letter-spacing: -.015em; font-variation-settings: "opsz" 40;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-artist { margin: 4px 0 0; font-size: 1.05rem; opacity: .75; }
.np-seek { margin-top: 22px; }
.np-seek input { --range-fill: #fff; --range-rest: rgba(255,255,255,.25); height: 32px; }
.np-seek input::-webkit-slider-runnable-track { height: 6px; }
.np-seek input::-moz-range-track, .np-seek input::-moz-range-progress { height: 6px; }
.np-seek input::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; background: #fff; }
.np-seek input::-moz-range-thumb { width: 18px; height: 18px; background: #fff; }
.np-times { display: flex; justify-content: space-between; margin-top: 2px; font-size: .85rem; font-variant-numeric: tabular-nums; opacity: .75; }
.np-controls { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 10vw, 48px); margin-top: 14px; }
.np-stream { margin: 22px 0 auto; }
.np-stream-note { margin: 0 0 10px; text-align: center; font-size: .85rem; font-weight: 600; opacity: .8; }
.np-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.np-more-wrap, .np-svc-grid > .np-svc-more { grid-column: 1 / -1; }
.np-more-wrap { position: relative; }
.np-svc {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 12px; width: 100%;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.np-svc:hover { filter: brightness(1.08); }
.np-svc:active { transform: scale(.97); }
.np-svc-icon { width: 22px; height: 22px; flex: none; }
.np-svc-text { display: grid; text-align: left; line-height: 1.1; font-size: .95rem; }
.np-svc-text small { font-size: .7rem; font-weight: 600; opacity: .8; }
.np-svc-spotify { background: #1DB954; color: #04210F; }
.np-svc-apple { background: linear-gradient(135deg, #FA5A6E, #F9324F); color: #fff; }
.np-svc-more { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.np-svc-more .np-svc-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.np-svc.is-soon { cursor: default; opacity: .45; filter: saturate(.3); }
.np-svc.is-soon:active { transform: none; }
.np-more-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 2; display: none;
  background: #fff; color: #0F1E3A; border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.5);
}
.np-more-menu.open { display: block; }
.np-more-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.np-more-menu a:hover, .np-more-menu a:focus-visible { background: #EEF2F7; outline: none; }
.np-more-menu a span { color: #75839E; font-size: .82rem; font-weight: 400; }
@media (max-width: 340px) { .np-svc-text { font-size: .85rem; } }
.np-skip { width: 56px; height: 56px; }
.np-skip svg { width: 32px; height: 32px; fill: currentColor; }
.np-play {
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0F1E3A; display: grid; place-items: center;
  transition: transform .1s;
}
.np-play:active { transform: scale(.95); }
.np-play svg { width: 34px; height: 34px; fill: currentColor; }
.np-play .i-play { margin-left: 4px; }
.np-play .i-pause, .np.playing .np-play .i-play { display: none; }
.np.playing .np-play .i-pause { display: block; }
.np :focus-visible { outline-color: #fff; }
body.np-open { overflow: hidden; }

.update-btn {
  position: fixed; left: 50%; translate: -50% 0; z-index: 45;
  top: max(12px, env(safe-area-inset-top));
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--on-gold); font: inherit; font-weight: 700; font-size: .92rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px + env(safe-area-inset-bottom)); translate: -50% 20px;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; z-index: 40;
}
.toast.show { opacity: 1; translate: -50% 0; }

.site-footer {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  color: var(--ink-3); font-size: .88rem; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }
.site-footer p:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .song-row { grid-template-columns: 56px minmax(0, 1fr) auto auto 52px; }
  .song-topics { display: none; }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .player-volume { display: none; }
}
@media (max-width: 720px) {
  :root { --player-h: 68px; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 52px; height: 52px; }
  .topbar { flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: 2; }
  .song-row { grid-template-columns: 52px minmax(0, 1fr) 48px; gap: 14px; padding-inline: 4px; }
  .thumb { width: 52px; height: 52px; }
  .song-meta, .song-dur { display: none; }
  .song-artist .mobile-meta { display: inline; }
  .result-count { margin-left: 0; width: 100%; }
  .filters { gap: 14px; }
  .song-hero { grid-template-columns: 1fr; }
  .song-cover { max-width: 420px; }
  .listen-buttons { grid-template-columns: 1fr; }
  .more-menu { left: 0; right: auto; }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .player-seek { display: none; }
  .player-progress { display: block; }
  #prevBtn { display: none; }
}
.mobile-meta { display: none; color: var(--ink-3); }

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

