/* Fénix TV · BUILD014. Bounded sizes for touch and remote; no player visibility override. */
:root{--bg:#080b12;--text:#f6f2ed;--muted:#aaaebb;--cyan:#f5b980;--cyan2:#c7774c;--red:#f46a59;--violet:#bb846d;--gold:#f4c998;--ui-line:rgba(240,217,193,.13);--ui-surface:#151a24;--ui-accent:#f4ae82;--ui-radius:18px;--ui-body:clamp(14px,1.16vw,24px);--ui-small:clamp(11px,.85vw,18px);--ui-title:clamp(28px,3.25vw,64px)}
body:before{display:none}html,body,.app-shell{background:var(--bg)}
.screen:not(.player-screen):not(.splash-screen){background:radial-gradient(ellipse at 96% 0%,#312322 0%,transparent 47%),#080b12}
.screen-art{opacity:.16;filter:saturate(.6);transform:none}.screen-shade,.screen-shade.soft{background:linear-gradient(90deg,rgba(8,11,18,.88),rgba(8,11,18,.56))!important;backdrop-filter:none}
.home-backdrop{opacity:.25;filter:saturate(.7);transform:none}.home-overlay{background:linear-gradient(90deg,#080b12,rgba(8,11,18,.83) 53%,rgba(8,11,18,.36)),linear-gradient(0deg,#080b12,transparent 80%)}
.screen.is-active:not(.player-screen){animation:uiScreen .3s cubic-bezier(.2,.7,.2,1)}
@keyframes uiScreen{from{opacity:0}to{opacity:1}}
@keyframes uiRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.screen:not(.player-screen) .glass-card,.library-hero,.tv-info,.tv-channel-list,.center-action,.exit-card{background:linear-gradient(135deg,rgba(24,29,40,.97),rgba(15,19,28,.98));border:1px solid var(--ui-line)!important;box-shadow:0 12px 36px #0003;backdrop-filter:none}
.focusable,.poster-card,.profile-card{will-change:auto;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease}
.focusable.is-focused{outline:2px solid #f6d4b4;outline-offset:3px;box-shadow:0 10px 25px #0004!important;filter:none;transform:translateY(-2px);z-index:10}
.focusable:focus-visible,input:focus-visible{outline:2px solid #f6d4b4;outline-offset:3px}
.input-wrap.is-focused,.input-wrap:focus-within{outline:none;border-color:#e6b08b;box-shadow:0 0 0 3px #e6b08b1a!important;transform:none}
.primary-btn,.secondary-btn,.ghost-btn,.danger-btn,.play-btn,.favorite-btn,.manage-btn{min-height:clamp(44px,6.2vh,68px);padding:12px 22px;border-radius:12px;font-size:var(--ui-body);letter-spacing:.02em;line-height:1.2;box-shadow:none;color:var(--text);cursor:pointer}
.primary-btn,.play-btn{background:linear-gradient(110deg,#f4bc91,#ed8e73);color:#251b1a}.secondary-btn,.ghost-btn,.favorite-btn,.manage-btn{background:#202633;border:1px solid var(--ui-line)}.danger-btn{background:#73302f}
button:disabled{opacity:.45;cursor:default;transform:none!important;outline:none!important}
.eyebrow,.card-kicker{font-size:var(--ui-small);letter-spacing:.16em;color:#e5b794;font-weight:700}
.brand-header img,.brand-inline img{width:clamp(44px,3.8vw,78px);height:clamp(44px,3.8vw,78px);object-fit:cover;border-radius:12px}
.brand-header,.brand-inline{gap:14px}.brand-header strong,.brand-inline strong{font-size:clamp(16px,1.4vw,28px);letter-spacing:.11em}.brand-header span,.brand-inline span{font-size:var(--ui-small);margin-top:5px;color:var(--muted)}
.help-strip{font-size:var(--ui-small);height:5vh;background:#0b0e15;backdrop-filter:none;gap:3vw}.status-pill,.live-pill{font-size:var(--ui-small);padding:8px 12px;border-radius:20px;backdrop-filter:none}.status-pill{color:#b4d6c0;background:#12251d;border-color:#2f4b3c}.live-pill{color:#f3a493;background:#48242a}
.ui-back{position:absolute;right:4vw;top:4vh;z-index:8;border:1px solid var(--ui-line);border-radius:12px;background:#1e2530;color:#f3d7be;min-height:44px;padding:9px 16px;font-size:var(--ui-small)}
.ui-ripple{position:absolute;pointer-events:none;border-radius:50%;width:32px;height:32px;background:#ffddbd33;animation:uiRipple .4s ease-out forwards;z-index:9}
@keyframes uiRipple{from{transform:scale(.5);opacity:1}to{transform:scale(9);opacity:0}}
/* Login: finite reveal, quiet composition, consistent field sizes. */
.login-layout{gap:6vw;padding:16vh 7vw 5vh;animation:uiRise .38s ease both;overflow-y:auto}.login-copy{width:47%;flex-shrink:0}.login-copy h1{font-size:clamp(36px,4.65vw,92px);line-height:1.03;letter-spacing:-.055em;background:none;color:#faf4ed;text-shadow:none;margin:20px 0 24px}.login-copy h1 em{font-style:normal;color:#e6ae8b}.login-copy p{width:90%;max-width:520px;font-size:clamp(16px,1.25vw,25px);line-height:1.6;color:#b7b9c3}.feature-chips{gap:8px;margin-top:26px}.feature-chips span{font-size:var(--ui-small);padding:9px 12px;border-radius:25px;color:#cbb9aa;background:#e6b08b0a;border:1px solid #e6b08b22;backdrop-filter:none;letter-spacing:.04em}
html[data-device-mode="tv"] .login-card,.login-card{width:min(38vw,680px);margin-left:auto;padding:clamp(20px,2.2vw,44px);border-radius:24px;flex-shrink:0}.login-card:before{background:radial-gradient(circle at 100% 0%,#ecac7d0a,transparent 60%)}.login-card h2{font-size:clamp(24px,2.1vw,42px);margin:8px 0 20px;letter-spacing:-.03em}.login-card>label{font-size:var(--ui-small);margin:14px 0 7px}.input-wrap{height:clamp(48px,6.6vh,74px);border:1px solid #c5b4a12b;border-radius:12px;padding:0 14px;background:#0b1019;backdrop-filter:none;margin-bottom:10px}.input-wrap img{width:22px;height:22px;margin-right:12px}.input-wrap input{font-size:var(--ui-body)}.input-wrap button{font-size:var(--ui-small);color:#e1b693;min-height:44px;min-width:44px;padding:8px}.login-meta{font-size:var(--ui-small);margin:12px 0 18px;gap:12px}.remember{font-size:var(--ui-small);gap:8px}.remember input{width:18px;height:18px;accent-color:#edaf89}.form-error{font-size:var(--ui-small);line-height:1.45}.login-card>.primary-btn,.login-card>.secondary-btn{width:100%}
.trial-divider{font-size:var(--ui-small);letter-spacing:.08em;margin:18px 0 12px;gap:12px}.trial-btn{min-height:72px;grid-template-columns:36px 1fr auto;padding:12px;gap:10px;border-radius:14px;background:linear-gradient(115deg,#312a29,#28232e);border:1px solid #f4b98444;box-shadow:none;cursor:pointer}.trial-btn:before,.trial-btn:after{display:none}.trial-btn-icon{width:32px;height:32px;border-radius:10px;font-size:20px;background:#eeb185;color:#281e19;box-shadow:none}.trial-btn-copy strong{font-size:clamp(12px,.94vw,20px);letter-spacing:.03em}.trial-btn-copy small{font-size:var(--ui-small);white-space:normal;line-height:1.35;color:#b6aaab;margin-top:5px}.trial-days{font-size:var(--ui-small);color:#f3c49e;padding:7px;border-radius:8px}.trial-state{font-size:var(--ui-small);line-height:1.45;margin:10px 0 14px;min-height:0;color:#a4a8b3}
/* Profiles and inherited profile editor selectors. */
.profiles-center{top:19vh;bottom:7vh;overflow:auto;padding:4px 14px 28px}.profiles-center h1{font-size:var(--ui-title);letter-spacing:-.04em;margin:12px 0 36px}.profile-grid{gap:2vw;flex-wrap:wrap}.profile-card{width:clamp(150px,15vw,285px);height:auto;min-height:clamp(210px,30vh,345px);padding:24px 16px;border-radius:20px;background:#151923;border:1px solid var(--ui-line);backdrop-filter:none}.profile-card img{width:clamp(96px,8.3vw,170px);height:clamp(96px,8.3vw,170px);border-radius:28%;border:1px solid #e5bf9222;object-fit:cover;box-shadow:0 12px 24px #0003}.profile-card h3{font-size:clamp(16px,1.35vw,27px);margin:18px 0 8px;overflow-wrap:anywhere}.profile-card span{font-size:var(--ui-small);color:#a4a8b4}.profile-card.is-focused{transform:translateY(-5px);border-color:#e8b48d!important}.manage-btn{width:auto;min-width:220px;margin-top:30px}
[class*="profile-editor"],[class*="profile-form"],[class*="pin-panel"],[class*="avatar-panel"]{border-radius:20px;font-size:var(--ui-body)}
[class*="avatar-grid"]{gap:14px}[class*="avatar-card"]{border-radius:16px}[class*="pin-input"],[id*="profile-name"],[id*="profile-pin"]{font-size:var(--ui-body);min-height:48px}
/* Home: feature cards with numbered navigation and a warm lead card. */
.home-header{top:4vh;left:5vw;right:5vw}.home-content{left:6vw;top:19vh;bottom:8vh;width:88vw;max-width:none;overflow:auto;padding:3px 6px 20px}.home-content h1{font-size:var(--ui-title);letter-spacing:-.045em;margin:14px 0}.home-content>p{font-size:var(--ui-body);color:#aab0be;line-height:1.6;width:min(60vw,900px)}.home-stats{margin-top:20px;gap:9px;flex-wrap:wrap}.home-stats span{font-size:var(--ui-small);padding:7px 11px;border-radius:8px;color:#b6b8c4;backdrop-filter:none}.home-menu{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:30px}.home-option{height:clamp(115px,17vh,200px);padding:24px 18px;border-radius:18px;display:flex;align-items:flex-start;justify-content:flex-end;flex-direction:column;gap:12px;background:linear-gradient(135deg,#1c2230,#131822);border:1px solid var(--ui-line);backdrop-filter:none}.home-option img{width:clamp(30px,2.5vw,52px);height:clamp(30px,2.5vw,52px);object-fit:contain}.home-option strong{font-size:clamp(16px,1.4vw,29px);font-weight:700}.home-option span{font-size:var(--ui-small);line-height:1.4;color:#aeb2bf;margin-top:7px}.home-option:first-child{background:linear-gradient(130deg,#392e2b,#241f25);border-color:#e8b08055}.home-option:after{content:attr(data-ui-number);width:auto;height:auto;right:18px;top:16px;bottom:auto;background:none;font-size:var(--ui-small);color:#9b9dab}.home-option:before{display:none}.home-option.is-focused{transform:translateY(-3px);background:#2b2830}
/* Library, series, favorites, search. Existing catalog and pagination stay in charge. */
.library-header,.tv-header{top:4vh;left:4vw;right:4vw}.library-header h1,.tv-header h1{font-size:var(--ui-title);margin:7px 0;letter-spacing:-.045em;max-width:73vw;overflow:hidden;text-overflow:ellipsis}.library-actions{padding-right:130px}.round-action{width:44px;height:44px;border-radius:12px;font-size:24px;backdrop-filter:none}.library-tabs,.tv-categories{top:15vh;left:4vw;right:4vw;height:6vh;gap:10px;overflow-x:auto;padding:4px}.tab{min-height:40px;height:auto;font-size:var(--ui-small);padding:10px 18px;border-radius:24px;background:#191f2a;backdrop-filter:none;flex:0 0 auto}.tab.active{background:#ead0b8;color:#251e1b;box-shadow:none}.library-stage{top:23vh;bottom:6vh;grid-template-columns:28vw minmax(0,1fr);gap:2vw}.library-hero{padding:26px;border-radius:20px;overflow-y:auto}.lib-meta{font-size:var(--ui-small);letter-spacing:.1em;color:#e1af8b}.library-hero h2{font-size:clamp(22px,2vw,42px);margin:18px 0 12px;letter-spacing:-.025em;overflow-wrap:anywhere}.library-hero p{font-size:var(--ui-body);line-height:1.6;color:#aeb3bf;max-height:24vh}.hero-tags{gap:7px;margin:20px 0;flex-wrap:wrap}.hero-tags span{font-size:var(--ui-small);padding:7px 10px;border-radius:8px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions button{flex:1;min-width:120px;font-size:var(--ui-small)}.poster-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:7px;overflow-y:auto;align-content:start;grid-auto-rows:auto}.poster-card{height:auto;min-height:0;border:1px solid var(--ui-line);border-radius:12px;overflow:hidden;background:#171d28;box-shadow:0 10px 24px #0002}.poster-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;background:linear-gradient(140deg,#222d3f,#171e2a);transition:filter .16s}.poster-card.is-focused{transform:translateY(-3px) scale(1.015)}.poster-info{height:auto;min-height:60px;padding:10px}.poster-info strong{font-size:var(--ui-small);line-height:1.35}.poster-info span{font-size:clamp(10px,.7vw,15px);margin-top:6px;color:#a2a8b6}.page-indicator{font-size:var(--ui-small);padding:10px;color:#aab0be}.search-box-wrap{top:16vh;gap:12px}.search-box{height:clamp(48px,6vh,68px);font-size:var(--ui-body);padding:0 18px;border-radius:12px;backdrop-filter:none;background:#111925}.search-results{top:25vh;bottom:7vh}.search-results .poster-card{height:auto}.search-results .poster-card img{height:auto;aspect-ratio:2/3}
/* Live TV and EPG. */
.tv-layout{top:23vh;bottom:6vh;grid-template-columns:35vw minmax(0,1fr);gap:2vw}.tv-channel-list{padding:12px;border-radius:20px;overflow-y:auto}.channel-row{height:auto;min-height:clamp(58px,8vh,94px);padding:10px 12px;gap:12px;border-radius:12px;margin-bottom:8px}.channel-row .num{font-size:var(--ui-small);width:26px}.channel-row img{width:clamp(48px,4.6vw,92px);height:clamp(34px,4vh,60px);border-radius:8px}.channel-row strong{font-size:var(--ui-body)}.channel-row span{font-size:var(--ui-small);margin-top:6px}.channel-row.is-focused{background:linear-gradient(90deg,#3d302a,#20242f);transform:none;border-color:#f3bc91}.tv-info{padding:28px;border-radius:20px;overflow-y:auto}.tv-info:after{display:none}.tv-info h2{font-size:clamp(24px,2.4vw,48px);margin:20px 0 12px}.tv-info p{font-size:var(--ui-body);line-height:1.5;color:#aab0bb}.tv-logo-wrap{height:10vh}.tv-logo-wrap img{max-height:9vh}.epg-panel{gap:12px;margin:24px 0}.epg-panel>div{padding:18px;border-radius:12px;background:#0d1420;border:1px solid #fff1;min-height:100px}.epg-panel span{font-size:var(--ui-small);color:#e7b18a;letter-spacing:.05em}.epg-panel strong{font-size:var(--ui-body);margin:12px 0 8px;line-height:1.4}.epg-panel small{font-size:var(--ui-small)}
/* Activation, update center, dialogs and loading. */
.activation-panel{top:17vh;bottom:10vh;padding:4vw;border-radius:24px;overflow-y:auto}.activation-left h1{font-size:var(--ui-title);letter-spacing:-.04em}.activation-left p{font-size:var(--ui-body);line-height:1.6}.activation-url{font-size:var(--ui-small);overflow-wrap:anywhere;color:#f1bd96;background:#101722;border-color:#e3b08444;padding:16px}.activation-left button{width:100%;max-width:360px;margin-top:12px}.activation-right{font-size:var(--ui-small)}.qr-card{border-radius:18px;padding:12px}
.center-layout{top:19vh;bottom:7vh;grid-template-columns:27vw minmax(0,1fr);gap:20px;overflow:auto;padding:4px}.center-summary{padding:24px;border-radius:20px}.center-summary h2{font-size:clamp(20px,1.65vw,34px);margin:20px 0 10px}.center-summary>p{font-size:var(--ui-small);color:#e5b08b;overflow-wrap:anywhere}.center-logo img{width:64px;height:64px;object-fit:cover;border-radius:16px}.center-metrics{gap:10px;margin-top:22px}.center-metrics>div{padding:14px;border-radius:12px}.center-metrics span{font-size:var(--ui-small)}.center-metrics strong{font-size:var(--ui-body);margin-top:8px}.center-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:14px;align-content:start}.center-action{min-height:130px;padding:20px;border-radius:16px}.center-action:after{display:none}.center-icon{width:34px;height:34px;border-radius:10px;font-size:22px;color:#e6b18b;background:#e6b18b0b;border-color:#e6b18b33;margin-bottom:12px}.center-action strong{font-size:var(--ui-body)}.center-action small{font-size:var(--ui-small);line-height:1.5;margin-top:8px}.diagnostics-panel{font-size:var(--ui-small);line-height:1.6;max-height:40vh;overflow:auto}.modal-layer{backdrop-filter:none;background:#04070be8}.exit-card{width:min(560px,80vw);padding:30px;border-radius:24px;grid-template-columns:50px 1fr;gap:18px;min-height:0}.exit-icon{width:48px;height:48px;font-size:26px;border-radius:12px;color:#eeb98f}.exit-card h2{font-size:clamp(24px,2.2vw,38px);margin:0 0 12px}.exit-card p{font-size:var(--ui-body);line-height:1.6}.exit-actions{gap:12px;margin-top:14px}.exit-actions button{width:auto;flex:1}.toast{font-size:var(--ui-body);padding:14px 20px;border-radius:12px;max-width:90vw;line-height:1.4;text-align:center}.splash-status{font-size:var(--ui-body);padding:0 20px}.splash-loader span{width:7px;height:7px}.splash-loader{gap:9px}
/* Player: shape and type only. BUILD012 keeps control of hidden card/controls. */
.player-controls{border-radius:16px;background:#0b1019ed;backdrop-filter:none;padding:18px 22px}.player-control{height:44px;min-width:44px;border-radius:10px;font-size:clamp(14px,1.1vw,23px);padding:0 10px;backdrop-filter:none}.player-control.is-focused{background:#dcaa83;color:#251b17}.player-title{font-size:clamp(18px,1.7vw,34px)}.player-subtitle,.player-bottomline{font-size:clamp(12px,.9vw,18px)}.player-live-pill,.player-format,.player-health{font-size:clamp(10px,.72vw,16px)}.timeline div{background:linear-gradient(90deg,#f4c494,#ee9075)}.program-card{border-radius:18px 0 0 18px;backdrop-filter:none;background:#0e1623ef;padding:20px 26px}.program-card h2{font-size:clamp(19px,1.55vw,34px)}.program-label,.program-next-label{font-size:clamp(11px,.72vw,16px);color:#efbc94;letter-spacing:.1em}.program-card #program-now-desc{font-size:clamp(12px,.85vw,18px);line-height:1.5}.program-card #program-next-title{font-size:clamp(14px,1vw,21px)}.player-loading strong{font-size:18px}.player-loading span{font-size:14px}.player-error strong{font-size:24px}.player-error span{font-size:14px;line-height:1.5}.player-info-panel span{font-size:11px}.player-info-panel strong{font-size:13px}.spinner{width:40px;height:40px;border-width:3px;border-top-color:#edb28a}
/* Optional editor used only when the installed app has no profile management flow. */
.ui-editor-screen{z-index:90!important;overflow:auto!important;padding:5vh 6vw 6vh}.ui-editor-top{display:flex;align-items:center;justify-content:space-between;max-width:1050px;margin:0 auto 30px;gap:16px}.ui-editor-top h1{font-size:var(--ui-title);letter-spacing:-.04em;margin:10px 0}.ui-editor-top button{flex-shrink:0}.ui-editor-panel{max-width:1050px;margin:auto;padding:32px;border-radius:24px;border:1px solid var(--ui-line);background:#141b28;animation:uiRise .22s ease}.ui-editor-columns{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:32px}.ui-editor-preview{padding:26px;text-align:center;border:1px solid var(--ui-line);background:#101622;border-radius:20px;align-self:start}.ui-editor-preview img{width:150px;height:150px;object-fit:cover;border-radius:28%}.ui-editor-preview h3{font-size:20px;overflow-wrap:anywhere}.ui-editor-preview p{font-size:var(--ui-small);color:var(--muted);line-height:1.5}.ui-steps{display:flex;gap:18px;margin-bottom:28px;font-size:var(--ui-small);color:#9aa4b7}.ui-steps span{display:flex;align-items:center;gap:8px}.ui-steps b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#252e3e;color:#aaa}.ui-steps .active{color:#f3c59e}.ui-steps .active b{background:#eeb991;color:#231b19}.ui-editor-panel h2{font-size:clamp(22px,2vw,36px);margin:8px 0 12px}.ui-editor-panel p{font-size:var(--ui-body);color:#a5adbd;line-height:1.55;margin:0 0 24px}.ui-editor-panel label{display:block;font-size:var(--ui-small);color:#d1bfaf;margin-bottom:9px}.ui-edit-input{height:54px;width:100%;background:#0b121f;border:1px solid #e8c19b44;color:#f6f2ed;border-radius:12px;padding:0 16px;font-size:18px;user-select:text}.ui-editor-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:28px;flex-wrap:wrap}.ui-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ui-avatar-button{background:#0f1725;border:1px solid #e4bb9633;border-radius:16px;min-height:76px;padding:10px;cursor:pointer}.ui-avatar-button img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:22%}.ui-avatar-button.selected{background:#392d2b;border-color:#f2b685;box-shadow:inset 0 0 0 2px #f2b685}.ui-editor-error{font-size:14px;color:#ffad9d;line-height:1.5;margin-top:14px;min-height:22px}.ui-manage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ui-manage-grid button{color:#faf5ee;font-size:18px}.ui-manage-grid .profile-card{width:100%;min-height:220px}.ui-manage-grid strong{display:block;margin:16px 0 10px}.ui-manage-grid small{font-size:var(--ui-small);color:#b9b1af}.ui-add-symbol{display:grid;place-items:center;width:104px;height:104px;margin:auto;border:1px dashed #e6b18b66;border-radius:28%;font-size:44px;color:#e7b490}.ui-pin-form{max-width:520px;margin:auto;text-align:center}.ui-pin-form .ui-edit-input{text-align:center;letter-spacing:.5em;font-size:24px}.ui-pin-form img{width:86px;height:86px;border-radius:28%;object-fit:cover;margin-bottom:20px}
/* Real portrait/touch layout. Pixel bounds avoid enormous tablet text. */
html[data-device-mode="mobile"]{--ui-body:15px;--ui-small:12px;--ui-title:30px}
html[data-device-mode="mobile"] .screen:not(.player-screen){overflow-y:auto;overscroll-behavior:contain}
html[data-device-mode="mobile"] .focusable.is-focused{outline:none;transform:none;box-shadow:none!important;filter:none}
html[data-device-mode="mobile"][data-input="remote"] .focusable.is-focused{outline:2px solid #f6d4b4;outline-offset:3px}
html[data-device-mode="mobile"] .help-strip{display:none}
html[data-device-mode="mobile"] .primary-btn,html[data-device-mode="mobile"] .secondary-btn,html[data-device-mode="mobile"] .ghost-btn,html[data-device-mode="mobile"] .danger-btn,html[data-device-mode="mobile"] .play-btn,html[data-device-mode="mobile"] .favorite-btn,html[data-device-mode="mobile"] .manage-btn{min-height:48px;font-size:14px;padding:12px 18px;border-radius:12px}
html[data-device-mode="mobile"] .brand-header{position:relative;top:auto;left:auto;margin:24px 22px 0;gap:12px}
html[data-device-mode="mobile"] .brand-header img,html[data-device-mode="mobile"] .brand-inline img{width:44px;height:44px;border-radius:12px}
html[data-device-mode="mobile"] .brand-header strong,html[data-device-mode="mobile"] .brand-inline strong{font-size:16px;letter-spacing:.1em}
html[data-device-mode="mobile"] .brand-header span,html[data-device-mode="mobile"] .brand-inline span{font-size:10px;letter-spacing:.04em;line-height:1.4}
html[data-device-mode="mobile"] .eyebrow{font-size:11px;letter-spacing:.13em}
html[data-device-mode="mobile"] .login-layout{position:relative;inset:auto;padding:28px 22px 32px;display:block;overflow:visible;max-width:560px;margin:auto}
html[data-device-mode="mobile"] .login-copy{padding:0;width:100%}
html[data-device-mode="mobile"] .login-copy h1{font-size:40px;letter-spacing:-.05em;line-height:1.05;margin:13px 0 16px}
html[data-device-mode="mobile"] .login-copy p{font-size:14px;line-height:1.6;width:100%;margin:0}
html[data-device-mode="mobile"] .feature-chips{margin-top:18px;gap:6px}
html[data-device-mode="mobile"] .feature-chips span{font-size:10px;padding:7px 10px;letter-spacing:.02em}
html[data-device-mode="mobile"] .login-card{width:100%;padding:24px 20px;margin:26px 0 0;border-radius:22px}
html[data-device-mode="mobile"] .login-card h2{font-size:26px;margin:8px 0 20px}
html[data-device-mode="mobile"] .card-kicker{font-size:10px;letter-spacing:.12em}
html[data-device-mode="mobile"] .login-card>label{font-size:12px;margin:14px 0 7px}
html[data-device-mode="mobile"] .input-wrap{height:52px;border-radius:12px;padding:0 12px;margin-bottom:10px}
html[data-device-mode="mobile"] .input-wrap input{font-size:16px}
html[data-device-mode="mobile"] .input-wrap img{width:20px;height:20px;margin-right:10px}
html[data-device-mode="mobile"] .input-wrap button{font-size:11px;color:#eec4a0;min-height:44px}
html[data-device-mode="mobile"] .login-meta,html[data-device-mode="mobile"] .remember{font-size:11px;gap:7px}
html[data-device-mode="mobile"] .remember input{width:18px;height:18px}
html[data-device-mode="mobile"] .form-error{font-size:13px;line-height:1.5}
html[data-device-mode="mobile"] .trial-divider{font-size:10px;gap:10px;margin:18px 0 12px}
html[data-device-mode="mobile"] .trial-btn{min-height:80px;grid-template-columns:30px 1fr auto;padding:12px;gap:9px}
html[data-device-mode="mobile"] .trial-btn-icon{width:30px;height:30px;font-size:18px}
html[data-device-mode="mobile"] .trial-btn-copy strong{font-size:11px;letter-spacing:.02em;line-height:1.4}
html[data-device-mode="mobile"] .trial-btn-copy small{font-size:10px;line-height:1.4;margin-top:4px}
html[data-device-mode="mobile"] .trial-days{font-size:10px;padding:6px}
html[data-device-mode="mobile"] .trial-state{font-size:11px;line-height:1.45;margin:10px 0 14px}
html[data-device-mode="mobile"] .profiles-center{position:relative;top:auto;bottom:auto;left:auto;right:auto;padding:60px 22px 32px;overflow:visible;max-width:720px;margin:auto}
html[data-device-mode="mobile"] .profiles-center h1{font-size:30px;margin:12px 0 30px}
html[data-device-mode="mobile"] .profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html[data-device-mode="mobile"] .profile-card{width:100%;height:auto;min-height:190px;padding:22px 10px;border-radius:18px}
html[data-device-mode="mobile"] .profile-card img{width:90px;height:90px;max-width:100%;max-height:none}
html[data-device-mode="mobile"] .profile-card h3{font-size:16px;margin:16px 0 8px}
html[data-device-mode="mobile"] .profile-card span{font-size:11px}
html[data-device-mode="mobile"] .manage-btn{width:100%;max-width:360px;margin-top:26px}
html[data-device-mode="mobile"] .home-header{position:relative;top:auto;left:auto;right:auto;margin:24px 22px;gap:12px;align-items:center}
html[data-device-mode="mobile"] .home-account strong{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-device-mode="mobile"] .home-account span{font-size:10px}
html[data-device-mode="mobile"] .home-content{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;max-width:760px;margin:auto;padding:20px 22px 32px;overflow:visible}
html[data-device-mode="mobile"] .home-content h1{font-size:32px;letter-spacing:-.04em;margin:12px 0 14px}
html[data-device-mode="mobile"] .home-content>p{font-size:14px;line-height:1.6;width:100%}
html[data-device-mode="mobile"] .home-stats{gap:6px;margin-top:18px}
html[data-device-mode="mobile"] .home-stats span{font-size:10px;padding:7px 9px}
html[data-device-mode="mobile"] .home-menu{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:14px;margin-top:26px}
html[data-device-mode="mobile"] .home-option{height:156px;min-height:0;gap:14px;padding:18px 14px;border-radius:18px;align-items:flex-start}
html[data-device-mode="mobile"] .home-option img{width:30px;height:30px}
html[data-device-mode="mobile"] .home-option strong{font-size:16px}
html[data-device-mode="mobile"] .home-option span{font-size:11px;line-height:1.4;margin-top:6px}
html[data-device-mode="mobile"] .library-header,html[data-device-mode="mobile"] .tv-header{position:relative;top:auto;left:auto;right:auto;margin:28px 22px 20px;align-items:flex-start;gap:10px}
html[data-device-mode="mobile"] .library-header h1,html[data-device-mode="mobile"] .tv-header h1{font-size:30px;letter-spacing:-.04em;max-width:70vw;margin:8px 0 0;overflow-wrap:anywhere;white-space:normal}
html[data-device-mode="mobile"] .library-actions{padding:0;gap:6px}
html[data-device-mode="mobile"] .round-action{width:44px;height:44px;font-size:22px}
html[data-device-mode="mobile"] .ui-back{position:relative;top:auto;right:auto;float:right;margin:12px 22px 0;min-height:44px;font-size:12px}
html[data-device-mode="mobile"] .library-tabs,html[data-device-mode="mobile"] .tv-categories{position:relative;left:auto;right:auto;top:auto;height:auto;min-height:52px;padding:4px 22px 10px;gap:8px;clear:both}
html[data-device-mode="mobile"] .tab{height:40px;min-height:40px;min-width:0;padding:8px 16px;font-size:12px;border-radius:24px}
html[data-device-mode="mobile"] .library-stage,html[data-device-mode="mobile"] .tv-layout{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:12px 22px 32px;display:block;overflow:visible;max-width:1000px;margin:auto}
html[data-device-mode="mobile"] .library-hero{min-height:0;padding:24px 20px;border-radius:20px;margin-bottom:20px}
html[data-device-mode="mobile"] .lib-meta{font-size:11px;letter-spacing:.1em}
html[data-device-mode="mobile"] .library-hero h2{font-size:25px;margin:14px 0 12px}
html[data-device-mode="mobile"] .library-hero p{font-size:14px;line-height:1.6;max-height:120px}
html[data-device-mode="mobile"] .hero-tags{gap:6px;margin:18px 0}
html[data-device-mode="mobile"] .hero-tags span{font-size:10px;padding:6px 9px}
html[data-device-mode="mobile"] .hero-actions{gap:8px}
html[data-device-mode="mobile"] .hero-actions button{font-size:12px;min-width:0;padding:12px 10px}
html[data-device-mode="mobile"] .poster-grid{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:18px 14px;padding:5px;overflow:visible}
html[data-device-mode="mobile"] .poster-card,html[data-device-mode="mobile"] .search-results .poster-card{min-height:0;height:auto;border-radius:12px}
html[data-device-mode="mobile"] .poster-card img,html[data-device-mode="mobile"] .search-results .poster-card img{height:auto;aspect-ratio:2/3}
html[data-device-mode="mobile"] .poster-info{height:auto;min-height:64px;padding:10px}
html[data-device-mode="mobile"] .poster-info strong{font-size:12px;line-height:1.4}
html[data-device-mode="mobile"] .poster-info span{font-size:10px;line-height:1.4;margin-top:6px}
html[data-device-mode="mobile"] .page-indicator{font-size:12px;padding:14px}
html[data-device-mode="mobile"] .search-box-wrap{position:relative;left:auto;right:auto;top:auto;padding:0 22px;gap:10px;clear:both}
html[data-device-mode="mobile"] .search-box{height:52px;font-size:16px;min-width:0;flex:1;padding:0 14px;border-radius:12px}
html[data-device-mode="mobile"] .search-box-wrap button{width:auto;min-width:82px;font-size:12px;padding:12px}
html[data-device-mode="mobile"] .search-results{position:relative;left:auto;right:auto;top:auto;bottom:auto;margin:20px 22px 32px;overflow:visible}
html[data-device-mode="mobile"] .tv-channel-list{padding:12px;border-radius:20px;margin-bottom:20px}
html[data-device-mode="mobile"] .channel-row{height:auto;min-height:68px;padding:10px 8px;gap:10px;border-radius:12px;margin-bottom:8px}
html[data-device-mode="mobile"] .channel-row img{width:50px;height:36px;border-radius:8px}
html[data-device-mode="mobile"] .channel-row .num{font-size:11px;width:20px;flex-shrink:0}
html[data-device-mode="mobile"] .channel-row strong{font-size:14px}
html[data-device-mode="mobile"] .channel-row span{font-size:11px;margin-top:5px}
html[data-device-mode="mobile"] .tv-info{padding:24px 20px;border-radius:20px}
html[data-device-mode="mobile"] .tv-logo-wrap{height:70px}
html[data-device-mode="mobile"] .tv-logo-wrap img{max-height:64px;max-width:180px}
html[data-device-mode="mobile"] .live-pill,html[data-device-mode="mobile"] .status-pill{font-size:10px;padding:7px 10px}
html[data-device-mode="mobile"] .tv-info h2{font-size:26px;margin:18px 0 12px}
html[data-device-mode="mobile"] .tv-info p{font-size:14px;line-height:1.5;max-width:none}
html[data-device-mode="mobile"] .epg-panel{grid-template-columns:1fr;gap:10px;margin:22px 0}
html[data-device-mode="mobile"] .epg-panel>div{min-height:0;padding:16px;border-radius:12px}
html[data-device-mode="mobile"] .epg-panel span{font-size:10px}
html[data-device-mode="mobile"] .epg-panel strong{font-size:15px;margin:10px 0 7px}
html[data-device-mode="mobile"] .epg-panel small{font-size:11px}
html[data-device-mode="mobile"] .activation-panel{position:relative;left:auto;right:auto;top:auto;bottom:auto;margin:30px 22px;padding:24px 20px;display:flex;flex-direction:column;gap:28px;border-radius:22px;overflow:visible}
html[data-device-mode="mobile"] .activation-left h1{font-size:30px;letter-spacing:-.04em}
html[data-device-mode="mobile"] .activation-left p{font-size:14px;line-height:1.6;max-width:none}
html[data-device-mode="mobile"] .activation-url{font-size:12px;line-height:1.5;padding:14px;margin:22px 0}
html[data-device-mode="mobile"] .activation-left button{width:100%;max-width:none;margin-top:12px}
html[data-device-mode="mobile"] .activation-right{width:100%;font-size:13px}
html[data-device-mode="mobile"] .qr-card{width:190px;height:190px;padding:12px;margin-bottom:18px;border-radius:18px}
html[data-device-mode="mobile"] .center-layout{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:8px 22px 32px;display:block;overflow:visible;max-width:1000px;margin:auto}
html[data-device-mode="mobile"] .center-summary{padding:24px 20px;border-radius:20px;margin-bottom:20px}
html[data-device-mode="mobile"] .center-logo img{width:56px;height:56px;border-radius:14px}
html[data-device-mode="mobile"] .center-summary h2{font-size:24px;margin:18px 0 10px}
html[data-device-mode="mobile"] .center-summary>p{font-size:11px;line-height:1.5}
html[data-device-mode="mobile"] .center-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
html[data-device-mode="mobile"] .center-metrics>div{padding:12px;border-radius:12px}
html[data-device-mode="mobile"] .center-metrics span{font-size:10px}
html[data-device-mode="mobile"] .center-metrics strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
html[data-device-mode="mobile"] .center-actions-grid{grid-template-columns:1fr;grid-template-rows:auto;gap:12px}
html[data-device-mode="mobile"] .center-action{min-height:105px;padding:18px 18px 18px 70px;border-radius:16px}
html[data-device-mode="mobile"] .center-icon{position:absolute;left:18px;top:20px;width:34px;height:34px;font-size:22px;margin:0;border-radius:10px}
html[data-device-mode="mobile"] .center-action strong{font-size:15px}
html[data-device-mode="mobile"] .center-action small{font-size:12px;line-height:1.5;margin-top:8px}
html[data-device-mode="mobile"] .diagnostics-panel{position:relative;right:auto;bottom:auto;width:auto;margin:0 22px 24px;font-size:12px;padding:18px}
html[data-device-mode="mobile"] .exit-card{width:calc(100vw - 40px);max-width:480px;padding:24px;grid-template-columns:40px minmax(0,1fr);gap:14px;border-radius:22px;min-height:0}
html[data-device-mode="mobile"] .exit-icon{width:40px;height:40px;font-size:24px}
html[data-device-mode="mobile"] .exit-card h2{font-size:24px;margin:0 0 12px}
html[data-device-mode="mobile"] .exit-card p{font-size:14px;line-height:1.6}
html[data-device-mode="mobile"] .exit-actions button{font-size:12px;padding:12px 8px;width:auto}
html[data-device-mode="mobile"] .toast{font-size:13px;width:max-content;max-width:90vw;bottom:24px;padding:12px 16px}
html[data-device-mode="mobile"] .splash-status{font-size:14px}
html[data-device-mode="mobile"] .ui-editor-screen{padding:24px 22px 32px}
html[data-device-mode="mobile"] .ui-editor-top{margin-bottom:24px;align-items:flex-start}
html[data-device-mode="mobile"] .ui-editor-top h1{font-size:28px;margin:10px 0}
html[data-device-mode="mobile"] .ui-editor-panel{padding:24px 18px;border-radius:20px}
html[data-device-mode="mobile"] .ui-editor-columns{display:flex;flex-direction:column-reverse;gap:24px}
html[data-device-mode="mobile"] .ui-editor-preview{padding:18px;width:100%;display:grid;grid-template-columns:64px 1fr;text-align:left;column-gap:16px}
html[data-device-mode="mobile"] .ui-editor-preview img{width:64px;height:64px;grid-row:1/3}
html[data-device-mode="mobile"] .ui-editor-preview h3{font-size:18px;margin:5px 0 8px}
html[data-device-mode="mobile"] .ui-editor-preview p{font-size:11px;margin:0}
html[data-device-mode="mobile"] .ui-steps{gap:12px;margin-bottom:24px;font-size:11px}
html[data-device-mode="mobile"] .ui-steps b{width:22px;height:22px}
html[data-device-mode="mobile"] .ui-editor-panel h2{font-size:23px}
html[data-device-mode="mobile"] .ui-editor-panel p{font-size:14px}
html[data-device-mode="mobile"] .ui-avatar-grid{gap:10px}
html[data-device-mode="mobile"] .ui-avatar-button{min-height:0;padding:7px;border-radius:12px}
html[data-device-mode="mobile"] .ui-editor-actions button{flex:1;min-width:100px}
html[data-device-mode="mobile"] .ui-manage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html[data-device-mode="mobile"] .ui-manage-grid .profile-card{min-height:190px}
/* Compact landscape player, separate from portrait UI. */
@media (orientation:landscape){html[data-device-mode="mobile"] .player-controls{left:14px;right:14px;bottom:12px;padding:12px 16px}html[data-device-mode="mobile"] .player-title{font-size:17px}html[data-device-mode="mobile"] .player-subtitle{font-size:11px}html[data-device-mode="mobile"] .player-bottomline{font-size:11px;gap:6px;flex-wrap:wrap}html[data-device-mode="mobile"] .player-control{min-width:40px;height:40px;font-size:13px}html[data-device-mode="mobile"] .program-card{width:38vw;padding:14px 18px;top:5vh}html[data-device-mode="mobile"] .program-card h2{font-size:18px}html[data-device-mode="mobile"] .program-card #program-now-desc{font-size:11px;max-height:18vh;overflow:hidden}html[data-device-mode="mobile"] .program-card #program-next-title{font-size:12px}html[data-device-mode="mobile"] .program-label,html[data-device-mode="mobile"] .program-next-label{font-size:10px}html[data-device-mode="mobile"] .player-error{width:min(460px,85vw);padding:20px}}
@media (min-width:650px){html[data-device-mode="mobile"] .home-menu{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-device-mode="mobile"] .poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-device-mode="mobile"] .profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-device-mode="mobile"] .center-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Avoid baked-in headings from the old login/profile background artwork. */
.login-art,.profiles-art{background-image:none}
.home-option img{filter:sepia(1) saturate(.65)}
html[data-device-mode="tv"] #tv-network-state{margin-right:140px}
html[data-device-mode="mobile"] .library-header,html[data-device-mode="mobile"] .tv-header{clear:both}
@media (max-width:359px){html[data-device-mode="mobile"] .login-copy h1{font-size:34px}html[data-device-mode="mobile"] .home-content h1{font-size:28px}html[data-device-mode="mobile"] .home-option{padding:16px 12px}html[data-device-mode="mobile"] .home-option strong{font-size:14px}}
.library-hero{position:relative;isolation:isolate;background-size:cover;background-repeat:no-repeat;background-position:center}
.library-hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(10,16,26,.82),rgba(10,16,26,.97) 66%);border-radius:inherit}
.login-layout{align-items:flex-start}
/* Native BUILD012 trial entry uses this class; it shares the new visual language. */
html .login-card .fenix-trial-divider{display:flex;align-items:center;justify-content:center;gap:12px;color:#989cab;font-size:var(--ui-small);letter-spacing:.08em;margin:18px 0 12px;text-transform:uppercase;opacity:1}
html .login-card .fenix-trial-btn{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;position:relative;width:100%;min-height:80px;padding:16px 18px 16px 54px;border:1px solid #e6b18b55;border-radius:14px;background:linear-gradient(110deg,#322a28,#25232f);box-shadow:none;overflow:hidden;transform:none}
html .login-card .fenix-trial-btn:before{content:"✦";display:grid;place-items:center;position:absolute;left:14px;top:22px;width:28px;height:28px;inset:auto auto auto 14px;animation:none;transform:none;background:#e9b187;color:#282018;font-size:20px;border-radius:9px}
html .login-card .fenix-trial-btn strong{font-size:clamp(12px,.93vw,20px);letter-spacing:.025em;line-height:1.4;color:#f6eee8;text-align:left}
html .login-card .fenix-trial-btn span{font-size:var(--ui-small);letter-spacing:.02em;line-height:1.4;color:#bdb2ae;margin-top:5px;text-align:left}
html[data-device-mode="mobile"] .login-card .fenix-trial-divider{font-size:10px}
html[data-device-mode="mobile"] .login-card .fenix-trial-btn{min-height:84px;padding:14px 12px 14px 50px}
html[data-device-mode="mobile"] .login-card .fenix-trial-btn strong{font-size:11px}
html[data-device-mode="mobile"] .login-card .fenix-trial-btn span{font-size:10px}
@media (max-height:650px){html[data-device-mode="tv"] .login-layout{padding-top:13vh;padding-bottom:20px;align-items:flex-start}html[data-device-mode="tv"] .login-card{padding:16px 20px}html[data-device-mode="tv"] .login-card h2{font-size:25px;margin:5px 0 12px}html[data-device-mode="tv"] .login-card>label{margin:8px 0 5px}html[data-device-mode="tv"] .input-wrap{height:42px;margin-bottom:6px}html[data-device-mode="tv"] .login-meta{margin:8px 0 12px}html[data-device-mode="tv"] .login-card .primary-btn,html[data-device-mode="tv"] .login-card .secondary-btn{min-height:40px;padding:9px 16px}html[data-device-mode="tv"] .login-card .fenix-trial-divider{margin:12px 0 8px;font-size:10px}html[data-device-mode="tv"] .login-card .fenix-trial-btn{min-height:68px;padding-top:10px;padding-bottom:10px}html[data-device-mode="tv"] .login-card .fenix-trial-btn strong{font-size:11px}html[data-device-mode="tv"] .login-card .fenix-trial-btn span{font-size:10px}html[data-device-mode="tv"] .login-copy h1{font-size:clamp(36px,4.6vw,60px)}html[data-device-mode="tv"] .login-copy{padding-top:10vh}html[data-device-mode="tv"] .login-copy p{font-size:15px}}
.form-error:empty{display:none}
@media (max-height:650px){html[data-device-mode="tv"] .login-layout{padding-top:12vh}html[data-device-mode="tv"] .login-card{padding:14px 18px}}
