/* Blue/white LED animation is limited to the frame, leaving video content unchanged. */
.recap-video-frame,
.video-card[data-year="2026"] {
  animation: eofLedHalo 5s ease-in-out infinite;
}

@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .recap-video-frame::after,
  .video-card[data-year="2026"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 3px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, #ffffff 0%, #65b7ff 16%, #235dff 28%, #ffffff 42%, #d6f4ff 50%, #235dff 65%, #ffffff 82%, #65b7ff 100%);
    background-size: 280% 280%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: eofLedTravel 4.5s linear infinite, eofLedFlicker 8s linear infinite;
  }
}

@keyframes eofLedTravel {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Two brief dimming impulses, followed by a long steady interval. */
@keyframes eofLedFlicker {
  0%, 10%, 15%, 21%, 52%, 58%, 100% { opacity: 1; }
  12%, 18%, 55% { opacity: 0.35; }
}

@keyframes eofLedHalo {
  0%, 100% {
    box-shadow: 0 0 11px rgba(255, 255, 255, 0.65), 0 0 30px rgba(71, 152, 255, 0.65), 0 0 58px rgba(36, 101, 255, 0.3), 0 18px 38px rgba(7, 10, 20, 0.45);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 43px rgba(93, 181, 255, 0.85), 0 0 78px rgba(36, 101, 255, 0.45), 0 18px 38px rgba(7, 10, 20, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recap-video-frame,
  .recap-video-frame::after,
  .video-card[data-year="2026"],
  .video-card[data-year="2026"]::before,
  .video-card[data-year="2026"]::after {
    animation: none !important;
  }
}
