:root {
  --bg: #0b0d12;
  --bar: #12151c;
  --ticker-bg: #07090d;
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #e8321f;
  --bar-h: 64px;
  --ticker-h: 0px;
}
body.has-ticker { --ticker-h: 56px; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  cursor: none;
}

/* The video never sits under a bar. YouTube's player must stay uncovered. */
#stage, #msg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--bar-h) + var(--ticker-h));
  background: #000;
}
#stage iframe, #stage #player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#msg {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}

#bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--ticker-h);
  height: var(--bar-h);
  background: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
  border-top: 3px solid var(--accent);
}
#brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 22px;
  white-space: nowrap;
}
#brand .hot { color: var(--accent); }
#live {
  display: none;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 12px;
  letter-spacing: 0.08em;
}
body.is-live #live { display: inline-block; }

#now {
  color: var(--muted);
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

#countdown {
  display: none;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
body.has-countdown #countdown { display: flex; }
#countdown .label {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#countdown .title { font-size: 20px; font-weight: 600; }
#countdown .time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 26px;
}

#clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 26px;
  white-space: nowrap;
}

#ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ticker-h);
  background: var(--ticker-bg);
  overflow: hidden;
  display: none;
  align-items: center;
}
body.has-ticker #ticker { display: flex; }
#ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll linear infinite;
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: 24px;
  font-weight: 600;
}
.tick .tag {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.tick::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  margin-left: 28px;
}
/* Graphics breaks: the video is paused, so the cards may fill the whole screen. */
#segment {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #1c2230 0%, var(--bg) 70%);
  border-left: 14px solid var(--accent);
}
body.in-break #segment { display: flex; }
.card {
  width: min(1400px, 86vw);
  animation: card-in 0.6s ease-out both;
}
.card-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 30px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.card-title {
  font-weight: 900;
  font-size: clamp(48px, 6vw, 112px);
  line-height: 1.02;
  text-transform: uppercase;
}
.card-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(24px, 2.4vw, 44px);
}
.card-big {
  margin-top: 28px;
  font-weight: 900;
  font-size: clamp(64px, 9vw, 168px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card-list {
  margin: 32px 0 0;
  padding-left: 1.4em;
  font-size: clamp(28px, 3vw, 54px);
  font-weight: 700;
  line-height: 1.45;
}
.card-list li::marker { color: var(--accent); font-weight: 900; }
.card.is-image { text-align: center; }
.card-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}
.card-caption {
  margin-top: 24px;
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 700;
}
.card-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 10px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: card-progress linear both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes card-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
