/* One unobtrusive player shell for Videos, News and shop documentaries. */
html body :is(#video-dialog,.news-dialog[data-view="video"],.shop-video-dialog){
 position:fixed;inset:0;box-sizing:border-box;
 width:min(960px,100vw,calc((var(--mobile-height,100dvh) - 60px)*16/9));
 max-width:100vw;max-height:calc(var(--mobile-height,100dvh) - 16px);
 margin:auto;padding:44px 0 0;border:0;border-radius:0;background:transparent;
 overflow:hidden;scrollbar-gutter:auto;box-shadow:none;
}
html body :is(#video-dialog,.news-dialog[data-view="video"],.shop-video-dialog)::backdrop{background:rgba(0,0,0,.88)}
html body :is(#video-dialog .dialog-bar,.news-dialog[data-view="video"] .news-dialog-bar){
 position:absolute;inset:0 0 auto;z-index:5;display:block;width:100%;max-width:none;box-sizing:border-box;
 height:44px;min-height:0;margin:0;padding:0;border:0;overflow:visible;background:transparent;pointer-events:none;
}
html body .news-dialog[data-view="video"] :is(.news-read-post,.news-back,.news-media-strip,.news-photo-actions,.news-gallery-count,.news-body){display:none!important}
html body .news-dialog[data-view="video"] :is(.news-detail,.news-media-viewer,.news-photo-focus,.news-fit-stage){
 display:block;width:100%;min-width:0;min-height:0;max-height:none;margin:0;padding:0;border:0;aspect-ratio:auto;background:#000;
}
html body :is(#video-dialog .dialog-video,.news-dialog[data-view="video"] .news-video,.shop-video-dialog .news-video){
 display:block;width:100%;height:auto;max-height:none;margin:0;padding:0;border:0;aspect-ratio:16/9;background:#000;
}
html body #video-dialog .dialog-video iframe{display:block;width:100%;height:100%;margin:0;border:0;aspect-ratio:16/9}
html body :is(#video-dialog .dialog-close,.news-dialog[data-view="video"] .news-close,.shop-video-dialog>button.shop-video-close:first-child){
 position:absolute!important;inset:0 0 auto auto!important;z-index:6;display:grid;place-items:center;
 box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;
 margin:0!important;padding:0!important;border:0!important;border-radius:0;
 background:transparent!important;color:var(--paper,#ead09c);box-shadow:none!important;
 font-size:0!important;cursor:pointer;pointer-events:auto;
}
html body .news-dialog[data-view="video"] .news-close{font-size:0}
html body .news-dialog[data-view="video"] .news-close-label{display:none}
html body :is(#video-dialog .dialog-close,.news-dialog[data-view="video"] .news-close,.shop-video-dialog .shop-video-close)::before{content:'×';font:28px/1 sans-serif}
html body .news-dialog[data-view="video"] .news-close::after{content:none!important}
html body .news-dialog[data-view="video"] .news-first-video:not([hidden]){
 position:absolute;inset:0 auto auto 0;display:grid;place-items:center;
 box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:0;
 background:transparent;color:var(--paper,#ead09c);font:24px/1 sans-serif;pointer-events:auto;
}
html body :is(#video-dialog .dialog-close,.news-dialog[data-view="video"] .news-close,.shop-video-dialog .shop-video-close):focus{outline:none}
html body :is(#video-dialog .dialog-close,.news-dialog[data-view="video"] .news-close,.shop-video-dialog .shop-video-close,.news-first-video):focus-visible{outline:1px solid var(--paper,#ead09c);outline-offset:-3px}
html body :is(#video-dialog,.news-dialog[data-view="video"],.shop-video-dialog) .playback-action{display:none!important}


/* A second tap is available when the mobile browser blocks audible playback. */
html body #video-dialog .dialog-video:has(iframe[data-audible-retry="true"]) { position:relative }
html body #video-dialog .dialog-video:has(iframe[data-audible-retry="true"]) > .playback-action {
 display:block!important;position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);
 min-height:44px;width:max-content;max-width:calc(100% - 24px);margin:0;padding:.5rem .8rem;
 border:1px solid #fff;background:#101313;color:#fff;cursor:pointer;
}

/* A portrait clip fills the available height, with space for the close control. */
html body :is(#video-dialog,.news-dialog).news-portrait-video[data-view="video"] {
 width:min(calc(100vw - 16px), calc((var(--mobile-height,100dvh) - 60px) * 9 / 16));
}
html body :is(#video-dialog,.news-dialog).news-portrait-video[data-view="video"] .news-detail {position:relative}
html body :is(#video-dialog,.news-dialog).news-portrait-video[data-view="video"] .news-video {aspect-ratio:9/16}
html body :is(#video-dialog,.news-dialog).news-portrait-video[data-view="video"] .playback-action {
 display:block!important;position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);
 min-height:44px;width:max-content;max-width:calc(100% - 24px);margin:0;padding:.5rem .8rem;
 border:1px solid #fff;background:#101313;color:#fff;cursor:pointer;
}

