:root {
  --fg: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.65);
  --accent: #e63946;
  --bg: #0a0a09;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Full-bleed photo layers, crossfaded */
.photo-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  z-index: 1;
}

.photo-layer.active { opacity: 1; z-index: 2; }

.video-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  background: #000;
}

.video-layer.active { opacity: 1; z-index: 4; }

/* Readability scrims */
.scrim {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.scrim-top {
  top: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}

.scrim-bottom {
  bottom: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 48px);
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.wordmark span { color: var(--accent); }

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.live-label { color: var(--fg); }

.merch-link {
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(245, 243, 238, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.merch-link:hover {
  background: rgba(245, 243, 238, 0.12);
  border-color: rgba(245, 243, 238, 0.6);
}

.merch-link[hidden] { display: none; }

.clock {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid rgba(245, 243, 238, 0.25);
}

/* Tune-in overlay */
.tune-in {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 10, 9, 0.35);
}

.tune-in[hidden] { display: none; }

.tune-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 243, 238, 0.4);
  background: rgba(10, 10, 9, 0.5);
  backdrop-filter: blur(6px);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.tune-btn:hover { transform: translateY(-2px); background: rgba(10, 10, 9, 0.7); }

.tune-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.tune-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Empty state */
.empty-state {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg);
}

.empty-state[hidden] { display: none; }

.empty-state p { margin: 0; font-size: 14px; color: var(--fg); }
.empty-state .empty-sub { color: var(--muted); font-size: 13px; max-width: 460px; }
.empty-state code {
  background: rgba(245, 243, 238, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* Caption bar */
.caption-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 48px) 28px;
}

.caption-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.caption-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  margin: 0;
  max-width: 60vw;
}

.caption-next {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 60vw;
}

.caption-next[hidden] { display: none; }

.buy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(230, 57, 70, 0.6);
}

.buy-btn:hover { transform: translateY(-2px); }
.buy-btn[hidden] { display: none; }

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  flex-shrink: 0;
}

.volume input[type="range"] {
  width: 90px;
  accent-color: var(--accent);
}

@media (max-width: 640px) {
  .caption-title { max-width: 70vw; font-size: 14px; }
  .caption-next { max-width: 70vw; font-size: 11px; }
  .status .clock { display: none; }
  .buy-btn span { display: none; }
}
