:root{--bg:#0c1423;--surface:#141e30;--card:#1b2940;--line:#2a3950;--text:#f6f8fb;--muted:#9fadc1;--orange:#ff8738;--orange2:#ffc18c;--green:#70d6a3}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:15px/1.5 'Helvetica Neue',Arial,sans-serif}button,input,textarea,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:3px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.15}p{color:var(--muted)}[hidden]{display:none!important}.brand{object-fit:contain;display:block;background:transparent;padding:0;border-radius:0;max-width:100%}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.16em;color:var(--orange);margin-bottom:20px}.login-screen{min-height:100vh;max-width:1400px;margin:auto;padding:36px 56px;display:flex;flex-direction:column}.login-header{display:flex;justify-content:space-between;align-items:center}.login-header .brand{width:230px;height:70px}.quiet-tag{font-size:13px;color:var(--muted);padding:8px 14px;border:1px solid var(--line);border-radius:20px}.login-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:100px;align-items:center;flex:1;padding:70px 0}.login-intro h1{font-size:clamp(42px,4.5vw,68px);letter-spacing:-2.5px;margin-bottom:26px;font-weight:750}.login-intro h1 span{color:var(--orange2)}.login-intro>p:not(.eyebrow){font-size:18px;max-width:490px;line-height:1.65}.login-intro>small{display:block;max-width:470px;font-size:12px;line-height:1.8;color:#7f8ea4}.intro-icons{display:flex;gap:16px;margin:36px 0}.intro-icons>span{display:grid;place-items:center;width:92px;height:92px;border:1px solid #34425c;border-radius:20px;background:linear-gradient(145deg,#24354f,#131e31);color:var(--orange2);transform:rotate(-4deg)}.intro-icons>span:nth-child(2){transform:translateY(-10px)rotate(3deg)}.intro-icons>span:nth-child(3){transform:rotate(-2deg)}.intro-icons svg{width:43px;height:43px;stroke-width:1.3}.intro-benefits{display:grid;gap:10px;margin:25px 0 30px}.intro-benefits span{display:flex;gap:10px;align-items:center;font-size:14px;color:#d0d9e6}.intro-benefits i{display:flex;color:var(--green)}.intro-benefits svg{width:18px;height:18px}.login-card{background:var(--surface);border:1px solid var(--line);padding:36px;border-radius:22px;box-shadow:0 25px 80px #0003}.login-card h2{font-size:27px;letter-spacing:-.6px;margin-bottom:12px}.login-card>p{font-size:14px}.login-tabs{display:flex;border:1px solid var(--line);background:var(--bg);padding:4px;border-radius:11px;gap:4px;margin:25px 0}.login-tabs button{flex:1;padding:11px 12px;background:transparent;border:0;border-radius:7px;color:var(--muted);font-weight:650}.login-tabs button[aria-selected=true]{background:var(--card);color:var(--orange2)}.form-stack{display:grid;gap:18px}.form-stack label{display:grid;gap:8px;font-size:13px;font-weight:650}.form-stack input,.form-stack textarea{background:#101a2c;border:1px solid #35435a;color:#fff;width:100%;min-width:0;padding:12px 14px;border-radius:8px;outline-offset:2px}.form-stack input::placeholder,.form-stack textarea::placeholder{color:#6d7e96}.form-stack small{font-size:11px;line-height:1.6;color:var(--muted)}.input-duo{display:grid;grid-template-columns:1fr 1fr;gap:14px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:1px solid transparent;border-radius:9px;line-height:1.4;padding:12px 17px;font-weight:650;text-decoration:none;color:var(--text)}.primary{background:var(--orange);color:#151c27}.primary:hover{background:#ffa15f}.secondary{background:var(--card);border-color:var(--line);color:#d7dfeb}.secondary:hover{border-color:#5d6c83}.primary svg,.secondary svg{width:18px;height:18px}.loading{opacity:.65;pointer-events:none}.privacy{display:flex;align-items:flex-start;gap:10px;margin-top:26px;border-top:1px solid var(--line);padding-top:20px;color:#8091a9}.privacy>span{display:flex}.privacy svg{width:18px;height:18px}.privacy p{font-size:11px;line-height:1.6;margin:0}.optional{font-size:11px;font-weight:400;color:var(--muted)}.error-message{padding:14px;border:1px solid #6f3939;background:#382525;color:#ffb6aa;border-radius:7px;font-size:13px;margin:16px 0 0}.login-footer{display:flex;justify-content:space-between;gap:20px;color:#73849d;font-size:12px;border-top:1px solid var(--line);padding-top:23px}.app-shell{display:flex;min-height:100vh}.rail{position:fixed;left:0;top:0;bottom:0;width:86px;display:flex;flex-direction:column;align-items:center;padding:20px 9px;background:#0a1120;border-right:1px solid var(--line);z-index:10}.rail-brand{display:grid;place-items:center;background:var(--orange);color:#151c27;width:48px;height:48px;border-radius:15px;margin-bottom:30px}.rail-brand svg{width:28px;height:28px;fill:#151c27;stroke:none}.rail-links{display:grid;gap:8px;width:100%}.rail button{border:0;background:none;color:#8394ac;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:61px;width:100%;padding:10px 2px;border-radius:11px}.rail button svg{width:23px;height:23px}.rail button small{font-size:9px;font-weight:650}.rail button:hover{background:var(--surface);color:#fff}.rail button.active{color:var(--orange2);background:#ff873817}.rail-bottom{margin-top:auto;width:100%;display:grid;gap:10px}.rail-bottom button{min-height:45px}.app-main{width:calc(100% - 86px);margin-left:86px;min-width:0}.app-header{height:94px;display:flex;align-items:center;gap:28px;padding:18px 30px;border-bottom:1px solid var(--line);background:#10192a}.app-header .brand{width:185px;height:56px}.current-view{border-left:1px solid var(--line);padding-left:28px;min-width:0}.current-view>span{font-size:18px;font-weight:700}.current-view small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.playlist-status{display:flex;gap:10px;align-items:center;margin-left:auto;background:#08111f;border:1px solid #25324a;padding:10px 15px;border-radius:9px;max-width:300px}.playlist-status strong{display:block;font-size:13px;color:var(--orange2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playlist-status small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:100%;flex-shrink:0}#clock{font-size:17px;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:#b6c5d9}.home-view{max-width:1300px;margin:auto;padding:60px 50px}.home-heading h1{font-size:clamp(36px,4vw,56px);letter-spacing:-2px;margin:0 0 20px}.home-heading>p:not(.eyebrow){margin-bottom:35px}.home-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.home-tile{text-align:left;display:flex;flex-direction:column;position:relative;border:1px solid #30415b;border-radius:16px;padding:28px 25px 26px;min-height:255px;background:linear-gradient(145deg,#21334f,#132037);color:#e9eef6;transition:transform .2s,border-color .2s}.home-tile:hover{transform:translateY(-5px);border-color:var(--orange)}.home-tile>span{width:64px;height:64px;display:grid;place-items:center;background:#ffffff09;border:1px solid #ffffff18;border-radius:16px;color:var(--orange2);margin-bottom:38px}.home-tile>span svg{width:35px;height:35px;stroke-width:1.4}.home-tile h2{font-size:24px;letter-spacing:-.6px;margin-bottom:12px}.home-tile p{font-size:12px;margin-bottom:0;color:#a4b6cc;max-width:160px}.home-tile i{position:absolute;right:22px;bottom:25px;display:flex;color:var(--orange)}.home-tile i svg{width:18px;height:18px}.movie-tile{background:linear-gradient(145deg,#332f49,#1b2035)}.series-tile{background:linear-gradient(145deg,#263741,#152537)}.epg-tile{background:linear-gradient(145deg,#3b3041,#232237)}.home-bottom{margin-top:40px;display:flex;flex-wrap:wrap;gap:12px}.home-bottom p{width:100%;font-size:11px;color:#70849f;margin-top:15px}.browse-view{display:grid;grid-template-columns:minmax(500px,1fr) minmax(450px,1.1fr);gap:22px;padding:22px;align-items:start}.browser-panel{min-width:0;display:flex;flex-direction:column}.browse-tools{display:flex;gap:10px;margin-bottom:16px}.search-box{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid var(--line);background:var(--surface);border-radius:9px;width:100%;color:#6e849f}.search-box svg{width:18px;height:18px}.search-box input{width:100%;min-width:0;background:none;color:#fff;border:0;outline:none;font-size:13px}.search-box:focus-within{border-color:var(--orange)}.search-box input::placeholder{color:#7c91ac}.icon-button{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:#9aacbf;min-width:42px;height:42px;padding:8px}.icon-button:hover{color:var(--orange2);border-color:#5d6c83}.icon-button.active{color:var(--orange)}.icon-button.active svg{fill:#ff873826}.browse-columns{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(230px,1fr);gap:12px}.categories{display:flex;flex-direction:column;gap:7px;max-height:calc(100vh - 190px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#354c6d transparent;min-width:0}.category{display:flex;justify-content:space-between;gap:9px;text-align:left;align-items:center;padding:14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:#c5d2e3;font-size:12px;font-weight:650;min-height:57px;overflow-wrap:anywhere}.category small{font-size:10px;font-weight:400;color:#8399b5;flex-shrink:0}.category:hover{background:var(--card)}.category.active{background:#ff87381c;border-color:#bd703e;color:var(--orange2)}.category.active small{color:var(--orange2)}.content-panel{min-width:0}.results-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#8ba0bd;padding:0 3px 12px}.results-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:#b5c2d7}.results-heading span{white-space:nowrap}.catalog-items{display:flex;flex-direction:column;gap:7px;max-height:calc(100vh - 245px);overflow:auto;scrollbar-width:thin;scrollbar-color:#354c6d transparent;padding-right:3px}.catalog-items.busy{opacity:.4;pointer-events:none}.channel-row{display:flex;align-items:center;position:relative;border:1px solid transparent;border-radius:8px;background:var(--surface);min-height:61px;flex-shrink:0}.channel-row:hover{background:#21334d}.channel-row.selected{background:#ff873819;border-color:#e78c4f}.open-item{border:0;color:inherit;background:none;display:flex;align-items:center;text-align:left;gap:11px;min-width:0;flex:1;width:100%;padding:10px}.channel-logo{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border-radius:5px;background:#fff;overflow:hidden;color:#496080}.channel-logo img{max-width:100%;max-height:100%;object-fit:contain;padding:2px}.channel-logo svg{width:22px;height:22px}.item-text{min-width:0;flex:1}.item-text strong{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.item-text small{display:block;font-size:9px;color:#7d94b4;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-number{font-size:9px;font-weight:700;color:#97abc5;background:#293b56;padding:3px 6px;border-radius:4px}.favorite-item{width:29px;height:36px;display:grid;place-items:center;background:none;border:0;color:#627b9b;margin-right:5px;flex-shrink:0}.favorite-item svg{width:15px;height:15px}.favorite-item.active{color:var(--orange)}.favorite-item.active svg{fill:#ff87383a}.catalog-pages{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:8px;font-size:11px;color:#7f94b1}.catalog-pages .secondary{padding:8px 10px;font-size:10px}.watch-panel{min-width:0}.video-wrap{position:relative;aspect-ratio:16/9;background:#03070d;border:1px solid #223249;border-radius:10px;overflow:hidden}.video-wrap video{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:#000}.video-wrap.fit-classic{aspect-ratio:4/3}.video-wrap.fit-fill video{object-fit:fill}.video-wrap.fit-cover video{object-fit:cover}.video-wrap.fit-wide video{aspect-ratio:16/9;object-fit:contain}.video-wrap:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border:0;border-radius:0}.video-wrap:fullscreen.fit-classic video{width:min(100vw,calc(100vh * 4 / 3));height:min(100vh,calc(100vw * 3 / 4));inset:0;margin:auto}.player-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;background:radial-gradient(ellipse at 50% 50%,#162337,#060b14 70%);text-align:center;pointer-events:none}.player-placeholder>span{display:grid;place-items:center;width:60px;height:60px;border:1px solid #3b506d;border-radius:100%;color:var(--orange);margin-bottom:18px}.player-placeholder svg{width:23px;height:23px;margin-left:3px}.player-placeholder h2{font-size:19px;margin-bottom:9px;font-weight:650}.player-placeholder p{font-size:12px;margin-bottom:0;color:#687f9f}.player-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0}.player-title h2{font-size:19px;line-height:1.25;letter-spacing:-.3px;margin-bottom:0}.player-title p{margin:0 0 5px;font-size:10px;color:#7f97b8}.player-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:14px}.player-tools .secondary{font-size:11px;padding:9px 11px;min-height:36px}.player-tools .icon-button{width:36px;height:36px;min-width:36px}.player-tools svg{width:16px;height:16px}.format-control,.quality-control{display:flex;align-items:center;gap:7px;font-size:10px;color:#849abc;margin-left:auto}.format-control select,.quality-control select{background:var(--surface);border:1px solid var(--line);border-radius:6px;color:#ccd7e6;padding:8px 4px;font-size:11px}.quality-control{margin-left:0}#player-status{min-height:18px;font-size:11px;color:#79b999;margin:12px 0 20px}#player-status.error{color:#ffad99}.program-guide{border:1px solid var(--line);padding:18px;background:#101b2d;border-radius:10px}.guide-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.guide-title h3{font-size:14px;margin:0}.guide-title span{font-size:9px;color:#6f89a9}.empty-guide{font-size:12px;line-height:1.7;color:#6f88a8;margin-bottom:0}.program{padding:15px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);margin-top:9px}.program.now{border-color:#895e36;background:#ff873811}.program-state{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#7c92b0;font-weight:650;display:block;margin-bottom:8px}.program.now .program-state{color:var(--orange2)}.program h4{font-size:14px;margin:0 0 10px}.program>p{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:13px}.program-times{display:flex;justify-content:space-between;color:#8fa4be;font-size:11px}.program progress{height:4px;width:100%;border:0;appearance:none;margin-top:10px}.program progress::-webkit-progress-bar{background:#39455a;border-radius:5px}.program progress::-webkit-progress-value{background:var(--orange);border-radius:5px}.poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding-right:4px;align-content:start;max-height:calc(100vh - 245px)}.vod-mode .browse-columns{grid-template-columns:150px minmax(300px,1fr)}.vod-mode.browse-view{grid-template-columns:minmax(580px,1.4fr) minmax(360px,.8fr)}.media-card{position:relative;min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}.media-card .open-item{padding:0;flex-direction:column;gap:0}.poster{background:#263752;display:grid;place-items:center;aspect-ratio:2/3;width:100%;overflow:hidden;color:#667f9e}.poster img{width:100%;height:100%;object-fit:cover}.poster svg{width:40px;height:40px;stroke-width:1}.media-card .item-text{width:100%;padding:11px 10px 13px;min-height:65px}.media-card .item-text strong{font-size:11px}.media-card .item-text small{font-size:9px}.media-card .favorite-item{position:absolute;top:7px;right:4px;border-radius:100%;width:29px;height:29px;background:#0b162dd9;color:#b2c0d5;margin:0}.media-card .favorite-item.active{color:var(--orange)}.media-card:hover{border-color:var(--orange)}.empty-state{grid-column:1/-1;text-align:center;color:#526d91;padding:60px 20px}.empty-state svg{width:34px;height:34px}.empty-state p{font-size:13px;margin-top:20px;line-height:1.7;max-width:320px;margin-left:auto;margin-right:auto}dialog{max-width:850px;width:calc(100% - 40px);max-height:85vh;background:var(--surface);color:var(--text);padding:28px;border:1px solid #3b4b64;border-radius:16px;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#020610bb;backdrop-filter:blur(6px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px}.dialog-heading h2{font-size:26px;line-height:1.25;letter-spacing:-.5px;margin:0}.dialog-heading .icon-button{flex-shrink:0}.movie-summary{display:grid;grid-template-columns:190px 1fr;gap:28px}.movie-summary .poster{border-radius:9px}.movie-meta{font-size:12px;color:var(--orange2)}.synopsis{font-size:14px;line-height:1.8;white-space:pre-line}.movie-summary .primary{margin-top:14px}.season-control{display:flex;align-items:center;gap:15px;font-size:13px;margin:20px 0}.season-control select{background:var(--card);color:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 20px}.episode-list{display:grid;gap:9px}.episode{display:flex;align-items:center;gap:14px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px;color:#c8d5e8}.episode strong{font-size:13px}.episode small{margin-left:auto;font-size:11px;color:#7d95b5}.episode svg{color:var(--orange);width:18px;height:18px}.episode:hover{border-color:var(--orange)}.settings-body p{font-size:14px;line-height:1.8}.settings-body h3{font-size:18px;margin:30px 0 12px}.settings-body .secondary{font-size:13px}#settings-dialog{max-width:600px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;border:1px solid var(--line);background:#1d2f48;color:#e4edf9;padding:13px 20px;border-radius:9px;box-shadow:0 10px 35px #0005;font-size:13px;z-index:50;opacity:0;pointer-events:none}#toast.visible{opacity:1}.visually-hidden,.skip{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;padding:12px;background:#fff;color:#000;z-index:100}
@media(min-width:1800px){.catalog-items,.categories{max-height:calc(100vh - 230px)}.channel-row{min-height:68px}.item-text strong{font-size:15px}.category{font-size:14px;padding:17px}.browse-columns{grid-template-columns:minmax(230px,.6fr) minmax(330px,1fr)}.poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.vod-mode .browse-columns{grid-template-columns:200px 1fr}}
@media(max-width:1200px){.login-grid{gap:50px}.login-screen{padding:30px}.login-intro h1{font-size:48px}.login-card{padding:28px}.home-view{padding:50px 30px}.home-cards{grid-template-columns:repeat(2,1fr)}.home-tile{min-height:220px}.browse-view,.vod-mode.browse-view{grid-template-columns:1fr;gap:25px}.watch-panel{grid-row:1}.browse-view:not(.has-playback) .watch-panel{display:none}.browse-columns,.vod-mode .browse-columns{grid-template-columns:200px 1fr}.catalog-items,.categories{max-height:65vh}.poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.watch-panel .video-wrap{max-width:800px;margin:auto}.program-guide{max-height:350px;overflow:auto}.current-view{padding-left:20px}.app-header{gap:20px;padding:18px 24px}.app-header .brand{width:160px;height:49px}.playlist-status{max-width:210px}}
@media(max-width:800px){.login-grid{grid-template-columns:1fr;padding:40px 0;gap:40px}.login-intro h1{font-size:46px}.login-intro>p:not(.eyebrow){font-size:16px;max-width:600px}.intro-icons{display:none}.intro-benefits{display:flex;flex-wrap:wrap;gap:10px 20px;margin-bottom:15px}.login-intro>small{max-width:600px}.login-card{max-width:600px;width:100%;margin:auto}.app-header{height:82px;padding:14px 20px;gap:16px}.app-header .brand{width:135px;height:42px}.current-view{border:0;padding:0}.current-view>span{font-size:15px}.current-view small{display:none}.playlist-status{padding:7px 10px;max-width:180px}#clock{display:none}.browse-columns,.vod-mode .browse-columns{grid-template-columns:1fr}.categories{flex-direction:row;max-height:none;overflow-x:auto;padding-bottom:8px;gap:8px}.category{flex-shrink:0;white-space:nowrap;min-height:40px;padding:10px 12px}.category span{max-width:150px;text-overflow:ellipsis;overflow:hidden}.results-heading{margin-top:10px}.catalog-items{max-height:65vh}.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-view{padding:40px 25px}.home-heading h1{font-size:44px}.home-tile{padding:23px 20px}.home-tile>span{margin-bottom:27px}.home-tile h2{font-size:24px}.player-tools{gap:6px}}
@media(max-width:550px){.login-screen{padding:24px 18px}.login-header .brand{width:185px;height:57px}.quiet-tag{font-size:10px;padding:6px 10px}.login-grid{padding:35px 0;gap:27px}.login-intro h1{font-size:40px;letter-spacing:-1.8px;margin-bottom:20px}.login-intro>p:not(.eyebrow){font-size:14px}.login-intro>.eyebrow{font-size:10px;margin-bottom:16px}.intro-benefits{display:grid;gap:8px}.intro-benefits span{font-size:12px}.login-intro>small{font-size:10px}.login-card{padding:24px 20px;border-radius:16px}.login-card h2{font-size:23px}.input-duo{grid-template-columns:1fr}.login-tabs{margin:20px 0}.login-tabs button{font-size:12px}.login-footer{font-size:9px;gap:12px}.rail{top:auto;bottom:0;right:0;width:100%;height:65px;padding:4px 6px;background:#0a1120f7;flex-direction:row;border-right:0;border-top:1px solid var(--line)}.rail-brand,.rail-bottom{display:none}.rail-links{display:flex;width:100%;gap:3px;justify-content:space-around}.rail button{min-height:54px;width:auto;flex:1;padding:6px 2px;gap:5px;border-radius:8px}.rail button svg{width:20px;height:20px}.rail button small{font-size:8px}.app-main{width:100%;margin:0;padding-bottom:65px}.app-header{height:76px;padding:14px 15px;gap:11px;flex-wrap:wrap}.app-header .brand{width:125px;height:39px}.current-view{margin-right:auto}.current-view>span{font-size:13px}.playlist-status{max-width:118px;padding:6px 8px;gap:7px}.playlist-status strong{font-size:10px}.playlist-status small{font-size:8px}.home-view{padding:32px 18px}.home-heading h1{font-size:38px;letter-spacing:-1.5px}.home-heading .eyebrow{font-size:10px;margin-bottom:16px}.home-heading>p:not(.eyebrow){font-size:12px;margin-bottom:28px}.home-cards{gap:12px}.home-tile{padding:18px 15px;min-height:183px;border-radius:12px}.home-tile>span{width:45px;height:45px;border-radius:11px;margin-bottom:22px}.home-tile>span svg{width:27px;height:27px}.home-tile h2{font-size:20px;margin-bottom:9px}.home-tile p{font-size:10px;max-width:120px}.home-tile i{bottom:18px;right:12px}.home-tile i svg{width:15px;height:15px}.home-bottom{gap:9px;margin-top:28px}.home-bottom .secondary{padding:10px 12px;font-size:11px}.home-bottom p{font-size:10px;margin-top:7px}.browse-view{padding:15px;gap:20px}.browse-tools{margin-bottom:12px}.search-box{padding:11px}.search-box input{font-size:12px}.category{font-size:10px;min-height:35px}.category small{font-size:9px}.open-item{padding:10px;gap:12px}.item-text strong{font-size:13px}.item-text small{font-size:10px}.channel-logo{width:42px;height:42px}.channel-row{min-height:66px}.favorite-item{width:35px;height:40px;margin-right:6px}.favorite-item svg{width:18px;height:18px}.poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.media-card .item-text strong{font-size:12px}.media-card .item-text small{font-size:10px}.player-title h2{font-size:16px}.player-tools .secondary{font-size:10px;padding:9px}.format-control{width:100%;margin:4px 0 0}.format-control select{padding:9px 12px;flex:1}.quality-control{width:100%;margin:0}.program-guide{padding:14px}.program>p{font-size:11px}.dialog-heading{gap:12px;margin-bottom:20px}.dialog-heading h2{font-size:21px}.movie-summary{grid-template-columns:1fr;gap:18px}.movie-summary .poster{max-width:150px;margin:auto}.movie-summary .primary{width:100%}dialog{padding:22px 18px;width:calc(100% - 24px);max-height:85vh}.episode{padding:13px 10px;gap:10px}.episode strong{font-size:12px}.episode small{font-size:9px;max-width:50px}#toast{bottom:80px;width:max-content;font-size:12px}.player-placeholder>span{width:45px;height:45px;margin-bottom:13px}.player-placeholder h2{font-size:15px}.player-placeholder p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.home-tile:hover{transform:none}}

.playlist-status>div{min-width:0}

.screen-exit{display:none;position:absolute;top:16px;right:16px;z-index:4;background:#0c1423b3;color:white}.video-wrap:fullscreen .screen-exit,.video-wrap.immersive .screen-exit{display:inline-flex}.video-wrap.immersive{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;aspect-ratio:auto;border:0;border-radius:0;background:#000}.video-wrap.immersive.fit-classic video{width:min(100vw,calc(100dvh * 4 / 3));height:min(100dvh,calc(100vw * 3 / 4));inset:0;margin:auto}html:has(.video-wrap.immersive){overflow:hidden}

/* A 16px control font prevents Safari's automatic focus zoom without disabling pinch zoom. */
@media(max-width:800px){input,textarea,select,.search-box input,.form-stack input,.form-stack textarea{font-size:16px}}
@media(max-width:550px){
 .login-header .brand{width:220px;height:auto;flex-shrink:0}
 .login-header .quiet-tag{display:none}
 .app-header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:99px;gap:7px 12px;align-items:center}
 .app-header .brand{width:175px;height:60px;max-width:100%}
 .app-header .current-view{grid-column:1 / -1;grid-row:2;margin:0}
 .app-header .playlist-status{grid-column:2;grid-row:1;max-width:118px}
}

.play-gate{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;white-space:nowrap;box-shadow:0 8px 30px #0008}
/* Browsing, personal library and provider EPG. */
.category-panel{min-width:0}.category-search{display:block;margin-bottom:10px}.category-search input{width:100%;min-width:0;background:#101a2c;color:#e8edf7;border:1px solid #35435a;border-radius:8px;padding:11px;font-size:13px}.category-panel .categories{max-height:calc(100vh - 310px)}.sort-control{display:flex;align-items:center;gap:7px;color:#9fafc6;font-size:11px}.sort-control select{background:#152036;color:#eef3fb;border:1px solid #35435a;border-radius:7px;padding:10px;max-width:170px;font-size:12px}.library-filters{display:flex;gap:9px;margin-bottom:15px}.library-filters button{border:1px solid #33425b;background:#142035;color:#aebbd0;border-radius:20px;padding:9px 16px;font-size:12px;cursor:pointer}.library-filters button.active{background:#ff913b;color:#111827;border-color:#ff913b}.vod-mode:has(#library-filters:not([hidden])) .browse-columns{grid-template-columns:1fr}.zapping{display:flex;gap:5px}.zapping button:first-child svg{transform:rotate(180deg)}.recent-section{margin-top:35px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.section-heading h2{font-size:21px;margin:0}.section-heading>span{color:#879bb7;font-size:11px}.recent-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recent-item{display:flex;align-items:center;text-align:left;gap:14px;padding:17px;background:#152137;color:#eff3fa;border:1px solid #32425c;border-radius:11px;cursor:pointer;min-width:0}.recent-item>svg{width:23px;height:23px;flex-shrink:0;color:#ffb582}.recent-item>div{min-width:0;flex:1}.recent-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.recent-item small{display:block;color:#9aacc6;font-size:11px;margin-top:5px}.recent-item:hover{border-color:#ff913b}.theatre-mode.browse-view{grid-template-columns:1fr}.theatre-mode .browser-panel{display:none}.theatre-mode .watch-panel{width:min(1100px,100%);margin:0 auto}.guide-mode.browse-view{grid-template-columns:1fr}.guide-mode .watch-panel{display:none}.guide-mode .browse-columns{grid-template-columns:215px minmax(0,1fr)}.guide-mode .catalog-items{max-height:calc(100vh - 235px)}.guide-grid-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:15px}.guide-grid-tools>span{font-size:11px;color:#93a7c4;margin-left:auto}.epg-scroller{overflow:auto;max-width:100%;border:1px solid #30415c;border-radius:10px}.epg-grid{min-width:950px}.epg-grid-header,.epg-line{display:grid;grid-template-columns:200px minmax(0,1fr)}.epg-grid-header{position:sticky;top:0;z-index:2;background:#1c2a41;color:#b7c7df;font-size:12px;min-height:40px;align-items:center}.epg-label{padding:10px 13px;border-right:1px solid #30415c;position:sticky;left:0;background:#152138;z-index:1;display:flex;gap:9px;align-items:center;font-size:12px}.epg-label strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.epg-label .channel-logo{width:30px;height:30px;flex-shrink:0}.epg-label img{width:30px;height:30px;object-fit:contain}.epg-label svg{width:20px;height:20px}.epg-line{height:77px;border-top:1px solid #30415c}.epg-line>button{color:#dfe7f5;border-top:0;border-bottom:0;border-left:0;cursor:pointer;text-align:left}.epg-hours{display:grid;grid-template-columns:repeat(4,1fr)}.epg-hours span{padding:10px;border-left:1px solid #30415c}.epg-track{position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#30415c calc(25% - 1px),#30415c 25%)}.epg-program{position:absolute;top:4px;height:68px;border:1px solid #354866;background:#21304a;border-radius:5px;color:#dce6f5;text-align:left;padding:8px 10px;cursor:pointer;overflow:hidden;min-width:0}.epg-program.now{background:#5c3829;border-color:#ff913b}.epg-program small{display:block;color:#b4c3d8;font-size:10px;white-space:nowrap}.epg-program strong{display:block;font-size:12px;margin-top:7px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.epg-unavailable{color:#7589a6;font-size:11px;padding:22px 14px;margin:0}.guide-note{font-size:11px;color:#8d9fb9;margin-top:12px}
@media(max-width:1200px){.recent-items{grid-template-columns:repeat(2,minmax(0,1fr))}.category-panel .categories{max-height:55vh}.guide-mode .catalog-items{max-height:none}}
@media(max-width:800px){.category-panel .categories{max-height:none}.category-search{max-width:350px}.guide-mode .browse-columns{grid-template-columns:1fr}.browse-tools{flex-wrap:wrap}.browse-tools .search-box{flex:1;min-width:180px}.sort-control select{max-width:150px}.category-search input,.sort-control select{font-size:16px}.guide-grid-tools>span{width:100%;margin-left:0}.recent-item{padding:14px}.theatre-mode .watch-panel .video-wrap{max-width:100%}}
@media(max-width:550px){.recent-items{grid-template-columns:1fr}.section-heading h2{font-size:18px}.category-search{max-width:none}.browse-tools .search-box{flex-basis:100%}.sort-control{flex:1}.sort-control select{max-width:100%;flex:1;font-size:16px}.library-filters{gap:7px;flex-wrap:wrap}.library-filters button{padding:8px 12px}.category-panel .categories{max-height:none}.guide-grid-tools .secondary{padding:8px 10px;font-size:11px}.epg-grid{min-width:850px}.epg-grid-header,.epg-line{grid-template-columns:150px minmax(0,1fr)}.epg-label{padding:8px;font-size:10px}.epg-label .channel-logo{width:25px;height:25px}.player-tools .zapping .icon-button{width:32px}}

.favorites-mode.browse-view{grid-template-columns:1fr}.favorites-mode .watch-panel{display:none}.favorites-mode .poster-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:18px}.media-card.library-live .poster{background:linear-gradient(145deg,#202f48,#111a2c);display:flex;align-items:center;justify-content:center}.media-card.library-live .poster img{object-fit:contain;width:78%;height:78%}@media(max-width:550px){.favorites-mode .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

#subtitles-dialog{max-width:620px}#subtitles-dialog .settings-body{display:grid;gap:16px}#subtitles-dialog .settings-body p{margin:0;color:var(--muted)}#subtitles-dialog label{display:grid;gap:8px;font-weight:650}#subtitles-dialog input,#subtitles-dialog select{width:100%;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;font-size:16px}#subtitles-results{display:grid;gap:8px}#subtitles-results button{text-align:left;white-space:normal;overflow-wrap:anywhere}#subtitles-save[hidden]{display:none}

#subtitles-embedded{display:grid;gap:8px}#subtitles-embedded button{text-align:left;white-space:normal}#subtitles-embedded h3{margin:0 0 8px}
#subtitles-dialog .settings-body{max-height:calc(85vh - 150px);overflow-y:auto;padding:0 6px 4px 0}#subtitles-dialog .dialog-heading{flex-shrink:0}

.video-timeline{color:#a8bbd2;font-size:12px;line-height:1.7;margin-top:8px!important}.prefetch-control{display:flex;align-items:center;gap:8px;font-size:11px;color:#a8bbd2}.prefetch-control select{background:#131f31;color:#e7eef8;border:1px solid #30415b;border-radius:7px;padding:8px;font-size:16px;min-height:38px}.prefetch-control[hidden],.video-timeline[hidden]{display:none}

/* Category rows grow with their labels instead of shrinking in the scroll panel. */
.categories .category{flex-shrink:0;height:auto;line-height:1.45}
.categories .category span{min-width:0;flex:1}
@media(min-width:801px){.categories .category span{white-space:normal;overflow:visible;overflow-wrap:anywhere;max-width:none}.categories .category{padding:14px 12px}}
@media(max-width:800px){.categories .category span{max-width:none;overflow:visible;text-overflow:clip}}

.saved-playlist{display:flex;gap:8px;margin:10px 0;align-items:center}.saved-playlist>.secondary{flex:1;text-align:left;justify-content:flex-start;min-width:0}.saved-playlist strong,.saved-playlist small{display:block;overflow-wrap:anywhere}.saved-playlist small{color:var(--muted);font-size:12px}.remember-option{display:flex!important;align-items:center;gap:10px!important}.remember-option input{width:18px!important;height:18px;padding:0!important}#saved-playlists-section{margin:20px 0}#saved-playlists-section p{font-size:12px}

.video-navigation{padding:14px 0;border-top:1px solid var(--line);margin-top:12px}.video-navigation>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.video-navigation output{font-size:13px;color:var(--muted);text-align:center}.video-navigation input{width:100%;margin:14px 0 0;accent-color:var(--orange);cursor:pointer}.video-navigation .secondary{padding:9px 12px;white-space:nowrap}

.episode.current-episode{border-color:#ff8a2b;background:rgba(255,138,43,.12)}

.video-loader{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.12);pointer-events:none;z-index:2}.video-loader[hidden]{display:none}.video-spinner{width:30px;height:30px;border:2px solid rgba(255,255,255,.2);border-top-color:#ff8a2b;border-radius:50%;animation:video-loading .8s linear infinite}#player-status{min-height:1.5em}@keyframes video-loading{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.video-spinner{animation-duration:2s}}

.matches-filters{display:flex;gap:16px;flex-wrap:wrap}.matches-filters label{display:grid;gap:6px;flex:1;min-width:150px}.matches-filters select,.matches-filters input{font-size:16px;width:100%;padding:12px;background:#111d2f;color:var(--text);border:1px solid var(--line);border-radius:10px}.matches-note{color:var(--muted);font-size:12px}#matches-list{display:grid;gap:12px}.match-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.match-heading{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}.match-heading time,.match-score{color:var(--orange)}.match-card h3{margin:12px 0;font-size:17px}.match-card p{margin:6px 0;color:var(--muted);font-size:12px}.match-state{font-size:12px}

.home-match-button{display:flex;align-items:center;gap:16px;text-align:left;width:100%;margin:0 0 24px;padding:18px 22px;background:#152336;border:1px solid var(--line);border-radius:16px;color:var(--text);cursor:pointer}.home-match-button>svg:first-child{color:var(--orange)}.home-match-button>svg:last-child{margin-left:auto}.home-match-button strong,.home-match-button small{display:block}.home-match-button strong{font-size:17px}.home-match-button small{color:var(--muted);margin-top:3px}.home-match-button svg{width:25px;height:25px;flex-shrink:0}.match-day{margin:0 0 10px!important;text-transform:capitalize}.match-tv{display:grid;gap:6px;padding:12px;background:#0c1726;border-radius:9px;margin-top:12px}.match-tv small{color:var(--muted)}.match-tv strong{font-size:14px}.match-tv a{color:var(--orange);font-size:12px}.matches-search{display:grid;gap:6px;margin:16px 0}.matches-search input{font-size:16px;background:#111d2f;border:1px solid var(--line);color:var(--text);padding:12px;border-radius:10px}.match-card[hidden]{display:none}

.match-competition{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-bottom:14px}.match-teams{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.match-team{display:flex;align-items:center;gap:12px;min-width:0}.match-team strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}.team-badge,.competition-badge{position:relative;display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:12px;background:#203047;border:1px solid #33435b}.competition-badge{width:30px;height:30px;border-radius:8px}.team-badge img{position:absolute;width:44px;height:44px;object-fit:contain}.competition-badge img{position:absolute;width:23px;height:23px;object-fit:contain}.badge-initials{color:#ffc18c;font-size:14px;font-weight:700}.badge-initials[hidden]{display:none}.badge-initials svg{width:18px;height:18px}@media(max-width:480px){.match-teams{gap:10px}.match-team{flex-direction:column;align-items:flex-start;gap:8px}.match-team strong{font-size:14px}}
