/* Public-only presentation layer. The Studio and broadcast engine remain unchanged. */
body.tv-public{background:radial-gradient(ellipse 100% 75% at 50% -20%,#182b46 0,#090f1a 70%);min-height:100vh}
body.tv-public .top{min-height:72px;height:auto;padding:12px clamp(12px,3vw,44px);background:#101b2b}
body.tv-public .top .logo{background:linear-gradient(145deg,#ed3458,#a61035);box-shadow:0 5px 25px #a3103540}
body.tv-public .layout{max-width:1680px;margin:clamp(10px,2vw,26px) auto;grid-template-columns:minmax(0,1fr) 260px;gap:16px;padding:0 clamp(8px,2.4vw,36px);align-items:start}
body.tv-public .stage{position:relative;border:1px solid #30465f;border-radius:15px;box-shadow:0 18px 54px #0007;overflow:hidden;background:#111d2e}
body.tv-public .toolbar{background:#18253a;gap:10px}
body.tv-public .screen{background:#000;overflow:hidden}
body.tv-public .screen video,body.tv-public .screen iframe{pointer-events:none!important}
body.tv-public .under{gap:8px;padding:10px 15px;background:#101c2b;border-top:1px solid #34445d}
body.tv-public .under #status{font-size:12px;overflow-wrap:anywhere;line-height:1.45}
body.tv-public .under #sound,body.tv-public .under #full{display:none!important}
body.tv-public .public-info{background:linear-gradient(180deg,#192b43,#121d2d);border-color:#324b66}
body.tv-public .tv-public-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 15px;background:#18283e;border-top:1px solid #344c67}
body.tv-public .tv-public-controls button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;padding:9px 14px;background:#253951;border:1px solid #46637c;color:#f3f9ff;touch-action:manipulation}
body.tv-public .tv-public-controls button:hover{background:#304c69}
body.tv-public .tv-public-controls button:focus-visible{outline:3px solid #62c5ff;outline-offset:2px}
body.tv-public .tv-public-controls .tv-power{background:#137447;border-color:#2bad72;font-weight:850}
body.tv-public .tv-public-controls .tv-power.off{background:#95253c;border-color:#dc4a60}
body.tv-public .tv-volume-group{display:flex;align-items:center;gap:8px;flex:1 1 280px;background:#101d2e;border-radius:11px;border:1px solid #354a64;padding:5px 8px;min-width:0}
body.tv-public .tv-volume-label{color:#b8d5eb;letter-spacing:1px;font-size:10px;font-weight:800;white-space:nowrap}
body.tv-public #tvVolume{width:100%;min-width:55px;accent-color:#e33a60;cursor:pointer}
body.tv-public #tvVolumeValue{font-size:12px;color:#ddedff;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
body.tv-public .tv-public-controls .tv-volume-group button{min-width:40px;padding:5px;font-size:23px}
body.tv-public .tv-public-controls #tvMute{min-width:104px}
body.tv-public .tv-public-controls #tvMute.is-muted{background:#663143;border-color:#a74a61}
body.tv-public .tv-public-hint{flex:1 0 100%;font-size:11px;line-height:1.4;color:#a8bed6;margin:0}
body.tv-public .tv-power-curtain{position:absolute;inset:46px 0 0;background:radial-gradient(circle at 50% 35%,#203852,#080e19 70%);z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;padding:22px;color:white}
body.tv-public .tv-power-curtain[hidden]{display:none!important}
body.tv-public .tv-power-logo{background:#d52b4e;padding:12px 17px;border-radius:14px;font-weight:900;font-size:28px}
body.tv-public .tv-power-curtain strong{font-size:clamp(18px,3vw,32px);letter-spacing:.8px}
body.tv-public .tv-power-curtain p{font-size:13px;color:#aac3e1}
body.tv-public .tv-power-curtain button{background:#146f46;border-color:#288d61;padding:13px 22px}
@media(max-width:1050px){body.tv-public .layout{grid-template-columns:1fr}body.tv-public .public-info{max-width:none}body.tv-public .public-info p{margin:6px 0}}
@media(max-width:640px){body.tv-public .top{min-height:56px;padding:9px 12px}body.tv-public .top strong{font-size:13px}body.tv-public .top nav{font-size:12px}body.tv-public .layout{padding:0 5px;margin:6px auto;gap:9px}body.tv-public .stage{border-radius:9px}body.tv-public .toolbar{min-height:38px;padding:7px 9px;font-size:12px}body.tv-public .toolbar #clock{font-size:10px}body.tv-public .tv-public-controls{padding:9px;gap:7px}body.tv-public .tv-volume-group{order:3;flex:1 0 100%}body.tv-public .tv-public-hint{order:4}body.tv-public .tv-public-controls button{min-height:40px;padding:8px 10px}body.tv-public #tvFullscreen{margin-left:auto}body.tv-public .under{padding:8px 10px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){body.tv-public .top{min-height:38px;padding:4px 12px}body.tv-public .layout{margin:3px auto;padding:0 5px}body.tv-public .public-info{display:none}body.tv-public .toolbar{min-height:31px;padding:4px 8px}body.tv-public .stage{max-width:min(100vw,calc((100dvh - 140px)*16/9)) ;margin:auto}body.tv-public .tv-public-controls{gap:6px;padding:5px}body.tv-public .tv-public-hint{display:none}body.tv-public .tv-volume-group{order:0;flex:1 1 230px}body.tv-public .under{padding:4px 8px}body.tv-public .screen{max-height:calc(100dvh - 155px)}}
@media(prefers-reduced-motion:reduce){body.tv-public *{scroll-behavior:auto!important;transition:none!important}}
/* v1.3.0 -- mobile auto cinema and true fullscreen of the entire stage.
   Native video always uses CONTAIN: never crop portrait or landscape content. */
body.tv-public .screen{min-width:0;min-height:0}
body.tv-public .screen video,body.tv-public .screen iframe,body.tv-public .screen .external-player{object-fit:contain!important}
body.tv-public .stage:fullscreen,
body.tv-public .stage:-webkit-full-screen{display:flex!important;flex-direction:column!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#000!important}
body.tv-public .stage:fullscreen .screen,
body.tv-public .stage:-webkit-full-screen .screen{flex:1 1 auto!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;min-height:0!important}
body.tv-public .stage:fullscreen .screen video,
body.tv-public .stage:fullscreen .screen iframe,
body.tv-public .stage:fullscreen .screen .external-player,
body.tv-public .stage:-webkit-full-screen .screen video,
body.tv-public .stage:-webkit-full-screen .screen iframe,
body.tv-public .stage:-webkit-full-screen .screen .external-player{width:100%!important;height:100%!important;object-fit:contain!important}
body.tv-public .stage:fullscreen .toolbar,body.tv-public .stage:-webkit-full-screen .toolbar{flex:0 0 auto}
body.tv-public .stage:fullscreen .tv-public-controls,body.tv-public .stage:-webkit-full-screen .tv-public-controls{flex:0 0 auto;max-height:30dvh;overflow:auto}
body.tv-public .stage:fullscreen .under,body.tv-public .stage:-webkit-full-screen .under{flex:0 0 auto}
/* CSS cinema automatically fills mobile viewport when ON AIR, even where fullscreen API needs a tap. */
@media(max-width:900px){
 body.tv-public.tv-theater{overflow:hidden!important}
 body.tv-public.tv-theater .top,body.tv-public.tv-theater .public-info{display:none!important}
 body.tv-public.tv-theater .layout{display:block!important;margin:0!important;padding:0!important;max-width:none!important}
 body.tv-public.tv-theater .stage{position:fixed!important;inset:0!important;z-index:99999!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#000!important;display:flex!important;flex-direction:column!important}
 body.tv-public.tv-theater .stage .screen{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:auto!important}
 body.tv-public.tv-theater .stage .screen video,body.tv-public.tv-theater .stage .screen iframe,body.tv-public.tv-theater .stage .screen .external-player{width:100%!important;height:100%!important;object-fit:contain!important}
 body.tv-public.tv-theater .stage .toolbar,body.tv-public.tv-theater .stage .under{flex:0 0 auto}
 body.tv-public.tv-theater .stage .tv-public-controls{flex:0 0 auto;max-height:32dvh;overflow-y:auto;overscroll-behavior:contain}
 body.tv-public.tv-theater .tv-public-hint{display:none!important}
 body.tv-public.tv-theater .tv-public-controls .tv-volume-group{order:0;flex:1 1 140px}
}
@media(max-width:900px) and (orientation:landscape){
 body.tv-public.tv-theater .stage .toolbar{min-height:0!important;padding:2px 10px!important;font-size:11px!important}
 body.tv-public.tv-theater .stage .under{padding:2px 10px!important;font-size:11px!important}
 body.tv-public.tv-theater .stage .tv-public-controls{padding:3px 10px!important;gap:5px!important;flex-wrap:nowrap!important;max-height:30dvh}
 body.tv-public.tv-theater .stage .tv-public-controls button{min-height:33px!important;padding:3px 8px!important;font-size:11px!important}
 body.tv-public.tv-theater .stage .tv-volume-group{min-width:80px!important;max-width:250px!important;padding:2px 5px!important}
 body.tv-public.tv-theater .stage .tv-public-controls .tv-volume-group button{font-size:18px!important;min-width:26px!important}
 body.tv-public.tv-theater #tvFullscreen{margin-left:auto!important}
}
@media(max-width:900px) and (orientation:portrait){
 body.tv-public.tv-theater .stage .screen{flex:1 1 auto!important}
 body.tv-public.tv-theater .stage .tv-public-controls{max-height:27dvh!important}
}
