ts-bfcm-popup{display:block}
.ts-bfcm-dialog{position:fixed;inset:0;width:min(64vw,113.778dvh);max-width:none;height:auto;aspect-ratio:16/9;max-height:64dvh;margin:auto;padding:0;border:0;background:#000;color:#fff;overflow:hidden;box-sizing:border-box;z-index:2147483000;border-radius:20px;box-shadow:0 18px 60px #0005}
.ts-bfcm-dialog::backdrop{background:transparent}
.ts-bfcm-art,.ts-bfcm-art picture{display:block;width:100%;height:100%}
.ts-bfcm-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.ts-bfcm-close,.ts-bfcm-pause,.ts-bfcm-replay{position:fixed;border:1px solid #777;background:#111;color:#fff;font:600 14px/1.2 Arial,sans-serif;cursor:pointer;z-index:2}
.ts-bfcm-close{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;border-radius:50%;font-size:30px}
.ts-bfcm-pause{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));min-height:44px;padding:10px 16px;border-radius:4px}
.ts-bfcm-replay{left:12px;bottom:60px;min-height:44px;padding:10px 16px;z-index:10000;border-radius:4px}
.ts-bfcm-replay[hidden],.ts-bfcm-pause[hidden]{display:none}
.ts-bfcm-dialog button:focus-visible,.ts-bfcm-replay:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){.ts-bfcm-dialog button:active,.ts-bfcm-replay:active{transform:scale(.97)}}


.ts-bfcm-close,.ts-bfcm-pause{position:absolute}
.ts-bfcm-art{position:relative;overflow:hidden}
.ts-bfcm-art::after{content:"";position:absolute;inset:-30% -50%;pointer-events:none;background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.16) 49%,rgba(255,255,255,.24) 50%,transparent 58%);transform:translateX(-100%);opacity:0}
@keyframes ts-bfcm-shimmer{0%{transform:translateX(-65%);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateX(65%);opacity:0}}
@media(prefers-reduced-motion:no-preference){.ts-bfcm-shimmer .ts-bfcm-art::after{animation:ts-bfcm-shimmer 1200ms ease-in-out 1}}
@media(max-width:749px){.ts-bfcm-dialog{width:min(90vw,50.625dvh);max-height:90dvh;aspect-ratio:9/16;border-radius:16px}}

/* Keep the editor selection target in the viewport, not at its footer insertion point. */
.ts-bfcm-section{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;margin:0!important;padding:0!important;pointer-events:none;z-index:10000}
.ts-bfcm-section .ts-bfcm-replay{pointer-events:auto}
