:root {
  --bg: #111a24;
  --bg-lift: #17222e;
  --line: #22303f;
  --gold: #c9a86c;
  --gold-dim: #8d7549;
  --text: #e8eef5;
  --muted: #7d8fa3;
  --live: #63c98a;
  --shut: #d97b6c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 40px;
  gap: 22px;
}

/* ---- masthead ---- */
.mast { text-align: center; }

.wordmark {
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  font-weight: 600;
  text-indent: 0.42em;
}

.slot-pill {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---- card ---- */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 26px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.live { color: var(--live); }
.eyebrow.shut { color: var(--shut); }

.title {
  margin: 14px 0 4px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

/* the hour of the next broadcast, where the idle screen used to run a
   several-hour countdown */
.next-time {
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 6px 0 14px;
}

.sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 24px 0 18px;
}

/* ---- flip clock ---- */
.flip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 26px 0 6px;
}

.flip-unit { text-align: center; }

.flip-digits { display: flex; gap: 4px; }

.tile {
  position: relative;
  width: 44px;
  height: 60px;
  background: #0d151d;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 34px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}

.flip-label {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.flip-colon {
  align-self: center;
  height: 60px;
  line-height: 60px;
  font-size: 28px;
  color: var(--gold-dim);
}

/* ---- progress ring ---- */
.ring-wrap {
  position: relative;
  width: 232px;
  height: 232px;
  margin: 22px auto 18px;
}

.ring { transform: rotate(-90deg); }

.ring-track { fill: none; stroke: #0d151d; stroke-width: 6; }

.ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s linear;
}

.art {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  object-fit: cover;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
}

/* ---- times ---- */
.times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.times b { color: var(--text); font-weight: 500; }

/* ---- footer ---- */
.foot {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(99, 201, 138, 0.5);
  animation: pulse 2.4s infinite;
}

.dot.off { background: var(--line); animation: none; box-shadow: none; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(99, 201, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 201, 138, 0); }
}

.foot b { color: var(--text); font-weight: 600; }

/* ---- gate ---- */
.gate-input {
  width: 100%;
  margin-top: 18px;
  padding: 13px 15px;
  background: #0d151d;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
}

.gate-input::placeholder { color: #4a5b6d; letter-spacing: 0.3em; }

.btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  background: var(--gold);
  color: #10171f;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---- volume ----
   Fixed to the viewport rather than drawn into .stage, so a repaint of the
   broadcast never yanks the slider out from under a finger. */
.vol {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 11px;
  background: rgba(23, 34, 46, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 20;
}

.vol[hidden] { display: none; }

.vol-btn {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vol-btn svg { display: block; }
.vol-btn.muted { color: var(--shut); }

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: pointer;
}

.vol-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: pointer;
}

.vol.is-muted .vol-slider::-webkit-slider-thumb { background: var(--shut); }
.vol.is-muted .vol-slider::-moz-range-thumb { background: var(--shut); }

@media (max-width: 520px) {
  .vol { right: 12px; bottom: 12px; }
  .vol-slider { width: 74px; }
}
