/* The video section: the silent trailer playing inline behind a glowing button that plays the full
   tribute inline in the same frame. The frame chrome comes from .video-frame in site.css; this replaces the
   placeholder screen with real video. */

.video-frame__screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #0b1a33;                       /* the trailer's own background, so letterboxing matches */
}

.video-trailer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1a33;
}

/* A scrim only under the button, so the lettering stays legible over any frame of the trailer. */
.video-frame__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(18px, 4vw, 36px) 16px clamp(16px, 3vw, 28px);
  background: linear-gradient(rgba(6, 12, 24, 0), rgba(6, 12, 24, 0.72) 62%);
  pointer-events: none;                      /* only the button itself is clickable */
}

.watch-button {
  position: relative;
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(233, 222, 188, 0.5);
  border-radius: 999px;
  padding: clamp(11px, 1.5vw, 15px) clamp(22px, 3vw, 34px);
  background: rgba(11, 26, 51, 0.72);
  color: #f3efe4;
  font: 600 clamp(14px, 1.35vw, 16.5px)/1 var(--font-ui);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
/* Two lines: the action, and underneath it, in the site's secondary style (the italic display face
   in a softer tone, as "In Honor of" on the cover), when to press it. */
.watch-button { border-radius: 30px; }
.watch-button__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.watch-button__main { display: block; }
.watch-button__sub {
  display: block;
  font: italic 400 clamp(13px, 1.15vw, 15px)/1.1 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(243, 239, 228, 0.74);
}

/* the glow: a soft gold bloom behind the pill, breathing slowly */
.watch-button__glow {
  position: absolute;
  inset: -55%;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0) 72%);
  filter: blur(10px);
  opacity: 0.85;
  animation: watch-breathe 3.6s ease-in-out infinite;
}
@keyframes watch-breathe {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.06); }
}
.watch-button:hover,
.watch-button:focus-visible {
  background: rgba(17, 36, 68, 0.9);
  border-color: rgba(233, 222, 188, 0.85);
  transform: translateY(-1px);
}
.watch-button:focus-visible { outline: 2px solid #f3efe4; outline-offset: 3px; }

/* Shown only when the full video has no URL yet, or it fails to load. */
.video-frame__note {
  pointer-events: auto;
  margin: 0;
  max-width: 44ch;
  text-align: center;
  color: #e7ecf6;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(6, 12, 24, 0.9);
}

/* On a phone the frame is only ~200px tall, and the second line made the button tall enough to sit
   over the trailer's lettering. Tighter padding lets it hug the bottom edge of the frame. */
@media (max-width: 600px) {
  .video-frame__overlay { padding: 12px 12px 9px; gap: 6px; }
  .watch-button { padding: 8px 14px 9px; border-radius: 22px; }
  .watch-button__label { gap: 3px; }
  /* "Tap to watch the full tribute" is 29 capitals; at the wide tracking it broke onto two lines
     below ~420px and left TRIBUTE on its own over the trailer's lettering. Tighter tracking and a
     size that follows the screen keep it to one line down to a 320px phone. */
  .watch-button__main { font-size: clamp(10.5px, 3.3vw, 14px); letter-spacing: 0.06em; }
  .watch-button__sub { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- the full tribute, inline */
/* Laid over the trailer in the same 16:9 frame; the trailer and the button step aside while it is up.
   object-fit: contain, so nothing of the tribute is cropped. */
.video-full {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-full:focus { outline: none; }
.video-full:focus-visible { outline: 2px solid #f3efe4; outline-offset: -2px; }
.is-playing-full .video-frame__overlay { display: none; }
.is-playing-full .video-trailer { visibility: hidden; }

/* Back to the trailer. Top right, clear of the native control bar along the bottom. */
.video-full__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  appearance: none;
  border: 1px solid rgba(243, 239, 228, 0.4);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  background: rgba(8, 12, 22, 0.66);
  color: #f3efe4;
  font: 400 18px/1 var(--font-ui);
  cursor: pointer;
}
.video-full__close:hover { background: rgba(20, 30, 50, 0.9); }
.video-full__close:focus-visible { outline: 2px solid #f3efe4; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .watch-button__glow { animation: none; opacity: 0.8; }
  .watch-button { transition: none; }
}
