:root {
  color-scheme: dark;
  --ink: #f7f1d9;
  --muted: rgba(247, 241, 217, 0.68);
  --primary: #e491a6;
  --shade: #51091c;
  --overlay: #095113;
  --shadow: rgba(0, 0, 0, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.broadcast {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.film-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, rgba(0, 0, 0, 0.02) 50%),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.24));
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: screen;
}

iframe {
  display: block;
  width: 100vw;
  height: 56.25vw;
  max-width: 177.7778vh;
  max-height: 100vh;
  border: 0;
  pointer-events: none;
  background: #000;
}

.tap-layer,
.audio-gate {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tap-layer {
  z-index: 3;
  background: transparent;
}

.audio-gate {
  z-index: 5;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 7px
    ),
    rgba(9, 81, 19, 0.58);
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.audio-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.audio-gate span {
  display: block;
  padding: 0.12em 0.22em;
  font-family:
    "Liberation Mono",
    "DejaVu Sans Mono",
    "Nimbus Mono PS",
    "Courier Prime",
    "Courier New",
    sans-serif;
  font-size: clamp(3.4rem, 13vw, 13rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0.045em 0 var(--shade),
    -0.035em 0 var(--primary),
    0 0 0.35em var(--shadow);
}

.schedule-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(9, 81, 19, 0.22);
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.schedule-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.schedule-card {
  width: min(42rem, 94vw);
  max-height: min(38rem, 82vh);
  border: 1px solid rgba(228, 145, 166, 0.72);
  background: var(--overlay);
  box-shadow:
    0 0 0 1px rgba(81, 9, 28, 0.72),
    0 2rem 5rem var(--shadow);
  padding: clamp(1rem, 3vw, 1.75rem);
  backdrop-filter: blur(7px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

#scheduleList {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(28rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--primary) var(--shade);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#scheduleList li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 3.5rem;
  border-top: 1px solid rgba(247, 241, 217, 0.18);
  padding-top: 0.7rem;
}

#scheduleList li.is-current {
  color: var(--primary);
}

#scheduleList time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#scheduleList strong {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
}

#scheduleList span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  #scheduleList li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
