/* ==================================================
   Autoplay video layer
   ==================================================
   The injected <video> ALWAYS covers its cell, in three stacked states:
     1. soft slate base   (background-color, before anything paints)
     2. first-frame poster (the clip's own representative frame)
     3. the playing video  (silent, looping)
   Because the video element is opaque and fills the cell, the cell's original
   <img> is never in the visual path — so a stale/old placeholder can't show.
   If the poster or video can't load, the soft slate shows (never the old image).
   ================================================== */

.rido-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Soft slate base — the requested neutral fallback. Shows for the instant
     before the poster paints, and stays if the poster/video fail to load. */
  background-color: var(--rido-video-slate, #e9ebef);
  z-index: 1;
  pointer-events: none;
}

/* Dark band sections (.is-inverted / .section-dark) invert the local palette. */
.is-inverted .rido-video,
.section-dark .rido-video {
  background-color: #17181b;
}
