/* Phone layout: a single document scroll, native filters, and thumb navigation. */
.mobile-nav,.mobile-category,.mobile-series-back,.mobile-more{display:none}
@media(max-width:760px){
 html{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;scroll-padding-bottom:90px}
 body{height:auto;min-height:100dvh;overflow:visible;background:#0b1018;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 .app-view{display:block;height:auto;min-height:calc(100dvh - 72px);max-width:100%;overflow:visible;background:#0b1018}
 .app-header{position:relative;display:flex;align-items:center;min-height:58px;padding:10px 16px;gap:10px;z-index:10;box-shadow:none}
 .app-name{font-size:14px;font-weight:650;min-width:0;width:100%;gap:10px}.header-logo{width:30px;height:30px;flex-shrink:0}#headerBrandName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header .header-status{display:none}
 .app-main,.app-main.sidebar-collapsed{display:block;height:auto;min-height:0;overflow:visible;max-width:100%}
 .tv-sidebar,.sidebar-collapsed .tv-sidebar{display:none}
 .home-view,.detail-view{height:auto;min-height:0;overflow:visible;width:100%;max-width:100%;padding:18px 14px 24px;gap:16px}
 .home-view{display:flex}.home-welcome{gap:10px}.home-welcome h1{font-size:22px}.home-welcome p{font-size:13px}.home-welcome>button{display:none}
 .home-search input,.section-tools input{font-size:16px;min-height:46px;border-radius:10px}.home-search{width:100%;margin:0}
 .home-brand{min-height:0;padding:22px;gap:16px;border-radius:14px}.home-brand-logo{width:54px;height:54px}.home-brand-copy strong{font-size:22px;letter-spacing:-.5px}.home-brand-copy .home-eyebrow{font-size:9px!important;letter-spacing:1.2px}.home-brand-copy .home-tagline{display:none}.home-brand-copy .home-hero-button{min-height:44px;margin-top:4px;font-size:13px}.home-brand-copy span{font-size:12px}.home-brand::after{width:260px;height:260px;right:-170px;top:-80px}
 .home-section-heading,.home-saved-head h2{font-size:17px}.home-tiles{gap:10px}.home-tile,.tile-live{min-height:84px;padding:16px 20px;grid-template-columns:36px minmax(0,1fr);column-gap:14px;border-radius:12px}.home-tile .tile-symbol{transform:scale(.45);margin-left:-10px}.home-tile small{font-size:12px}.home-favorites{gap:10px}.home-favorite{padding:14px;min-height:76px}.home-saved{gap:10px}.home-footer{padding:14px 0;gap:10px;font-size:11px}.home-footer span{max-width:100%;overflow-wrap:anywhere}
 .mobile-nav{position:fixed;inset:auto 0 0;z-index:35;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;height:calc(66px + env(safe-area-inset-bottom,0px));padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));background:#111923;border-top:1px solid #2a3544;box-shadow:0 -8px 30px #0003}
 .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:10px;background:transparent;color:#abb7c5;font:500 11px/1.1 system-ui;min-width:0;min-height:52px;padding:5px 2px;touch-action:manipulation}.mobile-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile-nav button[aria-current=page]{background:#173832;color:#6ee2ca}
 .detail-view,.detail-view[data-section=movies]:not(.ui-has-media),.detail-view[data-section=series]:not(.ui-has-media){display:flex;flex-direction:column}
 .section-bar{display:grid;grid-template-columns:auto minmax(0,1fr);padding:0;gap:12px;flex-shrink:0;width:100%}.section-bar h2{font-size:21px;letter-spacing:-.5px;font-weight:650;overflow-wrap:anywhere}.back-button{min-height:40px;padding:0 13px;font-size:12px}.section-tools{width:100%;grid-column:1/-1}.section-tools input{width:100%;padding:0 14px}
 .live-browser,.vod-browser,.my-list-browser,.recordings-browser{display:flex;flex-direction:column;gap:14px;min-height:0;height:auto;max-height:none;overflow:visible;width:100%}
 .list-panel,.categories-panel,.channels-panel,.poster-panel,.epg-panel,.my-list-panel,.recordings-panel{min-height:0;height:auto;max-height:none;overflow:visible;flex:none;border-radius:12px}
 .categories-panel{border:0;background:transparent;box-shadow:none}.categories-panel>.panel-title,.categories-panel>.category-list{display:none}
 .mobile-category{display:flex;flex-direction:column;gap:6px;width:100%;font-size:11px;font-weight:500;color:var(--muted)}.mobile-category select{width:100%;min-width:0;min-height:46px;padding:10px 36px 10px 14px;border:1px solid #2c3c4c;border-radius:10px;background:#15212d;color:#e6edf5;font:500 16px system-ui;text-overflow:ellipsis}.mobile-series-back{display:block;text-align:left;min-height:44px;padding:8px 0;margin-bottom:8px;border:0;background:transparent;color:var(--green);font-size:14px;font-weight:600}
 .poster-panel{border:0;background:transparent}.poster-panel>.panel-title{border:0;background:transparent;padding:0 0 12px;min-height:0;flex-wrap:nowrap;gap:10px}.poster-panel>.panel-title>span:first-child{font-size:12px;color:var(--muted);font-weight:500;text-transform:capitalize;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-actions{gap:8px;flex-shrink:0}.panel-actions select{min-height:44px;max-width:190px;width:100%;font-size:13px;padding:8px 24px 8px 10px;background:#15212d;white-space:nowrap;text-overflow:ellipsis}.panel-actions>span{font-size:12px;color:var(--muted)}
 .category-list,.channel-list,.poster-grid,.epg-list,.my-list-sections,.recordings-list{height:auto;min-height:0;max-height:none;overflow:visible;flex:none}
 .poster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-items:start;align-content:start;gap:20px 12px;padding:0;width:100%}
 .poster-feature{display:none}.poster-card{display:flex;flex-direction:column;gap:7px;min-height:0;height:auto;align-self:start;background:transparent;border:0;border-radius:0;padding:0;overflow:visible}.poster-card:hover,.poster-card.active{transform:none;background:transparent;box-shadow:none}.poster-art{width:100%;height:auto;min-height:0;aspect-ratio:2/3;border-radius:10px;display:block;position:relative;overflow:hidden}.poster-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.poster-art:not(:has(img)){display:grid;place-items:center;font-size:24px}.season-art,.episode-art{aspect-ratio:16/10}.poster-info{min-width:0}.poster-title{font-size:14px;font-weight:600;line-height:1.35;min-height:0;padding:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.poster-meta{font-size:11px;line-height:1.4;color:#a9b6c6;margin-top:4px;padding:0;white-space:pre-line}.poster-actions{align-items:center;gap:8px;min-height:40px}.poster-actions .poster-meta{font-size:12px;color:var(--muted)}.favorite-button.active{background:#18483f;color:#8eead5;border-color:#286c5d}.favorite-button{min-width:44px;min-height:40px;border-radius:8px;font-size:11px}.load-more-row{grid-column:1/-1;min-height:48px;border:1px solid var(--line);border-radius:10px;background:#182a35;color:var(--ink);font-size:14px;margin:0}
 .channel-list{padding:8px}.channel-card{min-height:64px}.channel-card .logo-box{width:42px;height:42px}.channel-card .channel-name{font-size:14px;line-height:1.3}.channel-card .favorite-button{flex-shrink:0}.channels-panel>.panel-title{padding:10px 12px;gap:8px;flex-wrap:nowrap}.channels-panel .panel-actions{max-width:75%}.epg-panel{display:flex}.epg-list{padding:8px}.epg-card{padding:12px}.epg-card strong{font-size:14px}.epg-card p,.epg-card span{font-size:12px;line-height:1.5}.epg-record-button{min-height:40px;font-size:12px}
 .player-dock{position:relative;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0;min-height:0;height:auto;border-radius:12px}.video-frame{width:100%;height:auto;aspect-ratio:16/9;flex-shrink:0}.video-frame>video{position:absolute;inset:0;width:100%;height:100%}.now-row{padding:14px;gap:12px}.now-row h3{font-size:19px;line-height:1.3;margin:5px 0}.now-row p{font-size:12px;margin:0}.label-green{font-size:10px}.playback-actions{display:flex;gap:10px}.playback-actions .compact-button{flex:1 1 0;min-height:44px;padding:8px;font-size:13px}.video-empty strong{font-size:17px}.video-empty span{font-size:12px}.now-actions:has(.playback-actions[hidden]){display:none}
 .mobile-more{width:100%;max-width:100%;max-height:85dvh;inset:auto 0 0;margin:0;padding:22px 18px calc(20px + env(safe-area-inset-bottom,0px));border:1px solid #2d3d4d;border-bottom:0;border-radius:20px 20px 0 0;background:#121c28;color:var(--ink);overflow:auto;box-shadow:0 -16px 80px #0007}.mobile-more[open]{display:block}.mobile-more::backdrop{background:#050910b8;backdrop-filter:blur(5px)}.mobile-more header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.mobile-more h2{margin:0;font-size:21px}.mobile-more-close{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#1b2938;color:var(--ink);font-size:24px}.mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-more-grid button{min-height:60px;border:1px solid #2b3e4e;border-radius:11px;background:#192838;color:#e4edf5;text-align:left;padding:14px;font-size:15px;font-weight:500}
 .modal-layer{padding:12px;z-index:50;align-items:center;overflow:auto}.modal-card,.modal-card.wide,.settings-modal,.media-modal{width:100%;max-width:100%;max-height:calc(100dvh - 24px);height:auto;min-height:0;padding:20px;border-radius:16px;overflow:auto}.modal-head{margin-bottom:18px;gap:12px}.modal-head h2{font-size:22px}.modal-close{min-width:44px;min-height:44px;border-radius:10px}.modal-card input,.modal-card select{font-size:16px!important;min-height:44px}.modal-card input[type=checkbox]{min-height:22px}.settings-shell{display:block;min-height:0}.settings-menu{display:flex;overflow:auto;padding-bottom:10px;border:0;gap:6px}.settings-tab{min-height:44px;font-size:13px;padding:10px 12px}.setting-row{font-size:14px;min-height:64px;display:flex;flex-wrap:wrap;gap:12px;padding:16px 0}.setting-row>span{flex:1 1 145px}.setting-row .setting-actions{max-width:100%;flex-wrap:wrap}.setting-row button{min-height:44px}.media-info-layout{display:flex;flex-direction:column;gap:16px}.media-info-poster{width:120px;max-width:120px;min-height:0;aspect-ratio:2/3;align-self:center}.media-info-body{min-width:0;width:100%}.media-info-plot{font-size:14px;line-height:1.6}.media-info-details{font-size:12px}.media-info-actions{display:flex;flex-wrap:wrap;gap:8px}.media-info-actions button{min-height:44px;flex:1 1 42%;padding:10px;font-size:13px}.trailer-box{margin-top:20px}.trailer-frame{height:auto;aspect-ratio:16/9}.users-list{display:grid;grid-template-columns:minmax(0,1fr)}.user-row button{min-height:44px}.user-row{padding:18px}.modal-actions{gap:8px}.modal-actions button{min-height:44px;padding:10px;font-size:13px}.account-row{overflow-wrap:anywhere}
 .login-view{min-height:calc(100dvh - 72px);padding:80px 16px 24px}.login-box{padding:24px;width:100%}.login-box input,.login-box select{font-size:16px}.list-users-button{right:16px;top:20px;min-height:44px}
 .test-environment-badge{bottom:calc(70px + env(safe-area-inset-bottom,0px));padding:3px 7px;font-size:8px;opacity:.8}
}
@media(min-width:600px) and (max-width:760px){.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.home-tile{display:flex;flex-direction:column;align-items:flex-start}.home-tile .tile-symbol{display:none}}
@media(max-width:359px){.home-brand-logo{display:none}.panel-actions select{max-width:158px}.poster-grid{gap:18px 10px}.poster-meta{font-size:10px}.mobile-nav button{font-size:10px}.section-bar h2{font-size:19px}}
@media(max-width:760px){.modal-layer{grid-template-columns:minmax(0,1fr)}.modal-layer .modal-card{width:100%;min-width:0;max-width:100%}.settings-menu,.settings-shell,.settings-panels{min-width:0;max-width:100%}.poster-card .poster-actions{position:absolute;top:7px;right:7px;min-height:0}.poster-card .poster-actions>span{display:none}.poster-card .poster-actions .favorite-button{min-height:44px;height:44px;min-width:44px}.poster-card{position:relative}}
/* AVM Vibrant / staging design review. Presentation only. */
:root{--ink:#f6f3ff;--muted:#b3b1ce;--line:#ffffff18;--panel:#121327;--panel-solid:#191a33;--panel-soft:#20203c;--green:#c2a1ff;--blue:#a276ff;--blue-soft:#392257;--shadow:0 18px 54px #0004;color-scheme:dark}
html{background:#090b17}body,.app-view{background:#090b17;color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font-family:inherit}button{transition:background .15s,border-color .15s,transform .15s}button:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline-color:#c5acff!important}
.app-header{background:#0e1020;border-color:#ffffff12;min-height:68px;padding:0 32px}.app-view{grid-template-rows:68px minmax(0,1fr)}.app-name{font-size:17px!important;letter-spacing:-.3px!important}.header-logo{border-radius:50%}.header-contact{color:#b6a0e8}.header-action,.refresh-button{background:#191b30;border-color:#ffffff15;border-radius:22px;min-height:38px}.header-action:hover,.refresh-button:hover{background:#30264c}
.tv-sidebar,.sidebar-collapsed .tv-sidebar{background:#0e1020;padding:5px 32px 12px;gap:5px;border-color:#ffffff12}.rail-item,.sidebar-collapsed .rail-item{border-radius:0;min-height:43px;padding:10px 17px;border-bottom:2px solid transparent;color:#b6b5ca}.rail-item.active,.rail-item.active:hover{background:transparent;color:#fff;border-bottom-color:#a86dff}.rail-item:hover{background:#ffffff08;color:#fff}.rail-icon{display:none!important}
.home-view{background:radial-gradient(ellipse at 95% 0,#41216130,transparent 48%);padding:28px clamp(22px,4vw,72px) 44px;gap:24px}.home-welcome{order:0}.home-welcome h1{font-size:26px;letter-spacing:-1px}.home-welcome p{color:var(--muted)}.home-search{order:1}.home-search input,.section-tools input{border:1px solid #ffffff1b;background:#16172c;border-radius:30px;padding-left:20px}.global-search-results{background:#17192c;border:1px solid #534572;box-shadow:0 20px 50px #0009}
.home-brand{order:2;min-height:330px;border:1px solid #aa82ff35;border-radius:22px;background:radial-gradient(ellipse at 90% 80%,#187186 0,transparent 45%),radial-gradient(ellipse at 70% 5%,#773bbb 0,transparent 60%),linear-gradient(115deg,#17132e,#291c4a 60%,#133543);padding:42px;gap:22px;box-shadow:0 16px 50px #0003}.home-brand::after{width:530px;height:530px;right:-140px;top:-210px;border-color:#d4baff2a;box-shadow:0 0 0 80px #d4baff07,0 0 0 160px #d4baff05}.home-brand-logo{width:76px;height:76px;align-self:flex-start;margin-top:10px}.home-brand-copy{position:relative;z-index:2;max-width:570px;gap:12px}.home-brand-copy strong{font-size:15px;letter-spacing:1px;color:#e1d5f6;font-weight:600}.home-brand-copy .design-headline{font-size:clamp(34px,4.2vw,62px);letter-spacing:-2px;line-height:1.05;margin:4px 0 8px;max-width:500px;font-weight:750;color:#fff}.home-eyebrow{color:#dbbfff!important;font-size:10px!important}.home-tagline{font-size:15px;color:#ddd7eb;max-width:380px}.home-brand-copy .home-hero-button{background:linear-gradient(110deg,#913aff,#b24bfa);color:white;border-radius:10px;font-size:14px;min-height:46px;padding:0 25px;box-shadow:0 8px 28px #8c36fa33}
.design-hero-art{position:absolute;inset:0 0 0 48%;z-index:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;transform:rotate(-8deg) scale(1.2);opacity:.65;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 35%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%)}.design-hero-art img{width:100%;height:100%;max-height:440px;object-fit:cover;border-radius:14px;align-self:center;box-shadow:0 15px 40px #0009}.home-brand:has(.design-hero-art img) .home-brand-copy{max-width:55%}
.home-section-heading{font-size:20px;letter-spacing:-.5px;margin-top:4px}.home-tiles{gap:18px}.home-tile{min-height:130px;border-radius:16px;border-color:#ffffff15;background:linear-gradient(115deg,#1d1e36,#202445);overflow:hidden}.home-tile.tile-live{background:linear-gradient(110deg,#183446,#173443);border-color:#59d9de2b}.home-tile.tile-movies{background:linear-gradient(110deg,#382050,#251b45);border-color:#b28cff2b}.home-tile.tile-series{background:linear-gradient(110deg,#42233a,#352239);border-color:#ed9bcc2b}.home-tile .tile-symbol{color:#ab91ff}.home-tile.tile-live .tile-symbol{color:#59e1d6}.home-tile.tile-series .tile-symbol{color:#ff9ecb}.home-tile small{color:#c3bed6}.home-tile:hover{border-color:#bb94ff;background-color:#322647;transform:translateY(-2px)}
.home-saved-head h2{font-size:21px;letter-spacing:-.5px}.home-favorites{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);grid-template-columns:none;overflow-x:auto;padding:4px 0 16px;gap:16px;scroll-snap-type:x proximity}.home-favorite{display:flex;flex-direction:column;align-items:stretch;padding:0;border:1px solid #ffffff12;background:#14172a;min-width:210px;border-radius:15px;overflow:hidden;scroll-snap-align:start}.home-favorite>.logo-box{width:100%;height:125px;max-width:none;border-radius:0;background:linear-gradient(125deg,#37315a,#18253c);font-size:32px;display:grid;place-items:center}.home-favorite>.logo-box img{max-height:75px;max-width:130px;object-fit:contain}.home-favorite.design-poster>.logo-box{height:180px}.home-favorite.design-poster>.logo-box img{max-width:none;max-height:none;width:100%;height:100%;object-fit:cover}.home-favorite>div:not(.logo-box){padding:16px;min-width:0}.home-favorite strong{font-size:14px}.home-favorite:hover{background:#22213c;border-color:#9568d6}.home-footer{border-color:#ffffff10}
.detail-view{padding:20px 28px 24px;gap:18px;background:radial-gradient(ellipse at 100% 0,#43267016,transparent 45%)}.section-bar h2{font-size:24px;letter-spacing:-.7px}.back-button,.secondary-button,.format-button{border-color:#ffffff1b;background:#202039;border-radius:10px}.back-button:hover,.secondary-button:hover{background:#37294f;border-color:#9e78d1}.player-dock{background:#13172a;border-color:#a57de82d;border-radius:18px}.now-row{background:linear-gradient(135deg,#171c32,#211b36)}.now-row h3{font-size:clamp(21px,2vw,29px);color:#fff}.now-row .label-green{color:#64e5dc}.now-row p{color:#c0bdd4}.video-empty{background:radial-gradient(ellipse at 70% 30%,#30284c,#0d1222 70%)}.video-empty strong{color:#e9defb}.video-empty span{color:#ada5c4}
.list-panel{background:#121629;border-color:#ffffff13;border-radius:14px}.panel-title{background:#171b30;border-color:#ffffff12}.category-button{color:#bcb9d2}.category-button.active,.category-button:hover{background:#422669;color:#e6d6ff}.channel-card,.my-list-row,.recording-row{background:#191d33;border-color:#ffffff10;border-radius:12px}.channel-card:hover,.channel-card.active,.my-list-row:hover{background:#2c2348;border-color:#b587ff70}.channel-card.active{box-shadow:inset 3px 0 #b088ff}.channel-card .logo-box{background:#ffffff08;border-radius:10px}.channel-card strong{font-size:14px}.favorite-button.active{color:#dbc2ff!important;background:#442569!important;border-color:#a476d3!important}
/* Reuse the existing category dropdown and actions; never copy playback handlers. */
@media(min-width:761px){.vod-browser{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px}.vod-browser>.categories-panel{display:flex;align-items:center;gap:16px;background:transparent;border:0;overflow:visible;max-height:none;padding:0 18px}.vod-browser>.categories-panel>.panel-title,.vod-browser>.categories-panel>.category-list{display:none}.vod-browser .mobile-category{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.vod-browser .mobile-category select{width:min(420px,45vw);min-height:42px;background:#1c1c34;color:var(--ink);border:1px solid #8264ac60;border-radius:22px;padding:9px 34px 9px 18px;font:inherit}.vod-browser .mobile-series-back:not([hidden]){display:block;background:transparent;border:0;color:#c7a5ff}.poster-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));padding:12px 18px 24px;gap:26px 20px}.detail-view[data-section=movies]:not(.ui-has-media),.detail-view[data-section=series]:not(.ui-has-media){grid-template-rows:48px minmax(0,1fr)}}
.poster-feature{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;grid-column:1/-1;min-height:240px;max-height:290px;flex:none;padding:32px;border-radius:18px;border:1px solid #cbb0ff30;background-color:#221b38;background-size:cover;background-position:center 30%;overflow:hidden}.poster-feature strong{font-size:clamp(26px,3vw,44px);max-width:75%;line-height:1.1;letter-spacing:-1px;margin:9px 0}.poster-feature .secondary-button{background:#9145ef;color:#fff;border:0;min-height:42px;padding:10px 22px}.poster-feature p{color:#cdc5db}.poster-feature .label-green{color:#caa0ff}.poster-card{gap:10px}.poster-art{border-radius:13px;box-shadow:0 10px 26px #0005;background:linear-gradient(150deg,#352750,#162b42)}.poster-card:hover .poster-art{outline:2px solid #ab72ff;outline-offset:3px}.poster-card .poster-title{font-size:14px;color:#f1edfa}.poster-card .poster-meta{color:#a7a4bd}.poster-actions .favorite-button{background:#141324df;backdrop-filter:blur(8px);border-radius:50%;color:#fff}.poster-panel>.panel-title{padding-top:4px}.panel-actions select{background:#202039;color:#ddd5ec;border-color:#76618d55;border-radius:20px;min-height:38px}.load-more-row{background:#2c2043;border-color:#72508d;color:#eedfff}
/* EPG presentation retains existing schedule times and confirmation dialog. */
body .epg-guide{background:#11172b;border-color:#63517c55;border-radius:18px;margin-top:0;min-height:0;overflow:auto;scrollbar-gutter:stable}.epg-guide-heading h3{letter-spacing:-.7px}.epg-guide-heading p{color:#b2b7ce!important}body .epg-guide input,body .epg-guide select,body .epg-guide-button{background:#20233e;border-color:#6b648955;border-radius:12px}body .epg-guide-row{border-color:#ffffff12;gap:12px;padding:12px 0}body .epg-guide-channel{background:#1a2138;border-radius:12px;padding:14px;justify-content:center}body .epg-guide-program{border-radius:12px;background:#2b2850;border-color:#8f77b533;min-height:108px}body .epg-guide-row:nth-child(3n+2) .epg-guide-program{background:#163749}body .epg-guide-row:nth-child(3n+3) .epg-guide-program{background:#3e2a45}body .epg-guide-program.is-now{background:#17423f!important;border:2px solid #55ddd1;box-shadow:inset 0 3px #55ddd1}body .epg-guide-program-time{color:#c2c2df}body .epg-guide-playing{color:#5fe9db}body .epg-guide-program:hover{filter:brightness(1.18)}body .epg-guide-dialog{background:#18182e;border-color:#8866b5;color:#f4edff;box-shadow:0 20px 70px #000a}body .epg-guide-dialog-actions button:last-child{background:#843cda;color:#fff}.epg-guide-dialog-description{color:#c3b9d6}
.modal-card,.mobile-more{background:#14172b;border-color:#8f74b94a;border-radius:20px}.modal-layer{background:#060813c9}.modal-head h2{font-size:27px;color:#f6f1ff}.settings-tab.active,.settings-tab:hover{background:#3a245b;color:#e7d2ff}.setting-row{border-color:#ffffff12}.modal-card input,.modal-card select{background:#1b2037;color:#f1ebff;border-color:#ffffff20;border-radius:10px}.user-row{background:linear-gradient(145deg,#252344,#181e33);border:1px solid #ffffff15;border-radius:18px}.user-avatar{background:linear-gradient(135deg,#8347d5,#ce6ec6)!important;color:#fff!important;border-radius:50%!important}.user-row:nth-child(2n) .user-avatar{background:linear-gradient(135deg,#176b87,#3cbaa4)!important}.user-row>.secondary-button:first-of-type{background:#9447ed;color:#fff}.media-info-poster{border-radius:15px;box-shadow:0 18px 40px #0008}.media-info-body h3{font-size:30px}.media-info-actions button:first-child{background:#9447ed;color:#fff;border-color:transparent}.media-info-plot{color:#c7c1d8;line-height:1.7}.media-info-details{color:#b7a7d3}
.login-view{background:radial-gradient(ellipse at 15% 15%,#62349666,transparent 45%),radial-gradient(ellipse at 90% 85%,#14687855,transparent 45%),#0b1020}.login-box{background:#15172cf2;border:1px solid #9875c344;border-radius:24px;box-shadow:0 35px 100px #0006}.login-heading h1{letter-spacing:-.8px}.login-box input,.login-box select,.password-field button{background:#101426;border-color:#ffffff21;border-radius:11px}.add-user-button{background:linear-gradient(110deg,#9144f3,#b244e9);color:#fff;border-radius:11px}.add-user-button:hover{background:#a85dfa;color:#fff}.list-users-button{background:#28213c;color:#e4d5f8;border-color:#9473b544}.test-environment-badge{background:#442768;color:#eddaff;border-color:#a673d9;letter-spacing:.4px}
@media(min-width:761px) and (max-width:1100px){.app-header{padding:0 20px}.tv-sidebar,.sidebar-collapsed .tv-sidebar{padding-left:16px;padding-right:16px}.rail-item,.sidebar-collapsed .rail-item{padding:10px 12px}.home-brand{min-height:300px;padding:30px}.home-brand-logo{display:none}.poster-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.live-browser{grid-template-columns:155px minmax(240px,1fr)}.live-browser>.epg-panel{display:none}}
@media(max-width:760px){body,.app-view{background:#0b1020}.app-view{height:auto}.app-header{min-height:60px;padding:12px 16px;background:#0e1224}.app-name{font-size:14px!important}.home-view,.detail-view{padding:18px 16px 26px;background:transparent}.home-welcome h1{font-size:23px}.home-welcome p{font-size:12px}.home-search input{min-height:46px}.home-brand{min-height:335px;padding:28px 22px;border-radius:20px;align-items:flex-start}.home-brand-logo{display:none}.home-brand-copy,.home-brand:has(.design-hero-art img) .home-brand-copy{max-width:100%;gap:10px}.home-brand-copy strong{font-size:12px}.home-brand-copy .design-headline{font-size:40px;letter-spacing:-1.3px;max-width:290px}.home-tagline{display:block!important;font-size:13px;max-width:245px}.home-brand-copy .home-hero-button{min-height:46px;font-size:14px}.design-hero-art{inset:0 0 0 30%;opacity:.2}.home-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.home-tile,.tile-live{min-height:100px;padding:14px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:13px;text-align:center}.home-tile .tile-symbol{display:none}.home-tile small{font-size:10px;line-height:1.3}.home-favorites{grid-auto-columns:180px;gap:12px}.home-favorite{min-width:180px}.home-favorite.design-poster>.logo-box{height:150px}.home-favorite>.logo-box{height:105px}.home-favorite>div:not(.logo-box){padding:12px}.home-saved-head h2,.home-section-heading{font-size:19px}.mobile-nav{background:#12172cf5!important;border-top:1px solid #8c62ae44!important;backdrop-filter:blur(14px);padding-top:8px}.mobile-nav button{color:#b4b0ca;border-radius:12px}.mobile-nav button[aria-current=page]{color:#dbb9ff;background:#7c42cb25}.mobile-more button{background:#25203d;border-color:#ffffff15;color:#f2e8ff}.mobile-category select{background:#20213b;border-color:#8e6ca755;border-radius:13px}.poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;padding:0}.poster-feature{min-height:225px;max-height:none;padding:24px 20px;margin-bottom:3px;gap:5px}.poster-feature strong{font-size:29px;max-width:100%}.poster-feature p{font-size:12px;margin:5px 0 12px}.poster-feature .secondary-button{min-height:44px}.poster-title{font-size:14px}.poster-meta{font-size:11px}.section-bar h2{font-size:24px}.player-dock{border-radius:16px}.now-row{padding:18px;gap:12px}.now-row h3{font-size:21px}.playback-actions button{min-height:44px}.epg-guide{padding:14px!important}.epg-guide-channel{flex-direction:row!important;padding:10px!important}.epg-guide-channel strong{font-size:13px}.epg-guide-channel img{width:32px!important;height:32px!important}.epg-guide-channel button{font-size:12px}.epg-guide-controls input{min-width:0;width:100%}.epg-guide-program{flex-basis:190px!important}.modal-card{padding:22px 18px}.modal-head h2{font-size:24px}.media-info-body h3{font-size:25px}.home-footer{padding-bottom:16px}.login-view{padding-bottom:40px}.login-box{padding:28px 24px}}
@media(min-width:550px) and (max-width:760px){.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-brand-copy .design-headline{max-width:400px}}
@media(prefers-reduced-motion:reduce){button,.poster-art img{transition:none!important}}
/* Cinema layout: independent browsing space; existing video element is never moved. */
.home-view{gap:22px;padding:0 36px 36px}.home-welcome,.home-section-heading,.home-saved-head,.home-footer{display:none}.home-search{order:0;margin-top:20px;align-self:flex-end;width:min(430px,100%)}.home-brand{order:1;min-height:380px}.home-view:has(#cinemaHero) #homeBrand{display:none}.cinema-hero{order:1;width:100%;flex-shrink:0;min-height:440px!important;margin:0}.home-tiles{order:2;grid-template-columns:repeat(3,1fr);gap:12px}.home-tile{min-height:72px;padding:16px 24px;display:flex;gap:14px}.home-tile .tile-symbol,.home-tile small{display:none}.home-saved{order:3}.home-favorites{display:flex;flex-direction:column;overflow:visible;gap:32px;padding:0}.cinema-shelf{min-width:0}.cinema-shelf-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.cinema-shelf h2{font-size:23px;margin:0;letter-spacing:-.6px}.cinema-shelf-head button{border:0;background:none;color:#cdb6ff;padding:10px}.cinema-rail{display:grid;grid-auto-flow:column;grid-auto-columns:180px;gap:18px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 3px 18px}.cinema-rail>.poster-card{scroll-snap-align:start}.cinema-live{grid-auto-columns:260px}.cinema-live .channel-card{min-height:105px;align-content:center}.cinema-empty{grid-column:span 2;min-height:100px;border:1px dashed #705b90;background:#15182c;color:#d4c9e6;border-radius:14px;padding:24px;text-align:left;white-space:normal}
.poster-feature{position:relative;isolation:isolate;display:flex;min-height:340px;max-height:none;background:linear-gradient(115deg,#241a40,#18354d);padding:36px;overflow:hidden}.cinema-backdrop{position:absolute;inset:0 0 0 auto;width:72%;height:100%;object-fit:cover;object-position:center 30%;z-index:-2;opacity:.85}.poster-feature::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0c1020 5%,#0c1020ee 25%,#0c102066 65%,#0c102020),linear-gradient(0deg,#0c1020,transparent 45%);z-index:-1;pointer-events:none}.cinema-feature-copy{max-width:65%;text-shadow:0 2px 14px #0007}.cinema-feature-copy h2{font-size:clamp(30px,3.5vw,60px);letter-spacing:-1.4px;line-height:1.06;margin:18px 0}.cinema-feature-copy p{font-size:14px;line-height:1.5}.cinema-feature-actions{display:flex;gap:14px;align-items:center;margin-top:24px}.cinema-feature-actions button{min-height:46px;border-radius:8px;padding:10px 22px}.cinema-feature-actions .home-hero-button{border:0;background:linear-gradient(110deg,#9454ff,#db4f9c);color:white;font-weight:700}.cinema-feature-actions .favorite-button{background:#ffffff20;border:1px solid #ffffff50;color:#fff;width:auto}.poster-feature .label-green{color:#bda4ff}
/* Desktop viewport: catalog keeps a full-height column beside playback. */
@media(min-width:1001px){
.app-view{grid-template-rows:62px minmax(0,1fr)}.app-header{min-height:62px}.tv-sidebar,.sidebar-collapsed .tv-sidebar{padding-top:6px;padding-bottom:6px}.detail-view{overflow:auto;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)!important;align-content:start;padding:22px 28px;min-height:0}.detail-view[hidden]{display:none!important}.section-bar{grid-column:1/-1}.detail-view.ui-has-media{grid-template-columns:minmax(300px,34%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)!important;align-items:start;column-gap:24px}.detail-view.ui-has-media>.player-dock{grid-column:1;grid-row:2;display:flex!important;flex-direction:column;height:auto;max-height:100%;overflow:auto;position:sticky;top:0}.player-dock .video-frame{aspect-ratio:16/9;min-height:0;flex:none}.player-dock .now-row{padding:20px;gap:14px}.player-dock .now-row h3{font-size:23px}.detail-view.ui-has-media>:is(.vod-browser,.live-browser,.my-list-browser,.recordings-browser,.epg-guide){grid-column:2;grid-row:2;height:100%;min-height:0;max-height:none;overflow:auto}.detail-view[data-section=epg]:not(.ui-has-media) #playerDock{display:none!important}.detail-view:not(.ui-has-media) #playerDock{display:none}.vod-browser{display:flex;flex-direction:column;gap:18px;overflow:auto}.vod-browser>.categories-panel{flex:none;justify-content:flex-start;padding:0}.poster-panel{display:block;overflow:visible;flex:none;min-height:0;max-height:none}.poster-grid{display:grid;height:auto;max-height:none;overflow:visible;flex:none;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));padding:8px 0 24px}.poster-panel>.panel-title{padding-left:0;padding-right:0}.detail-view.ui-has-media .poster-feature{min-height:270px}.live-browser{grid-template-columns:145px minmax(0,1fr)}.live-browser>.epg-panel{grid-column:1/-1;min-height:180px}.detail-view.ui-has-media .live-browser{display:grid;grid-template-rows:minmax(300px,1fr) auto}.live-browser .channel-list{min-height:240px}.my-list-browser{display:block}.my-list-browser>.list-panel{height:auto;overflow:visible}.my-list-sections{overflow:visible;max-height:none}
}
.my-list-filter{display:flex;align-items:center;gap:12px;flex:none;padding:8px 0 18px;font-weight:600;color:#dfd3f3}.my-list-filter select{font:inherit;min-height:44px;border-radius:24px;padding:10px 40px 10px 18px;border:1px solid #8464ac;background:#24203b;color:#fff;min-width:200px}.my-list-sections{padding:18px}.my-list-section-head{font-size:22px;margin-bottom:18px}.my-list-section[data-kind=movies] .my-list-rows,.my-list-section[data-kind=series] .my-list-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:24px 18px}.my-list-section{margin-bottom:30px}.my-list-section .poster-card{min-width:0}
/* Shared guide axis, duration-proportional programs, sticky channel names. */
body .epg-guide{overflow:auto;display:block;min-height:360px}body .epg-guide-rows{overflow:auto;position:relative;max-width:100%;padding-bottom:12px}body .epg-guide-row,.epg-timeline-ruler{display:grid;grid-template-columns:170px 1200px;width:1370px;gap:0;padding:0;border:0}.epg-timeline-ruler{min-height:44px;background:#151e37;align-items:center}.epg-timeline-ruler>strong{padding-left:14px;position:sticky;left:0;background:#151e37;z-index:3}.epg-timeline-hours{display:grid;grid-template-columns:repeat(12,100px);font-size:12px;color:#c8d5eb}.epg-timeline-hours span{border-left:1px solid #ffffff20;padding:12px 8px}body .epg-guide-channel{position:sticky;left:0;z-index:2;border-radius:0;padding:12px!important;min-height:100px;gap:5px;border-bottom:1px solid #ffffff15;background:#141e36;flex-direction:row;align-items:center;flex-wrap:wrap}body .epg-guide-channel strong{font-size:13px;flex:1;min-width:65px}body .epg-guide-channel img{width:30px;height:30px}body .epg-guide-channel button{font-size:11px;padding:5px 8px;min-height:28px}body .epg-guide-programs{display:block;position:relative;overflow:hidden;padding:0;height:110px;width:1200px;background:repeating-linear-gradient(90deg,transparent 0,transparent 99px,#ffffff09 100px)}body .epg-guide-program{position:absolute;top:3px;bottom:3px;min-height:0;min-width:0;border-radius:5px;margin:0;padding:12px;overflow:hidden;background:#204c7b}body .epg-guide-program strong{font-size:14px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}body .epg-guide-row:nth-child(3n+2) .epg-guide-program{background:#34427c}body .epg-guide-row:nth-child(3n+3) .epg-guide-program{background:#734526}body .epg-guide-program.is-now{background:#125575!important;border:2px solid #55e8e2}.epg-guide-empty{padding:14px}
@media(max-width:1000px){body .detail-view{display:flex!important;flex-direction:column;overflow:visible;height:auto;min-height:0}body .detail-view[hidden]{display:none!important}body .app-view{height:auto;min-height:100dvh}body .app-main{height:auto;overflow:visible}body{overflow:auto}body .detail-view>.player-dock{flex:none;height:auto;min-height:0}body .detail-view>.vod-browser,body .detail-view>.my-list-browser,body .detail-view>.live-browser{height:auto;min-height:0;overflow:visible;flex:none}body .poster-panel,body .poster-grid,body .my-list-sections{height:auto;max-height:none;overflow:visible;flex:none}body .poster-panel{display:block;min-height:0}.poster-grid{padding:12px 0}.player-dock .video-frame{aspect-ratio:16/9;min-height:0}.vod-browser>.categories-panel{max-height:none}.my-list-browser>.list-panel{height:auto;overflow:visible}body .epg-guide{overflow:visible;min-height:0}.home-view{height:auto;overflow:visible}.home-favorites{display:flex}.home-tiles{grid-template-columns:repeat(3,1fr)}.cinema-hero{min-height:370px!important}.cinema-feature-copy{max-width:85%}}
@media(max-width:760px){.home-view{padding:0 16px 32px}.home-search{margin-top:16px}.cinema-hero{min-height:430px!important;padding:24px;justify-content:flex-end}.cinema-backdrop{width:100%;opacity:.85}.poster-feature::after{background:linear-gradient(0deg,#0c1020 3%,#0c1020a0 45%,#0c102010 100%)}.cinema-feature-copy{max-width:100%;width:100%}.cinema-feature-copy h2{font-size:36px}.cinema-feature-copy p{font-size:12px}.cinema-feature-actions{margin-top:16px}.cinema-feature-actions button{padding:10px 16px}.home-tile{min-height:62px;padding:10px;font-size:13px}.cinema-shelf h2{font-size:20px}.cinema-shelf-head button{font-size:12px}.cinema-rail{grid-auto-columns:145px;gap:13px}.cinema-live{grid-auto-columns:235px}.poster-feature{min-height:310px}.my-list-sections{padding:12px}.my-list-section[data-kind=movies] .my-list-rows,.my-list-section[data-kind=series] .my-list-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.my-list-filter{justify-content:space-between}.my-list-filter select{min-width:0;width:70%}body .epg-guide-row,.epg-timeline-ruler{grid-template-columns:130px 1200px;width:1330px}body .epg-guide-program{flex-basis:auto!important}.cinema-empty{grid-column:span 2}}
.home-saved,.home-favorites,.cinema-shelf,.cinema-rail{min-width:0;max-width:100%;width:100%}.home-saved{display:block}.home-favorites{display:flex}.cinema-shelf{flex:none}.cinema-rail{contain:inline-size}
@media(max-width:760px){.detail-view.ui-has-media>.player-dock{position:sticky;top:0;z-index:25;box-shadow:0 12px 30px #0008}.detail-view.ui-has-media .now-row{padding:10px 14px;gap:4px}.detail-view.ui-has-media .now-row h3{font-size:15px;margin:3px 0}.detail-view.ui-has-media .now-row .label-green,.detail-view.ui-has-media .now-row p{display:none}.detail-view.ui-has-media .playback-actions{gap:8px}.detail-view.ui-has-media .compact-button{min-height:36px}}

.spotlight-controls{position:absolute;bottom:18px;right:22px;display:flex;gap:8px;z-index:2}.spotlight-controls button{background:#11182dcc;color:#eee;border:1px solid #ffffff35;border-radius:20px;padding:8px 13px;font-size:12px;min-height:36px}.cinema-hero{padding-bottom:70px}@media(max-width:760px){.spotlight-controls{left:24px;right:auto;bottom:15px}}
/* Live categories share the existing accessible Movies/Series dropdown pattern. */
#liveBrowser>.categories-panel{display:flex;flex:none;align-items:center;justify-content:flex-start;max-height:none;min-height:0;padding:0 4px 10px;background:transparent;border:0;overflow:visible;grid-column:1/-1}
#liveBrowser>.categories-panel>.panel-title,#liveCategoryList{display:none}
#liveBrowser .mobile-category{display:flex;align-items:center;gap:14px;min-width:0;width:100%;font-size:12px;color:var(--muted)}
#liveBrowser .mobile-category select{width:min(420px,100%);min-width:0;min-height:44px;border:1px solid #8264ac60;border-radius:22px;padding:10px 36px 10px 18px;background:#1c1c34;color:var(--ink);font:inherit}
@media(min-width:1001px){#detailView #liveBrowser,#detailView.ui-has-media #liveBrowser{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(260px,1fr) auto;gap:14px;min-width:0;min-height:0;overflow:auto}#liveBrowser>.channels-panel{grid-column:1;min-height:260px}#liveBrowser>.epg-panel{grid-column:1;min-height:0;max-height:220px}#liveBrowser .channel-list{min-height:200px}#liveBrowser .channel-card{min-width:0}#liveBrowser .channel-card strong{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:1000px){#liveBrowser>.categories-panel{padding:0;min-height:0}#liveBrowser .mobile-category{margin:0}#liveBrowser .mobile-category select{flex:1}#liveBrowser>.channels-panel{min-height:300px}}
@media(min-width:1400px){#detailView:not(.ui-has-media) #channelList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:8px}#detailView:not(.ui-has-media) #channelList>.load-more-row{grid-column:1/-1}}
