/* 用途：提供手机优先的页面内剧场模式及44px切换按钮；用安全视口放大原video并保留原生控制/页面选集，兼容横竖屏与安全区，不用真全屏、定位遮罩、滤镜或JS尺寸轮询。 */
.theater-stage{min-width:0;scroll-margin-top:0}
.theater-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 8px;min-height:44px}
.theater-current{display:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bbc2ce;font-size:12px}
.theater-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:108px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);font:inherit;font-size:12px;cursor:pointer;flex:none;touch-action:manipulation}
.theater-toggle[hidden]{display:none}.theater-toggle:hover{border-color:#687183}.theater-toggle:focus-visible{outline:2px solid #ff9b79;outline-offset:3px}.theater-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.is-theater-mode{padding-bottom:0;background:#090b0f}
.is-theater-mode .topbar,.is-theater-mode .mobile-navigation,.is-theater-mode .series-breadcrumb{display:none}
.is-theater-mode .shell{max-width:none;width:100%;padding:0 0 32px}
.is-theater-mode .drama-screen,.is-theater-mode .queue-screen{display:block}
.is-theater-mode .series-primary{display:flex;flex-direction:column}
.is-theater-mode .theater-stage{order:-1;width:100%;background:#000}
.is-theater-mode .theater-toolbar{position:sticky;top:0;z-index:30;margin:0;min-height:56px;padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));padding-top:calc(6px + env(safe-area-inset-top));justify-content:space-between;background:#10131a}
.is-theater-mode .theater-current{display:block}.is-theater-mode .theater-toggle{color:#ff9b79;border-color:#ff6a3d50;background:#ff6a3d12}
.is-theater-mode .series-player{width:100%;height:calc(100vh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:calc(100svh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));aspect-ratio:auto;max-height:1080px;margin:0;border:0;border-radius:0}
.is-theater-mode .series-player video{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.is-theater-mode .series-primary>:not(.theater-stage),.is-theater-mode .queue-player>:not(.theater-stage),.is-theater-mode .series-aside,.is-theater-mode .queue-sidebar{width:calc(100% - 36px);max-width:1120px;margin-left:auto;margin-right:auto}
.is-theater-mode .series-aside,.is-theater-mode .queue-sidebar{margin-top:24px}
.is-theater-mode .series-primary>.playlist-drawer{margin-top:16px}
@media(min-width:768px){.is-theater-mode .series-player{height:calc(100vh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:calc(100svh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.is-theater-mode .theater-toolbar{padding-inline:max(24px,env(safe-area-inset-left));min-height:60px}}
@media(max-width:767px){.theater-toolbar{margin-bottom:6px}.theater-current{font-size:11px}.is-theater-mode .theater-toggle{min-width:106px}.is-theater-mode .series-primary>:not(.theater-stage),.is-theater-mode .queue-player>:not(.theater-stage),.is-theater-mode .series-aside,.is-theater-mode .queue-sidebar{width:calc(100% - 28px)}}
