/* ---------- Site header (desktop, left column) ---------- */
.site-header {
  align-items: center;
  gap: 20px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--color-logo);
  text-decoration: none;
  font-size: 17px;
  line-height: 23px;
}

/* ---------- Live badge ---------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-live);
}

/* Top right of the stage bar. */
.stage__bar .live-badge {
  grid-column: 3;
  justify-self: end;
}

/* A shared clip (?item=…) is from the past, not live, so hide the badge (see index.html). */
.is-clip-link .live-badge {
  display: none;
}

/* A red dot that pulses: it fades a little while a ring grows out of it and fades away. */
.live-badge__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-live-dot);
  animation: live-dot-pulse 1.6s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(229 57 53 / 0.6);
  }
  50% {
    opacity: 0.6;
  }
  70% {
    box-shadow: 0 0 0 0.5em rgb(229 57 53 / 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(229 57 53 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-badge__dot {
    animation: none;
  }
}

@media (min-width: 1024px) {
  /* Sizes in em (from 24.574px in Figma) so the dot follows the scaling text. */
  .live-badge {
    gap: 0.4771em;
    font-size: var(--fs-live-badge);
  }

  .live-badge__dot {
    width: 0.7753em;
    height: 0.7753em;
  }
}

/* ---------- Stage (live video panel) ---------- */
.stage__bar {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  /* Equal side columns keep the title centred regardless of the logo width. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 69px;
  padding: 0 22px;
  pointer-events: none;
}

.stage__bar a {
  pointer-events: auto;
}

.stage__bar .stage__logo {
  justify-self: start;
}

.stage__title {
  font-family: StendahlsSeasonMix, var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #000;
  text-align: center;
}

.stage__player {
  position: absolute;
  inset: 0;
}

/* Cover the panel with the square (1:1) stream: a square as big as the
   panel's longer side, centred, with the overflow clipped by .stage. */
.stage__player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 100cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 0;
}

/* HLS clip player (?item=<id>), covering the panel like the live iframe. */
.stage__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Keep the live stream hidden while a clip is being looked up. */
.stage__player.is-loading-clip iframe {
  visibility: hidden;
}

/* "Back to live stream": shown over the top of the clip, clear of the video
   controls at the bottom (and of the floating composer on mobile). */
.back-to-live {
  position: absolute;
  z-index: 3;
  top: 54px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-green);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.back-to-live[hidden] {
  display: none;
}

.back-to-live:hover,
.back-to-live:focus-visible {
  background: var(--color-green);
  color: var(--color-cream);
  transform: translateX(-50%) scale(1.04);
}

.back-to-live:focus-visible {
  outline: 3px solid var(--color-cream);
  outline-offset: 3px;
}

.back-to-live__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-live-dot);
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6);
  animation: back-to-live-pulse 1.8s ease-out infinite;
}

@keyframes back-to-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-live,
  .back-to-live__dot {
    transition: none;
    animation: none;
  }
}

@media (min-width: 1024px) {
  /* Sizes in em (from 22px in Figma) so the pill follows the scaling text. */
  .back-to-live {
    top: 65px;
    gap: 0.5455em;
    padding: 0.9091em 1.6364em;
    font-size: var(--fs-back-to-live);
  }

  .back-to-live__dot {
    width: 0.5455em;
    height: 0.5455em;
  }
}

@media (min-width: 1024px) {
  .stage__bar {
    top: 54px;
    left: auto;
    right: 65px;
    height: auto;
    padding: 0;
  }

  .stage__bar .stage__logo,
  .stage__title {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.hero__titles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero__eyebrow {
  font-size: var(--fs-hero-eyebrow);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-text-black);
  font-family: var(--font-display), sans-serif;
}

.hero__title {
  font-family: StendahlsSeasonMix, var(--font-display), sans-serif;
  font-weight: 600;
  font-size: var(--fs-hero-title);
  line-height: 0.91;
  letter-spacing: -0.01em;
  color: var(--color-green);
  font-synthesis-weight: none;
}

.hero__lead {
  font-family: StendahlsSeasonMix, var(--font-display), sans-serif;
  font-weight: 600;
  font-size: var(--fs-hero-lead);
  line-height: 1.29;
  font-synthesis-weight: none;
  color: var(--color-text-black);
}

@media (min-width: 1024px) {
  .hero__intro {
    gap: calc(35 * var(--space));
  }

  .hero__titles {
    gap: calc(18 * var(--space));
  }
}
