﻿:root {
  --bg: #0a0a0a;
  --panel: rgba(0, 0, 0, 0.66);
  --panel-strong: rgba(0, 0, 0, 0.82);
  --text: #cfcfcf;
  --muted: #aeaeae;
  --teal: #38bdf8;
  --magenta: #b902c4;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.88)),
    url("bpmradio-network-bg.png") left top / contain no-repeat fixed,
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(185, 2, 196, 0.15), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
  opacity: 1;
}

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 1.1s ease, border-color 1.1s ease;
}

a:hover,
a:focus-visible {
  color: var(--white);
  border-color: var(--magenta);
}

.page-shell {
  width: min(95%, 1160px);
  margin: 0 auto;
  padding: 28px 0 54px;
  position: relative;
}

.page-shell--player {
  width: min(100% - 20px, 760px);
  padding-bottom: 28px;
}

.page-header,
.panel,
.year-group {
  position: relative;
  z-index: 1;
}

.page-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.78));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(185, 2, 196, 0.08), transparent 24%);
}

.page-header::before,
.playlist-card__link::before,
.playlist-card__link::after,
.panel::before,
.year-group::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-header::before {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.page-header--home {
  padding-bottom: 36px;
}

.crumb,
.eyebrow,
.meta-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.crumb {
  margin-bottom: 18px;
  text-decoration: none;
}

.hero-logo {
  display: block;
  max-width: min(100%, 420px);
  margin: 0 0 16px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.hero-logo--home {
  margin-top: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

h1 {
  line-height: 1.08;
  letter-spacing: 0.03em;
  max-width: none;
  color: var(--teal);
}

.page-header--home h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  white-space: nowrap;
}

.page-header:not(.page-header--home) h1 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  color: var(--white);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 {
  font-size: 1.15rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.callout,
.search-bar,
.stats,
.hero-actions,
.meta-grid,
.panel,
.year-group {
  margin-top: 22px;
}

.callout {
  padding: 14px 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  border-left: 4px solid var(--magenta);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

.callout--warning {
  border-left-color: var(--teal);
}

.stats,
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stats > div,
.meta-grid > div {
  padding: 14px 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--line);
}

.meta-value {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link,
.pager-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.action-link img {
  width: 14px;
  height: 14px;
}

.search-bar {
  display: grid;
  gap: 8px;
}

.search-bar label {
  font-size: 0.94rem;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(0, 0, 0, 0.56);
  color: var(--text);
  font: inherit;
}

.content-stack {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.panel,
.year-group {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.74));
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.panel::before,
.year-group::before {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.panel-heading,
.year-group__header,
.playlist-card__meta,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  flex-wrap: wrap;
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.return-link img {
  width: 14px;
  height: 14px;
}

.playlist-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.playlist-card {
  min-width: 0;
}

.playlist-card__link {
  display: block;
  height: 100%;
  padding: 18px;
  border-radius: 4px;
  color: inherit;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.playlist-card__link::before {
  top: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-top: 3px solid rgba(56, 189, 248, 0.75);
  border-left: 3px solid rgba(56, 189, 248, 0.75);
}

.playlist-card__link::after {
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  border-right: 3px solid rgba(185, 2, 196, 0.75);
  border-bottom: 3px solid rgba(185, 2, 196, 0.75);
}

.playlist-card__link:hover,
.playlist-card__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  border-color: rgba(56, 189, 248, 0.28);
}

.playlist-card__status.is-live {
  background: rgba(56, 189, 248, 0.18);
  color: var(--teal);
}

.playlist-card__status.is-missing {
  background: rgba(185, 2, 196, 0.14);
  color: #f1b6ff;
}

.playlist-card__date {
  font-size: 0.88rem;
  color: var(--muted);
}

.playlist-card p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.player-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.audio-card {
  padding: 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--line);
}

.audio-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.audio-card audio {
  display: block;
  width: 100%;
}

.audio-link-row {
  margin: 12px 0 0;
}

.playlist-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: rgba(0, 0, 0, 0.56);
}

.playlist-table th,
.playlist-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.playlist-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(56, 189, 248, 0.08);
}

.table-count {
  width: 60px;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 28px 14px;
}

.pager {
  flex-wrap: wrap;
  margin-top: 18px;
}

.pager-link {
  border-color: rgba(185, 2, 196, 0.22);
}

[data-filter-card].is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1100px);
    padding-top: 18px;
  }

  .page-header,
  .panel,
  .year-group {
    border-radius: 10px;
    padding: 18px;
  }

  .page-header--home h1 {
    white-space: normal;
  }

  .panel-heading,
  .year-group__header,
  .playlist-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-table {
    min-width: 540px;
  }
}
