/* =====================================================================
   my-design-kit · Media loader
   The play button for preview clips that open the full film, and the
   empty state of a picture that hasn't loaded yet.
   Needs: tokens.css, media.js
   ===================================================================== */

/* Not loaded yet: show the box, not the alt text (it appears the moment it
   loads; no fade) */
img[data-src] { visibility: hidden; }

.kit-clip { position: relative; }

.kit-clip__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* solid enough to read without a backdrop blur, which is costly on phones */
  background: color-mix(in srgb, var(--kit-paper, #fff) 88%, transparent);
  color: var(--kit-ink, #111);
  box-shadow: var(--kit-shadow-lg);
  cursor: pointer;
  transition: transform var(--kit-dur-instant, 150ms) var(--kit-ease-out, ease-out);
  -webkit-tap-highlight-color: transparent;
}
.kit-clip__play:hover { transform: scale(1.06); }
.kit-clip__play:active { transform: scale(.95); }
.kit-clip__play:focus-visible { outline: 2px solid var(--kit-primary); outline-offset: 3px; }
.kit-clip__play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .kit-clip__play { transition: none; }
}
