/* Shared live guide for browsers, TVs and installed apps. */
.wt-live-guide body{padding:0;overflow:hidden;background:#070f1c}.wt-live-guide .header,.wt-live-guide .footer,.wt-live-guide .wt-tv-hint,.wt-live-guide #fh-dock,.wt-live-guide .vx-background,.wt-live-guide .vx-cursor{display:none!important}
.television-guide{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:1.6vh 2.2vw 0;color:#eef4fc;background:radial-gradient(ellipse at 78% 12%,#142b48 0,transparent 45%),#070f1c;overflow:hidden;font-size:clamp(14px,1.1vw,25px)}
.tv-live-top{display:flex;align-items:center;gap:2vw;flex:none;height:9vh;min-height:48px;padding:0 0 1.4vh;border-bottom:1px solid #9ebcdb20}.tv-live-top>a img{width:clamp(92px,9.5vw,210px);height:7vh;object-fit:contain}.tv-live-top nav{display:flex;gap:1.8vw;align-items:center;flex:1}.tv-live-top nav a{padding:1.1vh .2vw;color:#9bb0c7;white-space:nowrap}.tv-live-top nav a.active{color:#fff;border-bottom:3px solid #36a6ff}.tv-live-top .live-dot{display:inline-block;margin-right:7px}.tv-live-top time{font-variant-numeric:tabular-nums;color:#b1c8df;font-size:1.6em}.tv-search-trigger{display:flex;align-items:center;gap:10px;background:#162a40;border:1px solid #364e69;border-radius:12px;padding:10px 14px;color:#d6e8fa;max-width:22%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:inherit}
.tv-guide-columns{display:grid;grid-template-columns:minmax(150px,19%) minmax(220px,29%) minmax(0,1fr);gap:1.2vw;min-height:0;flex:1;padding-top:2vh}.tv-categories,.tv-channel-list,.tv-programme-panel{background:#0b1726;border:1px solid #22374b;border-radius:16px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#375a7c transparent;overscroll-behavior:contain}
.tv-panel-label{font-size:.72em;letter-spacing:.15em;font-weight:700;color:#799aba;margin:0 0 15px}.tv-categories{padding:1.5vh .7vw}.tv-categories>p{padding:0 .7vw}.tv-categories button{display:flex;align-items:center;gap:.6vw;text-align:left;width:100%;min-height:5.6vh;padding:1vh .75vw;color:#9fb6cf;background:transparent;border:1px solid transparent;border-radius:9px;font:inherit;line-height:1.25;margin-bottom:3px}.tv-categories button span{flex:1}.tv-categories button small{font-size:.7em;color:#87a4c2}.tv-categories button[aria-pressed=true]{background:#183c61;color:#f4faff;border-color:#297abd}.tv-categories .icon{width:1.2em;height:1.2em;flex-shrink:0}.tv-category-divider{height:1px;background:#253c51;margin:1.2vh .7vw}
.tv-channel-list{display:flex;flex-direction:column;overflow:hidden}.tv-list-heading{padding:1.5vh 1.1vw;border-bottom:1px solid #233449;flex-shrink:0}.tv-list-heading h1{font-size:1.2em;line-height:1.2;margin:0 0 7px}.tv-list-heading>span{font-size:.76em;color:#819bb4}.tv-channel-options{overflow:auto;min-height:0;scrollbar-width:thin;padding:.8vh .6vw;overscroll-behavior:contain}.tv-channel-option{display:flex;align-items:center;width:100%;min-height:9vh;padding:.7vh .5vw;border:1px solid transparent;border-radius:12px;background:transparent;color:#e7eff8;text-align:left;gap:.7vw;margin-bottom:.6vh;font:inherit;line-height:1.25}.tv-channel-option>.channel-logo{width:4.4vw;height:4.4vw;max-width:100px;max-height:100px;min-width:40px;min-height:40px;flex-shrink:0;border-radius:10px}.tv-channel-option>span:not(.channel-logo):not(.live-dot){flex:1;min-width:0}.tv-channel-option strong{display:block;font-size:.95em;font-weight:600}.tv-channel-option small:not(.tv-channel-number){display:block;color:#7e9bb7;font-size:.7em;margin-top:6px}.tv-channel-number{font-size:.7em;color:#617f9d;font-variant-numeric:tabular-nums}.tv-channel-option.is-playing{background:#133954;border-color:#287ca1}.tv-channel-option[aria-pressed=true]{background:#182f47;border-color:#476b8e}.tv-channel-option.is-playing small{color:#79d4ee}.tv-list-more{width:100%;background:#152e46;color:#bfe8ff;border:1px solid #38566f;padding:12px;font:inherit;border-radius:10px}.tv-no-results{padding:18px;color:#abc0d4}
.tv-detail-column{display:flex;flex-direction:column;min-width:0;min-height:0;gap:1.5vh;overflow:hidden}.tv-channel-stage{background:#030911;border:1px solid #2b4057;border-radius:16px;flex:none;overflow:hidden}.tv-stage-video{position:relative;aspect-ratio:16/9;width:100%;max-height:38vh;background:radial-gradient(ellipse,#142b42,#02060c);overflow:hidden}.tv-stage-video video{width:100%;height:100%;object-fit:contain;display:block}.tv-stage-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1vh;padding:1vw;text-align:center;background:radial-gradient(ellipse,#152d46,#070f1c)}.tv-stage-placeholder .channel-logo{width:6vw;height:6vw;min-width:55px;min-height:55px;border-radius:18px}.tv-stage-placeholder h2{font-size:1.2em;margin:0}.tv-stage-placeholder p{font-size:.8em;color:#99afc6;margin:0}.television-guide .tv-stage-placeholder .btn{min-height:30px;font-size:.85em;padding:8px 15px;margin-top:3px}.tv-tuning-status{position:absolute;bottom:0;left:0;right:0;padding:10px 16px;background:#081420ed;color:#c9e5fb;font-size:.8em;text-align:center}.tv-number-entry{position:absolute;right:25px;top:20px;font-size:3em;color:#fff;background:#102b47d9;padding:5px 20px;border-radius:12px}
.tv-transport{padding:1vh 1vw;background:#101f31}.tv-playing-title{display:flex;align-items:center;gap:10px;margin-bottom:1vh;min-width:0}.tv-playing-title strong{font-size:.87em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-playing-title .tag-live{font-size:.55em}.tv-transport-buttons{display:flex;gap:.6vw}.tv-transport button{font:inherit;font-size:.8em;display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border:1px solid #365976;border-radius:8px;background:#1b3b56;color:#e6f3ff;padding:.6vh .8vw}.tv-transport .icon{width:1.1em;height:1.1em}.tv-secondary-controls{display:flex;gap:.8vw;margin-top:1vh}.tv-secondary-controls button{border:0;background:none;padding:2px 3px;font-size:.69em;color:#96b7d4;min-height:20px}.tv-secondary-controls button:disabled{opacity:.6}
.tv-programme-panel{flex:1;padding:1.5vh 1.2vw}.tv-programme-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:1.4vh}.tv-programme-heading .tv-panel-label{font-size:.64em;margin-bottom:4px;display:block}.tv-programme-heading h2{font-size:1em;margin:0}.tv-favorite{background:#132e44;border:1px solid #314e69;border-radius:50%;color:#8bb4d7;width:2.8em;height:2.8em;display:grid;place-items:center;flex:none}.tv-favorite.saved{color:#7ccfff;background:#16436a}.tv-programme-current>p:first-child{display:flex;align-items:center;gap:12px;font-size:.8em;color:#a4bcd4;margin:0 0 6px}.tv-programme-current>p>span{font-size:.75em;font-weight:700;letter-spacing:.1em;color:#69d5bd}.tv-programme-current h3{font-size:1.05em;line-height:1.3;margin:0 0 10px}.tv-epg-progress{height:4px;border-radius:3px;background:#244057;overflow:hidden}.tv-epg-progress>span{display:block;height:100%;background:linear-gradient(90deg,#329dff,#71dbc5)}.tv-programme-description{font-size:.82em;line-height:1.5;color:#90a9c1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0}.tv-upcoming>h3{font-size:.8em;color:#acc2d8;margin:1.7vh 0 1vh}.tv-programme-next{display:flex;gap:1vw;padding:1vh 0;border-top:1px solid #24394c;font-size:.8em}.tv-programme-next time{min-width:6.7em;color:#7b9cbb;font-size:.8em}.tv-programme-next time b{display:block;font-weight:400;white-space:nowrap;margin-top:4px;color:#b3c9de}.tv-epg-empty{font-size:.85em;color:#8faac3;line-height:1.5}.tv-remote-help{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:1.3vh .4vw;font-size:.72em;color:#7897b5;flex:none}
.wt-live-guide .television-guide :focus{outline:3px solid #93e2ff!important;outline-offset:-3px!important;box-shadow:inset 0 0 0 1px #228fcf,0 0 18px #2796f52b!important}.television-guide a,.television-guide button,.television-guide input,.television-guide [tabindex]{scroll-margin:8px!important}.tv-channel-option:focus{background:#235174!important;color:white}.television-guide button{cursor:pointer}
.tv-channel-stage.is-expanded,.tv-channel-stage:fullscreen{position:fixed;inset:0;width:100vw;height:100vh;border-radius:0;border:0;z-index:100;background:#000}.tv-channel-stage.is-expanded .tv-stage-video,.tv-channel-stage:fullscreen .tv-stage-video{height:100%;max-height:none;aspect-ratio:auto}.tv-channel-stage.is-expanded .tv-transport{position:absolute;left:0;right:0;bottom:0;padding:2.2vh 4vw;background:linear-gradient(transparent,#06101fee 20%);padding-top:7vh;font-size:1.3em}.tv-channel-stage.hide-controls .tv-transport{opacity:0;pointer-events:none;visibility:hidden}.tv-channel-stage.is-expanded .tv-transport-buttons button{min-height:45px;padding:10px 22px}.tv-channel-stage.is-expanded .tv-tuning-status{bottom:35%;background:#0b2030d9;max-width:80%;margin:auto;border-radius:12px}
.tv-keyboard-backdrop{position:fixed;inset:0;display:grid;place-items:center;background:#020914dd;z-index:110;backdrop-filter:blur(8px)}.tv-keyboard{width:min(650px,70vw);padding:2.5vh 2vw;border:1px solid #3a5f83;border-radius:20px;background:#0e2135;box-shadow:0 20px 80px #0008}.tv-keyboard h2{font-size:1.3em;margin:0 0 18px}.tv-keyboard input{width:100%;font:inherit;padding:12px 16px;background:#081524;border:1px solid #426181;color:white;border-radius:10px;margin-bottom:15px}.tv-key-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:8px}.tv-keyboard button{font:inherit;min-height:5vh;border:1px solid #385b7e;border-radius:8px;background:#1b3d60;color:white;padding:8px}.tv-key-actions{display:flex;gap:10px;margin-top:18px}.tv-key-actions button:last-child{margin-left:auto;background:#147bb4}.tv-key-actions button{font-size:.85em}
@media(max-height:650px){.tv-live-top{min-height:44px;height:9vh}.tv-stage-video{max-height:30vh}.tv-transport{padding:.6vh .8vw}.tv-secondary-controls{margin-top:4px}.tv-transport button{min-height:29px}.tv-playing-title{margin-bottom:4px}.tv-keyboard{padding:15px}.tv-keyboard h2{margin-bottom:10px}.tv-key-grid{gap:5px}.tv-keyboard input{padding:8px;margin-bottom:9px}.tv-keyboard button{padding:5px}.tv-key-actions{margin-top:10px}}
.tv-on-air{font-size:.72em;color:#a6c5df;margin:0 0 1vh;line-height:1.4}.tv-on-air span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-on-air span+span{color:#7298ba;margin-top:4px}
.wt-live-guide #fh-pwa-welcome{display:none!important}
.television-guide{font-size:clamp(16px,1.25vw,28px)}

/* Compact screens use the same guide in a vertical layout. */
.mobile-live-guide{overflow:auto;overscroll-behavior-y:contain;padding:max(10px,env(safe-area-inset-top)) 12px max(20px,env(safe-area-inset-bottom));font-size:16px;height:100dvh}
.mobile-live-guide .tv-live-top{height:auto;min-height:0;display:flex;flex-wrap:wrap;gap:10px;padding:0 0 12px}
.mobile-live-guide .tv-live-top>a img{width:90px;height:38px}
.mobile-live-guide .tv-live-top nav{order:3;width:100%;display:flex;justify-content:space-between;gap:8px;font-size:14px}
.mobile-live-guide .tv-live-top nav a{min-height:44px;display:flex;align-items:center}
.mobile-live-guide .tv-live-top time{display:none}
.mobile-live-guide .tv-search-trigger{margin-left:auto;min-height:44px;max-width:calc(100% - 105px);font-size:14px;padding:10px}
.mobile-live-guide .tv-guide-columns{display:flex;flex-direction:column;flex:none;min-height:0;gap:12px;padding-top:12px}
.mobile-live-guide .tv-detail-column{display:contents}
.mobile-live-guide .tv-channel-stage{order:1;flex:none;min-width:0;width:100%}
.mobile-live-guide .tv-stage-video{max-height:none;aspect-ratio:16/9}
.mobile-live-guide .tv-stage-placeholder{gap:6px;padding:12px}
.mobile-live-guide .tv-stage-placeholder .channel-logo{width:48px;height:48px;min-width:48px;min-height:48px}
.mobile-live-guide .tv-stage-placeholder h2{font-size:16px}
.mobile-live-guide .tv-stage-placeholder p{font-size:12px}
.mobile-live-guide .tv-categories{order:2;display:flex;overflow-x:auto;gap:8px;padding:8px;flex:none;width:100%;border-radius:12px}
.mobile-live-guide .tv-categories>p,.mobile-live-guide .tv-category-divider{display:none}
.mobile-live-guide .tv-categories button{width:auto;min-height:44px;flex:none;gap:8px;padding:10px 14px;margin:0;white-space:nowrap;font-size:14px}
.mobile-live-guide .tv-channel-list{order:3;flex:none;max-height:52dvh;min-height:200px}
.mobile-live-guide .tv-list-heading{padding:12px}
.mobile-live-guide .tv-channel-options{padding:6px}
.mobile-live-guide .tv-channel-option{min-height:64px;gap:10px;padding:8px;font-size:16px}
.mobile-live-guide .tv-channel-option>.channel-logo{width:44px;height:44px}
.mobile-live-guide .tv-channel-number{min-width:28px;font-size:12px}
.mobile-live-guide .tv-programme-panel{order:4;flex:none;padding:16px;overflow:visible}
.mobile-live-guide .tv-transport{padding:10px}
.mobile-live-guide .tv-transport-buttons{display:flex;flex-wrap:wrap;gap:6px}
.mobile-live-guide .tv-transport button{min-height:44px;padding:8px;font-size:13px}
.mobile-live-guide .tv-secondary-controls{gap:10px;flex-wrap:wrap;margin-top:6px}
.mobile-live-guide .tv-secondary-controls button{min-height:44px;font-size:12px}
.mobile-live-guide .tv-remote-help{display:none}
.mobile-live-guide .tv-keyboard{width:calc(100% - 24px);max-width:550px;padding:16px;max-height:90dvh;overflow:auto}
.mobile-live-guide .tv-keyboard input{font-size:16px}
.mobile-live-guide .tv-key-grid,.mobile-live-guide .tv-key-actions button:nth-child(-n+2){display:none}
.mobile-live-guide .tv-key-actions{gap:8px;flex-wrap:wrap}
.mobile-live-guide .tv-keyboard button{min-height:44px}
.mobile-live-guide .tv-channel-stage.is-expanded{width:100vw;height:100dvh}
.mobile-live-guide .tv-channel-stage.is-expanded .tv-stage-video{height:100%;aspect-ratio:auto}
.mobile-live-guide .tv-channel-stage.is-expanded .tv-transport{font-size:16px;padding:30px 12px max(12px,env(safe-area-inset-bottom))}
.mobile-live-guide .tv-channel-stage.is-expanded .tv-transport-buttons button{padding:8px;min-height:44px}

.television-guide,.television-guide *{box-sizing:border-box}
.tv-guide-columns>*{min-width:0}
.tv-keyboard-backdrop{overflow:auto;padding:12px}
.tv-keyboard{max-height:calc(100dvh - 24px);overflow:auto}
