:root {
  --red: #be1e2d;
  --red-deep: #8f1020;
  --ink: #191414;
  --paper: #f7f3ee;
  --white: #fffdf9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--red); color: white; }

body::before {
  content: ""; position: fixed; z-index: -1; inset: 0; opacity: .04;
  background-image: radial-gradient(circle at 1px 1px, var(--red) 1px, transparent 0);
  background-size: 26px 26px;
}

.live-header {
  min-height: 5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem var(--gutter); border-bottom: 1px solid rgba(25,20,20,.12);
  background: rgba(247,243,238,.92); backdrop-filter: blur(14px);
}
.live-header > a { width: clamp(9rem, 14vw, 11rem); }
.live-status {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem;
  border: 1px solid rgba(25,20,20,.14); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase;
}
.live-status span { width: .48rem; height: .48rem; border-radius: 50%; background: #aaa; }
.live-status.is-live { border-color: rgba(190,30,45,.3); color: var(--red); }
.live-status.is-live span { background: var(--red); box-shadow: 0 0 0 .35rem rgba(190,30,45,.12); animation: pulse 1.5s ease infinite; }

main { padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.live-intro { width: min(72rem, 100%); margin: 0 auto 3rem; }
.eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .67rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.live-intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.live-intro h1 em { color: var(--red); font-weight: 500; }
.live-intro > p:last-child { max-width: 35rem; margin: 1.4rem 0 0; color: #706765; font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.25rem); }

.broadcast { width: min(72rem, 100%); margin: auto; }
.player-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #100b0b; box-shadow: 0 2rem 5rem rgba(58,11,17,.18); }
.player-shell iframe { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .45s ease; }
.player-shell.has-stream iframe { opacity: 1; }
.waiting-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(circle at 50% 45%, #73121d, #190b0d 68%); color: white; text-align: center; }
.waiting-state::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 20px 20px; }
.waiting-state > * { position: relative; z-index: 1; }
.waiting-state img { width: clamp(4rem, 8vw, 7rem); margin-bottom: 1.5rem; filter: brightness(0) invert(1); opacity: .85; }
.waiting-state h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 500; }
.waiting-state p { margin: .8rem 0 0; color: rgba(255,255,255,.68); }
.waiting-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.player-shell.has-stream .waiting-state { display: none; }

.broadcast-meta { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(25,20,20,.15); }
.broadcast-meta span { color: #756b69; font-size: .61rem; letter-spacing: .15em; text-transform: uppercase; }
.broadcast-meta h2 { margin: .22rem 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 500; }
.share-button { min-height: 2.85rem; padding: .65rem 1rem; border: 1px solid var(--red); background: transparent; color: var(--red); cursor: pointer; font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.share-button:hover { background: var(--red); color: white; }
.youtube-button { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; background: var(--red); border: 1px solid var(--red); color: white; font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.youtube-button:hover { background: var(--red-deep); border-color: var(--red-deep); }

.live-note { width: min(54rem, 100%); display: flex; align-items: center; gap: 2rem; margin: clamp(4rem, 8vw, 7rem) auto 0; text-align: left; }
.live-note img { width: 4rem; flex: 0 0 auto; }
.live-note p { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.7rem); letter-spacing: -.03em; line-height: 1.18; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem var(--gutter); border-top: 1px solid rgba(25,20,20,.12); color: #756b69; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }
footer a:hover { color: var(--red); }

@keyframes pulse { 50% { box-shadow: 0 0 0 .6rem rgba(190,30,45,0); } }

@media (max-width: 640px) {
  .live-header { min-height: 4.5rem; }
  main { padding-top: 3.5rem; }
  .live-intro { margin-bottom: 2rem; }
  .player-shell { margin-inline: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
  .broadcast-meta { align-items: flex-start; flex-direction: column; }
  .broadcast-meta { display: flex; }
  .share-button, .youtube-button { width: 100%; }
  .live-note { align-items: flex-start; }
  .live-note img { width: 3rem; }
  footer { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
