@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#42516a;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #9b8be3}[hidden]{display:none!important}.admin{background:#f4f5f8;font-size:16px}.brandbar{height:83px;background:radial-gradient(ellipse at 78% 0%,#b88c67 0%,#695457 37%,#242638 85%);display:flex;align-items:center;justify-content:space-between;padding:0 42px;color:#fff}.brand{font-family:Outfit,Arial;letter-spacing:4px;font-size:23px;display:flex;align-items:center;gap:2px}.brand b{font-size:40px;color:#e92960;letter-spacing:0}.brand span{font-size:14px;letter-spacing:2px;border-left:1px solid #ffffff44;margin-left:18px;padding:9px 18px;color:#e1dbe0}.header-right{display:flex;align-items:center;gap:10px;font-size:16px;color:#eee}.header-right a{margin:0 20px;padding:9px 13px;border:1px solid #ffffff44;border-radius:5px}.avatar{background:#ffffff25;padding:10px;border-radius:50%}.status-dot{display:inline-block;width:7px;height:7px;background:#34c79b;border-radius:50%;margin-right:5px}nav{height:60px;background:#3b454f;display:flex;padding:0 28px;align-items:stretch;gap:7px}nav button{background:transparent;color:#cdd5e0;padding:0 18px;font-size:16px;white-space:nowrap}nav button:hover,nav button.active{color:#fff;background:#ffffff0c;box-shadow:inset 0 -3px #a79ae9}.dropdown{position:relative;display:flex}.dropdown-content{display:none;position:absolute;top:60px;left:0;min-width:190px;background:#fff;z-index:5;box-shadow:0 10px 35px #25334d22;border-radius:5px;padding:8px}.dropdown-content button{color:#42516a;display:block;padding:13px;width:100%;text-align:left}.dropdown-content button:hover{background:#f4f2fb;color:#7161bc}.dropdown:hover .dropdown-content,.dropdown.open .dropdown-content{display:block}main{max-width:1600px;margin:auto;padding:34px 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{font-size:14px;letter-spacing:2px;font-weight:700;color:#9299aa;margin:0 0 9px}h1,h2,h3,p{margin-top:0}h1{font-family:Outfit,Arial;font-size:29px;font-weight:500;margin-bottom:8px;color:#344158}.muted{color:#929cab;font-size:16px}.page-heading p:last-child{margin-bottom:0}.primary{background:#7161bc;color:#fff;padding:12px 19px;border-radius:5px;box-shadow:0 4px 9px #7161bc22}.primary:hover{background:#6150ac}.tabs{display:flex;overflow:auto;border-bottom:1px solid #dfe3ea;margin-bottom:23px;gap:6px}.tabs button{background:transparent;color:#7b8595;white-space:nowrap;padding:14px 18px;font-size:16px}.tabs button.selected{background:#fff;color:#7161bc;border-radius:4px 4px 0 0;box-shadow:inset 0 -2px #7161bc}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:31px}.stat{background:#fff;border:1px solid #edf0f5;border-radius:6px;padding:24px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.stat>div:last-child{text-align:right}.stat strong{font-size:26px;font-weight:500;color:#3f4c64;font-family:Outfit,Arial}.stat p{margin:5px 0 8px;color:#8590a2;font-size:16px}.stat small{font-size:14px;color:#a2aaba}.stat-icon{font-size:23px;color:var(--accent);background:color-mix(in srgb,var(--accent) 17%,white);padding:5px 10px;border-radius:5px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}h2{font-size:18px;font-weight:600;margin-bottom:0}.count{font-size:14px;background:#e7e9ef;color:#8790a0;padding:4px 8px;border-radius:5px;margin-left:9px;font-weight:400}.server-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.server{background:white;border-radius:6px;overflow:hidden;box-shadow:0 4px 15px #26334d03}.server-title{background:var(--accent);color:#fff;padding:20px 22px;display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;font-weight:600}.server-title small{display:block;font-size:14px;color:#ffffffb0;margin-top:5px;font-weight:400}.metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:24px 15px 22px;gap:24px 10px;text-align:center}.metrics span{display:block;font-size:16px;letter-spacing:.5px}.metrics strong{display:block;font-size:16px;color:#99a5b0;font-weight:400;margin-top:8px}.gauges{display:flex;justify-content:space-evenly;padding:22px 10px;border-top:1px solid #f8f9fb;font-size:16px;text-align:center}.gauge{width:65px;height:65px;border-radius:50%;background:conic-gradient(var(--accent) var(--usage),#edebf6 0);padding:5px;margin:12px auto 0;transform:rotate(180deg)}.gauge b{display:flex;align-items:center;justify-content:center;background:white;border-radius:50%;height:100%;font-size:16px;color:var(--accent);font-weight:500;transform:rotate(180deg)}.gauge small{font-size:14px;margin-left:1px}.server-footer{border-top:1px solid #f3f4f7;display:flex;justify-content:space-between;padding:12px 22px;color:#9aa4b2;font-size:14px}.server-footer span:first-child{color:#64aa98}footer{display:flex;justify-content:space-between;color:#9aa4b2;font-size:16px;margin-top:32px;padding:18px 0;border-top:1px solid #e5e8ef}.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin:25px 0}input,select{background:#fff;border:1px solid #dfe3eb;padding:11px 13px;border-radius:5px;color:#42516a}table{border-collapse:collapse;width:100%;background:white;text-align:left}th,td{padding:18px 22px;border-bottom:1px solid #edf0f5}th{background:#eceef4;font-size:16px;text-transform:uppercase;letter-spacing:1px}.table-wrap{overflow:auto;border-radius:6px}.delete{color:#cb4d70;background:#fcebf0;padding:7px 12px;border-radius:4px}.empty{text-align:center;padding:50px;color:#929cab}dialog{border:0;border-radius:10px;box-shadow:0 20px 100px #0003;max-width:460px;width:calc(100% - 32px);padding:30px;color:#42516a}dialog::backdrop{background:#14213588;backdrop-filter:blur(4px)}dialog h2{margin-bottom:14px;font-size:22px}dialog p{line-height:1.7}label{display:block;font-size:16px;margin-top:20px}label input,label select{display:block;width:100%;margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-actions button:not(.primary),#close-info{padding:12px 18px;border-radius:5px;background:#edf0f6;color:#59647a}
.player{min-height:100vh;color:#fff;background:radial-gradient(ellipse at 50% 110%,#08458c66,transparent 65%),repeating-conic-gradient(from 20deg at 50% 52%,#001020 0deg,#03244a 12deg,#020c19 17deg,#020c19 32deg);font-family:Outfit,Arial}.player-header{display:flex;align-items:center;justify-content:space-between;padding:54px 6% 30px;gap:25px}.player-logo{display:flex;align-items:center;font-size:62px;color:#7460ff;gap:8px}.player-logo span{font-size:28px;font-weight:400;color:#fff;letter-spacing:-1px}.player-logo b{font-weight:700;margin-left:5px}.clock{display:flex;align-items:center;gap:12px}.clock strong{font-size:34px;font-weight:400}.clock span{font-size:17px}.player-actions{display:flex;align-items:center;gap:33px}.player-actions button,.player-actions a{background:transparent;color:white;font-size:35px}.player-main{padding:26px 4.5%;max-width:1600px}.player .eyebrow{color:#a7bad1;margin-bottom:20px}.player-tiles{display:grid;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:270px 105px;gap:25px}.tile{border-radius:18px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s}.tile:hover{transform:translateY(-5px);box-shadow:0 15px 40px #0005}.tile:focus-visible{outline:4px solid white}.live{grid-row:span 2;background:linear-gradient(155deg,#2fd09b,#3935ef)}.movies{background:linear-gradient(105deg,#dc2458,#ffa53c)}.series{background:linear-gradient(110deg,#9b39ae,#4e9ee0)}.tile-icon{font-size:100px;line-height:1.1;margin-bottom:20px;font-family:Arial}.live .tile-icon{font-size:130px}.tile strong{font-size:29px}.live strong{font-size:38px}.tile small{opacity:.75;font-size:16px;margin-top:9px}.utility-tiles{grid-column:2 / 4;display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.utility-tiles button{background:#73ae8d;color:white;border-radius:12px;font-size:17px;font-weight:600;padding:15px}.utility-tiles button:hover{background:#85c29f}.player footer{border-color:#ffffff16;font-size:18px;color:#d4deec;margin-top:30px;padding-top:26px}.library-heading{display:flex;align-items:center;gap:25px;margin-bottom:30px}.library-heading h1{color:white;margin:0;flex:1}.library-heading button,.channel button{background:#ffffff18;color:#fff;border-radius:6px;padding:10px 17px}.library-heading input{background:#ffffff12;color:white;border-color:#ffffff33}#channel-list{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.channel{padding:25px;background:#ffffff0d;border:1px solid #ffffff18;border-radius:12px}.channel-symbol{font-size:50px;color:#79a8ff}.channel h3{margin:18px 0 10px;font-size:19px}.channel p{color:#99adc5;font-size:16px;min-height:30px}.channel>div:last-child{display:flex;justify-content:space-between}video{width:100%;max-height:65vh;background:#000;border-radius:12px}#video-area{margin-top:30px}#playing-title{margin-bottom:15px}#playback-message{color:#cad7e7;margin-top:12px}
@media(min-width:1500px){.player-tiles{grid-template-rows:330px 115px}}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.server-grid{grid-template-columns:repeat(2,1fr)}nav{overflow:auto;padding:0 10px}nav button{padding:0 13px}.header-right{font-size:0}.header-right a{font-size:16px}.brand span{display:none}.player-header{padding:30px 4%;flex-wrap:wrap}.player-logo span{font-size:22px}.clock span{display:none}.player-actions{gap:20px}.player-tiles{gap:16px;grid-template-rows:240px 90px}.utility-tiles{gap:12px}.utility-tiles button{font-size:16px}.tile strong{font-size:24px}.live strong{font-size:30px}.tile small{display:none}#channel-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.brandbar{padding:0 18px;height:70px}.header-right a{margin:0}.avatar{display:none}main{padding:25px 18px}.page-heading{gap:15px}h1{font-size:25px}.page-heading .muted{line-height:1.5}.primary{white-space:nowrap;font-size:16px;padding:11px 12px}.stats{gap:10px}.stat{padding:16px 12px}.stat strong{font-size:23px}.stat small{display:none}.stat-icon{font-size:18px;padding:4px 7px}.server-grid{grid-template-columns:1fr}.section-heading>.muted{display:none}.brand{font-size:20px}.player-header{gap:10px}.player-logo{font-size:40px}.player-logo span{font-size:17px}.clock strong{font-size:23px}.player-actions{gap:14px}.player-actions button,.player-actions a{font-size:25px}.player-main{padding:25px 18px}.player-tiles{grid-template-columns:1fr 1fr;grid-template-rows:230px 200px auto}.live{grid-column:span 2;grid-row:auto}.tile-icon,.live .tile-icon{font-size:75px;margin-bottom:10px}.utility-tiles{grid-column:span 2;gap:8px}.utility-tiles button{font-size:16px;padding:20px 7px}.player footer{font-size:16px;gap:15px;flex-wrap:wrap}.library-heading{gap:12px;flex-wrap:wrap}.library-heading input{width:100%}#channel-list{gap:12px}.channel{padding:17px}.channel h3{font-size:18px}.table-toolbar{gap:10px}.table-toolbar input{width:65%}footer{gap:15px}}
.logout{background:#ffffff20;color:white;border-radius:5px;padding:10px 12px;font-size:16px;white-space:nowrap}.admin-tools{display:flex;gap:8px;margin-left:10px}.page-heading{flex-wrap:wrap;gap:15px}.page-heading>div:first-child{flex:1}textarea{display:block;width:100%;margin-top:8px;border:1px solid #dfe3eb;border-radius:5px;padding:12px;font:16px monospace;resize:vertical}#load-playlist{padding:9px 15px;margin-top:8px;border-radius:5px}dialog [role=status]{font-size:16px;margin:16px 0;line-height:1.5}#toast.visible{position:fixed;bottom:25px;right:25px;max-width:420px;padding:18px;background:#344158;color:white;z-index:100;border-radius:8px;box-shadow:0 5px 25px #0003}.auth-page{display:grid;place-items:center}.auth-card{background:#ffffff0f;border:1px solid #ffffff22;border-radius:16px;width:calc(100% - 40px);max-width:440px;padding:35px}.auth-card h1{color:white}.auth-card p{line-height:1.6}.auth-card input{width:100%}.auth-card .primary{width:100%;margin-top:15px}.auth-card label{font-size:16px}#auth-error{color:#ffb6be}.auth-card button:disabled{opacity:.5}
.stream-picker{border:1px solid #e2e5ed;border-radius:6px;margin-top:20px;max-height:240px;overflow:auto;padding:12px}.stream-picker label{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:16px}.stream-picker label input{width:auto;margin:0}.stream-picker small{color:#8994a5}nav{overflow-x:auto;min-height:60px}.dropdown-content{position:fixed;top:auto;margin-top:60px}
.stream-selection-toolbar{position:sticky;top:-12px;background:white;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 10px;border-bottom:1px solid #e2e5ed;margin-bottom:10px}.stream-selection-toolbar label{font-weight:600;white-space:nowrap}.stream-selection-toolbar span{font-size:16px;color:#8994a5;white-space:nowrap}
/* Channel list and persistent TV screen */
.watch-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:22px;align-items:start}.channel-sidebar{background:#08182be8;border:1px solid #ffffff18;border-radius:12px;overflow:hidden}.channel-list-heading{display:flex;justify-content:space-between;padding:18px 17px;border-bottom:1px solid #ffffff12;font-size:16px;letter-spacing:1.5px;color:#9aacc6}.channel-list-heading span:last-child{letter-spacing:0;color:#86b3ff}#channel-list{display:block;max-height:62vh;min-height:250px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#385579 #08182b}.channel-row{display:flex;align-items:center;gap:2px;border-bottom:1px solid #ffffff09;padding:5px 8px}.channel-choice{flex:1;min-width:0;display:flex;align-items:center;gap:12px;background:transparent;color:white;text-align:left;padding:13px 7px;border-radius:7px}.channel-choice:hover{background:#ffffff0b}.channel-number{font:16px 'DM Sans',Arial;color:#7187a5;min-width:22px}.channel-text{flex:1;min-width:0}.channel-text strong{font-size:16px;font-weight:500;display:block;line-height:1.5;overflow-wrap:anywhere}.channel-text small{display:block;font-size:14px;color:#7890ad;margin-top:3px}.channel-play{color:#6f96ce;font-size:19px}.channel-favorite{background:transparent;color:#8ca2c1;padding:10px 8px;border-radius:5px}.channel-favorite[aria-pressed=true]{color:#f1c568}.channel-row.is-playing{background:#3063aa35;box-shadow:inset 3px 0 #73a3ff}.channel-row.is-playing .channel-text strong,.channel-row.is-playing .channel-play{color:#a7c8ff}#video-area{margin:0;min-width:0;background:#08182bd9;border:1px solid #ffffff18;border-radius:12px;overflow:hidden}.now-playing{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;gap:15px}.now-playing .eyebrow{margin-bottom:6px;color:#8eaff4;font-size:14px}.now-playing #playing-title{margin:0;font-size:20px;overflow-wrap:anywhere}#playback-state{font-size:16px;white-space:nowrap;background:#ffffff0a;border:1px solid #ffffff14;color:#9db9e1;padding:7px 11px;border-radius:20px}.tv-screen{aspect-ratio:16/9;background:#000;position:relative;display:grid;place-items:center;overflow:hidden}.tv-screen video{width:100%;height:100%;max-height:none;border-radius:0;object-fit:contain}#screen-placeholder{text-align:center;color:#6d829f;padding:20px}#screen-placeholder>span{font-size:65px;line-height:1;color:#6b89b3}#screen-placeholder h3{font-size:21px;color:#d5dfef;font-weight:500;margin:14px 0 9px}#screen-placeholder p{font-size:16px;margin:0;line-height:1.6}.screen-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 20px;min-height:64px}.screen-toolbar #playback-message{font-size:16px;color:#91a5c0;margin:0;line-height:1.5}.screen-toolbar button{background:#ffffff0d;border:1px solid #ffffff18;color:#d5dfef;border-radius:5px;padding:9px 12px;white-space:nowrap;font-size:16px}.tv-screen:fullscreen{width:100vw;height:100vh;aspect-ratio:auto}.player:has(#library:not([hidden])) .player-header{padding-top:25px;padding-bottom:15px}.player:has(#library:not([hidden])) .player-main{padding-top:15px}.player:has(#library:not([hidden])) .player-logo{font-size:43px}.player:has(#library:not([hidden])) .player-logo span{font-size:23px}.library-heading{margin-bottom:20px}#library .empty{font-size:16px;line-height:1.7;padding:28px 18px}#channel-list:focus-within{scroll-behavior:smooth}
@media(max-width:1000px){.watch-layout{grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:14px}.now-playing{padding:16px}.now-playing #playing-title{font-size:17px}.channel-text strong{font-size:16px}.channel-choice{gap:8px}.screen-toolbar{padding:12px;gap:10px}.screen-toolbar button{font-size:16px;padding:8px}#channel-list{display:block}.player-header{gap:15px}}
@media(max-width:700px){.watch-layout{display:flex;flex-direction:column}.watch-layout #video-area{order:0;width:100%}.channel-sidebar{order:1;width:100%}#channel-list{max-height:48vh;min-height:100px}.now-playing{padding:14px 16px}.library-heading h1{font-size:23px}.screen-toolbar{min-height:58px}.player:has(#library:not([hidden])) .player-logo span{font-size:17px}.player:has(#library:not([hidden])) .player-logo{font-size:35px}.player:has(#library:not([hidden])) .player-header{padding-top:18px}.channel-text strong{font-size:16px}.channel-choice{padding:12px 8px}.channel-list-heading{padding:13px 17px}}
.login-modes{display:flex;gap:5px;background:#0003;border:1px solid #ffffff12;border-radius:8px;padding:4px;margin:0 0 24px}.login-modes button{flex:1;background:transparent;color:#9fb0c8;font-size:16px;border-radius:5px;padding:11px 7px}.login-modes button[aria-pressed=true]{background:#7161bc;color:white}.login-note{font-size:16px;color:#a5b6ce;margin:18px 0 0}.auth-card{margin:30px auto}.episode-list{display:flex;flex-direction:column;gap:8px;max-height:45vh;overflow-y:auto}.episode-list button{background:#edf0f6;color:#42516a;border-radius:5px;padding:12px;text-align:left}
.screen-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}#resolution-badge{font-size:14px;white-space:nowrap;padding:7px 10px;border-radius:20px;background:#7362bd33;color:#c9c0ff;border:1px solid #ad9fff33}.picture-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.picture-controls label{margin:0;font-size:14px;color:#9bafca}.picture-controls select{display:block;width:auto;margin:4px 0 0;padding:7px 9px;background:#152740;color:white;border-color:#ffffff22;font-size:16px;max-width:150px}.picture-controls select:disabled{opacity:.55}.screen-toolbar{flex-wrap:wrap}.screen-toolbar>p{flex:1;min-width:130px}@media(max-width:1000px){.picture-controls{gap:7px}.screen-badges{max-width:45%}#resolution-badge{font-size:14px}.picture-controls select{max-width:125px}}
.customer-actions{display:flex;gap:8px;align-items:center}.secondary{background:#e9edf4;color:#59657a;padding:12px 15px;border-radius:5px}label small{display:block;font-size:16px;color:#929cab;margin-top:8px}
.credit-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;padding:16px;background:#f4f2fb;border-radius:8px}.credit-summary span{font-size:16px;color:#8992a4}.credit-summary strong{display:block;font-size:19px;font-weight:600;margin-top:6px;color:#7161bc}
.reseller-login-url{display:block;max-width:310px;overflow-wrap:anywhere;font-size:16px;color:#7161bc;text-decoration:underline;text-underline-offset:3px}
/* Dark management console */
.admin-pro{--console-bg:#0c1215;--console-panel:#141c20;--console-raised:#1c262b;--console-border:#283238;--console-text:#d4dde2;--console-muted:#7b8993;--console-accent:#29a9d5;background:var(--console-bg);color:var(--console-text);font-family:'DM Sans',Arial,sans-serif;font-size:16px;min-height:100vh}.admin-pro button{transition:background .15s,color .15s,border-color .15s}.admin-sidebar{width:226px;position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#152126,#10191d);border-right:1px solid var(--console-border);display:flex;flex-direction:column;z-index:25}.console-brand{height:72px;padding:20px 19px;display:flex;align-items:center;gap:9px;font:600 19px Outfit,Arial;letter-spacing:-.4px;border-bottom:1px solid #263139}.console-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:linear-gradient(135deg,#64d3f7,#1175bd);font:700 italic 24px Arial;color:white;box-shadow:0 3px 12px #1597cd22}.brand-ui{font-weight:400;color:#96b2bd}.console-brand small{font:600 14px 'DM Sans',Arial;border:1px solid #277992;color:#70bdd6;background:#153a47;border-radius:3px;padding:3px 4px;margin-left:auto;letter-spacing:1px}.sidebar-search{display:flex;align-items:center;gap:7px;margin:18px 13px 12px;border:1px solid #2c3940;border-radius:5px;padding:7px 9px;color:#78929f}.admin-pro .sidebar-search input{background:transparent;border:0;padding:0;min-width:0;width:100%;font-size:16px;color:#b3c3cc}.sidebar-search kbd{font:14px monospace;border:1px solid #33434c;border-radius:3px;padding:1px 4px}.admin-pro nav{height:auto;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;display:block;background:none;padding:0 10px 20px;scrollbar-width:thin;scrollbar-color:#293e48 transparent}.nav-label{font-size:14px;letter-spacing:1.8px;color:#5f7682;margin:19px 12px 9px;font-weight:600}.admin-pro nav button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border-radius:5px;padding:11px 12px;margin:2px 0;color:#8fa3ae;font-size:16px;box-shadow:none;white-space:normal}.admin-pro nav button>span:first-child{font-size:17px;width:17px;text-align:center;color:#6f8995}.admin-pro nav button:hover{background:#223139;color:#e6f5fb;box-shadow:none}.admin-pro nav button.active{background:linear-gradient(90deg,#12394b,#17303a);color:#78d4f4;box-shadow:inset 2px 0 #2ab2e4}.admin-pro nav button.active>span:first-child{color:#6bccf0}.nav-chevron{margin-left:auto;font-size:16px}.nav-submenu{padding:3px 0 6px 25px;margin-left:19px;border-left:1px solid #2b3d46}.admin-pro nav .nav-submenu button{padding:8px 12px;font-size:14px}.sidebar-bottom{margin:0 13px;border-top:1px solid #29373f;padding:18px 7px;display:flex;align-items:center;gap:7px;font-size:14px;color:#bbcbd4}.sidebar-bottom>div>span{display:block;color:#65808e;font-size:14px;margin-top:5px}.server-indicator{color:#4dc5a4;margin-left:auto;font-size:14px}.admin-pro .brandbar{height:64px;background:#131c20;border-bottom:1px solid #273137;margin-left:226px;padding:0 30px;display:flex;gap:20px}.header-breadcrumb{font-size:16px;color:#6d818d;display:flex;gap:13px;align-items:center}.header-breadcrumb strong{font-weight:500;color:#c0cdd5}.header-breadcrumb>span{color:#3f5661}.admin-pro .header-right{margin-left:auto;font-size:14px;color:#8fa1aa;gap:10px}.admin-pro .header-right a{margin:0 0 0 12px;background:#1b272d;border-color:#2c3942;color:#bacbd5;font-size:14px;padding:8px 11px}.admin-pro .logout{font-size:14px;background:#1c2a32;border:1px solid #31434e;padding:8px 11px;color:#b2c9d6}.console-status{display:flex;align-items:center;white-space:nowrap}.admin-pro .status-dot{width:5px;height:5px}.admin-pro main{margin:0 0 0 226px;max-width:none;padding:32px 32px 15px}.admin-pro .page-heading{margin-bottom:25px;align-items:center;gap:12px;flex-wrap:wrap}.admin-pro .eyebrow{font-size:14px;color:#4f849b;letter-spacing:1.8px;margin-bottom:9px}.admin-pro h1{font:500 26px Outfit,Arial;color:#e3edf3;margin-bottom:7px;letter-spacing:-.4px}.admin-pro h2{font:500 16px 'DM Sans',Arial;color:#dce7ed}.admin-pro .muted{color:#71858f;font-size:16px;line-height:1.6}.admin-pro .primary{background:#103a4b;border:1px solid #1c6079;color:#83d3f0;box-shadow:none;padding:10px 14px;border-radius:5px;font-size:16px;font-weight:500;white-space:nowrap}.admin-pro .primary:hover{background:#174e64;border-color:#3087a5}.admin-pro .secondary,.admin-pro .dialog-actions button:not(.primary){background:#1b262c;color:#b4c4ce;border:1px solid #334148;padding:10px 13px;border-radius:5px;font-size:16px}.admin-pro .secondary:hover{background:#27343c}.page-actions,.admin-pro .admin-tools{display:flex;align-items:center;gap:8px;margin:0}.admin-pro .admin-tools{order:2}.admin-pro .page-actions{order:3}.library-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 24px}.library-summary article{padding:18px;background:linear-gradient(120deg,#162228,#111b20);border:1px solid #27373f;border-radius:7px;display:flex;gap:14px;align-items:center;position:relative;min-width:0}.summary-icon{color:#5da3c1;font-size:23px;background:#1c3440;width:38px;height:38px;border-radius:8px;display:grid;place-items:center;flex-shrink:0}.library-summary article>div>span{font-size:14px;letter-spacing:1px;color:#78909e;display:block;white-space:nowrap}.library-summary strong{font:500 25px Outfit,Arial;display:block;margin-top:5px;color:#dbe8ef}.library-summary article>small{position:absolute;right:11px;top:10px;color:#35525f;font-size:14px;letter-spacing:1px}.management-card{border:1px solid #2a343a;background:linear-gradient(130deg,#192227,#121a1e);border-radius:8px;box-shadow:0 13px 40px #0002;overflow:hidden}.management-card-header{display:flex;justify-content:space-between;align-items:center;padding:20px 22px 5px}.managed-label{font-size:14px;letter-spacing:1.4px;color:#506b7a}.stream-view-tabs{display:flex;margin:8px 22px 0;gap:24px;border-bottom:1px solid #2c373f;overflow:auto}.stream-view-tabs button{padding:14px 2px;color:#7c909b;background:transparent;font-size:16px;white-space:nowrap;border-bottom:2px solid transparent}.stream-view-tabs button.selected{color:#c0e9f8;border-bottom-color:#32acd7}.admin-pro .table-toolbar{margin:0;padding:17px 22px;display:flex;align-items:center;gap:12px}.record-search{display:flex;align-items:center;gap:10px;flex:1;background:#222d33;border:1px solid #354149;border-radius:5px;padding:0 11px}.record-search>span{color:#8299a7;font-size:20px}.admin-pro .record-search input{background:transparent;border:0;width:100%;min-width:0;padding:10px 0;color:#c3d0d8;font-size:16px}.admin-pro input::placeholder{color:#6d828d}.admin-pro input,.admin-pro select,.admin-pro textarea{background:#202c32;color:#c6d5dd;border:1px solid #36454e;font-size:16px;border-radius:5px}.admin-pro select{padding:10px 12px;max-width:250px}.admin-pro #stream-filters{display:flex;gap:9px}.admin-pro .table-wrap{margin:0 22px;border:1px solid #2d3941;border-radius:5px;background:#121b1f}.admin-pro table{background:transparent;font-size:16px}.admin-pro th{font-size:14px;letter-spacing:.3px;text-transform:none;font-weight:500;background:#1e2a30;color:#8ca3af;padding:13px 15px;border-bottom:1px solid #34414a;white-space:nowrap}.admin-pro td{padding:14px 15px;border-bottom:1px solid #27333b;color:#9eb1bd;font-size:16px}.admin-pro tbody tr:last-child td{border-bottom:0}.admin-pro tbody tr:hover{background:#24333b44}.admin-pro tr.row-selected{background:#17344755}.admin-pro .checkbox-cell{width:34px;padding-right:3px}.admin-pro input[type=checkbox]{width:13px;height:13px;accent-color:#2795bf;cursor:pointer}.stream-identity{display:flex;align-items:center;gap:11px;min-width:170px}.stream-mini-icon{width:28px;height:28px;border:1px solid #344850;background:#1c2e38;color:#73a5bb;display:grid;place-items:center;border-radius:6px;font-size:17px;flex-shrink:0}.stream-identity strong{display:block;color:#cbd8df;font-size:16px;font-weight:500;line-height:1.6;max-width:400px;overflow-wrap:anywhere}.stream-identity small{font-size:14px;color:#516c7c;display:block;margin-top:3px}.service-tag{font-size:14px;border:1px solid #2b5d70;border-radius:4px;padding:3px 7px;background:#16313e;color:#83b5c9;white-space:nowrap}.source-status{display:inline-flex;align-items:center;gap:6px;padding:3px 7px;font-size:14px;border:1px solid #2d4d43;border-radius:4px;color:#78b49e;white-space:nowrap;background:#17312844}.source-status i{height:4px;width:4px;background:#56b08b;border-radius:50%}.source-status.missing{border-color:#5b4534;color:#cfa97e;background:#3c2b1c33}.source-status.missing i{background:#bf8a4f}.stream-actions{display:flex;justify-content:flex-end;gap:5px}.stream-actions button{border:1px solid transparent;background:transparent;color:#7f9aa9;border-radius:4px;padding:5px 7px;font-size:18px}.stream-actions button:hover{background:#274250;border-color:#345c70;color:#b0def2}.stream-actions button.remove-action{color:#b37a80}.stream-actions button.remove-action:hover{background:#512c3533;border-color:#72424b;color:#eaa4b1}.actions-heading{text-align:right}.table-footer{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;color:#637f8e;font-size:14px}.admin-pro .empty{color:#7a929f;padding:50px 25px;font-size:16px;text-align:center}.empty-icon{display:block;font-size:33px;color:#436d81;margin-bottom:13px}.admin-pro .empty small{display:block;color:#4f6a7b;font-size:14px;margin-top:9px}.admin-pro footer{border-color:#1e2c34;font-size:14px;color:#496573;margin-top:32px}.footer-divider{padding:0 9px;color:#263e4c}.admin-pro dialog{background:#172229;color:#bdced9;border:1px solid #364c59;border-radius:10px;box-shadow:0 25px 100px #0009}.admin-pro dialog h2{font-size:21px;color:#e2edf4;margin-bottom:10px}.admin-pro dialog::backdrop{background:#02090fc9;backdrop-filter:blur(5px)}.admin-pro label{font-size:16px;color:#8ea7b6}.admin-pro label input,.admin-pro label select{font-size:16px;padding:11px;width:100%}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.admin-pro .stream-picker{border-color:#324955}.admin-pro .stream-selection-toolbar{background:#172229;border-color:#344954}.admin-pro #toast.visible{background:#1e3847;color:#c6e2f1;border:1px solid #335d74;font-size:16px}.admin-pro .credit-summary{background:#102d3b}.admin-pro .credit-summary strong{color:#71c8e9}.admin-pro .reseller-login-url{color:#65b3d3}.admin-pro .stat{background:#17232b;border:1px solid #2a3e4b;box-shadow:none;border-radius:7px}.admin-pro .stat strong{color:#d2e3ee}.admin-pro .stat p{color:#7d9aab}.admin-pro .stat small{color:#567283}.admin-pro .stat-icon{color:#7db9d1;background:#1f3a49}.admin-pro .tabs{border-color:#2b3d49}.admin-pro .tabs button{color:#7c99aa}.admin-pro .tabs button.selected{color:#97d4ef;background:#1a2c38;box-shadow:inset 0 -2px #279cce}.admin-pro .server{background:#16242d;border:1px solid #2a4251;box-shadow:none}.admin-pro .server-title{background:#1a3545;color:#b6d8eb;border-bottom:1px solid #2b4d62}.admin-pro .server-title small{color:#678ea5}.admin-pro .metrics strong{color:#668da5}.admin-pro .gauges{border-color:#223b4b;color:#88adbf}.admin-pro .gauge{background:conic-gradient(#2d9cc9 var(--usage),#203b4b 0)}.admin-pro .gauge b{background:#16242d;color:#91cce5}.admin-pro .server-footer{border-color:#253a47;color:#517d96}.admin-pro .count{background:#253c4a;color:#82a6bb}.admin-pro .delete{background:#442a3433;color:#ce8a98;border:1px solid #70434f}.admin-pro .customer-actions{white-space:nowrap}.admin-pro .customer-actions .primary,.admin-pro .customer-actions .secondary{font-size:14px;padding:8px 10px}.admin-pro #toggle-sidebar{display:none;background:#21333e;color:#a2c9df;padding:7px 10px;border-radius:5px}.admin-pro button:focus-visible,.admin-pro a:focus-visible{outline:2px solid #4ab9e3}.admin-pro .section-heading{margin-top:25px}.admin-pro #sidebar-overlay{position:fixed;inset:0;background:#0008;z-index:24;border:0}
@media(min-width:1600px){.admin-pro main{padding:36px 40px}.admin-pro .brandbar{padding:0 40px}.library-summary article{padding:24px}}
@media(max-width:1200px){.admin-sidebar{width:205px}.admin-pro .brandbar,.admin-pro main{margin-left:205px}.admin-pro main{padding:25px 22px}.admin-pro .brandbar{padding:0 22px}.console-status{display:none}.library-summary{gap:10px}.library-summary article{padding:15px 12px;gap:9px}.library-summary article>div>span{font-size:14px}.summary-icon{width:30px;height:30px;font-size:18px}.library-summary strong{font-size:23px}.admin-pro .page-heading>div:first-child{min-width:200px}.admin-pro .table-toolbar{flex-wrap:wrap}.record-search{min-width:220px}.admin-pro #stream-filters{flex:1}.admin-pro #stream-filters select{flex:1;min-width:0;max-width:none}}
@media(max-width:900px){.library-summary{grid-template-columns:repeat(2,1fr)}.admin-pro .header-breadcrumb{display:none}.admin-pro .header-right{display:flex;font-size:14px}.admin-pro .header-right a{font-size:14px}.admin-pro .server-grid{grid-template-columns:1fr}.admin-pro .table-wrap{margin:0 15px}.admin-pro .management-card-header,.admin-pro .table-toolbar,.admin-pro .table-footer{padding-left:15px;padding-right:15px}.stream-view-tabs{margin-left:15px;margin-right:15px}.admin-pro main{padding:25px 18px}.admin-pro .admin-tools,.admin-pro .page-actions{flex-wrap:wrap}.admin-pro .page-heading .muted{max-width:350px}}
@media(max-width:680px){.admin-sidebar{transform:translateX(-100%);width:226px;transition:transform .2s}.admin-pro.sidebar-open .admin-sidebar{transform:translateX(0)}.admin-pro .brandbar,.admin-pro main{margin-left:0}.admin-pro .brandbar{padding:0 16px;gap:10px}.admin-pro #toggle-sidebar{display:block}.admin-pro main{padding:24px 14px}.admin-pro .header-right a{margin:0;font-size:14px;padding:8px}.admin-pro .logout{font-size:14px;max-width:130px;overflow:hidden;text-overflow:ellipsis}.admin-pro h1{font-size:25px}.admin-pro .page-heading>div:first-child{flex-basis:100%}.admin-pro .primary,.admin-pro .secondary{font-size:14px;padding:10px 11px}.admin-pro #stream-filters{width:100%;flex-basis:100%}.record-search{min-width:0;flex-basis:100%}.stream-view-tabs{gap:22px}.form-columns{grid-template-columns:1fr}.admin-pro footer{flex-wrap:wrap;line-height:1.7}.library-summary article{padding:15px}.admin-pro .stats{gap:10px}.admin-pro .stat{padding:15px}}
.import-group-option{display:flex;align-items:center;gap:8px}.import-group-option input{width:auto!important;margin:0!important}.admin-pro .form-columns label{min-width:0}
.admin-pro .footer-divider{font-style:normal}.stream-actions button svg{display:block}

/* Readable text and room for larger labels on every screen size. */
:root{font-size:16px;line-height:1.5}
.player{font-size:18px}
.auth-card{max-width:500px}
.auth-card input,.auth-card .primary{font-size:18px}
.auth-card .login-note{font-size:14px}
.admin-pro{font-size:16px}
.admin-sidebar{width:260px}
.admin-pro .brandbar,.admin-pro main{margin-left:260px}
.library-summary article>div{min-width:0}
.library-summary article>div>span{white-space:normal;overflow-wrap:anywhere}
.library-summary article>small{position:static;margin-left:auto;align-self:flex-start}
.admin-pro .nav-label{letter-spacing:1px}
.admin-pro .table-toolbar{flex-wrap:wrap}
.record-search{min-width:200px}
.admin-pro #stream-filters{flex-wrap:wrap}
.admin-pro .stream-identity small,.admin-pro .empty small{color:#8fa8b7}
.admin-pro footer{color:#8fa8b7}
@media(max-width:1200px){.library-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.library-summary article{flex-wrap:wrap}}
@media(max-width:900px){.admin-pro .brandbar{height:auto;min-height:72px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.admin-pro .header-right{flex-wrap:wrap}.admin-pro .header-right a{margin-left:0}}
@media(max-width:680px){.admin-pro .brandbar,.admin-pro main{margin-left:0}.admin-sidebar{width:min(280px,85vw)}.page-actions,.admin-pro .customer-actions{flex-wrap:wrap}.auth-card{padding:26px 22px}.picture-controls{justify-content:flex-start}.screen-badges{max-width:none}.now-playing{flex-wrap:wrap}.library-summary article{padding:14px}}
.admin-pro .record-search{flex:1 1 240px}.admin-pro #stream-filters{flex:1 1 360px}.admin-pro #stream-filters select{flex:1;min-width:170px;max-width:none}

.tv-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tv-screen.youtube-active{min-height:200px}
#youtube-link{color:#b7d4ff;text-decoration:underline;font-size:16px;padding:8px 0}
/* Keep navigation dismissible in the app's narrow browser panel. */
.admin-pro #toggle-sidebar{display:block;flex-shrink:0}
.admin-pro #streams-menu .nav-chevron{transition:transform .15s;transform:rotate(-90deg)}
.admin-pro #streams-menu[aria-expanded=true] .nav-chevron{transform:rotate(0)}
.admin-pro .brandbar{position:sticky;top:0;z-index:20}
.admin-pro .close-sidebar{position:absolute;right:8px;top:8px;background:#21333e;color:#c3dbe8;border-radius:4px;width:30px;height:30px;font-size:22px;z-index:1}
.admin-pro .console-brand{padding-right:36px}
.admin-pro.sidebar-collapsed .admin-sidebar{transform:translateX(-100%)}
.admin-pro.sidebar-collapsed .brandbar,.admin-pro.sidebar-collapsed main{margin-left:0}
@media(max-width:1000px){
  .admin-pro .admin-sidebar{transform:translateX(-100%);width:min(280px,85vw);transition:transform .2s}
  .admin-pro.sidebar-open .admin-sidebar{transform:translateX(0)}
  .admin-pro .brandbar,.admin-pro main{margin-left:0}
  .admin-pro .page-actions{flex-wrap:wrap}
}
/* Keep stream row actions visible when the console has limited space. */
.admin-pro .management-card{container-type:inline-size;container-name:stream-records}
.admin-pro .stream-actions{gap:6px}
.admin-pro .stream-actions button{display:grid;place-items:center;width:40px;height:40px;padding:8px;flex-shrink:0;background:#1b2b34;border-color:#344b58}
.admin-pro .stream-actions button svg{width:18px;height:18px}
.admin-pro .stream-identity>span:last-child{min-width:0}
@container stream-records (max-width:850px){
  .admin-pro .stream-table,.admin-pro .stream-table thead,.admin-pro .stream-table tbody{display:block;width:100%}
  .admin-pro .stream-table thead tr{display:flex;background:#1e2a30;padding:10px 16px}
  .admin-pro .stream-table th{display:none}
  .admin-pro .stream-table th.checkbox-cell{display:flex;align-items:center;gap:12px;width:auto;padding:0;border:0}
  .admin-pro .stream-table th.checkbox-cell::after{content:'Select all streams';font-size:14px}
  .admin-pro .stream-table tbody tr{display:grid;grid-template-columns:24px minmax(0,1fr) 132px;gap:6px 12px;padding:16px;border-bottom:1px solid #27333b}
  .admin-pro .stream-table tbody tr:last-child{border-bottom:0}
  .admin-pro .stream-table td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
  .admin-pro .stream-table td.checkbox-cell{grid-column:1;grid-row:1;padding-top:8px;width:auto}
  .admin-pro .stream-table td:nth-child(2){grid-column:2;grid-row:1}
  .admin-pro .stream-table td:nth-child(3){grid-column:2 / 4;grid-row:2}
  .admin-pro .stream-table td:nth-child(4){grid-column:2 / 4;grid-row:3}
  .admin-pro .stream-table td:nth-child(5){grid-column:2 / 4;grid-row:4}
  .admin-pro .stream-table td:nth-child(6){grid-column:3;grid-row:1;align-self:start}
  .admin-pro .stream-table td:nth-child(3)::before{content:'Content: ';color:#8fa8b7;font-size:14px}
  .admin-pro .stream-table td:nth-child(4)::before{content:'Category: ';color:#8fa8b7;font-size:14px}
  .admin-pro .stream-table td:nth-child(5)::before{content:'Source: ';color:#8fa8b7;font-size:14px}
  .admin-pro .stream-table .stream-identity{min-width:0;gap:8px}
  .admin-pro .stream-table td.empty{grid-column:1 / -1;grid-row:auto;padding:24px}
}
@container stream-records (max-width:480px){
  .admin-pro .stream-table tbody tr{grid-template-columns:20px minmax(0,1fr);gap:8px}
  .admin-pro .stream-table td:nth-child(2){grid-column:2}
  .admin-pro .stream-table td:nth-child(3){grid-column:2;grid-row:2}
  .admin-pro .stream-table td:nth-child(4){grid-column:2;grid-row:3}
  .admin-pro .stream-table td:nth-child(5){grid-column:2;grid-row:4}
  .admin-pro .stream-table td:nth-child(6){grid-column:2;grid-row:5}
  .admin-pro .stream-table .stream-actions{justify-content:flex-start;margin-top:4px}
}

/* IPTV provider connection */
.player .player-actions .provider-connect{font-size:16px;padding:10px 14px;border:1px solid #ffffff35;border-radius:6px;color:#fff;background:#ffffff10;white-space:nowrap}
.player #provider-dialog{width:calc(100% - 32px);max-width:500px;background:#21131e;color:#eadde7;border:1px solid #784050;max-height:calc(100dvh - 32px);overflow:auto}
.player #provider-dialog h2{font-size:24px;color:white;margin-bottom:12px}
.player #provider-dialog label{font-size:16px;margin-top:18px}
.player #provider-dialog input{font-size:16px;background:#321d2c;color:#fff;border-color:#674355;width:100%}
.player #provider-dialog input::placeholder{color:#b7a3b0}
.player #provider-dialog .provider-note{font-size:14px;line-height:1.6;color:#c6b1c0;margin-top:18px}
.player #provider-error{color:#ffb6be;font-size:16px}
.player #provider-dialog button{font-size:16px}
.player #provider-dialog button:disabled{opacity:.6;cursor:wait}
/* Cinema player */
.cinema-player{background:radial-gradient(ellipse at 78% 45%,#68241566,transparent 56%),radial-gradient(ellipse at 22% 0%,#211439,transparent 65%),#08080c;background-attachment:fixed;font-family:'DM Sans',Arial,sans-serif;min-height:100vh}
.cinema-player .player-header{padding:28px 5%;gap:20px;border-bottom:1px solid #ffffff0b}
.cinema-player .player-logo{font-size:44px;color:#ff454e;gap:13px}.cinema-player .player-logo>span:last-child{font-size:21px;letter-spacing:2px}.cinema-player .player-logo b{display:block;margin:3px 0;color:#ff6265;font-size:13px;letter-spacing:6px}.cinema-player .player-logo small{display:block;font-size:8px;letter-spacing:1.5px;color:#8d8597;margin-top:7px}.cinema-mark{display:grid;place-items:center;border:2px solid #ff535b;border-radius:13px;width:56px;height:56px;font-size:27px;box-shadow:0 0 35px #ff20272b}
.cinema-player .clock{margin-left:auto}.cinema-player .clock strong{font-size:24px}.cinema-player .clock span{color:#aaa1b5;font-size:13px}.cinema-player .player-actions{gap:15px}.cinema-player .player-actions button,.cinema-player .player-actions a{font-size:23px;color:#c7bccd}.cinema-player .logout{background:transparent;color:#b7a9bd;border:1px solid #ffffff20;padding:9px 12px;border-radius:6px;font-size:12px}
.cinema-player .player-main{max-width:1480px;padding:30px 5%}.home-intro{margin:14px 0 32px}.cinema-player .home-intro .eyebrow{font-size:11px;letter-spacing:3px;color:#df8f93;margin-bottom:12px}.home-intro h1{font-size:clamp(28px,3vw,42px);color:#fff;font-weight:500;letter-spacing:-1px;margin-bottom:10px}.home-intro>p:last-child{font-size:14px;color:#a89caf}
.cinema-tiles{display:grid;grid-template-columns:2fr 1fr 1fr 1.65fr;grid-template-rows:145px 145px;gap:16px}.cinema-tile{position:relative;background:linear-gradient(135deg,#631225e8,#8b1915a6);border:1px solid #b4494b44;border-radius:9px;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;transition:background .18s,transform .18s,border-color .18s;min-width:0}.cinema-tile:hover,.cinema-tile:focus-visible{background:linear-gradient(135deg,#901a35,#ae2720);transform:translateY(-3px);border-color:#fff;outline:2px solid #fff;outline-offset:3px}.cinema-tile>svg{width:51px;height:51px}.cinema-tile strong{font-size:17px;font-weight:500}.cinema-live{grid-row:1/3;grid-column:1;background:linear-gradient(145deg,#4b112d,#790b13);border-color:#e4b0b4;gap:16px}.cinema-live .tile-icon{margin:0;line-height:1}.cinema-live svg{width:110px;height:110px}.cinema-live strong{font-size:28px}.cinema-live small{font-size:12px;color:#cba5b0}.tile-corner{position:absolute;top:18px;left:20px;font-size:9px;letter-spacing:2px;color:#f0b0b7;display:flex;align-items:center;gap:8px}.tile-corner i{width:5px;height:5px;border-radius:100%;background:#ff5261;box-shadow:0 0 10px #ff5261}
.cinema-tiles>[data-category=Movies]{grid-column:2;grid-row:1}.cinema-tiles>[data-category=Series]{grid-column:3;grid-row:1}#home-account{grid-column:2;grid-row:2}#change-server{grid-column:3;grid-row:2}.cinema-utilities{grid-column:4;grid-row:1/3;display:grid;grid-template-rows:repeat(3,1fr);gap:16px}.cinema-utilities button{border:1px solid #a331386b;border-radius:8px;background:linear-gradient(120deg,#3e203342,#5f28163d);color:#eadde3;display:flex;align-items:center;gap:15px;padding:15px 20px;font-size:16px;text-align:left}.cinema-utilities button>span:first-child{font-size:26px;width:28px}.cinema-utilities button>span:last-child{margin-left:auto;color:#bd7c82}.cinema-utilities button:hover,.cinema-utilities button:focus-visible{background:#6c232b;outline:2px solid #ecc9cc;outline-offset:2px}.home-shortcuts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.home-shortcuts button{background:#ffffff06;border:1px solid #ffffff16;color:#b9abbf;border-radius:5px;padding:10px 14px;font-size:12px}.home-shortcuts button:hover{color:white;border-color:#ca6774}.home-shortcuts>span{margin-left:auto;font-size:11px;color:#978c9f}.cinema-player footer{font-size:11px;color:#87798f;border-color:#ffffff0e;margin-top:34px}.cinema-player footer a{color:#bb9da9}
.cinema-player .watch-layout{display:grid;grid-template-columns:170px minmax(210px,280px) minmax(0,1fr);gap:0;border:1px solid #ffffff18;border-radius:8px;overflow:hidden;background:#0b0a10c9}.group-sidebar{border-right:1px solid #ffffff14;background:#14101999;min-width:0}.group-sidebar .channel-list-heading{font-size:11px;letter-spacing:1.5px;color:#e29ba0;padding:19px 14px}.group-sidebar button{width:100%;background:transparent;color:#b8aebb;padding:14px 13px;text-align:left;border-bottom:1px solid #ffffff08;display:flex;align-items:center;gap:8px;font-size:13px}.group-sidebar button span{flex:1;overflow-wrap:anywhere}.group-sidebar button small{color:#887f91;font-size:10px}.group-sidebar button[aria-pressed=true]{background:#701d32;color:#fff;box-shadow:inset 3px 0 #ff606e}.cinema-player .channel-sidebar{border:0;border-right:1px solid #ffffff14;border-radius:0;background:#100f15b5}.cinema-player .channel-list-heading{font-size:11px;color:#c4a9b7;letter-spacing:1px}.cinema-player #channel-list{max-height:65vh;scrollbar-color:#663243 #100f15}.cinema-player .channel-row{padding:2px 7px}.cinema-player .channel-choice{padding:9px 3px;gap:7px}.cinema-player .channel-text strong{font-size:12px;line-height:1.5}.cinema-player .channel-text small{font-size:10px;color:#8e7e96}.cinema-player .channel-number{font-size:10px;color:#88708b;min-width:20px}.cinema-player .channel-play{font-size:14px;color:#b26c81}.cinema-player .channel-favorite{padding:8px 4px}.cinema-player .channel-row.is-playing{background:#7c213b77;box-shadow:inset 3px 0 #ff5c70}.cinema-player .channel-row.is-playing .channel-text strong{color:#fff}.cinema-player #video-area{border:0;border-radius:0;background:#0d0b12;display:flex;flex-direction:column}.cinema-player .tv-screen{order:0;border-bottom:2px solid #a02d43}.cinema-player .now-playing{order:1;padding:19px}.cinema-player .now-playing .eyebrow{color:#b5687b;font-size:10px}.cinema-player .now-playing #playing-title{font-size:17px}.cinema-player #playback-state{font-size:11px;color:#c5a3b1}.cinema-player .screen-toolbar{order:2;flex-direction:column;align-items:stretch;padding:0 19px 20px;gap:10px}.cinema-player .screen-toolbar #playback-message{font-size:12px;color:#97879f}.cinema-player .picture-controls{flex-wrap:wrap;justify-content:flex-start}.cinema-player .picture-controls label{font-size:11px;color:#ad9cae}.cinema-player .picture-controls select{font-size:12px;background:#251921;border-color:#51303e;color:#e7d4df;padding:7px}.cinema-player .screen-toolbar button{font-size:12px}.cinema-player .library-heading h1{font-size:25px}.cinema-player .library-heading input{font-size:13px}.cinema-player .library-heading button{font-size:13px;background:#331622}.cinema-player dialog{background:#21131e;border:1px solid #784050;color:#e3ccda}.cinema-player dialog select{width:100%;margin:12px 0 20px;background:#321d2c;color:#fff;border-color:#674355}.cinema-player #close-info{background:#72233a;color:#fff}
@media(max-width:1100px){.cinema-tiles{grid-template-rows:125px 125px;gap:12px}.cinema-utilities{gap:12px}.cinema-utilities button{padding:12px;font-size:14px}.cinema-player .watch-layout{grid-template-columns:130px 210px minmax(0,1fr)}.cinema-player .player-header{padding:20px 4%;flex-wrap:wrap}.cinema-player .clock{display:none}}
@media(max-width:760px){.cinema-player .player-main{padding:20px 4%}.cinema-tiles{grid-template-columns:1.5fr 1fr 1fr;grid-template-rows:120px 120px auto}.cinema-utilities{grid-column:1/4;grid-row:3;display:flex;gap:10px}.cinema-utilities button{flex:1;font-size:12px;padding:10px;gap:6px}.cinema-utilities button>span:first-child{font-size:21px;width:auto}.cinema-utilities button>span:last-child{display:none}.cinema-live svg{width:80px;height:80px}.cinema-live strong{font-size:23px}.cinema-tile strong{font-size:14px}.home-intro{margin:5px 0 22px}.cinema-player .watch-layout{grid-template-columns:minmax(170px, .8fr) minmax(0,1.5fr)}.group-sidebar{grid-column:1/-1;overflow:auto;border-right:0;border-bottom:1px solid #ffffff14}.group-sidebar .channel-list-heading{display:none}#player-groups{display:flex}.group-sidebar button{width:auto;flex-shrink:0;gap:10px}.cinema-player .watch-layout #video-area{width:auto;order:0}.cinema-player .channel-sidebar{width:auto;order:0}.cinema-player .now-playing{padding:12px}.cinema-player .screen-toolbar{padding:0 12px 14px}.cinema-player .player-logo>span:last-child{font-size:16px}.cinema-player .player-logo small{display:none}.cinema-player .player-actions{gap:12px}.cinema-player .logout{font-size:10px}.cinema-player .home-shortcuts>span{display:none}}
@media(max-width:480px){.cinema-player .watch-layout{display:flex;flex-direction:column}.group-sidebar{order:-1}.cinema-player .watch-layout #video-area{order:0;width:100%}.cinema-player .channel-sidebar{order:1;width:100%}.cinema-player .cinema-mark{width:40px;height:40px;font-size:20px}.cinema-player .player-actions{margin-left:auto}.cinema-player .player-header>.logout{display:none}.cinema-live small{display:none}.cinema-tiles{grid-template-rows:110px 110px auto}.cinema-utilities button{font-size:11px}.cinema-live svg{width:65px;height:65px}.cinema-tile>svg{width:36px;height:36px}.tile-corner{font-size:7px;left:10px;top:12px}.cinema-player footer{font-size:10px}.cinema-player .player-logo b{font-size:10px}.cinema-player .library-heading input{width:100%}}

.profile-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.player .profile-tools button{background:#3b2535;border:1px solid #80516c;color:#f0dce9;font-size:15px;border-radius:6px;padding:9px 12px}
.profile-tools button:disabled{opacity:.45;cursor:default}
#login-playlists select{width:100%;background:#321d2c;color:#fff;border-color:#80516c;font-size:16px;margin-top:8px}
.profile-note{font-size:14px;color:#c6b1c0;line-height:1.6}
.player #provider-dialog #saved-provider{font-size:16px;padding:12px;margin:8px 0 0}
.auth-card #login-playlists label{font-size:16px}
/* Player activation and assigned playlists */
#activation-gate{color:#eadde7;padding:20px 0}
#activation-gate .activation-card{max-width:650px;margin:auto}
#activation-gate h1{color:white;font-size:28px}
#activation-gate code{display:block;padding:12px;background:#100b14;border:1px solid #784050;border-radius:7px;font-size:16px;color:#f3d6e8;overflow-wrap:anywhere;user-select:all;margin-top:7px}
#activation-gate label{font-size:16px}
#activation-gate a{display:block;color:#dab8ed;margin-top:20px;text-decoration:underline;font-size:16px}
#activation-status{font-size:16px;color:#ffd18c;margin:20px 0}
body.activation-locked{display:block!important;background:#170e1b!important;min-height:100vh}
body.activation-locked>:not(#activation-gate){display:none!important}
body.activation-locked #activation-gate{display:block;padding:40px 24px}
.activation-locked .activation-card{padding:28px;border:1px solid #784050;border-radius:14px;background:#21131e}
.assigned-playlist{display:flex;align-items:center;gap:8px;border-bottom:1px solid #44505a;padding:12px 0;font-size:15px}
.assigned-playlist>div{flex:1;min-width:0}.assigned-playlist small{display:block;overflow-wrap:anywhere;color:#9db0bf;font-size:14px}
.assigned-playlist button{padding:8px;background:#2c4350;color:#e2edf2;border-radius:4px}
#info-message>.primary,#info-message>.secondary{margin:10px 10px 0 0;font-size:16px}
.reseller-panel .customer-actions{flex-wrap:wrap;gap:8px;white-space:normal}
.reseller-panel .device-id-cell{max-width:210px;overflow-wrap:anywhere;font-size:14px;font-family:monospace}
.reseller-panel .assigned-playlist{color:#42516a}.reseller-panel .assigned-playlist small{color:#61718a}
.reseller-panel .page-heading .muted{line-height:1.7;max-width:850px}
.reseller-panel .dialog-actions{flex-wrap:wrap}
@media(max-width:760px){.reseller-panel th,.reseller-panel td{padding:14px 12px}.reseller-panel .table-wrap{overflow-x:auto}.reseller-panel .table-wrap table{min-width:680px}.reseller-panel .assigned-playlist{flex-wrap:wrap}.reseller-panel .assigned-playlist>div{flex-basis:100%}}
.cinema-player .load-more-channels{display:block;width:100%;padding:15px;background:#321722;color:#e6bac9;border-top:1px solid #704052;font-size:12px}.cinema-player .load-more-channels:hover{background:#582539}

.cinema-player #player-groups{max-height:65vh;overflow:auto;scrollbar-width:thin;scrollbar-color:#704052 #141019}@media(max-width:760px){.cinema-player #player-groups{max-height:none;overflow-x:auto}}



.player-category-dropdown{display:none}.player-category-dropdown select{background:#2c1925;color:#f5dfeb;border-color:#714152;max-width:240px;width:100%;padding:9px;font-size:12px}.cinema-player.android-app .player-category-dropdown{display:block;margin:0;color:#bca4b7;font-size:10px}.cinema-player.android-app .group-sidebar{display:none}.cinema-player.android-app .watch-layout{grid-template-columns:minmax(190px,280px) minmax(0,1fr)}@media(max-width:760px){.cinema-player .player-category-dropdown{display:block;margin:0;color:#bca4b7;font-size:10px}.cinema-player .group-sidebar{display:none}.player-category-dropdown select{max-width:200px}}
/* Compact phone layout; retain readable touch targets and scrollable forms. */
@media(max-width:760px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .player{min-width:0;overflow-x:hidden}
 .auth-page{padding:12px;min-height:100dvh}
 .auth-card{width:100%;max-width:460px;margin:12px auto;padding:20px 16px}
 .auth-card h1{font-size:24px}.auth-card label{margin-top:12px}
 .auth-card input,.auth-card select,.auth-card .primary{font-size:16px;padding:10px;min-height:42px}
 .auth-card .login-note,.auth-card .profile-note{font-size:12px;line-height:1.45}
 .player dialog,.player #provider-dialog{box-sizing:border-box;width:calc(100% - 20px);max-width:460px;max-height:calc(100dvh - 20px);padding:18px 14px;overflow:auto;overflow-wrap:anywhere}
 .player #provider-dialog h2{font-size:21px;margin:0 0 12px}
 .player #provider-dialog label{margin-top:12px;font-size:14px}
 .player #provider-dialog input,.player #provider-dialog select{font-size:16px;padding:10px;min-width:0}
 .player #provider-dialog .provider-note{font-size:12px;line-height:1.45;margin-top:12px}
 .player .dialog-actions,.player .profile-tools{display:flex;flex-wrap:wrap;gap:6px}
 .player #provider-dialog button{font-size:14px;min-height:40px;padding:9px 11px}
 .cinema-player .player-header{padding:12px;gap:10px}
 .cinema-player .player-main{padding:14px 12px}
 .cinema-player .home-intro h1{font-size:27px}
 .cinema-player .library-heading{flex-wrap:wrap;gap:10px}
 .cinema-player .library-heading h1{font-size:21px}
 .cinema-player .tv-screen{min-height:0;aspect-ratio:16/9;width:100%}
 .cinema-player .tv-screen video{width:100%;height:100%;max-height:65dvh}
 .cinema-player .picture-controls{gap:7px}
}
@media(max-width:480px){
 .cinema-player.android-app .watch-layout{display:flex;flex-direction:column}
 .cinema-player .cinema-tiles{gap:8px;grid-template-rows:96px 96px auto}
 .cinema-player .cinema-tile{padding:12px 8px;gap:8px}
 .cinema-player .cinema-live strong{font-size:20px}
 .cinema-player .channel-sidebar{max-height:38dvh;overflow:auto}
 .cinema-player #channel-list{max-height:none}
 .cinema-player .home-shortcuts{flex-wrap:wrap;gap:6px}
}
#player-startup-error{background:#172535;border:1px solid #36506a;border-radius:12px;padding:28px;margin-bottom:22px;color:#d8e5f4}#player-startup-error p{line-height:1.6;color:#9fb2c9}#player-startup-error button{margin:8px 10px 0 0}
/* Android landscape player: keep category controls and picture in one viewport. */
@media (orientation:landscape){
html:has(.android-app #library:not([hidden])){height:100%;overflow:hidden}
.cinema-player.android-app:has(#library:not([hidden])){height:100dvh;min-height:0;overflow:hidden}
.cinema-player.android-app:has(#library:not([hidden])) .player-header,.cinema-player.android-app:has(#library:not([hidden])) footer{display:none}
.cinema-player.android-app:has(#library:not([hidden])) .player-main{height:100dvh;max-width:none;margin:0;padding:6px 8px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.cinema-player.android-app #library:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.cinema-player.android-app .library-heading{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(130px,220px) minmax(0,1fr);align-items:center;gap:9px;margin:0 0 6px;padding:0;min-height:40px}
.cinema-player.android-app .library-heading h1{display:none}
.cinema-player.android-app .library-heading>button{padding:8px 11px;font-size:11px;white-space:nowrap}
.cinema-player.android-app .player-category-dropdown{display:block!important;min-width:0;margin:0;font-size:9px;line-height:1.2}
.cinema-player.android-app .player-category-dropdown select{display:block;width:100%;max-width:none;margin:2px 0 0;padding:6px 8px;min-height:29px;font-size:11px}
.cinema-player.android-app .library-heading input{width:100%;min-width:0;padding:8px 10px;font-size:11px;margin:0}
.cinema-player.android-app .watch-layout{display:grid!important;grid-template-columns:minmax(170px,27%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0;flex:1;min-height:0;overflow:hidden}
.cinema-player.android-app .group-sidebar{display:none!important}
.cinema-player.android-app .channel-sidebar{display:flex;flex-direction:column;min-height:0;max-height:none;width:auto!important;overflow:hidden;order:0}
.cinema-player.android-app .channel-list-heading{flex:0 0 auto;padding:9px 10px;font-size:9px}
.cinema-player.android-app #channel-list{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.cinema-player.android-app .channel-row{padding:2px 5px;min-height:49px}
.cinema-player.android-app .channel-choice{padding:7px 2px;gap:6px;min-width:0}
.cinema-player.android-app .channel-text strong{font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cinema-player.android-app .channel-text small{font-size:8px;margin-top:2px}
.cinema-player.android-app .channel-number{font-size:9px;min-width:16px}
.cinema-player.android-app .channel-favorite{font-size:15px;padding:7px 3px}
.cinema-player.android-app #video-area{display:flex;flex-direction:column;min-width:0;min-height:0;max-height:100%;width:auto!important;overflow:hidden;order:0}
.cinema-player.android-app .tv-screen{flex:1 1 0;min-height:0;height:auto;width:100%;aspect-ratio:auto;order:0;overflow:hidden}
.cinema-player.android-app .tv-screen video,.cinema-player.android-app .tv-screen iframe{width:100%;height:100%;max-height:none;object-fit:contain}
.cinema-player.android-app .now-playing{order:1;flex:0 0 auto;padding:5px 9px;gap:8px;min-width:0;min-height:28px}
.cinema-player.android-app .now-playing>div:first-child{min-width:0;flex:1}
.cinema-player.android-app .now-playing .eyebrow{display:none}
.cinema-player.android-app .now-playing #playing-title{font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cinema-player.android-app .screen-badges{flex-shrink:0;max-width:45%;gap:4px}
.cinema-player.android-app #resolution-badge,.cinema-player.android-app #playback-state{font-size:8px;padding:4px 6px}
.cinema-player.android-app .screen-toolbar{order:2;flex:0 0 auto;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;padding:3px 8px 6px;gap:6px;min-height:34px}
.cinema-player.android-app .screen-toolbar #playback-message:empty{display:none}
.cinema-player.android-app .screen-toolbar #playback-message{font-size:9px;min-width:0;flex:1;max-height:28px;overflow:auto;line-height:1.3}
.cinema-player.android-app .picture-controls{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}
.cinema-player.android-app .picture-controls label{font-size:8px;margin:0}
.cinema-player.android-app .picture-controls select{margin-top:2px;padding:3px 5px;font-size:9px;max-width:112px;min-height:24px}
.cinema-player.android-app .screen-toolbar button{padding:6px 7px;font-size:9px;white-space:nowrap}
.cinema-player.android-app #screen-placeholder{padding:8px}
.cinema-player.android-app #screen-placeholder>span{font-size:34px}
.cinema-player.android-app #screen-placeholder h3{font-size:15px;margin:6px 0}
.cinema-player.android-app #screen-placeholder p{font-size:10px}
}
@media(orientation:portrait){.cinema-player.android-app .player-category-dropdown{display:block!important;width:100%;margin:0}.cinema-player.android-app .player-category-dropdown select{max-width:none;width:100%}.cinema-player.android-app .watch-layout #video-area{order:0}.cinema-player.android-app .watch-layout .channel-sidebar{order:1}.cinema-player.android-app .tv-screen{aspect-ratio:16/9;min-height:0}.cinema-player.android-app .tv-screen video{object-fit:contain}}
.danger,.secondary.danger,.primary.danger,.admin-pro .secondary.danger,.admin-pro .customer-actions .secondary.danger{background:#c0392b;color:#fff;border-color:#c0392b;box-shadow:none}.danger:hover{background:#a93226}
#activation-gate .playlist-login{background:linear-gradient(90deg,#ef0f7622,#ff6a0022);border:1px solid #ff6a0066;border-radius:10px;padding:14px 16px;margin:12px 0}
#activation-gate .playlist-login p{margin:0 0 6px}#activation-gate .playlist-login strong{color:#fff;overflow-wrap:anywhere}
#activation-gate .playlist-login code{font-size:22px;letter-spacing:.08em}
#activation-gate .reseller-activation{margin:20px 0 4px;color:#b9a3b5;font-size:14px;text-transform:uppercase;letter-spacing:.06em}
/* Activation screen on TV boxes: codes side by side, actions on one row, compact on short screens. */
@media (min-width:640px){
#activation-gate .playlist-login{display:grid;grid-template-columns:1.5fr 1fr;gap:4px 16px;align-items:end}
#activation-gate .playlist-login p{grid-column:1/-1}
#activation-gate .playlist-login label{margin:0}
#activation-gate #activation-copy-mac,#activation-gate #activation-status,#activation-gate #activation-check,#activation-gate .activation-card>a{display:inline-block;vertical-align:middle;margin:6px 14px 0 0}
}
@media (max-height:820px) and (orientation:landscape){
body.activation-locked #activation-gate{padding:10px 16px}
.activation-locked .activation-card{padding:14px 22px}
#activation-gate .eyebrow{display:none}
#activation-gate h1{font-size:22px;margin:0 0 4px}
#activation-gate #activation-description{font-size:14px;line-height:1.4;margin:0}
#activation-gate .playlist-login{padding:10px 14px;margin:8px 0}
#activation-gate .playlist-login code{font-size:20px;padding:6px 10px;margin-top:3px}
#activation-gate label{font-size:14px}
#activation-status{margin:6px 14px 0 0}
#activation-gate .activation-card>a{font-size:14px}
}
@media (min-width:640px){
body.activation-locked #activation-gate{min-height:100vh;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
body.activation-locked .activation-card{width:min(860px,100%);max-width:none;box-sizing:border-box}
#activation-gate .playlist-login code{font-size:26px;letter-spacing:.1em}
}

#playlist-chooser h1{margin:0 0 6px}#playlist-chooser p{margin:0 0 12px}
#chooser-list{display:grid;gap:10px}
.chooser-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;padding:14px 18px;border-radius:10px;border:1px solid #ffffff33;background:#ffffff14;color:#fff;font:inherit;cursor:pointer}
.chooser-item strong{font-size:20px}.chooser-item small{color:#d8c9e6;font-size:14px}
.chooser-item:hover,.chooser-item:focus{outline:3px solid #ff6a00;outline-offset:1px;background:linear-gradient(90deg,#ef0f7655,#ff6a0055)}
.chooser-item:disabled{opacity:.6}
.chooser-codes{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;background:#00000033;border-radius:10px;padding:12px 16px;margin:0 0 10px}
.chooser-codes dt{color:#d8c9e6}.chooser-codes dd{margin:0;font:600 22px/1.3 Consolas,monospace;letter-spacing:.08em;color:#fff}
#chooser-error{color:#ffd18c;margin-top:10px}
@media (max-height:820px) and (orientation:landscape){.auth-page .auth-card{padding:18px 26px}#playlist-chooser h1{font-size:24px}.chooser-item{padding:10px 16px}}
/* TV boxes (short landscape screens): the home screen fits without scrolling. */
@media (orientation:landscape) and (max-height:620px){
.cinema-player .player-header{padding:6px 16px!important;min-height:0!important;gap:12px;flex-wrap:nowrap}
.cinema-player .player-logo{gap:8px}
.cinema-player .player-logo .cinema-mark{width:34px;height:34px;flex:none}
.cinema-player .player-logo b{font-size:15px;line-height:1.1}
.cinema-player .player-logo small,.cinema-player .clock{display:none}
.cinema-player .player-actions{gap:8px}
.cinema-player .provider-connect{padding:6px 12px;font-size:13px}
.cinema-player .logout{padding:5px 10px;font-size:12px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cinema-player .player-main{padding-top:8px!important;padding-bottom:8px!important}
.cinema-player #home .home-intro,.cinema-player:has(#library[hidden]) footer{display:none}
.cinema-player .cinema-tiles{height:calc(100vh - 130px);min-height:170px;grid-template-rows:repeat(2,minmax(0,1fr))!important;margin-top:0}
.cinema-player .cinema-tile{min-height:0!important;height:auto!important;padding:8px!important;gap:4px}
.cinema-player .cinema-tile svg{width:clamp(22px,9vh,46px);height:clamp(22px,9vh,46px)}
.cinema-player .cinema-live .tile-icon,.cinema-player .cinema-live .tile-icon svg{width:clamp(44px,20vh,96px);height:clamp(44px,20vh,96px)}
.cinema-player .cinema-tile strong{font-size:clamp(13px,4vh,20px)}
.cinema-player .cinema-tile small{font-size:12px}
.cinema-player .cinema-utilities{grid-row:1/-1;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;min-height:0}
.cinema-player .cinema-utilities button{min-height:0!important;height:auto!important;padding:6px 12px!important;font-size:14px}
.cinema-player .home-shortcuts{margin-top:8px!important;gap:8px}
.cinema-player .home-shortcuts button{padding:6px 12px;font-size:13px}
}
/* Landscape screens (TV boxes, PCs): categories get their own column beside the channels. */
@media (orientation:landscape) and (min-width:600px){
.cinema-player .watch-layout,.cinema-player.android-app .watch-layout{display:grid!important;grid-template-columns:minmax(140px,19%) minmax(180px,25%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
.cinema-player .group-sidebar,.cinema-player.android-app .group-sidebar{display:flex!important;flex-direction:column;min-height:0;overflow:hidden;order:0!important;grid-column:auto!important;border-right:1px solid #ffffff14;border-bottom:0}
.cinema-player .group-sidebar .channel-list-heading{display:block}
.cinema-player #player-groups,.cinema-player.android-app #player-groups{display:flex!important;flex-direction:column;flex:1;min-height:0;max-height:none!important;overflow-y:auto;overflow-x:hidden}
.cinema-player .group-sidebar button{width:100%;flex-shrink:0}
.cinema-player.android-app .group-sidebar button{padding:10px 10px;font-size:12px}
.cinema-player.android-app .group-sidebar .channel-list-heading{padding:9px 10px;font-size:9px}
.cinema-player .player-category-dropdown,.cinema-player.android-app .player-category-dropdown{display:none!important}
.cinema-player.android-app .library-heading{grid-template-columns:auto minmax(0,1fr)!important}
}
@media (orientation:landscape) and (min-width:600px){
.cinema-player.android-app .watch-layout{align-items:stretch!important}
.cinema-player.android-app .watch-layout>*{min-height:0!important;height:auto!important;max-height:100%!important}
}
/* Android app: the built-in player and the remote replace the bar under the video, so the picture takes the space. */
.cinema-player.android-app #video-area .now-playing,.cinema-player.android-app #video-area .screen-toolbar{display:none!important}
.cinema-player.android-app #video-area .tv-screen{flex:1 1 auto}
