/* Only expanded mode overrides the original Shorts layout. */
#shortsViewer .shorts-expand,#shortsViewer .shorts-close {
 position:absolute;z-index:8;border:1px solid #ffffff66;border-radius:999px;
 background:#17151de6;color:#fff;padding:10px 15px;min-height:44px;
 font:inherit;font-size:.85rem;font-weight:800;cursor:pointer;
}
#shortsViewer .shorts-expand {left:12px;bottom:12px;right:auto;top:auto}
#shortsViewer .shorts-close {right:max(12px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top))}
#shortsViewer button:focus-visible {outline:3px solid #ff9138;outline-offset:3px}
#shortsViewer [hidden] {display:none!important}
#shorts #shortsViewer.is-expanded {
 position:fixed!important;inset:0!important;z-index:2147483000;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;min-height:0!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:#08080b!important;display:block!important;overflow:hidden!important;
 transform:none!important;overscroll-behavior:contain;
}
#shorts #shortsViewer.is-expanded::before,
#shorts #shortsViewer.is-expanded .shorts-mascot {display:none!important}
#shorts #shortsViewer.is-expanded #shortsPlayer {
 position:absolute!important;left:50%!important;top:calc(50% + 32px)!important;
 right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;
 margin:0!important;padding:0!important;flex:none!important;
 width:var(--short-width)!important;height:var(--short-height)!important;
 min-width:0!important;max-width:none!important;max-height:none!important;
 aspect-ratio:9/16;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#shortsViewer.is-expanded .phone iframe {display:block;width:100%;height:100%}
#shortsViewer.is-expanded .short-new-badge {display:none}
#shortsViewer::backdrop {background:#08080b}
.shorts-focus-guard {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#shortsPlayer .short-fullscreen-play {
 position:absolute;left:8px;right:8px;bottom:14px;z-index:6;
 padding:11px 8px;min-height:44px;border:1px solid #ffffff88;border-radius:14px;
 background:#16131ee8;color:white;font:inherit;font-size:clamp(.65rem,1.1vw,.85rem);
 font-weight:800;line-height:1.25;text-align:center;
}
#shortsPlayer .poster-caption {display:none}
#shortsViewer .shorts-playback-help {
 position:absolute;z-index:9;top:max(12px,env(safe-area-inset-top));left:12px;right:120px;
 margin:0;color:#fff;font-size:.8rem;line-height:1.3;
}
