@font-face { font-family: "Audiowide"; src: url("/assets/fonts/audiowide.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("/assets/fonts/pressstart2p.woff2") format("woff2"); font-display: swap; }
:root {
  --pink: #dd488a;
  --magenta: #ff3cdc;
  --cyan: #39e7ff;
  --sun: #ff8a3a;
  --text: #f7ecff;
  --muted: #c9b3dc;
  --glass: rgba(8, 2, 22, 0.88);
  --line: rgba(255, 60, 220, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: #120626; color: var(--text); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
#horizon {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #120626 url("img/horizon-poster.jpg") center / cover no-repeat;
  pointer-events: none;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 2, 20, 0.45) 0%, rgba(8, 2, 20, 0.15) 28%, rgba(8, 2, 20, 0.2) 60%, rgba(8, 2, 20, 0.62) 100%);
}
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.wordmark {
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(57, 231, 255, 0.45);
}
.wordmark:hover, .wordmark:focus-visible { color: var(--cyan); }
.top .tag {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(57, 231, 255, 0.6);
}
.panel {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(57, 231, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(255, 60, 220, 0.12);
  padding: 22px;
}
.album {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  grid-template-areas:
    "hero list"
    "info list";
  gap: 18px 32px;
  align-items: start;
}
.cover-col { grid-area: hero; }
.list-col { grid-area: list; }
.info-col { grid-area: info; }
.cover-col { display: flex; flex-direction: column; gap: 16px; }
.cover {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(57, 231, 255, 0.35);
  box-shadow: 0 0 28px rgba(255, 60, 220, 0.28), 0 0 60px rgba(57, 231, 255, 0.12);
  aspect-ratio: 1 / 1;
  background: #1a0830;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kicker {
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}
h1 {
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 10%, #d0b8ff 45%, #ff7ad4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 60, 220, 0.45));
}
/* Artist first: just KONTRAV3RSI, small, on its own line above the title (Joe, Nov 30). */
.kicker.by-artist { color: var(--pink); text-shadow: 0 0 10px rgba(221, 72, 138, 0.45); }
h1 + .free-slot { margin-top: 14px; }
.artist {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(221, 72, 138, 0.5);
}
.blurb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}
.meta-line {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.free-slot { margin: 10px 0 4px; }
.free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(57, 231, 255, 0.75);
  background: rgba(57, 231, 255, 0.12);
  color: #e8fbff;
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(57, 231, 255, 0.28);
  cursor: default;
  user-select: none;
}
.free-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.credits {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.credits p { margin: 0 0 4px; }
.list-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
#tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 60, 220, 0.22);
}
.track {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  border-radius: 6px;
}
.track:hover, .track:focus-visible {
  background: rgba(57, 231, 255, 0.08);
  outline: none;
}
.track.active {
  background: rgba(255, 60, 220, 0.12);
  box-shadow: inset 3px 0 0 var(--magenta);
}
.track.playing .name { color: var(--cyan); }
.track .num {
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.track .info { display: flex; flex-direction: column; min-width: 0; }
.track .name {
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track .blurb {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track .dur {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
}
.player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 10px 8px;
  border-top: 1px solid rgba(57, 231, 255, 0.2);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
}
.controls { display: flex; align-items: center; gap: 4px; }
.controls button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.controls button:hover, .controls button:focus-visible {
  background: rgba(57, 231, 255, 0.15);
  outline: none;
  color: var(--cyan);
}
#play {
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, rgba(255, 60, 220, 0.9), rgba(221, 72, 138, 0.95));
  box-shadow: 0 0 18px rgba(255, 60, 220, 0.45);
  color: #fff;
}
#play:hover, #play:focus-visible { background: var(--cyan); color: #120626; }
#play svg { grid-area: 1 / 1; }
#play .icon-pause { display: none; }
body.is-playing #play .icon-play { display: none; }
body.is-playing #play .icon-pause { display: block; }
.now { min-width: 0; }
.now strong {
  display: block;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now .sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seek-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  gap: 8px;
  align-items: center;
}
.seek-row span {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--muted);
}
#cur-time { text-align: right; }
#seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
#seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--cyan);
  border: 0;
}
#seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
#seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 10px var(--cyan);
}
.foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.foot a { color: var(--cyan); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 800px) {
  .album {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "list"
      "info";
    gap: 16px;
  }
  .cover-col { display: grid; grid-template-columns: 148px 1fr; gap: 12px 16px; align-items: start; }
  .cover { grid-row: span 3; }
  .cover-col .copy { grid-column: 2; }
  .cover-col .meta-line, .cover-col .free-slot { grid-column: 1 / -1; }
  h1 { font-size: 1.7rem; }
  .free-badge { min-width: 0; width: 100%; }
  .wrap { padding: calc(12px + var(--safe-top)) 14px calc(16px + var(--safe-bottom)); }
  .panel { padding: 14px; }
  .player { position: static; }
  .track .blurb { display: none; }
}

@media (max-width: 420px) {
  .cover-col { grid-template-columns: 1fr; }
  .cover { grid-row: auto; max-width: 220px; margin: 0 auto; }
  .cover-col .copy { grid-column: auto; text-align: center; }
  .kicker, .artist, .meta-line { text-align: center; }
  .free-slot { text-align: center; }
  .credits, .info-col .blurb { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .cover, .panel, .free-badge, #play {
    box-shadow: 0 0 0 1px rgba(57, 231, 255, 0.12);
    filter: none;
  }
}

.track .dl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
}
.track .dl:hover, .track .dl:focus-visible { text-decoration: underline; color: #fff; }
.top-nav { display: flex; gap: 16px; margin-left: auto; }
.top-nav a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.top-nav a:hover, .top-nav a:focus-visible, .top-nav a[aria-current="page"] { color: var(--cyan); }
.foot .fec { margin: 0; color: var(--text); letter-spacing: 0.04em; }
.foot .phone { margin: 0; }
.foot .privacy-note { margin: 0; }
.wordmark { font-size: 15px; }

/* Public play totals (plays.js): per-track totals only, shown once a track has at least one. */
.track .plays {
  margin-top: 2px;
  font-family: Audiowide, "Trebuchet MS", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 60, 220, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
