html,body{height:100%}
#stage{height:100vh;display:flex;background:var(--screen-bg)}
.iptv-screen{height:100vh}
.video-scene{background:#000}
.video-scene video{width:100%;height:100%;object-fit:contain;background:#000;display:block}
.video-scene .toolbar,.video-scene .player-title{display:none}
.video-stage:not(.is-full) .video-scene [class*=status],.video-stage:not(.is-full) .video-scene button{font-size:.7rem}
/* plein écran = même <video>, sans recharger */
.video-stage.is-full{position:fixed;inset:0;z-index:50;aspect-ratio:auto;border:0;border-radius:0!important;transform:none}
.video-stage.is-full .preview-overlay-bar{padding:40px 36px 28px}
.video-stage.is-full .overlay-prog-title{font-size:1.3rem;color:#fff}.video-stage.is-full .overlay-time{color:#fff}
.video-stage.is-full .ambilight-halo{display:none}
.video-stage.hide-ui .preview-overlay-bar,.video-stage.hide-ui .live-badge{opacity:0;transition:opacity .4s}
.ch-logo img{height:100%;max-width:60px;object-fit:contain}
.channel-item.is-failed .ch-name::after{content:" · hors ligne";color:#b45309;font-weight:700}
.setup{margin:auto;width:min(720px,94vw);padding:28px;border-radius:22px;background:var(--surface-card-strong);border:1.5px solid var(--border-strong);box-shadow:var(--shadow-elevated);color:var(--ink-1);max-height:96vh;overflow:auto}
.setup h1{margin:0 0 6px;font-size:1.6rem}.setup p{color:var(--ink-2);margin:0 0 16px}
.setup label{display:block;font-weight:700;font-size:.85rem;margin:10px 0 4px;color:var(--ink-2)}
.setup input{width:100%;padding:12px 14px;border-radius:10px;border:2px solid var(--border-strong);background:var(--surface-card);color:var(--ink-1);font:inherit;font-size:1rem}
.setup input:focus,.setup button:focus{outline:3px solid var(--accent-1);outline-offset:2px}
.setup .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.setup button{padding:12px 20px;border-radius:11px;border:2.5px solid var(--accent-1);background:var(--surface-card);color:var(--accent-1);font:inherit;font-weight:800;cursor:pointer}
.setup button.primary{background:var(--accent-grad);color:var(--accent-on);border-color:transparent}
.setup .err{color:#b91c1c;font-weight:700;margin-top:10px;min-height:1.2em}
.setup h3{margin:22px 0 4px;font-size:1rem;color:var(--accent-1);text-transform:uppercase;letter-spacing:.08em}
*:focus-visible{outline:3px solid var(--accent-1);outline-offset:2px}
body.phone .tv-footer-hints{display:none}
.channel-item{flex-shrink:0}.channels-pane{display:flex;flex-direction:column}
