/* A viewing screen, independent of catalog navigation. Never crop the video. */
[hidden]{display:none!important}
body.watch-view{height:100vh;height:100dvh;overflow:hidden;background:#000;overscroll-behavior:none}
.watch-view .app-shell{width:100%;max-width:none;height:100%;min-height:0;margin:0}
.watch-view .watch-page{display:block;width:100%;height:100%;padding:0;gap:0}
.watch-view .video-stage{width:100%;height:100vh;height:100dvh;min-height:0;max-height:none;aspect-ratio:auto;border-radius:0;margin:0;background:#000;touch-action:pan-x;user-select:none;-webkit-user-select:none}
.watch-view .video-stage>video{width:100%;height:100%;object-fit:contain}
.watch-view .video-stage>iframe{width:100%;height:100%}
.watch-view .player-top{top:0;padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:9px}
.watch-view .player-top strong{font-size:13px;line-height:1.4;text-shadow:0 1px 4px #000}
.watch-view .player-top span{font-size:11px;line-height:1.5;color:#eee}
.watch-view .player-top .icon-button{width:42px;height:42px;min-width:42px;min-height:42px;border-radius:50%;background:#0005;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.watch-view .player-top .icon-button svg{width:20px;height:20px}
.watch-view .player-bottom{padding:45px max(18px,env(safe-area-inset-right)) calc(13px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.watch-view .player-side{right:max(13px,env(safe-area-inset-right));bottom:calc(160px + env(safe-area-inset-bottom));gap:14px}
.watch-view .player-side .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;background:#0005;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.watch-view .seek-row input{min-height:32px;margin:0;cursor:pointer}
.watch-view .seek-row span{font-size:11px;min-width:29px;text-align:center;color:#eee}
.watch-view .play-actions{gap:12px}
.watch-view .play-actions .text-button{font-size:11px;min-height:42px;line-height:1.2;padding:8px 2px;white-space:nowrap}
.watch-view .episode-drawer-button{gap:6px}
.episode-drawer-button svg{width:16px;height:16px}
.watch-view .central-play{width:64px;height:64px;background:#0006;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.watch-view .player-shade{background:linear-gradient(#0009,transparent 23%,transparent 60%,#000c)}
.watch-view .hide-controls .player-shade{opacity:0}
.watch-view .player-shade,.watch-view .controls{transition:opacity .2s,visibility .2s}
.watch-view .hide-controls .controls{visibility:hidden;opacity:0;pointer-events:none}
.watch-view #toast{bottom:calc(140px + env(safe-area-inset-bottom));z-index:110}
.watch-view #offline{padding-top:calc(7px + env(safe-area-inset-top))}
.watch-view #episode-ad{overflow-y:auto;padding:calc(28px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:#000e}
.watch-view #episode-ad .ad-frame{max-width:720px;flex-shrink:0}
.watch-view #episode-ad>.button{min-height:46px;flex-shrink:0}
.episode-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,540px);max-width:100%;max-height:84vh;max-height:84dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ffffff16;border-bottom:0;border-radius:24px 24px 0 0;background:rgba(9,9,9,.97);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);padding:12px 24px calc(24px + env(safe-area-inset-bottom));color:#fff;box-shadow:0 -20px 100px #0009}
.episode-sheet::backdrop{background:#0008;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.sheet-handle{width:38px;height:4px;border-radius:4px;background:#ffffff35;margin:0 auto 19px}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
.sheet-heading .eyebrow{font-size:8px;margin-bottom:6px}
.sheet-heading h2{margin:0;font-size:24px}
.sheet-heading .icon-button{border-radius:50%;background:#ffffff09;min-width:42px;min-height:42px}
.sheet-story-title{font-size:13px;font-weight:600;color:#ddd;line-height:1.5;margin-bottom:9px}
.episode-sheet>.muted{font-size:11px;margin-bottom:18px}
.episode-sheet .episode-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:43vh;max-height:43dvh;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 7px}
.episode-sheet .episode{font-size:12px;min-height:45px;border-radius:9px}
.episode-sheet>.fine{font-size:10px;margin:15px 0 0}
@media(min-width:950px){.watch-view .video-stage{max-width:calc(100dvh * 9 / 16);margin:0 auto;overflow:visible}.watch-view .video-stage>video,.watch-view .video-stage>iframe{overflow:hidden}.watch-view .player-top{left:0;right:0}.watch-view .player-top strong{font-size:12px}.watch-view .player-side{right:14px}}
@media(max-width:380px){.watch-view .player-top{gap:4px}.watch-view .player-top .icon-button{min-width:36px;width:36px;min-height:40px;height:40px}.watch-view .player-top strong{font-size:11px}.watch-view .play-actions{gap:7px}.watch-view .play-actions .text-button{font-size:9px}.episode-sheet{padding-left:17px;padding-right:17px}.episode-sheet .episode-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-height:520px) and (orientation:landscape){.watch-view .video-stage{max-width:none;width:100%;height:100vh;height:100dvh;min-height:0}.watch-view .player-side{bottom:calc(110px + env(safe-area-inset-bottom));right:max(15px,env(safe-area-inset-right));flex-direction:row;gap:8px}.watch-view .player-top{padding-top:calc(6px + env(safe-area-inset-top));padding-bottom:4px}.watch-view .player-bottom{padding-top:12px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.watch-view .player-bottom .play-actions .text-button{min-height:36px}.episode-sheet{max-height:94dvh}.episode-sheet .episode-grid{max-height:37dvh}.sheet-handle{margin-bottom:10px}.sheet-heading{margin-bottom:8px}.episode-sheet .sheet-story-title{margin-bottom:5px}}
/* Catalog pages keep their own navigation; installed windows respect system insets. */
@media(display-mode:standalone){body:not(.watch-view):not(.studio-view) .topbar{height:auto;min-height:77px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:12px}body:not(.watch-view) .app-shell{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.bottom-nav{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}}
.install-dialog{width:min(460px,calc(100% - 28px));padding:30px 25px;border-radius:24px;background:rgba(8,8,8,.98)}
.install-heading{display:flex;gap:17px;align-items:center;margin:2px 20px 26px 0}
.install-heading>img{width:47px;height:55px;object-fit:contain;flex-shrink:0}
#dialog-body .install-heading h2{font-size:24px;letter-spacing:-.7px;line-height:1.15;margin:0 0 7px}
#dialog-body .install-heading p{font-size:11px;line-height:1.6;margin:0;color:#9e9e9e}
.install-steps{list-style:none;counter-reset:install-step;padding:0;margin:0 0 21px;display:grid;gap:20px}
.install-steps li{counter-increment:install-step;position:relative;padding-left:42px}
.install-steps li::before{content:counter(install-step);position:absolute;left:0;top:0;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:650;color:#ffad75;background:#ff893d12;border:1px solid #ff893d25}
.install-steps strong{display:block;font-size:12px;font-weight:650;line-height:1.5;margin:0 0 4px}
#dialog-body .install-steps p{font-size:11px;line-height:1.65;margin:0;color:#949499}
#dialog-body .install-note{font-size:10px;line-height:1.7;color:#777;margin:0 0 18px}
@media(prefers-reduced-motion:reduce){.watch-view .controls,.watch-view .player-shade{transition:none}}
