.bv-video-dialog { box-sizing: border-box; width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #252131; box-shadow: 0 24px 80px #0005; overflow: auto; }
.bv-video-dialog::backdrop { background: #160b1dcc; }
.bv-video-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; position:sticky; top:0; background:#fff; z-index:2; }
.bv-video-dialog > header strong { overflow-wrap:anywhere; }
.bv-video-dialog > header button { flex:0 0 38px; width:38px; height:38px; border:1px solid #e8e3e9; border-radius:50%; background:#fff; font-size:26px; cursor:pointer; }
.bv-video-dialog[data-video-provider="tiktok"], .bv-video-dialog[data-video-provider="instagram"] { width:min(440px, calc(100% - 24px)); }
.bv-external-video { position:relative; width:100%; min-height:180px; background:#111; aspect-ratio:16/9; }
.bv-external-video .bv-external-video-frame { display:block; position:absolute; inset:0; width:100%; height:100%; border:0; }
.bv-external-video[data-video-provider="tiktok"] { aspect-ratio:9/16; max-width:420px; margin-inline:auto; }
.bv-external-video[data-video-provider="instagram"] { aspect-ratio:auto; min-height:620px; max-width:440px; margin-inline:auto; background:#fff; }
.bv-external-video[data-video-provider="instagram"] > blockquote, .bv-external-video[data-video-provider="instagram"] > iframe { box-sizing:border-box; min-width:0!important; width:100%!important; max-width:100%!important; margin:0!important; border:0; }
.bv-external-video-loading { position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:24px; color:#888; text-align:center; font-size:14px; pointer-events:none; }
.bv-external-video-error { box-sizing:border-box; min-height:220px; padding:28px; color:#fff; background:#252131; text-align:center; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; }
.bv-external-video-error p { flex:0 0 100%; margin:0; line-height:1.6; }
.bv-external-video-error button, .bv-external-video-error a { border:1px solid #ffffff55; background:transparent; color:#fff; border-radius:24px; padding:10px 16px; font:inherit; font-size:13px; cursor:pointer; text-decoration:none; }
.pub-video-youtube-preview .pub-video-youtube-thumb img { object-fit:contain; }

.bv-video-player-card--tiktok, .bv-video-player-card--instagram { position:static; }
.bv-video-player-wrap.bv-external-video[data-video-provider="instagram"] { max-height:none; }

.bv-video-cover-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.bv-video-cover::before { z-index:1; }
.bv-video-play-button { z-index:2; }
