:root {
  --bg: #0e0d0b;
  --bg-2: #16140f;
  --ink: #ece6d8;
  --ink-dim: #8a8478;
  --rule: #2a2620;
  --accent: #d9b35a;
  --accent-soft: #b89243;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --player-h: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(217, 179, 90, 0.06), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(217, 179, 90, 0.04), transparent 60%);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
#topbar {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 48px 20px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
#crumbs {
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#crumbs a { color: var(--ink-dim); }
#crumbs a:hover { color: var(--accent); }
#crumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ---------- view container ---------- */
main#view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 48px 24px;
}

/* ---------- home: artist grid ---------- */
.home-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 580px;
  margin: 0 0 56px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px 40px;
}

.artist-card {
  display: block;
  text-align: center;
}
.artist-card .portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto 20px;
  width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.artist-card .portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.artist-card:hover .portrait {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
}
.artist-card .name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.artist-card .meta {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- artist page ---------- */
.fanart-banner {
  margin: -56px -48px 56px;
  height: 360px;
  background-size: cover;
  background-position: center 30%;
  position: relative;
  filter: saturate(0.9);
}
.fanart-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 13, 11, 0.15) 0%,
    rgba(14, 13, 11, 0.5) 55%,
    rgba(14, 13, 11, 1) 100%
  );
  pointer-events: none;
}

.artist-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
.artist-header .portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.artist-header .portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.artist-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.artist-header .tags {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.artist-header .bio {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: #d8d2c4;
  max-width: 64ch;
  white-space: pre-wrap;
}

.albums-heading {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  margin: 64px 0 28px;
  letter-spacing: 0.01em;
}
.album-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
  gap: 28px 32px;
}
.album-card {
  display: block;
}
.album-card .cover {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 14px;
  transition: transform 0.4s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.album-card:hover .cover { transform: translateY(-3px); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }

/* hover-to-play button over an album cover */
.album-card .cover, .album-cover-large { position: relative; }
.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 179, 90, 0.93);   /* --accent */
  color: #0e0d0b;
  font-size: 22px;
  padding-left: 3px;                       /* optical centring of the ▶ */
  cursor: pointer;
  opacity: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.album-card:hover .cover-play,
.album-cover-large:hover .cover-play,
.cover-play:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cover-play:hover { background: var(--accent); }
.album-card .title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.album-card .year {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Videoclips ---------- */
.videos-heading {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  margin: 64px 0 28px;
  letter-spacing: 0.01em;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px 32px;
}
/* a clip tile, mirroring the album-card language */
.video-card {
  display: block;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb { transform: translateY(-3px); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(217, 179, 90, 0.93);   /* --accent */
  color: #0e0d0b;
  font-size: 22px;
  padding-left: 3px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.video-card:hover .video-play,
.video-card:focus-visible .video-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card .video-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.video-card .video-album {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* cinema overlay — same language as the lyrics overlay */
#video-view {
  position: fixed;
  inset: 0;
  bottom: var(--player-h);
  background: rgba(8, 7, 6, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  animation: lyrics-in 0.25s ease;
}
/* The id rule above (display:flex) outranks the UA [hidden] rule, so the
   overlay stayed visible after close. This wins it back. */
#video-view[hidden] { display: none; }
#video-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  color: var(--ink-dim);
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
#video-close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
#video-stage { width: min(1100px, 100%); }
#video-box {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
#video-el { display: block; width: 100%; height: auto; max-height: 78vh; background: #000; }
#video-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-dim);
}
/* CC toggle: hidden by default, fades in when the cursor moves over the
   video stage (or the video is paused). Sits just above the browser's
   native control bar — like YouTube's CC button — so it joins/leaves
   the controls together. */
.cc-toggle {
  position: absolute;
  right: 12px;
  bottom: 52px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid rgba(236, 230, 216, 0.35);
  background: rgba(14, 13, 11, 0.55);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#video-box.controls-visible .cc-toggle {
  opacity: 1;
  pointer-events: auto;
}
.cc-toggle:hover { border-color: var(--accent-soft); color: var(--accent); }
.cc-toggle.on { background: var(--accent); color: #0e0d0b; border-color: var(--accent); }
video::cue {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: var(--sans);
  line-height: 1.3;
}

/* ---------- album page ---------- */
.album-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.album-cover-large {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.album-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.album-meta .eyebrow {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.album-meta h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
}
.album-meta .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-dim);
  margin-bottom: 26px;
}
.album-meta .review {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: #d8d2c4;
  white-space: pre-wrap;
  max-width: 60ch;
}

/* ---------- tracklist ---------- */
.tracklist {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}
.track {
  border-bottom: 1px solid var(--rule);
  padding: 18px 4px;
}
.track-row {
  display: grid;
  /* num · play · title (shrinks) · lyrics · duration · download */
  grid-template-columns: 32px 32px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
}
.track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-dur {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-dim);
  min-width: 3.5em;
  text-align: right;
}
/* Discreet per-track FLAC download — barely there until you hover the row. */
.track-dl {
  font-size: 15px;
  line-height: 1;
  color: var(--ink-dim);
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.track-row:hover .track-dl { opacity: 0.65; }
.track-dl:hover { opacity: 1; color: var(--accent); }
/* Discreet album / artist .zip download link (under the review / bio). */
.meta-dl {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.meta-dl:hover { opacity: 1; color: var(--accent); }
.dl-ico { vertical-align: -0.15em; }
.meta-dl .dl-ico { margin-right: 5px; }

/* Multi-disc album header — "Disc 1 · Album" and "Disc 2 · Alternate
   Takes" sit between the album-header section and each tracklist. */
.disc-header {
  margin: 36px 4px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0;
}
.disc-header .disc-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-right: 10px;
  vertical-align: 0.18em;
}
/* Slightly desaturate Disc 2 rows so the eye knows this is the b-side
   of the record, without making them feel unimportant. */
.tracklist[data-disc="2"] .track-title { color: var(--ink-dim); }
.tracklist[data-disc="2"] .track.playing .track-title { color: var(--accent); }
.track-num {
  font-family: var(--serif);
  color: var(--ink-dim);
  font-size: 18px;
  text-align: right;
}
.track-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  padding: 0;
}
.track-play:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}
.track.playing .track-play {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}
.track-title {
  font-family: var(--serif);
  font-size: 21px;
}
.track.playing .track-title { color: var(--accent); }
.track-dur {
  font-size: 14px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.track-lyrics-toggle {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.track-lyrics-toggle:hover { color: var(--accent); }
.track-lyrics-toggle[hidden] { display: none; }

/* The inline track-alt button + the player-strip #p-alt button are gone
   — superseded by the explicit Disc 1 / Disc 2 layout. The styles are
   left out intentionally so any stale DOM is harmless. */

/* Floating "Volg liedje" button shown when the user has manually scrolled
   the lyrics container, so auto-scroll is suspended until they re-engage.
   Fixed-positioned so the same rule works inside the overlay and inside
   an inline lyrics panel (the inline case scrolls the window, not the
   container). */
.follow-btn {
  position: fixed;
  bottom: 96px;  /* sit just above the sticky player strip */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 120;
}
.follow-btn:hover { filter: brightness(1.1); }

.track-lyrics {
  margin: 14px 0 4px 90px;
  padding: 18px 22px;
  border-left: 2px solid var(--rule);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: #cfc8b8;
  white-space: pre-wrap;
  max-width: 64ch;
}
.track-lyrics[hidden] { display: none; }
.track-lyrics.synced .lrc-line {
  display: block;
  padding: 2px 0;
  color: #8a8478;
  transition: color 0.2s;
}
.track-lyrics.synced .lrc-line.active {
  color: var(--accent);
}
/* stanza paragraphs */
.lrc-stanza { margin-bottom: 0.95em; }
.lrc-stanza:last-child { margin-bottom: 0; }

/* ---------- player ---------- */
#player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(18, 16, 12, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule);
  z-index: 20;
  height: var(--player-h);
}
.player-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 64px 1fr auto 2fr;
  gap: 24px;
  align-items: center;
}
#p-cover {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.p-meta { min-width: 0; }
#p-title {
  font-family: var(--serif);
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#p-sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.p-controls button {
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.p-controls button:hover { background: rgba(255,255,255,0.06); }
#p-play {
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
}
#p-play:hover { background: var(--accent); }
.p-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-dim);
}
#p-scrub {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
#p-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 0%;
}

/* ---------- player: lyrics button ---------- */
#p-lyrics {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
#p-lyrics:hover { color: var(--accent); border-color: var(--accent-soft); }
#p-lyrics.active { color: var(--accent); border-color: var(--accent); }

/* The player-strip #p-alt toggle is gone with the 2-disc redesign;
   no flash animation needed either. */

/* ---------- lyrics overlay ---------- */
#lyrics-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--player-h);
  background: rgba(14, 13, 11, 0.985);
  backdrop-filter: blur(20px);
  z-index: 15;
  overflow-y: auto;
  padding: 56px 32px 80px;
  animation: lyrics-in 0.25s ease;
}
@keyframes lyrics-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#lyrics-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  color: var(--ink-dim);
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
#lyrics-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
#lyrics-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
#lyrics-track-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}
#lyrics-track-sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#lyrics-content {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.7;
  text-align: center;
  color: #d8d2c4;
  white-space: pre-wrap;
}
#lyrics-content.synced {
  white-space: normal;
}
#lyrics-content.synced .lrc-line {
  display: block;
  padding: 6px 0;
  color: #6f6a5e;
  transition: color 0.25s ease, transform 0.25s ease;
}
#lyrics-content.synced .lrc-line.active {
  color: var(--accent);
  transform: scale(1.02);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  #topbar { padding: 20px 24px 16px; }
  main#view { padding: 36px 24px 24px; }
  .fanart-banner { margin: -36px -24px 36px; height: 220px; }
  .artist-header { grid-template-columns: 1fr; gap: 28px; }
  .artist-header .portrait { width: 180px; }
  .artist-header h1 { font-size: 40px; }
  .album-header { grid-template-columns: 1fr; gap: 28px; }
  .album-cover-large { max-width: 200px; }
  .album-meta h1 { font-size: 38px; }
  .track-row { grid-template-columns: 32px 28px 1fr auto; }
  .track-dur { display: none; }
  .track-lyrics { margin-left: 0; }
  .player-inner {
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    padding: 0 16px;
    gap: 8px 14px;
    align-content: center;
  }
  #p-cover { width: 48px; height: 48px; }
  .p-bar { grid-column: 1 / -1; }
  #p-lyrics {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding: 4px 8px;
    font-size: 10px;
  }
  #lyrics-view { padding: 36px 20px 60px; }
  #lyrics-track-title { font-size: 26px; }
  #lyrics-content { font-size: 19px; }
  :root { --player-h: 124px; }
}

@media (max-width: 480px) {
  .brand { font-size: 22px; }
  .album-meta h1 { font-size: 30px; }
  .track-title { font-size: 18px; }
}

/* ---------- pull-to-refresh indicator ---------- */
#ptr {
  position: fixed;
  top: -56px;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
  transition: transform 0.22s ease;
}
#ptr-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--rule);
  border-top-color: var(--accent);
  opacity: 0.9;
  /* Always spinning while the indicator is on screen, so the moment you
     start pulling you see a turning wheel — not a static ring. */
  animation: ptr-spin 0.9s linear infinite;
}
#ptr.ready #ptr-spin {
  border-top-color: var(--accent);
  border-right-color: var(--accent-soft);
  opacity: 1;
}
#ptr.refreshing #ptr-spin {
  animation-duration: 0.6s;   /* spin a little faster while loading */
  opacity: 1;
}
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* --- album version toggle (Album | Alternate) + bonus markers --- */
.version-toggle {
  display: inline-flex;
  margin: 2px 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.version-toggle button {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  padding: 6px 18px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}
.version-toggle button + button { border-left: 1px solid var(--rule); }
.version-toggle button:hover { color: var(--ink); }
.version-toggle button.active { color: var(--bg); background: var(--accent); }

.bonus-divider {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 22px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.bonus-badge {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
