.tv-page{padding-top:12px;max-width:1800px;margin:auto}.tv-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:0 0 26px}.tv-heading h1{font-size:36px;line-height:1.15;letter-spacing:-1px;margin:8px 0}.tv-heading p{margin:10px 0 0}.tv-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tv-actions a{text-decoration:none}.tv-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.tv-screen-message{position:absolute;inset:20% 8%;display:flex;justify-content:center;align-items:center;text-align:center;color:#c9bfce;pointer-events:none;line-height:1.6;font-size:14px}.tv-screen-message[hidden]{display:none}.tv-screen-caption{display:flex;align-items:center;justify-content:space-between;position:absolute;inset:0 0 auto;padding:10px 12px;background:linear-gradient(#050408d9,transparent);color:#fff;gap:8px;pointer-events:none}.tv-screen-caption strong{font-size:13px;text-shadow:0 1px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-screen-caption button{pointer-events:auto;background:#0e0a1280;border:0;border-radius:50%;width:28px;min-height:28px;padding:0;font-size:20px}.tv-channel-panel{border:1px solid #393241;background:#17131c;border-radius:16px;padding:16px;min-width:0}.tv-channel-panel h2{font-size:16px;margin:0 0 14px}.tv-channel-panel input,.tv-channel-panel select{width:100%;margin:0 0 10px;padding:10px 12px;min-height:40px;background:#211b28;border:1px solid #44384d;border-radius:8px;color:#eee7f1}.tv-filters{display:flex;gap:6px;margin-bottom:10px}.tv-filters button{font-size:11px;padding:6px 8px;min-height:30px}.tv-filters [aria-pressed=true]{background:#4b365e;border-color:#ac89c6}.tv-channel-panel>small{display:block;margin:10px 0}.tv-channels{max-height:470px;overflow:auto;scrollbar-width:thin;scrollbar-color:#5d4a6b transparent}.tv-channel{display:flex;align-items:center;border-radius:10px;margin:3px 0;min-width:0}.tv-channel.active{background:#35283f}.tv-channel-main{flex:1;min-width:0;border:0;background:none;display:flex;align-items:center;gap:10px;padding:11px 7px;text-align:left;color:#f2ecf6;border-radius:8px}.tv-channel-main:hover{background:#ffffff08}.tv-channel-main img,.tv-channel-monogram{width:34px;height:34px;object-fit:contain;flex-shrink:0}.tv-channel-monogram{display:grid;place-items:center;border-radius:8px;background:#3f334a;color:#d7bcdf;font-size:12px}.tv-channel-text{display:flex;flex-direction:column;min-width:0;gap:5px}.tv-channel-text strong{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tv-channel-text small{font-size:11px;color:#b7a9be;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tv-channel-menu{background:none;border:0;font-size:22px;padding:4px 8px;color:#c5b7cf}.tv-empty{padding:20px;color:#bfb2c7;border:1px dashed #5a4765;border-radius:12px;line-height:1.6;font-size:14px}.tv-guide,.tv-recordings{margin-top:32px;padding-top:24px;border-top:1px solid #342c3b}.tv-guide h2,.tv-recordings h2{font-size:22px;margin:0 0 12px}.tv-days{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tv-days button{font-size:12px;min-height:34px;padding:7px 12px}.tv-programmes{max-height:390px;overflow:auto;scrollbar-width:thin}.tv-programme,.tv-record{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid #342c3b}.tv-programme>div,.tv-record>div:first-child{min-width:0}.tv-programme time{font-size:12px;color:#c1a8d1}.tv-programme h3{font-size:16px;margin:6px 0}.tv-programme p{font-size:13px;margin:0;line-height:1.6;max-width:900px}.tv-programme>button{flex-shrink:0}.tv-record p{font-size:13px;margin:7px 0 0}.tv-warning{color:#f1b97f;font-size:13px}.tv-dialog{width:580px;max-width:calc(100vw - 28px);max-height:90vh;overflow:auto;padding:24px}.tv-dialog>.dialog-title{margin-bottom:18px}.tv-dialog p{line-height:1.6}.tv-dialog>div>button{margin:6px 8px 12px 0}.tv-field{display:flex;flex-direction:column;gap:7px;margin:16px 0;color:inherit}.tv-field>span{font-size:13px;font-weight:600}.tv-field input:not([type=checkbox]),.tv-field select{width:100%;padding:10px 12px;border:1px solid #55435f;border-radius:8px;background:#211b28;color:#eee7f1;min-height:42px}.tv-field input[type=checkbox]{align-self:start;width:18px;height:18px;margin:0;accent-color:#b795ce}.tv-screen-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tv-grants{border:1px solid #55435f;border-radius:10px;padding:12px 16px;margin:22px 0}.tv-grant{display:grid;grid-template-columns:1fr 80px 90px;align-items:center;gap:12px;border-top:1px solid #44374c}.tv-grant strong{font-size:13px;overflow-wrap:anywhere}.tv-grant .tv-field{margin:12px 0}.tv-grant .tv-field>span{font-size:11px}.tv-source{display:flex;gap:20px;align-items:center;justify-content:space-between}.tv-source h2{margin:0 0 8px;font-size:18px}.tv-source p{margin:0;line-height:1.6}#live-tv .setting-section form{max-width:640px}#live-tv .path{overflow-wrap:anywhere}#live-tv .page-heading{gap:20px}#live-tv .form-note{line-height:1.6}#live-tv .setting-section{margin-top:30px}#live-tv [hidden],.tv-page [hidden],.tv-dialog [hidden]{display:none!important}
@media(min-width:1600px){.tv-layout{grid-template-columns:minmax(0,1fr) 340px}.tv-channels{max-height:560px}}
@media(max-width:1100px){.tv-layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.tv-heading{align-items:flex-start}.tv-heading h1{font-size:30px}}
@media(max-width:800px){.tv-layout{grid-template-columns:1fr}.tv-heading{flex-direction:column;gap:16px}.tv-channel-panel{margin-top:4px}.tv-channels{max-height:330px}.tv-screen-message{font-size:12px}.tv-programme,.tv-record,.tv-source{align-items:flex-start;flex-direction:column;gap:12px}.tv-heading h1{font-size:29px}.tv-dialog{padding:18px}.tv-days{gap:5px}.tv-screen-choices{grid-template-columns:repeat(2,1fr)}}
.tv-grant{display:block;padding:14px 0}.tv-rights{display:flex;flex-direction:column;gap:8px;margin:12px 0 20px}.tv-rights .tv-field{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;margin:0;gap:10px}.tv-rights .tv-field span{font-size:13px;font-weight:400}.tv-rights .tv-field input{flex-shrink:0;align-self:center}.tv-permission-source{margin-top:20px;padding:20px;border:1px solid #44384d;border-radius:12px}.tv-permission-source h3{margin-top:0}.tv-page .tv-heading h1{font-size:36px;line-height:1.15;margin:8px 0}
@media(max-width:800px){.tv-page .tv-heading h1{font-size:29px}}

/* TV composes the cinema controls; only canvas / mosaic geometry is specific. */
.austral-web .tv-frame[data-player-surface]{position:relative;isolation:isolate;aspect-ratio:16/9;min-height:360px;border:1px solid #55445f;border-radius:13px;background:#000;overflow:hidden;padding:0}
.austral-web .tv-frame .tv-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;gap:3px;min-height:0}
.austral-web .tv-frame .tv-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.austral-web .tv-frame .tv-grid[data-count="3"],.austral-web .tv-frame .tv-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.austral-web .tv-frame .tv-grid[data-count="3"] .tv-screen:first-child{grid-column:1/-1}
.austral-web .tv-frame .tv-screen{position:relative;min-width:0;min-height:0;background:#080709;overflow:hidden;outline-offset:-3px}
.austral-web .tv-frame .tv-screen.selected{box-shadow:inset 0 0 0 2px #c8b0ee}
.austral-web .tv-frame .tv-grid[data-count="1"] .tv-screen{box-shadow:none}
.austral-web .tv-frame .tv-grid[data-count="1"] .tv-screen-caption{display:none}
.austral-web .tv-frame .tv-screen video{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#000}
.austral-web .tv-frame .watch-player-overlay{padding:20px 22px 24px}
.austral-web .tv-frame .watch-player-title{margin-bottom:18px}
.austral-web .tv-frame .watch-player-title h2{font-size:clamp(23px,2.5vw,40px);line-height:1.15}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .player-controls{flex-wrap:wrap;gap:5px}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .watch-player-play{min-height:42px;padding:8px 15px;font-size:14px}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .watch-player-action{min-height:40px;padding:5px 7px;font-size:12px}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .tv-direct.tv-at-live{color:#c9e6bd}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .tv-rec{color:#f7d0d7}
.austral-web :is(#watch-view,[data-player-host]).tv-frame .tv-multi{border:1px solid #85788d;border-radius:7px;padding:6px 9px}
.austral-web .tv-frame .watch-settings{right:18px;bottom:95px;max-height:calc(100% - 115px)}
.austral-web .tv-frame.controls-idle .tv-screen-caption{opacity:0;pointer-events:none}
.austral-web .tv-frame.controls-idle .tv-screen-caption button{pointer-events:none}
.austral-web .tv-frame.controls-idle{cursor:none}
.austral-web .tv-frame:fullscreen{width:100%;height:100%;min-height:0;aspect-ratio:auto;border:0;border-radius:0}
.austral-web .tv-frame:fullscreen .watch-player-overlay{padding:clamp(18px,3vw,60px) clamp(20px,4vw,82px) clamp(22px,3vw,60px)}
.austral-web .tv-frame:fullscreen .watch-settings{right:clamp(20px,4vw,82px);bottom:clamp(100px,10vw,155px)}
@media(max-width:610px){
 .austral-web .tv-frame[data-player-surface]{min-height:320px;border-radius:9px}
 .austral-web .tv-frame .watch-player-overlay{padding:12px 13px 16px}
 .austral-web .tv-frame .watch-player-title{margin-bottom:12px}
 .austral-web .tv-frame .watch-player-title h2{font-size:22px}
 .austral-web .tv-frame .watch-player-title span{font-size:11px}
 .austral-web :is(#watch-view,[data-player-host]).tv-frame .watch-player-play{min-height:31px;padding:4px 9px;font-size:12px}
 .austral-web :is(#watch-view,[data-player-host]).tv-frame .watch-player-action{min-height:31px;padding:4px 5px;font-size:11px}
 .austral-web .tv-frame .watch-settings{right:10px;bottom:110px;max-height:calc(100% - 130px)}
}

.austral-web .tv-frame .tv-screen.selected::after{content:"";position:absolute;inset:0;border:2px solid #c8b0ee;pointer-events:none}.austral-web .tv-frame .tv-grid[data-count="1"] .tv-screen.selected::after{display:none}

/* The channel rail fits the player and available viewport, including zoom. */
.tv-channel-panel{box-sizing:border-box;display:flex;flex-direction:column;height:var(--tv-panel-height,480px);min-height:0;overflow:hidden}
.tv-channel-panel>*{flex-shrink:0}.tv-channel-panel .tv-channels{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.tv-channel-panel>button{margin-top:8px}.tv-sync-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;margin:-8px 0 16px;border:1px solid #51425f;background:#201927;border-radius:12px;font-size:13px;line-height:1.5}
.tv-sync-bar span{flex:1;min-width:180px}.tv-sync-bar button{min-height:34px;padding:6px 12px;font-size:12px}.tv-own-source{border-top:1px solid #51425f;margin-top:18px;padding-top:12px}.tv-sync-settings .tv-field:has(input[type=checkbox]){flex-direction:row-reverse;justify-content:flex-end;align-items:center}
@media(max-width:800px){.tv-channel-panel{height:clamp(280px,65vh,520px)}.tv-sync-bar{margin-top:0}}

.tv-channel-panel{padding:12px}.tv-channel-panel h2{margin-bottom:8px}.tv-channel-panel input,.tv-channel-panel select{min-height:34px;margin-bottom:6px;padding:7px 10px}.tv-channel-panel>small{margin:6px 0}.tv-channel-panel .tv-filters{margin-bottom:6px}

/* One compact TV toolbar; the page has no duplicate title or introduction. */
.tv-heading{justify-content:flex-end;margin-bottom:14px}.tv-heading .tv-actions{margin-left:auto}
.tv-sync-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.tv-viewers{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}.tv-viewers-icon,.tv-viewers-icon svg{display:block;width:21px;height:21px}
.tv-frame .watch-settings .tv-field{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:12px 4px;margin:0}
.tv-frame .watch-settings .tv-field input{width:18px;height:18px;accent-color:#cbb0ee}.tv-frame .watch-settings .tv-field:has(input:disabled){opacity:.5}

.tv-password-field{display:flex;align-items:center;gap:8px}.tv-password-field input{flex:1;min-width:0}.tv-password-field button{flex:0 0 auto}.tv-source-error{white-space:normal;overflow-wrap:anywhere}

/* .127 — cinema workspace, persistent rail outside fullscreen. */
body.tv-view-active .web-content{padding:0 0 42px!important;max-width:none}
body.tv-view-active #web-page.tv-page{max-width:none;padding-top:0}
.tv-page .tv-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) min(340px,30vw);gap:0;height:var(--tv-stage-height,calc(100dvh - 170px));min-height:340px;align-items:stretch;padding-bottom:28px;background:#050507;border:0;border-radius:0;overflow:hidden}
.austral-web .tv-stage .tv-frame[data-player-surface]{aspect-ratio:auto;width:100%;height:100%;min-height:0;border:0;border-radius:0}
.tv-stage .tv-channel-panel{height:100%;min-width:0;border:0;border-left:1px solid #3b3044;border-radius:0;padding:16px;margin:0;overflow:hidden}
.tv-stage .tv-channel-panel .tv-channels{max-height:none;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.tv-below{position:absolute;inset:auto 0 0;height:28px;min-height:28px!important;border:0;border-radius:0;background:#0e0b13;color:#c9bad6;font-size:11px;letter-spacing:.04em;padding:3px 12px}
.tv-facets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tv-facets .tv-field{margin:0 0 8px;min-width:0;gap:5px}.tv-facets .tv-field>span{font-size:11px;color:#b9a6c9}
.tv-facets select{font-size:12px;min-width:0;text-overflow:ellipsis}
.tv-page:fullscreen{background:#08070b;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;padding:0!important;scrollbar-width:none}
.tv-page:fullscreen>.tv-heading{display:none}.tv-page:fullscreen .tv-stage{height:100dvh;min-height:0;border:0;border-radius:0;grid-template-columns:minmax(0,1fr) min(360px,30vw);padding-bottom:28px;transition:grid-template-columns .2s ease}
.tv-page:fullscreen .tv-stage.tv-ui-idle{grid-template-columns:minmax(0,1fr) 0;padding-bottom:0;cursor:none}
.tv-page:fullscreen .tv-ui-idle .tv-channel-panel{padding:0;border:0;visibility:hidden;pointer-events:none}
.tv-page:fullscreen .tv-ui-idle .tv-below{visibility:hidden;pointer-events:none}
.tv-page:fullscreen>.tv-guide,.tv-page:fullscreen>.tv-recordings{margin:0;padding:32px clamp(18px,4vw,70px)}
.tv-page .watch-player-action:disabled,.tv-page .tv-channel-main:disabled,.tv-page .watch-player-play:disabled{opacity:.32!important;cursor:not-allowed}
.tv-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.tv-section-heading h2{margin:0}
.tv-guide-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.tv-guide-filters .tv-field{margin:0;min-width:150px;flex:1}.tv-guide-filters .tv-field>span{font-size:11px;color:#c2afcf}.tv-guide-filters .tv-field:last-of-type{flex:2}.tv-guide-filters>button{margin-bottom:1px}
.tv-epg-scroll{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #3d3047;border-radius:12px;scrollbar-width:thin}.tv-epg-grid{min-width:760px}.tv-epg-times,.tv-epg-row{display:grid;grid-template-columns:160px minmax(600px,1fr)}.tv-epg-times{height:42px;align-items:center;background:#1b1522}.tv-epg-times>strong{padding:0 14px;font-size:12px}
.tv-epg-scale{position:relative;height:20px}.tv-epg-scale>span{position:absolute;font-size:11px;color:#b7a4c7;border-left:1px solid #4e3d5b;padding-left:8px}
.tv-epg-row{min-height:82px;border-top:1px solid #35293d}.tv-epg-station{text-align:left;font-size:12px;padding:12px;background:#141018;color:#e6daee;border:0;border-radius:0;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.tv-epg-track{position:relative;min-height:82px;background:#0d0b10}.tv-epg-programme{position:absolute;top:5px;bottom:5px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;overflow:hidden;padding:10px 12px;background:#211929;border:1px solid #41324c;border-radius:6px;min-width:0;text-align:left;color:#f2e9f7}
.tv-epg-programme strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-epg-programme small{font-size:10px;color:#c9b3db;white-space:nowrap}.tv-epg-programme.is-current{background:#342341;border-color:#9a75b6}.tv-epg-empty{display:block;padding:29px 15px;font-size:12px;color:#908398}
.tv-guide-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:14px;font-size:12px;color:#bfa9ce}
.tv-recordings .tv-record{padding:20px;margin:12px 0;background:#141017;border:1px solid #3d3047;border-radius:12px}
.tv-folder-field{display:flex;gap:8px;align-items:center}.tv-folder-field input{flex:1;min-width:0}.tv-folder-field button{flex-shrink:0}.tv-folder-list{max-height:45vh;overflow:auto;display:flex;flex-direction:column;align-items:stretch;margin:18px 0}.tv-folder-list button{text-align:left}
.tv-settings-form{max-width:850px}.tv-filename-example{border-left:3px solid #38d4ef;padding:10px 18px;margin:20px 0;background:#10202b}.tv-filename-example code{display:block;overflow-wrap:anywhere;white-space:normal;margin:12px 0;color:#b6dcea;font-size:12px}#tv-settings [hidden]{display:none!important}#tv-settings .tv-field input,#tv-settings .tv-field select{background:#0c1a26;border-color:#2a4d62;color:#e5f2fb}#tv-settings .setting-section{scroll-margin-top:100px}#tv-settings .tv-field>span{color:#c4e2f5}
@media(max-width:900px){.tv-page .tv-stage{grid-template-columns:minmax(0,1fr) 260px}.tv-stage .tv-channel-panel{padding:10px}.tv-facets{grid-template-columns:1fr;gap:0}.tv-page .tv-stage .tv-frame .watch-player-overlay{padding:14px}.tv-page .tv-stage .watch-player-title h2{font-size:22px}}
@media(max-width:600px){body.tv-view-active .web-content{padding:0 0 24px!important}.tv-page .tv-stage{height:auto;display:flex;flex-direction:column;padding-bottom:28px}.austral-web .tv-page .tv-stage .tv-frame[data-player-surface]{height:clamp(280px,56vw,400px);min-height:280px}.tv-stage .tv-channel-panel{height:380px;border-left:0;border-top:1px solid #3b3044}.tv-facets{grid-template-columns:1fr 1fr;gap:8px}.tv-page:fullscreen .tv-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) min(42dvh,350px);height:100dvh}.austral-web .tv-page:fullscreen .tv-stage .tv-frame[data-player-surface]{height:100%;min-height:0}.tv-page:fullscreen .tv-stage .tv-channel-panel{height:100%}.tv-page:fullscreen .tv-stage.tv-ui-idle{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 0}.tv-section-heading{align-items:flex-start}.tv-guide-pagination{flex-wrap:wrap}.tv-folder-field{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.tv-page:fullscreen .tv-stage{transition:none}}

.tv-epg-now{position:absolute;top:0;bottom:0;width:2px;background:#44d9ed;pointer-events:none;z-index:1}

/* Brief tuning is not a denied action: keep its cursor and appearance stable. */
.tv-page .tv-channel-main[aria-busy="true"]:disabled { cursor: pointer; opacity: 1!important; }

/* Actions below source separators retain the same rhythm on every host. */
.tv-admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:22px;padding-bottom:4px}
