/* Preview-only native video polish. Keep the fixed widget and every ancestor
   untransformed/unclipped: only its inline frame scales, never the modal shell.
   The same iframe remains mounted when native YouTube playback opens it. */
.xt-motion-preview .home-video-player:has(.home-video-widget) {
  background: transparent;
}
.xt-motion-preview .home-video-widget:not(.is-open) .home-video-frame {
  border-radius: 20px;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .xt-motion-preview .home-video-widget:not(.is-open) .home-video-frame {
    transform: scale(.90);
    transform-origin: center center;
    transition: transform 360ms cubic-bezier(.22,.61,.36,1);
  }
  .xt-motion-preview .home-video-widget:not(.is-open):hover .home-video-frame,
  .xt-motion-preview .home-video-widget:not(.is-open):focus-within .home-video-frame {
    transform: scale(1);
  }
}
.xt-motion-preview .home-video-widget.is-open .home-video-frame {
  transform: none;
  transition: none;
  border-radius: 0;
  overflow: visible;
}
@media (max-width: 600px) {
  .xt-motion-preview .home-video-widget:not(.is-open) .home-video-frame {
    border-radius: 16px;
  }
}

/* Live product frames share product-windows.css; films retain their .90 scale. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .xt-motion-preview .hero-intro > a {
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
  }
  .xt-motion-preview .hero-intro > a:hover {
    border-color: var(--accent);
  }
  .xt-motion-preview .hero-intro > a:not(.xt-download-cta):hover {
    color: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .xt-motion-preview .hero-intro > a { transition: none !important; }
}
