:root {
  --navy-950: #091121;
  --navy-900: #0f1c34;
  --navy-800: #1b2c4e;
  --navy-700: #2a3f6a;
  --red-900: #4f1714;
  --red-800: #6b211c;
  --red-700: #8e3127;
  --red-600: #b44b3d;
  --cream: #f0ddc7;
  --cream-soft: #dcbda6;
  --line: rgba(240, 221, 199, 0.16);
  --shadow-lg: 0 42px 94px rgba(2, 5, 12, 0.44);
  --shadow-sm: 0 18px 42px rgba(2, 5, 12, 0.32);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: "Avenir Next Condensed", "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 75, 61, 0.34), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(42, 63, 106, 0.4), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(142, 49, 39, 0.34), transparent 28%),
    linear-gradient(180deg, #081121 0%, #132241 46%, #091121 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background:
    linear-gradient(90deg, rgba(240, 221, 199, 0.04) 0 1px, transparent 1px 108px),
    linear-gradient(180deg, rgba(240, 221, 199, 0.03) 0 1px, transparent 1px 108px);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.social-shell {
  width: min(1480px, calc(100% - 20px));
  margin: 10px auto 24px;
  padding: 28px;
  border-radius: 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(180, 75, 61, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(16, 29, 54, 0.96), rgba(7, 15, 30, 0.98));
  border: 1px solid rgba(240, 221, 199, 0.09);
  box-shadow: var(--shadow-lg);
}

.social-shell::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  border: 1px solid rgba(240, 221, 199, 0.08);
  pointer-events: none;
}

.social-header,
.station-stage,
.library-panel {
  position: relative;
  z-index: 1;
}

.header-bar,
.masthead,
.stats-grid,
.station-stage,
.library-head,
.filter-row,
.load-row,
.detail-row,
.control-row,
.link-row,
.header-links,
.station-banner,
.screen-ribbon {
  display: flex;
  gap: 14px;
}

.social-header {
  margin-bottom: 24px;
}

.header-bar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.back-link,
.link-row a {
  color: var(--cream);
  text-decoration: none;
}

.back-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back-link:hover,
.link-row a:hover,
.header-pill:hover {
  color: #ffffff;
}

.header-pill,
.station-pill,
.source-pill,
.detail-pill,
.filter-pill,
.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 199, 0.14);
  background: linear-gradient(135deg, rgba(180, 75, 61, 0.22), rgba(42, 63, 106, 0.24));
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.filter-pill,
.load-more-button {
  background: rgba(240, 221, 199, 0.06);
}

.filter-pill.is-active,
.filter-pill:hover,
.load-more-button:hover {
  background: linear-gradient(135deg, var(--red-600), var(--cream-soft));
  color: var(--navy-950);
}

.masthead {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.station-kicker,
.eyebrow {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.stat-card strong,
.card-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.headline-note,
.hero-summary,
.library-intro,
.library-note,
.card-meta {
  margin: 0;
  color: rgba(240, 221, 199, 0.78);
  line-height: 1.65;
}

.stats-grid {
  width: min(960px, 100%);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card,
.meta-panel,
.library-panel,
.archive-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 34, 65, 0.92), rgba(11, 19, 37, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 34%);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  min-width: 180px;
  padding: 18px 20px;
  text-align: center;
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(240, 221, 199, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 1.4rem;
}

.station-stage {
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.station-banner {
  flex-wrap: wrap;
  justify-content: center;
}

.tv-frame {
  width: min(1100px, 100%);
  padding: 24px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(181, 73, 58, 0.3), rgba(23, 36, 66, 0.88) 32%, rgba(13, 22, 40, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%);
  border: 1px solid rgba(240, 221, 199, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(240, 221, 199, 0.08),
    var(--shadow-lg);
}

.tv-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 16px;
  color: rgba(240, 221, 199, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tv-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 104px;
  gap: 18px;
  align-items: stretch;
}

.speaker-stack,
.knob-stack {
  border-radius: 28px;
  border: 1px solid rgba(240, 221, 199, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 17, 30, 0.94), rgba(27, 44, 78, 0.86)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 30%);
}

.speaker-stack {
  position: relative;
  overflow: hidden;
}

.speaker-stack::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle, rgba(240, 221, 199, 0.22) 0 1px, transparent 1px 100%);
  background-size: 12px 12px;
  opacity: 0.55;
}

.knob-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.knob,
.slider {
  display: block;
}

.knob {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 199, 0.18);
  background:
    radial-gradient(circle at 35% 35%, rgba(240, 221, 199, 0.34), transparent 26%),
    linear-gradient(145deg, rgba(180, 75, 61, 0.92), rgba(74, 25, 21, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.knob--small {
  width: 30px;
  height: 30px;
}

.slider {
  width: 18px;
  height: 140px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(240, 221, 199, 0.18), rgba(240, 221, 199, 0.04));
  position: relative;
}

.slider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: 28px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cream-soft), var(--red-600));
}

.screen-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-ribbon,
.screen-footer {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.stage-screen {
  width: min(430px, calc(100vw - 230px));
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  padding: 12px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(240, 221, 199, 0.18), rgba(255, 255, 255, 0.02)),
    #04070d;
  box-shadow:
    inset 0 0 0 1px rgba(240, 221, 199, 0.08),
    0 24px 46px rgba(0, 0, 0, 0.4);
}

#hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  background: #05070b;
}

.screen-tag,
.screen-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.screen-tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 199, 0.12);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 221, 199, 0.78);
  background: rgba(8, 17, 30, 0.62);
}

.screen-title {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--navy-700));
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.meta-panel,
.library-panel {
  width: min(980px, 100%);
  padding: 24px;
}

.meta-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row,
.control-row,
.link-row {
  flex-wrap: wrap;
}

.control-row button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-700), var(--navy-700));
  box-shadow: inset 0 0 0 1px rgba(240, 221, 199, 0.08);
}

.control-row button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.link-row a {
  color: var(--cream-soft);
}

.library-panel {
  margin: 0 auto;
}

.library-head {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
}

.library-intro {
  margin-bottom: 16px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.archive-card {
  overflow: hidden;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.archive-card:hover,
.archive-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(240, 221, 199, 0.28);
  box-shadow: 0 26px 52px rgba(2, 5, 12, 0.36);
}

.card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(79, 23, 20, 0.44), rgba(15, 28, 52, 0.96)),
    #060b13;
}

.card-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0), rgba(4, 7, 13, 0.84) 54%, rgba(4, 7, 13, 0.94));
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-source,
.card-badge {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-source {
  color: var(--cream-soft);
}

.card-badge {
  color: rgba(240, 221, 199, 0.7);
}

.card-title {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.06;
}

.load-row {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

@media (max-width: 1160px) {
  .header-bar,
  .library-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-body {
    grid-template-columns: 72px minmax(0, 1fr) 80px;
  }

  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .social-shell {
    width: min(100%, calc(100% - 12px));
    margin: 6px auto 16px;
    padding: 18px;
    border-radius: 28px;
  }

  .social-shell::after {
    inset: 10px;
    border-radius: 18px;
  }

  .stats-grid {
    width: 100%;
  }

  .stat-card {
    flex: 1 1 180px;
  }

  .tv-frame {
    padding: 18px;
  }

  .tv-topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-body {
    grid-template-columns: 1fr;
  }

  .speaker-stack,
  .knob-stack {
    min-height: 76px;
  }

  .speaker-stack::before {
    background-size: 10px 10px;
  }

  .knob-stack {
    flex-direction: row;
  }

  .slider {
    width: 120px;
    height: 18px;
  }

  .slider::after {
    top: 50%;
    left: 34%;
    transform: translate(-50%, -50%);
  }

  .stage-screen {
    width: min(100%, 420px);
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .stats-grid,
  .library-grid,
  .load-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .load-row {
    align-items: stretch;
  }

  .library-grid {
    display: grid;
  }

  .stage-screen {
    width: 100%;
  }

  .meta-panel,
  .library-panel {
    padding: 18px;
  }
}
