/* Midnight Marquee — live page: the marquee sign is lit, tune in. */

.live-main {
  max-width: var(--max); margin: 0 auto;
  padding: 7.2rem 1.25rem 3.5rem;
}
.live-main .section { max-width: none; padding: 2.2rem 0; }
.live-main .section:first-child { padding-top: 0.6rem; }

.live-hero .section-header { margin-bottom: 1.2rem; }
.live-hero--compact .section-header { margin-bottom: 0.85rem; }
.live-hero--compact .section-header h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
}
.live-hero--compact .section-header p { font-size: 0.98rem; }

#request { scroll-margin-top: 5.5rem; }

.live-primary-zone {
  border: 1px solid rgba(255, 179, 71, 0.35);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(720px 340px at 50% -20%, rgba(255, 179, 71, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(30, 20, 54, 0.94), rgba(23, 16, 41, 0.9));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), 0 0 40px rgba(255, 150, 60, 0.1);
  padding: 0.35rem 1.15rem 0.5rem;
  margin-bottom: 0.5rem;
}
.live-primary-zone .live-primary-section {
  padding: 1.35rem 0 1.5rem;
}
.live-primary-zone .live-primary-section + .live-primary-section {
  border-top: 1px solid rgba(255, 179, 71, 0.22);
  padding-top: 1.6rem;
}
.live-primary-zone .section-header h2 {
  font-size: clamp(1.75rem, 4.6vw, 2.55rem);
}
.live-hero .section-header h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 0.98; margin: 0 0 0.6rem;
}
.live-hero .section-header h1 em { font-style: italic; color: var(--bulb); }

.live-stats-compact {
  margin-top: 0; max-width: 42rem;
}
.live-stats-compact--quiet {
  max-width: none;
}
.live-stats-footer {
  padding-top: 0.75rem !important;
  padding-bottom: 1.5rem !important;
}
.live-stats-line {
  margin: 0; padding: 0.75rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255, 179, 71, 0.28);
  background: rgba(255, 179, 71, 0.07);
  color: var(--muted); font-size: 0.92rem; line-height: 1.45;
}
.live-stats-compact--quiet .live-stats-line {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.live-stats-line strong { color: var(--bulb); font-family: var(--font-display); font-size: 1.05rem; }
.live-stats-compact--quiet .live-stats-line strong { font-size: 0.92rem; font-family: var(--font-ui); font-weight: 700; }
.live-stats-line span { color: var(--ink); font-weight: 600; }
.live-stats-compact--quiet .live-stats-line span { font-weight: 500; color: var(--muted); }

.live-bridge-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 0.45rem 0.9rem; border-radius: 999px; margin-bottom: 1.1rem;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.live-bridge-chip::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 9px currentColor;
}
.live-bridge-chip.is-online { color: #7dffa8; background: rgba(125, 255, 168, 0.08); border-color: rgba(125, 255, 168, 0.4); }
.live-bridge-chip.is-offline { color: var(--bulb); background: rgba(255, 179, 71, 0.09); border-color: rgba(255, 179, 71, 0.4); }

/* Now playing = the lit marquee sign */
.now-sign {
  border: 1px solid rgba(255, 179, 71, 0.38); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(620px 300px at 50% -30%, rgba(255, 179, 71, 0.2), transparent 65%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  overflow: hidden; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 44px rgba(255, 150, 60, 0.12);
}
.live-now-card {
  background: transparent; border: none; border-radius: 0;
  padding: 1.7rem 1.8rem 2rem; text-align: center;
}
.live-now-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.05;
  margin: 0 0 0.6rem; color: var(--ink);
  text-shadow: 0 0 30px rgba(255, 179, 71, 0.35);
}
.live-now-meta { color: var(--muted); font-size: 0.98rem; margin: 0.3rem 0; }
.live-countdown { margin: 0.5rem 0 0.2rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; }
.live-countdown > span:first-child {
  display: block; font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--bulb); font-weight: 700;
  letter-spacing: 0.02em; text-shadow: 0 0 34px var(--glow);
}
.live-progress {
  margin: 1.3rem auto 0; max-width: 34rem; height: 0.5rem;
  background: rgba(246, 241, 231, 0.12); border-radius: 999px; overflow: hidden;
}
.live-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--bulb-4), var(--bulb), var(--bulb-3));
  border-radius: 999px; transition: width 0.6s ease;
  box-shadow: 0 0 14px var(--glow);
}

/* Requests = jukebox tracklist */
.live-request-card {
  display: flex; flex-direction: column; padding: 0.4rem 1.4rem;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.request-song-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.request-song-row:last-child { border-bottom: 0; }
.request-song-row > div { min-width: 0; }
.seq-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.25; }
.song-length { display: block; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--faint); margin-top: 0.3rem; }
.request-song-row button, .live-request-card button {
  flex-shrink: 0; min-height: 48px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.55);
  background: linear-gradient(135deg, var(--bulb), #ff8a3d); color: #1c0f00;
  box-shadow: 0 6px 22px rgba(255, 150, 60, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.request-song-row button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.live-request-card button:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; filter: grayscale(0.4); }

.live-request-feedback { min-height: 1.3rem; font-size: 0.98rem; color: var(--muted); margin: 0.4rem 0 0.9rem; }
.live-request-feedback.is-success { color: #7dffa8; }
.live-request-feedback.is-error { color: var(--bulb); }

.request-receipt {
  border: 2px solid var(--bulb-3); background: rgba(110, 231, 255, 0.08);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.4rem;
  box-shadow: 0 0 34px rgba(110, 231, 255, 0.15);
}
.request-receipt[hidden] { display: none; }
.request-receipt .receipt-heading {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--bulb-3);
  text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; margin: 0 0 0.5rem;
}
.request-receipt h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.7rem; }
.request-receipt p { margin: 0.5rem 0; }
.request-receipt small { color: var(--muted); font-family: var(--font-mono); }
.request-receipt.is-error { border-color: var(--bulb); background: rgba(255, 179, 71, 0.08); box-shadow: 0 0 34px rgba(255, 179, 71, 0.14); }
.request-receipt.is-error .receipt-heading { color: var(--bulb); }
#request-countdown, .seq-duration { font-variant-numeric: tabular-nums; }

/* Coming up */
.live-upcoming-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; counter-reset: up; }
.live-upcoming-list li {
  counter-increment: up; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.1rem 1rem 3.6rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.live-upcoming-list li::before {
  content: counter(up, decimal-leading-zero);
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--bulb);
}
.live-upcoming-list .seq-title { font-size: 1.08rem; }
.live-upcoming-list .seq-duration { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }
.live-placeholder { color: var(--muted); }
.live-upcoming-list li.live-placeholder { padding-left: 1.1rem; }
.live-upcoming-list li.live-placeholder::before { content: none; }
.queue-label {
  display: inline-block; color: #1c0f00; background: var(--bulb-3);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.18rem 0.55rem; border-radius: 999px; margin-top: 0.4rem;
}

/* FM dial block on live */
.fm-block {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: 1.6rem 1.6rem 1.4rem;
}
.fm-block .fm-dial { max-width: none; background: rgba(10, 6, 20, 0.45); }
#fm-note { font-size: 1.05rem; color: var(--ink); margin: 1rem 0 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Rendered near-live preview player */
.render-view-section .section-header { margin-bottom: 1.2rem; }
.render-view-shell {
  border: 1px solid rgba(255, 179, 71, 0.35); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 36px rgba(255, 150, 60, 0.1);
}
.render-view-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem;
  padding: 0.85rem 1.1rem 0.65rem; border-bottom: 1px solid var(--line);
}
.render-view-badge {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  color: #1c0f00; background: linear-gradient(135deg, var(--bulb-3), #7dffa8);
  box-shadow: 0 0 18px rgba(125, 255, 168, 0.25);
}
.render-view-sync-note { margin: 0; flex: 1 1 14rem; font-size: 0.92rem; color: var(--muted); }
.render-view-stage {
  position: relative; aspect-ratio: 16 / 9; background: #05030a;
}
.render-view-video {
  width: 100%; height: 100%; display: block; object-fit: cover; background: #05030a;
}
.render-view-static {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.render-view-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 3, 10, 0.82));
}
.render-view-overlay[hidden] { display: none; }
.render-view-overlay-card {
  width: min(100%, 28rem); text-align: center;
  border: 1px solid rgba(255, 179, 71, 0.45); border-radius: var(--radius);
  background: rgba(12, 8, 22, 0.88); padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.render-view-overlay-kicker {
  margin: 0 0 0.35rem; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bulb-3);
}
.render-view-overlay-card h3 {
  margin: 0 0 0.45rem; font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 1.85rem);
}
.render-view-overlay-note { margin: 0; font-size: 0.92rem; color: var(--muted); }
.render-view-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1.1rem 1rem;
}
.render-view-now-title {
  margin: 0; flex: 1 1 12rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.render-view-unmute {
  min-height: 44px; cursor: pointer; font: inherit; font-weight: 700;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.55);
  background: rgba(255, 179, 71, 0.12); color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}
.render-view-unmute:hover { background: rgba(255, 179, 71, 0.22); transform: translateY(-1px); }

@media (max-width: 520px) {
  .render-view-footer { flex-direction: column; align-items: stretch; }
  .render-view-unmute { width: 100%; }
}

@media (max-width: 520px) {
  .live-main { padding: 6.4rem 1rem 3rem; }
  .live-now-card { padding: 1.3rem 1.1rem 1.6rem; }
  .live-request-card { padding: 0.3rem 1rem; }
  .request-song-row { gap: 0.6rem; }
  .request-song-row button { font-size: 0.83rem; padding: 0.65rem 0.9rem; }
  .seq-title { font-size: 1.05rem; }
}
