/* Native posters remain the no-script fallback. These decorative stills cover
   the brief gap between play() and a decoded frame without gating the page. */
.media-loading-stage { isolation: isolate; }
.media-loading-relative { position: relative; }
img.media-loading-still {
  position: absolute;
  z-index: 0;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease-out, visibility 0s linear;
}
img.media-loading-still[data-opening-still] { inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.media-loading-still[data-media-loading-ready="true"] {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}
/* The browser's own play/scrub controls stay visible and clickable. */
img.media-loading-still-native { clip-path: inset(0 0 48px 0); }
img.media-loading-still-hero[data-media-loading-ready="true"] {
  transition: opacity 260ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 260ms;
}
/* Existing one-decoder triptychs already paint authentic posters. Retain those
   behind the first canvas frame so its short crossfade has no empty interval. */
.reel-triptych > canvas { transition: opacity 180ms ease-out, transform .65s cubic-bezier(.2,.65,.2,1); }
.reel-triptych.triptych-ready .triptych-posters { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  img.media-loading-still,
  img.media-loading-still[data-media-loading-ready="true"],
  .reel-triptych > canvas { transition: none; }
}
