@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #f4f4f4;
  --mute: #7d7d7d;
  --line: #1a1a1a;
  --gold: #F3CB47;
  --purple: #782FB1;
  --magenta: #D03083;
  --magenta-hot: #FF3C8E;
  --stage: #4D7CBE;
  --accent: var(--gold);
  --surface: #0a0a0a;
  --pad: clamp(20px, 4vw, 48px);
  --display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-hub="music"],
body[data-hub="charts"],
body[data-hub="plai"],
body[data-hub="likes"],
body[data-hub="account"] { --accent: var(--gold); }
body[data-hub="genres"] { --accent: var(--stage); }
body[data-hub="suno"] { --accent: var(--magenta-hot); }
body[data-hub="curated"] { --accent: var(--magenta); }
body[data-hub="artists"] { --accent: var(--purple); }
body[data-hub="videos"] { --accent: var(--purple); }
body[data-lane="human"],
body[data-lane="human"][data-hub] { --accent: var(--stage); }
body[data-lane="plus"],
body[data-lane="plus"][data-hub] { --accent: var(--gold); }

a {
  color: inherit;
  text-decoration: none;
}

button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0 0;
  background: var(--black);
  border-bottom: 0;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad) 8px;
}

.lanes {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.lanes button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  font-family: var(--display);
  color: var(--mute);
  font-size: clamp(20px, 5.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.lanes button:hover { color: var(--ink); }

.lanes button[data-lane="human"][aria-selected="true"],
.lanes button[data-lane="human"][aria-selected="true"]:hover {
  color: var(--ink);
  border-bottom-color: var(--stage);
}

.lanes button[data-lane="ai"][aria-selected="true"],
.lanes button[data-lane="ai"][aria-selected="true"]:hover {
  color: var(--ink);
  border-bottom-color: var(--purple);
}

.lanes button[data-lane="plus"][aria-selected="true"],
.lanes button[data-lane="plus"][aria-selected="true"]:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Human focus: centered Human, AI and + as small right widgets, section submenu under Human. */
body[data-lane="human"] .lanes {
  position: relative;
  display: block;
  min-height: 52px;
  border-bottom: 0;
}

body[data-lane="human"] .lanes button {
  flex: none;
}

body[data-lane="human"] .lanes button[data-lane="human"] {
  position: absolute;
  left: 50%;
  top: 0;
  height: 52px;
  min-height: 52px;
  padding: 0 10px;
  transform: translateX(-50%);
  font-size: clamp(26px, 7vw, 34px);
}

body[data-lane="human"] .lanes button[data-lane="ai"],
body[data-lane="human"] .lanes button[data-lane="plus"] {
  position: absolute;
  top: 6px;
  z-index: 1;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--mute);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body[data-lane="human"] .lanes button[data-lane="ai"] {
  right: calc(var(--pad) + 48px);
}

body[data-lane="human"] .lanes button[data-lane="plus"] {
  right: var(--pad);
  font-size: 22px;
}

body[data-lane="human"] .lanes button[data-lane="ai"]:hover,
body[data-lane="human"] .lanes button[data-lane="plus"]:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.human-sub {
  display: none;
}

body[data-lane="human"] .human-sub {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  min-height: 44px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.human-sub a {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  color: var(--mute);
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 8px 2px 10px;
  border-bottom: 3px solid transparent;
}

.human-sub a:hover { color: var(--ink); }

.human-sub a[aria-current="page"],
.human-sub a[aria-current="page"]:hover {
  color: var(--ink);
  border-bottom-color: var(--stage);
}

.archive-sub {
  display: none;
}

body[data-lane="human"][data-archive-nav="on"] .archive-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 6px var(--pad) 8px;
  border-bottom: 1px solid var(--line);
}

.archive-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--display);
  color: var(--mute);
  font-size: clamp(14px, 3.2vw, 16px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 4px 2px 6px;
  border-bottom: 2px solid transparent;
}

.archive-sub a:hover { color: var(--ink); }

.archive-sub a[aria-current="page"],
.archive-sub a[aria-current="page"]:hover {
  color: var(--ink);
  border-bottom-color: var(--stage);
}

.archive-categories { margin-top: 8px; }

@media (max-width: 360px) {
  body[data-lane="human"] .lanes button[data-lane="human"] {
    font-size: 24px;
  }

  body[data-lane="human"] .lanes button[data-lane="ai"],
  body[data-lane="human"] .lanes button[data-lane="plus"] {
    width: 36px;
    height: 36px;
    min-height: 36px;
    top: 8px;
  }

  body[data-lane="human"] .lanes button[data-lane="ai"] {
    right: calc(var(--pad) + 42px);
  }

  body[data-lane="human"] .human-sub { gap: 18px; }
}

body[data-lane="human"] .modes,
body[data-lane="plus"] .modes { display: none; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 18px;
  font-weight: 700;
}

.wordmark-plai { color: var(--accent); }
.wordmark-now {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.modes {
  display: flex;
  gap: 28px;
}

.modes button {
  font-family: var(--display);
  color: var(--mute);
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
}

.modes button:hover { color: var(--ink); }

.modes button[aria-selected="true"],
.modes button[aria-selected="true"]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main {
  flex: 1;
  padding: 0 var(--pad) 80px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

body.player-audio-on main,
body.player-video-on main {
  padding-bottom: 120px;
}

body.player-audio-on.player-video-on main {
  padding-bottom: 188px;
}

body.player-video-on:has(#player-video.is-expanded) main,
body.player-audio-on:has(#player-audio.is-expanded) main {
  padding-bottom: min(52vh, 460px);
}

/* Compact Archive audio is the mini-bar. Waveform adds one short row, not half the screen. */
body.player-audio-on:has(#player-audio[data-archive="audio"]) main {
  padding-bottom: 180px;
}

body.player-audio-on:has(#player-audio[data-archive="audio"].is-expanded) main {
  padding-bottom: 280px;
}

body.player-audio-on:has(#player-audio[data-archive="video"]) main,
body.player-video-on:has(#player-video[data-archive="video"]) main {
  padding-bottom: min(52vh, 460px);
}

.hero {
  padding: clamp(40px, 8vw, 80px) 0 clamp(28px, 5vw, 48px);
}

.hero p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 9vw, 80px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero p:first-child { color: var(--accent); }

.listen-home {
  padding-top: clamp(40px, 8vw, 80px);
}

.listen-group { margin-top: 8px; }

.archive-heading {
  margin: 36px 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--accent);
}

.panes-lane {
  margin-top: 10px;
}

.panes-lane a {
  font-size: clamp(20px, 3vw, 28px);
}

.year-heading {
  margin: 28px 0 4px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
}

.tracks .year-heading:first-child {
  margin-top: 4px;
}

.speech-group {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--accent);
}

.speech-category {
  margin: 22px 0 4px;
  font-family: var(--display);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
}

.hubs {
  display: flex;
  flex-direction: column;
}

.hubs a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(34px, 6.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.hubs a:hover { color: var(--accent); }
.hubs a[data-hub="charts"]:hover,
.hubs a[data-hub="plai"]:hover,
.hubs a[data-hub="likes"]:hover { color: var(--gold); }
.hubs a[data-hub="genres"]:hover { color: var(--stage); }
.hubs a[data-hub="suno"]:hover { color: var(--magenta-hot); }
.hubs a[data-hub="curated"]:hover { color: var(--magenta); }
.hubs a[data-hub="artists"]:hover { color: var(--purple); }
body[data-lane="human"] .hubs a:hover { color: var(--stage); }

.hubs a .hub-note {
  display: block;
  max-width: 36em;
  margin-top: 6px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hubs a .hub-lineup {
  display: block;
  max-width: 40em;
  margin-top: 10px;
  color: var(--magenta);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.player-bg-note {
  display: block;
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
}

.crumb {
  display: inline-block;
  margin: 28px 0 12px;
  font-family: var(--display);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.crumb:hover { color: var(--ink); }

.page-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: var(--accent);
}

.panes {
  display: flex;
  gap: 28px;
  margin: 0 0 22px;
}

.panes a {
  font-family: var(--display);
  color: var(--mute);
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
}

.panes a:hover { color: var(--ink); }

.panes a[aria-current="page"],
.panes a[aria-current="page"]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.fest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 22px;
}

.fest-chips a {
  font-family: var(--display);
  color: var(--mute);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.fest-chips a:hover { color: var(--ink); }

.fest-chips a[aria-current="page"],
.fest-chips a[aria-current="page"]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.fest-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 2px 0 18px;
}

.fest-years a {
  font-family: var(--display);
  color: var(--mute);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.fest-years a:hover { color: var(--ink); }

.fest-years a[aria-current="page"],
.fest-years a[aria-current="page"]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.likes-group {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tracks {
  display: flex;
  flex-direction: column;
}

.track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.track.is-quiet { cursor: default; }

.track.is-now-playing,
.card.is-now-playing,
.video-card.is-now-playing {
  background: rgba(77, 124, 190, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
}

.track.is-now-playing { padding-left: 10px; }

.now-playing-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-playing-mark[hidden] { display: none; }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq i {
  display: block;
  width: 2px;
  height: 3px;
  background: currentColor;
  animation: eq-bar 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }

.now-playing-mark.is-paused .eq i { animation: none; }

@keyframes eq-bar {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .player-title.is-marquee span,
  .player-artist.is-marquee span,
  .eq i { animation: none; }
}

.track-rank {
  flex: 0 0 28px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.track-copy {
  min-width: 0;
  flex: 1;
}

.track-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.track-copy .who {
  display: block;
  color: var(--magenta);
  font-size: 13px;
}

.track .mark { margin-top: 8px; }

.shelf {
  margin: 0 0 40px;
  scroll-margin-top: 72px;
}

.shelf h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.charts-hub { margin-bottom: 48px; }

.chart-block { margin: 0 0 28px; }

.chart-name {
  margin: 0 0 6px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.shelf-week {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.row::-webkit-scrollbar { display: none; }

.empty {
  color: var(--mute);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 0;
}

.card {
  position: relative;
  display: block;
  flex: 0 0 168px;
  scroll-snap-align: start;
  text-align: left;
  color: inherit;
}

.card.is-quiet { cursor: default; }

.card-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  min-width: 22px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.card-cover {
  width: 168px;
  height: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

.card-cover.ph {
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 10px 0 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card .who,
.video-card .who {
  display: block;
  color: var(--magenta);
  font-size: 13px;
}

.video-card .video-source {
  display: block;
  color: var(--mute);
  font-size: 12px;
  margin-top: 2px;
}

.tmdb-note {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.4;
  margin: 18px 0 8px;
}

.tmdb-logo {
  display: block;
  height: 18px;
  width: auto;
  margin-bottom: 6px;
}

.mark {
  display: block;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 1px;
}

.mark-ai { background: var(--gold); }
.mark-assist { background: var(--purple); }

#video-panes {
  flex-wrap: wrap;
  gap: 12px 22px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.video-grid > .video-band,
.video-grid > .video-group {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.video-grid > .video-band {
  margin-top: 36px;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--accent);
}

.video-grid > .video-group {
  margin-top: 28px;
  font-size: clamp(20px, 4vw, 28px);
  color: var(--ink);
}

.video-grid > .video-band:first-child,
.video-grid > .video-group:first-child {
  margin-top: 0;
}

.video-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.video-tile .track-like {
  min-width: 0;
  padding-left: 0;
}

.video-tile .card-play {
  margin-top: 10px;
}

.video-grid > .empty {
  grid-column: 1 / -1;
}

.video-card {
  display: block;
  width: 100%;
  text-align: left;
}

.video-card h3 {
  margin: 10px 0 2px;
  font-size: 14px;
  font-weight: 500;
}

.video-cover,
.video-shell {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}

.video-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.foot {
  padding: 28px var(--pad) 48px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.foot a {
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.foot a:hover { color: var(--accent); }

body.player-audio-on .foot,
body.player-video-on .foot {
  padding-bottom: 96px;
}

.players {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  /* Keep the Archive iframe inside this fixed bar on iPhone Safari. */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.player {
  background: #050505;
  border-top: 1px solid rgba(243, 203, 71, 0.28);
}

.player-video {
  border-top-color: rgba(120, 47, 177, 0.45);
}

.player[hidden] { display: none; }

.player-dock {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.player-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  min-height: 64px;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.player-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 100%;
  overflow: hidden;
  text-align: left;
}

.player-cover,
.player-cover img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

.player-cover.ph {
  display: flex;
  align-items: flex-end;
  padding: 6px;
  color: var(--mute);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-copy {
  min-width: 0;
}

.player-kind { display: none; }

.player-title,
.player-artist {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.player-artist {
  color: #D03083;
  font-size: 12px;
}

.player-title.is-marquee span,
.player-artist.is-marquee span {
  display: inline-block;
  padding-right: 24px;
  animation: player-marquee 12s ease-in-out infinite;
}

@keyframes player-marquee {
  0%, 18% { transform: translateX(0); }
  46%, 54% { transform: translateX(var(--shift, 0px)); }
  82%, 100% { transform: translateX(0); }
}

.player-tags {
  display: block;
  min-height: 6px;
}

.player-tags[hidden] { display: none; }
.player-tags .mark { margin-top: 6px; }

.player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 840px) {
  .player-bar { flex-wrap: nowrap; gap: 12px; }
  .player-now { flex: 1 1 auto; }
  .player-actions { flex: 0 1 auto; justify-content: flex-end; gap: 14px; }
  .player-toggle,
  .player-skip,
  .player-expand,
  .player-yt-expand,
  .player-pip-btn { min-width: 52px; }
}

.player-toggle,
.player-skip,
.player-expand,
.player-yt-expand,
.player-pip-btn {
  font-family: var(--display);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  min-height: 44px;
  min-width: 0;
  padding: 0 4px;
}

.player-skip[disabled] {
  color: var(--mute);
  opacity: 0.4;
}

.player-expand[hidden],
.player-yt-expand[hidden],
.player-pip-btn[hidden] { display: none; }

.player-audio.has-yt-expand .player-expand { display: none; }

.player-toggle:hover,
.player-skip:hover:not([disabled]),
.player-expand:hover,
.player-yt-expand:hover,
.player-pip-btn:hover,
.player-now:hover .player-copy strong { color: var(--ink); }

.player-close {
  font-family: var(--display);
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 44px;
  padding: 0 4px;
}

.player-pip-hint {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.player-pip-hint[hidden] { display: none; }

.player-toast {
  flex: 1 1 100%;
  margin: 4px 0 2px;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid var(--gold);
  border-radius: 999px;
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.player-toast[hidden] { display: none; }

.archive-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player.is-doc-pip {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-top: 0;
  background: #000;
}

.player.is-doc-pip .player-dock {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.player.is-doc-pip .player-frame,
.player.is-doc-pip.is-expanded .player-frame {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  max-height: none;
  margin: 0;
  pointer-events: auto;
  overflow: hidden;
}

.player-close:hover { color: var(--ink); }

/* Live YouTube clip: 1×1 in-viewport window, NOT under the cover.
   iframe stays 200×113 / opacity 1 / in the DOM. iOS refuses playVideo
   when the media is display:none, height:0, fully covered, or unmounted. */
.player-frame {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.player-frame iframe {
  display: block;
  width: 200px;
  height: 113px;
  min-width: 200px;
  min-height: 113px;
  border: 0;
  opacity: 1;
  visibility: visible;
}

.player.is-expanded .player-frame {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(42vh, 360px);
  margin: 10px 0 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  -webkit-transform: none;
  transform: none;
}

.player.is-expanded .player-frame iframe {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

/* YouTube without a PiP button: grow the same iframe. Do not remount it. */
.players:has(.player.is-yt-overlay) {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  background: #000;
  -webkit-transform: none;
  transform: none;
}

.player.is-yt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #000;
  border-top: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.player.is-yt-overlay .player-dock {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

.player.is-yt-overlay .player-frame {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  width: 100%;
  height: min(72vh, 100vw);
  min-height: 200px;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  flex: 0 0 auto;
  -webkit-transform: none;
  transform: none;
}

.player.is-yt-overlay .player-frame iframe {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
}

.player.is-yt-overlay .player-pip-hint,
.player.is-yt-overlay .player-bar {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Archive audio plays in the page audio element, so the embed frame stays out of the shelf.
   Waveform is the item's Archive.org waveform, full-bleed on the bottom dock. */
.player[data-platform="archive"][data-archive="audio"]:not(.is-expanded) {
  overflow: hidden;
}

.player[data-platform="archive"][data-archive="audio"] .player-frame {
  display: none;
}

.archive-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.archive-wave {
  display: none;
  position: relative;
  background: #000;
  overflow: hidden;
  touch-action: none;
}

.player[data-platform="archive"][data-archive="audio"].is-expanded .player-dock {
  display: flex;
  flex-direction: column;
}

.player[data-platform="archive"][data-archive="audio"].is-expanded .player-bar {
  order: 1;
}

.player[data-platform="archive"][data-archive="audio"].is-expanded .archive-wave {
  display: block;
  order: 2;
  width: 100vw;
  max-width: 100vw;
  height: 96px;
  margin: 0 0 0 calc(50% - 50vw);
  touch-action: none;
}

.archive-wave img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  /* Archive.org stores the wave in the alpha channel as black pixels. */
  filter: invert(1);
}

.archive-wave-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gold);
  pointer-events: none;
  z-index: 1;
}

.archive-wave input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.player[data-platform="archive"][data-archive="video"] .player-frame {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(42vh, 360px);
  margin: 8px 0 0;
  overflow: hidden;
  pointer-events: auto;
  z-index: 1;
  -webkit-transform: none;
  transform: none;
}

.player[data-platform="archive"][data-archive="video"] .player-frame iframe,
.player[data-platform="archive"][data-archive="video"] .player-frame .archive-video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 180px;
}

/* Helper chrome only — never on the collapsed audio bar. */
.player-pip {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 8px 0 2px;
  border-top: 1px solid rgba(243, 203, 71, 0.16);
}

.player-audio.is-expanded .player-pip:not([hidden]) {
  display: flex;
}

.player-pip p {
  margin: 0;
  min-width: 0;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.player-pip-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.player-pip-gotit,
.player-pip-close {
  font-family: var(--display);
  min-height: 44px;
  padding: 0 2px;
}

.player-pip-gotit {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.player-pip-close {
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.player-pip-gotit:hover { color: var(--ink); }
.player-pip-close:hover { color: var(--ink); }

@media (max-width: 520px) {
  .player-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .player-toggle,
  .player-skip,
  .player-expand,
  .player-yt-expand,
  .player-close { letter-spacing: 0.04em; }
  .player-pip {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .player-pip-actions { justify-content: flex-end; }
}

.lost {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 10vw, 96px) 0;
}

.lost h1 {
  margin: 12px 0 20px;
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: var(--accent);
}

.lost a { color: var(--accent); }

@media (min-width: 720px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
  .card { flex-basis: 188px; }
  .card-cover { width: 188px; height: 188px; }
}

@media (min-width: 1040px) {
  .video-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.plai-session {
  margin: -4px 0 8px;
  color: var(--mute);
  font-size: 13px;
}

.plai-session a { color: var(--accent); }
.plai-session a:hover { color: var(--ink); }

.plai-lead {
  margin: 0 0 28px;
  max-width: 18em;
}

.plai-lead p {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 4.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.plai-rails {
  margin: 0 0 36px;
  color: var(--mute);
  font-size: 14px;
}

.plai-rails p { margin: 0 0 6px; }

.plai-soon {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}

.plai-soon strong {
  display: block;
  margin: 0 0 6px;
  font-family: var(--display);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plai-meta {
  margin: 0 0 22px;
  color: var(--mute);
  font-size: 14px;
}

.plai-meta p { margin: 0 0 4px; }

.plai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 22px 0 0;
}

.plai-preview {
  margin: 8px 0 28px;
}

.plai-preview audio {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 8px 0 6px;
  height: 40px;
}

.plai-chip {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.plai-chip.is-open { color: var(--ink); }

.plai-hint {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
}

.plai-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 8px 0 0;
}

.plai-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plai-field span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plai-field input[type="text"],
.plai-field input[type="file"],
.plai-field select,
.plai-field textarea {
  width: 100%;
  padding: 12px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 16px;
  border-radius: 0;
  color-scheme: dark;
}

.plai-field textarea {
  min-height: 88px;
  resize: vertical;
}

.plai-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.plai-check input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.plai-err {
  margin: 0;
  color: var(--magenta-hot);
  font-size: 14px;
}

.plai-ok {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
}

.btn-go,
.btn-quiet {
  display: inline-block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 16px;
  text-align: left;
}

.btn-go {
  color: var(--black);
  background: var(--accent);
}

.btn-go:hover { color: var(--black); filter: brightness(1.06); }

.btn-go[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  filter: none;
}

.btn-quiet {
  color: var(--mute);
  padding-left: 0;
}

.btn-quiet:hover { color: var(--ink); }

.plai-gate {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plai-gate h2,
.plai-block h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plai-block { margin: 28px 0 0; }

.plai-file {
  color: var(--mute);
  font-size: 13px;
}

.plai-featured {
  margin: 36px 0 0;
}

.plai-featured h2 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plai-credit {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 13px;
}

.track-extra,
.track-source {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
}

.track-extra.live-mark {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.track-source {
  letter-spacing: 0.06em;
  text-transform: none;
}

.track-state {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.play-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 120px;
  margin: 0 0 22px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  font-family: var(--display);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.play-all:hover { color: var(--ink); border-color: var(--ink); }

.play-all[hidden] { display: none !important; }

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.track-like {
  min-height: 48px;
  min-width: 72px;
  padding: 0 12px;
  font-family: var(--display);
  color: var(--mute);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.track-like:hover,
.track-like.is-on { color: var(--accent); }

.track-play,
.card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 84px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  font-family: var(--display);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-play {
  margin-top: 10px;
}

.track-stores,
.track-out {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.track-stores a:hover,
.track-out:hover {
  color: var(--ink);
}

.track.is-playable {
  cursor: pointer;
}

.track.is-playable:hover .track-copy strong {
  color: var(--accent);
}

@media (max-width: 520px) {
  .plai-preview audio { max-width: 100%; }
}

.account-cta,
.account-form,
.account-status {
  max-width: 28rem;
}

.account-cta {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.account-cta p,
.account-form p,
.account-status {
  color: var(--mute);
  font-size: 15px;
}

.account-cta a,
.account-form button,
.account-form a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  font-family: var(--display);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: fit-content;
}

.account-cta a:hover,
.account-form button:hover,
.account-form a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.account-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.account-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-session {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.account-session button {
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--display);
  color: var(--mute);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.like-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  padding: 12px var(--pad);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.like-cta p {
  margin: 0;
  color: var(--mute);
}

.like-cta a {
  font-family: var(--display);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.like-cta button {
  margin-left: auto;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.discover-entry {
  display: inline-block;
  margin: 0 0 22px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--accent);
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.discover-entry:hover { color: var(--ink); border-bottom-color: var(--ink); }

.discover-heading {
  margin: 12px 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
}

.discover-loosen {
  margin-top: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--stage);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.discover-ring {
  position: relative;
  width: min(100%, 440px);
  margin: 4px auto 8px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  outline: none;
}

.discover-ring:active { cursor: grabbing; }

.discover-ring:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--stage);
}

@media (max-width: 720px) {
  .discover-ring { width: min(78vw, 300px); }
}

.discover-ring svg { display: block; width: 100%; height: auto; }

.ring-hit,
.ring-hub {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: pointer;
}

.ring-hit {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: #8a8a8a;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ring-hit.is-on {
  color: #f4f4f4;
  font-size: 13px;
}

.ring-hub {
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  gap: 2px;
  color: var(--stage);
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ring-hub-era {
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ring-hub-all {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.ring-hub[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--stage);
}

.ring-hub[aria-pressed="true"] .ring-hub-era {
  font-size: clamp(16px, 4.2vw, 22px);
}

.ring-disc { fill: #070707; stroke: #1a1a1a; stroke-width: 2; }
.ring-groove { fill: none; stroke: #1c1c1c; stroke-width: 2; }
.ring-hole { fill: #000; }
.ring-window { fill: none; stroke: var(--stage); stroke-linecap: butt; }
.ring-notch { fill: #2a2a2a; }
.ring-notch.is-on { fill: var(--ink); }
.ring-needle { fill: var(--stage); }

.discover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 8px;
}

