*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#090909;color:#f5f6fa;font-family:Arial,Helvetica,sans-serif}body{overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0}button:focus,input:focus,select:focus{outline:3px solid #ed1829;outline-offset:4px}button:focus{box-shadow:0 0 0 7px #ed182918}button:disabled{opacity:.4;cursor:default}button:disabled:focus{outline:none}#app{height:100%}.shell{height:100%;display:flex}.sidebar{width:218px;flex-shrink:0;padding:36px 22px;background:#090909;border-right:1px solid #ffffff0b;display:flex;flex-direction:column}.brand{font-size:25px;font-weight:900;letter-spacing:-1px;display:flex;align-items:center;gap:10px;margin-bottom:48px}.brand-mark{width:28px;height:34px;background:#ed1829;clip-path:polygon(0 0,100% 50%,0 100%)}.brand span:last-child{color:#ed1829}.nav{display:flex;flex-direction:column;gap:9px}.nav button{background:transparent;border-radius:10px;text-align:left;display:flex;align-items:center;gap:14px;padding:15px 17px;color:#9ca5b8;font-size:17px}.nav button.active{color:#ed1829;background:#ed182910}.nav svg{width:21px;height:21px;flex-shrink:0}.sidebar-bottom{margin-top:auto;color:#8c96a9;font-size:12px;line-height:1.9}.sidebar-bottom strong{color:#d6dbe5;font-weight:400}.main{flex:1;min-width:0;overflow:auto;padding:30px 42px 70px;scroll-behavior:smooth}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.topbar h1{font-size:28px;letter-spacing:-.7px;margin:0}.top-actions{display:flex;align-items:center;gap:16px}.pill{font-size:12px;border:1px solid #ffffff1a;border-radius:20px;padding:8px 13px;color:#abb5c7}.clock{font-size:15px;color:#d0d7e4}.icon-button{background:#262626;border-radius:50%;height:40px;width:40px;display:flex;align-items:center;justify-content:center}.icon-button svg{height:19px;width:19px}.hero{position:relative;min-height:290px;background:linear-gradient(112deg,#182a34 0%,#14282b 50%,#142019 100%);border:1px solid #ffffff0c;border-radius:19px;overflow:hidden;padding:35px 40px;margin-bottom:32px}.hero-content{position:relative;z-index:1;max-width:62%}.eyebrow{font-size:11px;letter-spacing:2px;color:#ed1829;text-transform:uppercase;font-weight:700}.hero h2{font-size:45px;line-height:1.09;letter-spacing:-1.6px;margin:15px 0}.hero p{color:#aebdc5;font-size:15px;line-height:1.65;max-width:460px;margin:0 0 22px}.button-row{display:flex;gap:13px;flex-wrap:wrap}.primary,.secondary{padding:13px 21px;border-radius:9px;font-size:14px;font-weight:700;background:#ed1829;color:#ffffff}.secondary{background:#ffffff0d;color:#edf1f5;border:1px solid #ffffff16}.hero-art{position:absolute;right:-38px;top:-30px;width:400px;height:360px;transform:rotate(-13deg)}.orbit{position:absolute;border:1px solid #ed182940;border-radius:50%;top:35px;right:35px;bottom:35px;left:35px}.orbit:nth-child(2){top:65px;right:65px;bottom:65px;left:65px;border-color:#ed182950}.orbit:nth-child(3){top:95px;right:95px;bottom:95px;left:95px;border-color:#ed182970}.orbit:nth-child(4){top:125px;right:125px;bottom:125px;left:125px;background:#ed182910}.hero-play{position:absolute;width:90px;height:104px;top:127px;left:155px;background:linear-gradient(140deg,#ff6170,#cb1429);clip-path:polygon(0 0,100% 50%,0 100%);filter:drop-shadow(0 10px 20px #000)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 17px}.section-head h2{font-size:20px;margin:0;letter-spacing:-.4px}.text-button{font-size:13px;color:#aeb8c8;background:transparent;padding:7px;border-radius:5px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{padding:0;background:transparent;text-align:left;border-radius:12px;min-width:0}.tile{height:126px;border:1px solid #ffffff10;background:linear-gradient(135deg,var(--c1,#203442),var(--c2,#17212d));border-radius:12px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.tile:before{content:'';position:absolute;width:150px;height:150px;border:1px solid #ffffff12;border-radius:50%;right:-45px;bottom:-90px}.tile img{position:absolute;width:100%;height:100%;object-fit:contain;padding:18px;background:#141b28}.tile .monogram{font-size:31px;font-weight:800;letter-spacing:-1px;color:#f8faffd9}.tile .tag{position:absolute;top:11px;left:11px;font-size:9px;letter-spacing:1px;background:#080d1680;border:1px solid #ffffff12;border-radius:5px;padding:5px 7px}.tile .star{position:absolute;right:10px;top:10px;color:#ed1829;font-size:17px}.card-title{font-size:14px;margin:12px 1px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-meta{font-size:11px;color:#8492a8;margin:0 1px 8px}.poster .tile{height:235px;align-items:flex-end;justify-content:flex-start;padding:22px}.poster .monogram{font-size:26px;line-height:1.05;max-width:140px;white-space:normal}.poster .tile img{object-fit:cover;padding:0}.poster .tile:after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg,#0005,transparent 65%);pointer-events:none}.filters{display:flex;gap:12px;align-items:center;margin-bottom:23px;flex-wrap:wrap}.search-input,select{border:1px solid #ffffff15;background:#1c1c1c;color:#edf1f8;padding:12px 16px;border-radius:8px;font-size:14px}.search-input{min-width:220px;flex:1}select{max-width:260px}.empty{padding:60px 25px;border:1px dashed #ffffff1a;border-radius:14px;text-align:center;color:#a8b2c4}.empty h2{color:#eef2f9;font-size:22px}.empty p{font-size:15px;line-height:1.65}.empty .primary{margin-top:12px}.settings-panel{padding:25px;background:#1c1c1c;border:1px solid #ffffff0d;border-radius:14px;margin-bottom:18px;max-width:850px}.settings-panel h2{margin:0 0 10px;font-size:20px}.settings-panel p{color:#95a4ba;font-size:14px;line-height:1.7}.settings-panel .primary,.settings-panel .secondary{margin:7px 12px 0 0}.hint{position:fixed;bottom:0;left:218px;right:0;background:#090909ef;border-top:1px solid #ffffff0a;padding:12px 42px;display:flex;gap:24px;font-size:11px;color:#8794a9;z-index:2}.hint span b{color:#c1cbd9;margin-right:6px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#030609d9;z-index:10;display:flex;align-items:center;justify-content:center;padding:32px}.modal{width:620px;max-width:90vw;max-height:90vh;overflow:auto;border:1px solid #ffffff1a;border-radius:18px;background:#1c1c1c;padding:32px;box-shadow:0 40px 150px #0008}.modal.wide{width:800px}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.modal h2{font-size:25px;margin:0}.modal p{font-size:14px;line-height:1.7;color:#a6b3c7}.form-label{display:block;color:#c6d0df;font-size:13px;margin-top:17px}.form-label input{display:block;margin-top:8px;width:100%;padding:13px 15px;border:1px solid #ffffff20;border-radius:8px;color:#fff;background:#0b121d;font-size:16px}.form-error{color:#ffb1b1!important;min-height:24px;font-size:13px!important}.modal .button-row{margin-top:20px}.badge{display:inline-block;color:#ed1829;background:#ed182912;border-radius:4px;padding:6px 9px;font-size:11px}.details-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.epg-list{border-top:1px solid #ffffff14;margin-top:22px;padding-top:16px}.epg-item{margin:14px 0;display:flex;gap:16px;font-size:13px;color:#b5c3d6}.epg-item strong{color:#edf1f9;font-weight:400}.episode{display:block;width:100%;padding:14px 18px;border:1px solid #ffffff15;background:#1b2637;border-radius:8px;text-align:left;margin:12px 0;color:#e7ecf5}.player{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#000}.player video{width:100%;height:100%;object-fit:contain}.player-overlay{position:absolute;bottom:0;left:0;right:0;padding:70px 50px 34px;background:linear-gradient(0deg,#000e,#0000);transition:opacity .25s}.player-overlay.hidden{opacity:0;pointer-events:none}.player-overlay h2{margin:0 0 10px;font-size:28px}.player-overlay p{font-size:14px;color:#c1c8d3}.player-controls{display:flex;gap:12px}.player-message{position:absolute;top:45px;left:45px;background:#1c1c1c;border:1px solid #ffffff25;padding:18px 23px;border-radius:10px;font-size:15px;max-width:600px}.player-close{position:absolute;right:30px;top:30px}.footer-note{color:#737f92;font-size:12px;line-height:1.7;margin-top:35px}#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);padding:14px 23px;border-radius:10px;background:#ed1829;color:#182012;z-index:40;font-size:14px;display:none}.loader{color:#a0b0c5;padding:35px 0}.error{color:#ffb1b1}.status-note{color:#a1afc5;font-size:13px}.loading-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ed1829;margin-right:8px}.results-count{font-size:12px;color:#7d8b9f}.separator{margin-top:20px;border:0;border-top:1px solid #ffffff13}.welcome{margin-bottom:24px}.focus-hint{font-size:12px;color:#8391a6}.paging{display:flex;justify-content:center;gap:15px;margin:25px 0;align-items:center;font-size:13px;color:#aab8cb}
@media(min-width:1650px){.sidebar{width:255px;padding:46px 26px}.brand{font-size:30px}.nav button{font-size:21px;padding:18px}.main{padding:40px 60px 90px}.topbar h1{font-size:36px}.hero{padding:46px 50px;min-height:350px}.hero h2{font-size:58px}.hero p{font-size:20px;max-width:580px}.hero-art{right:70px;top:0;transform:scale(1.3) rotate(-13deg)}.eyebrow{font-size:14px}.primary,.secondary{font-size:18px;padding:16px 27px}.tile{height:180px}.poster .tile{height:305px}.card-title{font-size:20px}.card-meta{font-size:15px}.section-head h2{font-size:25px}.hint{left:255px;font-size:14px;padding:16px 60px}.search-input,select{font-size:18px}.modal{width:760px;padding:42px}.modal h2{font-size:32px}.modal p,.form-label{font-size:18px}.form-label input{font-size:22px;padding:17px}.sidebar-bottom{font-size:15px}.clock{font-size:20px}.pill{font-size:15px}}
@media(max-width:1000px){.sidebar{width:180px;padding:26px 16px}.brand{font-size:22px}.nav button{font-size:14px;padding:13px}.main{padding:25px 25px 75px}.hero{padding:27px;min-height:290px}.hero-content{max-width:78%}.hero h2{font-size:35px}.hero-art{opacity:.5;right:-160px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hint{left:180px;padding-left:25px}.poster .tile{height:210px}}
@media(max-width:650px){.sidebar{width:76px;padding:24px 12px}.brand{font-size:0;justify-content:center;margin-bottom:35px}.brand-mark{width:25px;height:28px}.nav button{justify-content:center;padding:15px 8px}.nav button span{display:none}.sidebar-bottom{display:none}.main{padding:22px 18px 70px}.topbar h1{font-size:23px}.top-actions{gap:8px}.clock{display:none}.hero{padding:25px 22px}.hero-content{max-width:100%}.hero-art{display:none}.hero h2{font-size:34px}.hero p{font-size:13px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tile{height:105px}.poster .tile{height:195px}.hint{left:76px;padding:12px 18px;gap:12px}.modal{padding:23px}.modal-backdrop{padding:18px}.pill{font-size:10px}.filters .search-input{min-width:120px}.filters select{max-width:100%;width:100%}}

/* SupaFlix reference design: horizontal navigation, black surfaces, red focus. */
.settings-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:35px}.settings-nav{display:flex;flex-direction:column;gap:15px}.settings-nav button{background:transparent;text-align:left;padding:22px 25px;border-radius:12px;color:#aaa;position:relative}.settings-nav button strong{display:block;font-size:19px;color:#e5e5e5}.settings-nav button small{display:block;font-size:14px;margin-top:9px}.settings-nav button.active{background:#252525}.settings-nav button.active:before{content:'';position:absolute;left:12px;top:22px;bottom:22px;width:3px;background:#ed1829}.settings-nav button:focus{background:#ed1829;color:#fff;outline:none}.settings-nav button:focus strong{color:#fff}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 0;border-bottom:1px solid #ffffff0a}.setting-row strong{font-size:19px;font-weight:500}.setting-row p{margin:8px 0 0}.settings-label{color:#aaa;font-size:14px;margin-top:35px}.toggle{width:68px;height:40px;border-radius:30px;background:#3a3a3a;padding:5px;flex-shrink:0}.toggle span{display:block;width:30px;height:30px;border-radius:50%;background:#777;transition:transform .2s}.toggle.on{background:#ed1829}.toggle.on span{background:#fff;transform:translateX(28px)}
@media(min-width:1650px){.settings-layout{grid-template-columns:380px minmax(0,1fr);gap:45px}.settings-nav button strong{font-size:27px}.settings-nav button small{font-size:19px}.settings-nav button{padding:30px 35px}.setting-row strong{font-size:26px}.settings-panel p{font-size:22px}.settings-panel h2{font-size:32px}.setting-row{padding:30px 0}}
@media(max-width:750px){.settings-layout{grid-template-columns:1fr}.settings-nav{flex-direction:row;overflow:auto;gap:8px}.settings-nav button{padding:15px 20px;flex-shrink:0}.settings-nav button small{display:none}.settings-nav button strong{font-size:14px}.setting-row{gap:15px}.setting-row strong{font-size:16px}.setting-row .button-row{flex-wrap:nowrap}.setting-row .secondary{font-size:12px;padding:10px 13px}}
.shell{display:flex;flex-direction:column}.tv-header{display:flex;align-items:center;padding:24px 40px;gap:24px;background:#090909;min-height:96px;flex-shrink:0;z-index:3}.brand{background:transparent;font-size:27px;letter-spacing:1px;font-weight:800;gap:8px;margin:0;white-space:nowrap;border-radius:5px}.brand span:first-child{color:#ed1829}.nav{flex-direction:row;align-items:center;flex:1;gap:7px}.nav button{color:#aaa;background:transparent;border-radius:30px;padding:15px 18px;font-size:16px;font-weight:600;position:relative;justify-content:center}.nav button.active{background:#252525;color:#fff}.nav button.active:after{content:'';position:absolute;width:25px;height:3px;bottom:8px;background:#ed1829;border-radius:2px}.nav button:focus{background:#fff;color:#090909;outline:none;box-shadow:none}.nav button[data-page=settings]{margin-left:auto;width:48px;padding:13px}.nav button[data-page=settings]:after{display:none}.nav svg{height:25px;width:25px}.tv-header .clock{font-size:20px;font-weight:700;white-space:nowrap}.tv-header .icon-button{background:transparent}.main{padding:20px 40px 80px}.topbar{margin-bottom:20px}.topbar h1{font-size:23px}.topbar:has(+ .hero) h1{visibility:hidden}.hero{min-height:430px;margin:0 -40px 22px;padding:130px 42px 55px;border:0;border-radius:0;background:linear-gradient(90deg,#090909e8 0%,#0909098c 48%,#09090900 100%),linear-gradient(0deg,#090909 0%,transparent 60%),url('hero.svg') center/cover no-repeat}.hero h2{font-size:43px;line-height:1.2;letter-spacing:-1px}.hero p{font-size:17px;color:#c6c6c6;max-width:650px;line-height:1.55}.hero-content{max-width:72%}.hero-art{display:none}.eyebrow{font-size:13px;letter-spacing:2.4px;color:#ed1829}.primary{background:#fff;color:#090909;border-radius:28px;padding:15px 26px;font-size:15px}.secondary{border-radius:25px;background:#252525;border-color:#ffffff15;color:#ddd;padding:14px 23px}.secondary.selected{background:#fff;color:#111}.section-head{margin:25px 0 17px}.section-head h2{font-size:21px}.grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.tile{border-radius:6px;height:130px}.poster .tile{height:230px;padding:18px}.poster .monogram{font-size:22px}.card{border-radius:7px}.card-title{font-size:14px}.card-meta{font-size:11px}.hint{left:0;right:0;padding:12px 40px;background:#090909f2}.platform-label{margin-left:auto}.live-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:32px;align-items:start}.channel-list{display:flex;flex-direction:column;gap:12px}.channel-row{background:#1c1c1c;display:flex;text-align:left;align-items:center;gap:18px;padding:13px 17px;border:2px solid transparent;border-radius:12px;min-height:90px}.channel-row:focus{background:#343434;border-color:#ed1829;outline:none;box-shadow:none}.channel-logo{width:75px;height:65px;display:flex;align-items:center;justify-content:center;background:#131313;border-radius:7px;font-size:23px;font-weight:800;color:#b8c7d8;flex-shrink:0}.channel-logo img{max-width:100%;max-height:100%;padding:6px}.channel-row strong{display:block;font-size:17px}.channel-row small{display:block;font-size:14px;margin-top:9px;color:#aaa}.channel-star{margin-left:auto;color:#ed1829}.live-preview{position:sticky;top:8px}.live-preview h2{font-size:22px}.live-preview p{font-size:15px;color:#aaa;line-height:1.6}.live-screen{height:225px;background:#030303;border:1px solid #ffffff22;border-radius:13px;margin:18px 0;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;color:#f0f0f0;padding:25px}.live-screen img{max-height:100%;max-width:100%}.settings-panel{max-width:none}.settings-panel h2{font-size:24px}.settings-panel p{font-size:16px}.search-input,select{background:#1c1c1c}.modal{background:#1b1b1b}.form-label input{background:#111;border-color:#ffffff25}.player-message{background:#1a1a1a}.player-overlay .primary{border-radius:8px}.player-overlay .secondary{border-radius:8px}.text-button{color:#bbb}.clock{color:#eee}.pill{color:#aaa}.main:has(.hero) .topbar{position:absolute;right:40px;z-index:2;margin-top:8px}.main:has(.hero) .topbar h1{display:none}
@media(min-width:1650px){.tv-header{padding:32px 60px;min-height:125px;gap:35px}.brand{font-size:36px}.nav button{font-size:23px;padding:20px 25px}.nav button.active:after{bottom:10px}.tv-header .clock{font-size:27px}.main{padding:28px 60px 90px}.hero{margin:0 -60px 32px;padding:190px 60px 75px;min-height:590px}.hero h2{font-size:61px}.hero p{font-size:23px;max-width:950px}.eyebrow{font-size:18px}.primary,.secondary{font-size:21px;padding:20px 33px}.section-head h2{font-size:29px}.poster .tile{height:330px}.poster .monogram{font-size:31px}.tile{height:190px}.card-title{font-size:20px}.card-meta{font-size:15px}.channel-row{min-height:123px;padding:18px 24px}.channel-logo{width:100px;height:86px;font-size:31px}.channel-row strong{font-size:23px}.channel-row small{font-size:18px}.live-screen{height:325px;font-size:42px}.live-preview h2{font-size:30px}.live-preview p{font-size:20px}.hint{padding:16px 60px;font-size:15px}.topbar h1{font-size:31px}.main:has(.hero) .topbar{right:60px}}
@media(max-width:1100px){.tv-header{padding:20px 25px;gap:15px;min-height:86px}.brand{font-size:22px}.nav{gap:1px}.nav button{padding:12px 13px;font-size:14px}.tv-header .clock{font-size:16px}.main{padding:20px 25px 70px}.hero{margin:0 -25px 20px;padding:90px 25px 35px;min-height:380px}.hero h2{font-size:36px}.hero p{font-size:15px}.grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.poster .tile{height:200px}.poster .monogram{font-size:18px}.hint{left:0;padding:12px 25px}.live-layout{gap:22px}.channel-row{min-height:80px;gap:12px;padding:10px}.channel-logo{width:60px;height:55px}.channel-row strong{font-size:14px}.channel-row small{font-size:12px}.live-screen{height:175px;font-size:23px}}
@media(max-width:750px){.tv-header{padding:15px 18px;gap:12px;flex-wrap:wrap;min-height:105px}.brand{font-size:24px}.tv-header .clock{margin-left:auto;display:block}.nav{order:3;flex-basis:100%;overflow:auto;padding:4px 0;gap:3px}.nav button{flex-shrink:0;padding:12px 15px;font-size:13px}.nav button span{display:block}.nav button[data-page=settings]{margin-left:0;width:40px}.main{padding:18px 18px 70px}.hero{margin:0 -18px 20px;padding:110px 25px 35px;min-height:380px}.hero h2{font-size:32px}.hero-content{max-width:100%}.hero p{font-size:14px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.poster .tile{height:190px}.hint{padding:12px 18px;gap:16px}.platform-label{display:none}.live-layout{grid-template-columns:1fr}.live-preview{position:static}.live-screen{height:190px}.topbar h1{font-size:23px}.main:has(.hero) .topbar{right:18px}.tile{height:110px}}

/* Android v5.6 parity additions, kept light for TV engines. */
.reseller-logo{max-width:170px;height:42px;object-fit:contain}.nav{gap:3px}.nav button{padding-left:13px;padding-right:13px;white-space:nowrap}.remember-code{display:flex;align-items:center;gap:12px;margin:20px 0;color:#bbb;font-size:15px}.remember-code input{width:22px;height:22px;accent-color:#ed1829}.programme-time{display:block;font-size:14px;color:#aaa;margin-bottom:8px}.episode small{display:block;font-weight:normal;color:#aaa;line-height:1.5;margin-top:8px}.media-meta{color:#ccc;font-size:15px;margin-top:28px}.muted{color:#aaa}.live-feed{position:fixed;bottom:39px;left:0;right:0;display:flex;align-items:center;gap:20px;overflow:hidden;background:#082c51;z-index:25;padding:12px 30px;color:#fff;font-size:17px;pointer-events:none}.live-feed strong{flex-shrink:0;z-index:1;background:#082c51}.live-feed span{display:block;white-space:nowrap;animation:feed-scroll 35s linear infinite}.maintenance-screen{position:fixed;top:0;right:0;bottom:0;left:0;background:#090909;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px}.maintenance-screen h1{font-size:45px}.maintenance-screen p{max-width:800px;font-size:23px;line-height:1.5}.maintenance-screen button{margin-top:25px}@keyframes feed-scroll{from{transform:translateX(35vw)}to{transform:translateX(-100%)}}
@media(min-width:1650px){.nav button{padding-left:19px;padding-right:19px;font-size:21px}.remember-code{font-size:20px}.reseller-logo{max-width:225px;height:58px}.programme-time,.media-meta{font-size:21px}.live-feed{bottom:50px;font-size:22px;padding:16px 45px}}
@media(max-width:1100px){.tv-header .clock{display:none}.nav button{font-size:13px;padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){.live-feed span{animation:none;white-space:normal}}

/* Live TV: the category strip and preview stay visible while channels scroll. */
.main-live{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding-top:10px}
.main-live .topbar{display:none}
.live-categories{display:flex;align-items:center;gap:10px;overflow-x:auto;flex-shrink:0;padding:6px 3px 16px;scrollbar-width:none}
.live-categories::-webkit-scrollbar,.season-tabs::-webkit-scrollbar{display:none}
.category-chip{flex-shrink:0;border-radius:30px;padding:12px 20px;background:#282828;color:#aaa;font-size:16px;font-weight:600;white-space:nowrap}
.category-chip.selected{background:#fff;color:#101010}
.category-chip:focus{outline:2px solid #ed1829;outline-offset:3px;box-shadow:none;color:#fff}
.category-chip.selected:focus{color:#101010}
.refresh-chip{width:44px;height:44px;padding:0;font-size:28px;color:#eee;line-height:1}
.live-search{display:flex;gap:12px;padding:0 3px 20px;flex-shrink:0}
.main-live .live-layout{grid-template-columns:minmax(0,1.63fr) minmax(0,1fr);gap:30px;flex:1;min-height:0;align-items:stretch}
.live-channel-pane{overflow-y:auto;min-height:0;padding:3px 3px 20px;scrollbar-width:thin;scrollbar-color:#343434 transparent}
.channel-list{gap:12px}
.channel-row{width:100%;min-height:88px;padding:11px 15px;gap:17px;border-radius:15px;background:#1b1b1b;border:2px solid transparent;flex-shrink:0}
.channel-row.is-selected{border-color:#ed1829;background:#343434}
.channel-row:focus{border-color:#ed1829;outline:none;box-shadow:0 0 0 1px #ed1829}
.channel-logo{width:84px;height:62px;background:#121212;border-radius:9px;color:#aaa}
.channel-logo img{padding:5px;object-fit:contain}
.channel-copy{min-width:0;flex:1}
.channel-name{display:block;color:#aaa;font-size:15px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-row .channel-programme{font-size:17px;line-height:1.3;margin-top:5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-next{font-size:14px;color:#aaa;flex-shrink:0}
.channel-star{margin-left:0;font-size:16px}
.channel-star:empty{display:none}
.main-live .live-preview{position:static;overflow-y:auto;padding:3px 0 20px;min-height:0}
.now-playing{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;letter-spacing:1.8px;color:#aaa;margin:2px 0 14px}
.now-playing>span,.live-screen small>span{width:10px;height:10px;border-radius:50%;background:#ed1829;display:inline-block;flex-shrink:0}
.live-screen{width:100%;height:20vw;min-height:180px;max-height:440px;margin:0 0 20px;padding:24px;border:2px solid #262626;border-radius:17px;background:#000;display:flex;flex-direction:column;gap:24px}
.live-screen img{object-fit:contain;width:auto;height:auto;max-width:65%;max-height:110px}
.live-screen>span{font-size:30px}
.live-screen small{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:400;color:#ccc}
.live-screen small>span{width:7px;height:7px}
.live-screen:focus{outline:2px solid #ed1829;box-shadow:none}
.live-preview h2{font-size:20px;margin:0 0 14px}
.live-preview .live-next-info{font-size:14px;margin:0 0 22px;line-height:1.5}
.live-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.live-tools .secondary{font-size:13px;padding:10px 14px;background:transparent;border-color:#393939;color:#aaa}

/* Movie and series reference pages: full-bleed artwork and no modal card. */
.media-detail{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;background:#090909;overflow-y:auto;scrollbar-color:#343434 #090909;color:#fff}
.detail-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100vh;object-fit:cover;object-position:center 25%;pointer-events:none}
.detail-art[hidden]{display:none}
.detail-shade{position:absolute;top:0;right:0;bottom:0;left:0;height:100vh;background:linear-gradient(90deg,rgba(9,9,9,.93),rgba(9,9,9,.57) 56%,rgba(9,9,9,.18)),linear-gradient(0deg,#090909 0%,rgba(9,9,9,.9) 12%,transparent 65%);pointer-events:none}
.detail-back{position:absolute;top:20px;left:26px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:transparent;z-index:2}
.detail-back svg{width:27px;height:27px}
.detail-back.series-back{top:12px;left:14px;background:#ed1829;border:2px solid #fff;width:49px;height:49px}
.detail-body{position:relative;z-index:1;padding:22vh 24px 36px;min-height:100%;pointer-events:none}
.detail-body button{pointer-events:auto}
.detail-intro{max-width:62vw}
.detail-intro h1{font-size:clamp(30px,3.4vw,64px);line-height:1.12;letter-spacing:-.7px;margin:0 0 19px;font-weight:750}
.detail-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#aaa;font-size:clamp(15px,1.5vw,28px);margin:0 0 19px;font-weight:600}
.detail-rating{color:#fff}
.detail-rating>span{color:#ffc400}
.detail-genre,.detail-plot{font-size:clamp(16px,1.5vw,28px);line-height:1.5;color:#ddd;margin:0 0 19px}
.detail-genre{color:#aaa;font-weight:600}
.detail-credits{font-size:clamp(14px,1.32vw,24px);line-height:1.5;color:#aaa;margin:0 0 15px}
.detail-demo{font-size:clamp(14px,1.2vw,21px);color:#aaa;margin:16px 0}
.detail-status{font-size:clamp(16px,1.5vw,28px);line-height:1.5;color:#aaa}
.movie-actions{display:flex;flex-direction:column;gap:22px;margin-top:38px;max-width:100%}
.detail-play{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;min-height:52px;border-radius:50px;background:#ed1829;color:#fff;font-size:clamp(18px,1.8vw,34px);font-weight:700;padding:12px 25px}
.detail-play>span{font-size:.9em}
.detail-list-button{border:2px solid #414147;background:transparent;border-radius:50px;color:#fff;font-size:clamp(17px,1.7vw,31px);font-weight:600;padding:11px 26px;min-height:49px}
.movie-actions .detail-list-button{margin:0 12px}
.detail-play:focus,.detail-list-button:focus{outline:3px solid #fff;outline-offset:4px;box-shadow:none}
.series-detail{padding:29vh 30px 40px}
.series-detail .detail-intro{max-width:none}
.series-detail .detail-intro h1{margin-bottom:18px}
.series-detail .detail-list-button{font-size:clamp(16px,1.5vw,28px);margin:0 0 23px;min-height:48px;padding:10px 25px}
.series-detail .detail-plot{color:#aaa;margin:0 0 22px}
.series-detail .detail-meta{font-size:clamp(15px,1.5vw,28px);margin-bottom:20px}
.season-tabs{display:flex;gap:12px;overflow-x:auto;padding:5px 3px 10px;scrollbar-width:none;margin-bottom:19px;pointer-events:auto}
.season-tabs .category-chip{padding:12px 21px;color:#aaa}
.season-tabs .category-chip.selected{color:#090909}
.detail-episodes{display:flex;flex-direction:column;gap:24px}
.detail-episode{display:flex;align-items:center;gap:20px;width:100%;padding:0;background:transparent;text-align:left;border-radius:7px;min-height:95px}
.episode-art{width:170px;height:96px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#202020;display:flex;align-items:center;justify-content:center}
.episode-art img{width:100%;height:100%;object-fit:cover}
.episode-art>span{color:#aaa;font-size:25px}
.episode-copy{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:80%}
.episode-copy strong{font-size:clamp(16px,1.5vw,28px);line-height:1.4}
.episode-copy small,.episode-plot{font-size:clamp(14px,1.3vw,24px);line-height:1.4;color:#aaa}
.episode-plot{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.episode-copy .episode-resume{color:#eee}
.detail-episode:focus{outline:2px solid #ed1829;outline-offset:6px;box-shadow:none;background:#ffffff08}
@media(min-width:1650px){.main-live{padding-top:16px}.live-categories{gap:16px;padding-bottom:27px}.category-chip{font-size:26px;padding:22px 32px}.refresh-chip{width:72px;height:72px;padding:0;font-size:44px}.main-live .live-layout{gap:48px}.channel-list{gap:18px}.channel-row{min-height:138px;padding:20px 25px;gap:28px;border-radius:25px;border-width:3px}.channel-logo{width:135px;height:94px;border-radius:13px}.channel-name{font-size:24px}.channel-row .channel-programme{font-size:27px;margin-top:9px}.channel-next{font-size:22px}.channel-star{font-size:25px}.now-playing{font-size:22px;gap:14px;margin-bottom:22px}.now-playing>span{width:16px;height:16px}.live-screen{min-height:325px;padding:40px;gap:38px;border-radius:25px;margin-bottom:34px}.live-screen img{max-height:210px}.live-screen>span{font-size:50px}.live-screen small{font-size:22px;gap:12px}.live-screen small>span{width:11px;height:11px}.live-preview h2{font-size:31px;margin-bottom:24px}.live-preview .live-next-info{font-size:22px}.live-tools{margin-top:40px;gap:18px}.live-tools .secondary{font-size:20px;padding:15px 23px}.detail-back{top:35px;left:50px;width:64px;height:64px}.detail-back svg{width:43px;height:43px}.detail-back.series-back{top:20px;left:24px;width:82px;height:82px;border-width:3px}.detail-body{padding-left:40px;padding-right:40px}.detail-intro h1{margin-bottom:30px}.detail-meta{gap:26px;margin-bottom:30px}.detail-genre,.detail-plot{margin-bottom:30px}.detail-credits{margin-bottom:22px}.movie-actions{gap:35px;margin-top:60px}.detail-play{min-height:84px;padding:20px 35px}.detail-list-button{min-height:80px;padding:20px 40px}.series-detail{padding-left:55px;padding-right:55px}.series-detail .detail-intro h1{margin-bottom:26px}.series-detail .detail-meta{margin-bottom:30px}.series-detail .detail-list-button{min-height:76px;padding:18px 40px;margin-bottom:36px}.series-detail .detail-plot{margin-bottom:28px}.season-tabs{gap:18px;margin-bottom:30px}.season-tabs .category-chip{padding:20px 32px}.detail-episodes{gap:38px}.detail-episode{gap:32px;min-height:170px}.episode-art{width:300px;height:169px;border-radius:10px}.episode-copy{gap:12px}}
@media(max-width:1100px){.main-live{padding-top:0}.live-categories{gap:8px;padding-bottom:12px}.category-chip{font-size:14px;padding:11px 17px}.refresh-chip{width:38px;height:38px;font-size:27px;padding:0}.main-live .live-layout{gap:23px}.channel-row{min-height:72px;padding:10px 12px;gap:14px}.channel-logo{width:69px;height:49px}.channel-name{font-size:13px}.channel-row .channel-programme{font-size:14px}.channel-next{font-size:12px}.now-playing{font-size:12px;margin-bottom:12px}.live-screen{min-height:175px;padding:25px;gap:22px}.live-screen img{max-height:95px}.live-screen small{font-size:12px}.live-preview h2{font-size:17px}.live-preview .live-next-info{font-size:13px}.live-tools .secondary{font-size:12px;padding:8px 12px}.detail-body{padding-left:20px;padding-right:20px}.detail-intro h1{margin-bottom:17px}.detail-meta{gap:14px;margin-bottom:15px}.detail-genre,.detail-plot{margin-bottom:15px}.detail-credits{margin-bottom:11px}.movie-actions{margin-top:30px;gap:19px}.detail-play{min-height:44px}.detail-list-button{min-height:42px;padding:9px 24px}.series-detail{padding-left:28px;padding-right:28px}.series-detail .detail-list-button{min-height:41px;padding:9px 23px;margin-bottom:20px}.episode-art{width:151px;height:85px}.detail-episode{min-height:85px;gap:16px}.detail-episodes{gap:24px}.episode-copy{gap:5px}}
@media(max-width:750px){.main-live .live-layout{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px}.channel-next{display:none}.channel-row{gap:9px;padding:8px;min-height:66px;border-radius:10px}.channel-logo{width:43px;height:43px}.channel-name{font-size:12px}.channel-row .channel-programme{font-size:12px}.live-screen{min-height:140px;padding:15px;gap:15px}.live-screen img{max-height:65px}.live-screen>span{font-size:20px}.now-playing{font-size:11px;letter-spacing:1px}.live-tools{margin-top:16px}.detail-intro{max-width:90vw}.detail-body{padding-top:24vh}.series-detail{padding-top:28vh;padding-left:20px;padding-right:20px}.detail-intro h1{font-size:29px}.episode-art{width:115px;height:65px}.episode-copy strong{font-size:15px}.episode-copy small,.episode-plot{font-size:13px}.detail-art{object-position:62% 20%}.series-detail .detail-meta{gap:12px}.detail-shade{background:linear-gradient(90deg,#090909d9,#09090955),linear-gradient(0deg,#090909 0%,transparent 100%)}}
