/* Live template previews (public/assets/js/live-templates.js). Loaded only when
   LIVE_TEMPLATE_PREVIEWS is on. The slider image is the poster; once the live template
   has loaded, it fades in inside a single rounded phone frame (one border, no image frame). */
/* Zero specificity: hosts that already position themselves (hero fan phones) keep their own position. */
:where([data-live-template]) { position: relative; }
[data-live-template] { --live-scale: 0.6; --live-radius: calc(var(--live-scale) * 48px); }
[data-live-template] > img { transition: opacity .45s ease; }
.bk-live__frame {
    position: absolute; top: 0; left: 0;
    width: 390px; height: calc(100% / var(--live-scale));
    transform: scale(var(--live-scale)); transform-origin: 0 0;
    border: 0; border-radius: calc(var(--live-radius) / var(--live-scale));
    background: #0C0C0E; pointer-events: none;
    opacity: 0; transition: opacity .45s ease;
}
[data-live-template].is-live { overflow: hidden; border-radius: var(--live-radius); box-shadow: inset 0 0 0 1px rgba(12, 12, 14, 0.12); }
[data-live-template].is-live > img { opacity: 0; }
[data-live-template].is-live > .bk-live__frame { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    [data-live-template] > img, .bk-live__frame { transition: none; }
}
