/* Live-snapshot card preview (Roadmap P4).
   A refreshing frame overlay that cross-fades over the static thumbnail while a
   card is hovered (desktop) or centred in view (mobile), producing a low-fps
   "live" peek. Sits above the thumbnail but below the card's status/LIVE chips. */

[data-sl-live-snap] {
  position: relative;
}

.sl-live-snap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: #0b0f17;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.sl-live-snap-img.sl-live-snap-on {
  opacity: 1;
}

/* Subtle "peeking" affordance ring while a live snapshot is showing. */
.sl-live-snap-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(236, 72, 153, 0.55);
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .sl-live-snap-img {
    transition: none;
  }
}
