/* Only mobile Shorts enters the immersive viewport. Desktop remains unchanged. */
.ptv-short-mobile-back,.ptv-short-comment-launch{display:none}
@media(max-width:767px){
 html:has(body.ptv-mobile-shorts),body.ptv-mobile-shorts{margin:0!important;padding:0!important;overflow:hidden!important;overscroll-behavior:none;background:#000!important}
 body.ptv-mobile-shorts #masthead,body.ptv-mobile-shorts #colophon,body.ptv-mobile-shorts #wpadminbar,body.ptv-mobile-shorts .ptv-desktop-subnav,body.ptv-mobile-shorts .ptv-mobile-bottom-nav,body.ptv-mobile-shorts .ptv-mobile-install-card,body.ptv-mobile-shorts .ptv-theme-mode-toggle{display:none!important}
 html body.ptv-mobile-shorts .ptv-shorts-199{position:fixed!important;inset:0!important;width:100%!important;height:100vh;height:100dvh;z-index:10000;display:block!important;background:#000!important;color:#fff!important;padding:0!important;margin:0!important;overflow:hidden!important}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-shorts-feed{height:100%!important;min-height:0!important;padding:0!important;overscroll-behavior-y:contain;touch-action:pan-y;scroll-snap-type:y mandatory}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-card{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important;background:#000!important}
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-screen{position:absolute;inset:0 0 calc(56px + env(safe-area-inset-bottom,0px));height:auto!important;border-radius:0!important}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-screen video{object-fit:cover!important}
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-screen iframe{border-radius:0!important}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-actions{left:auto!important;right:8px!important;bottom:calc(156px + env(safe-area-inset-bottom,0px))!important;width:46px!important;gap:15px!important;z-index:3}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-actions button{color:#fff!important;width:46px!important;text-shadow:0 1px 4px #000}
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-actions button>span{background:#0003;width:42px;height:42px;font-size:28px}
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-actions small{font-size:12px;color:#fff}
 html body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-overlay{bottom:calc(56px + env(safe-area-inset-bottom,0px))!important;right:60px!important;padding:40px 14px 20px;z-index:2}
 body.ptv-mobile-shorts .ptv-short-author{flex-wrap:wrap;gap:8px}
 body.ptv-mobile-shorts .ptv-short-author button{background:#ffffff20!important;border:1px solid #ffffff80;color:white!important;padding:7px 12px}
 body.ptv-mobile-shorts .ptv-short-overlay h2{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.ptv-mobile-shorts .ptv-short-mobile-back{position:absolute;display:grid;place-items:center;top:calc(10px + env(safe-area-inset-top,0px));left:12px;width:44px;height:44px;border-radius:50%;background:#0004;color:white;font-size:30px;text-decoration:none;z-index:4}
 body.ptv-mobile-shorts .ptv-short-comment-launch{position:absolute;display:block;left:12px;right:12px;bottom:max(8px,env(safe-area-inset-bottom,0px));height:40px;border:1px solid #aaa;border-radius:24px;padding:0 16px;background:#000;color:#ddd;text-align:left;font:inherit;z-index:4;cursor:pointer}
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-comments{position:absolute;inset:28% 0 0;z-index:10;border-radius:20px 20px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;box-shadow:0 -20vh 0 20vh #0006}
 body.ptv-mobile-shorts .ptv-short-comments [data-short-close]{width:40px;height:40px}
 body.ptv-mobile-shorts .ptv-short-comments textarea{font-size:16px}
 body.ptv-mobile-shorts .ptv-shorts-empty{color:#fff}
}

@media(max-width:767px){
 body.ptv-mobile-shorts .ptv-shorts-199 .ptv-short-navigation{display:flex;position:absolute;right:10px;top:calc(10px + env(safe-area-inset-top,0px));z-index:5;gap:8px;flex-direction:row}
 body.ptv-mobile-shorts .ptv-short-navigation button{width:40px;height:40px;background:#0004;color:white;font-size:22px}
}
