.video-dialog{box-sizing:border-box;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#fff;color:var(--ink);overflow:hidden}
.video-dialog[open]{display:flex;flex-direction:column}
.video-dialog::backdrop{background:rgba(10,24,34,.8)}
.video-toolbar{flex:none;display:flex;align-items:center;gap:16px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));border-bottom:1px solid var(--line)}
.video-toolbar h2{font-size:16px;line-height:1.5;margin:0;flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-close{flex:none;min-width:60px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-weight:700}
.video-stage{flex:1;min-height:0;background:var(--surface);position:relative;display:flex;align-items:center;justify-content:center}
.video-player-frame{flex:none;max-width:100%;max-height:100%;background:#000}
.video-stage iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}
.video-stage.ready iframe{pointer-events:auto}
.video-modal-footer{flex:none;padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.video-modal-footer .video-status{font-size:13px;line-height:1.5;margin:0 0 8px}
.video-modal-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.video-modal-footer .outline{font-size:13px;min-height:44px;padding:8px 12px}
.video-modal-footer [hidden]{display:none}
@media(min-width:1200px) and (hover:hover) and (pointer:fine){.video-dialog{margin:auto;width:92vw;max-width:1120px;height:90dvh;max-height:960px;border-radius:14px}.video-toolbar h2{font-size:18px}}
@media(min-width:1200px) and (hover:hover) and (pointer:fine){.video-dialog[data-orientation=portrait]{width:min(92vw,640px)}}
