:root{--bg:#08090c;--panel:#11141a;--panel2:#171b22;--line:#2a303a;--text:#f5f7fa;--muted:#9aa4b2;--accent:#ffb000;--accent2:#ff6b00;--good:#62e68a;--bad:#ff6b6b;--sidebar:240px}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}body.player-open{overflow:hidden}button,input{font:inherit}.hidden{display:none!important}.toast{position:fixed;top:18px;right:18px;z-index:1200;background:#171b22;border:1px solid #343b47;padding:12px 16px;border-radius:12px;opacity:0;transform:translateY(-8px);transition:.2s;pointer-events:none;box-shadow:0 14px 40px #0008}.toast.show{opacity:1;transform:none}.login-view{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;padding:24px}.login-glow{position:absolute;width:700px;height:700px;border-radius:50%;background:radial-gradient(circle,rgba(255,176,0,.18),transparent 67%);filter:blur(20px)}.login-card{position:relative;width:min(440px,100%);background:rgba(16,18,23,.96);border:1px solid #2a3039;border-radius:24px;padding:32px;box-shadow:0 24px 80px #0008}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#090909;font-weight:900;font-size:25px}.brand strong{display:block;letter-spacing:.08em}.brand span{font-size:12px;color:var(--accent);font-weight:800}.login-card h1{font-size:30px;margin:28px 0 8px}.login-card p{color:var(--muted)}label{display:block;margin:18px 0 8px;color:#dfe4ea;font-weight:700}input{width:100%;background:#0c0f14;color:#fff;border:1px solid #323946;border-radius:12px;padding:14px 15px;outline:none}input:focus{border-color:var(--accent)}.password-wrap{display:flex}.password-wrap input{border-radius:12px 0 0 12px}.password-wrap button{width:54px;border:1px solid #323946;border-left:0;border-radius:0 12px 12px 0;background:#151922;color:#fff}.primary,.load-more{border:0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111;font-weight:900;border-radius:12px;padding:14px 18px;cursor:pointer}.primary{width:100%;margin-top:22px}.form-msg{min-height:22px;color:var(--bad);margin-top:10px}.app-view{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#0d0f13;border-right:1px solid #252b34;padding:20px 14px;display:flex;flex-direction:column;z-index:30}.compact{padding:4px 8px 22px}.compact .brand-mark{width:38px;height:38px;font-size:21px}.sidebar nav{display:grid;gap:8px}.nav,.logout{border:0;background:transparent;color:#d7dde5;text-align:left;padding:13px 14px;border-radius:12px;cursor:pointer}.nav:hover,.nav.active{background:#1a1f27;color:#fff}.nav.active{box-shadow:inset 3px 0 0 var(--accent)}.logout{margin-top:auto;color:#b7c0cb}.main{margin-left:var(--sidebar);min-height:100vh}.topbar{display:flex;align-items:center;gap:18px;padding:18px 26px;border-bottom:1px solid #232933;background:#0b0d11ec;backdrop-filter:blur(10px);position:sticky;top:0;z-index:20}.topbar h2{margin:0;font-size:20px}.topbar p{margin:3px 0 0;color:var(--muted);font-size:12px}.search{margin-left:auto;display:flex;align-items:center;gap:8px;background:#11151b;border:1px solid #2e3540;border-radius:12px;padding:0 12px;width:min(360px,40vw)}.search input{border:0;background:transparent;padding:11px 0}.mobile-menu{display:none;border:0;background:#171b22;color:#fff;border-radius:9px;padding:8px 10px}.content-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;padding:22px}.categories{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;height:fit-content;position:sticky;top:88px;max-height:calc(100vh - 112px);overflow:auto}.categories h3,.catalog-header h3{margin:4px 0 12px}.categories button{width:100%;text-align:left;border:0;background:transparent;color:#cdd4dd;padding:10px;border-radius:9px;cursor:pointer}.categories button:hover,.categories button.active{background:#202630;color:#fff}.catalog{min-width:0}.catalog-header{display:flex;justify-content:space-between;align-items:center}.catalog-header span{color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px}.card{background:var(--panel);border:1px solid #252b35;border-radius:15px;overflow:hidden;cursor:pointer;transition:.18s}.card:hover{transform:translateY(-2px);border-color:#414a58}.poster{aspect-ratio:2/3;background:#151922;position:relative;display:grid;place-items:center;overflow:hidden}.card.live .poster{aspect-ratio:16/10}.poster img{width:100%;height:100%;object-fit:cover}.fallback{font-size:34px;color:#596575}.fav-mini{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:50%;border:1px solid #ffffff33;background:#090b0ddd;color:#fff;cursor:pointer}.play-badge{position:absolute;inset:auto auto 10px 10px;background:#000c;border-radius:999px;padding:7px 10px;font-size:11px}.card-body{padding:11px}.card-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-meta{font-size:10px;color:var(--accent);margin-top:5px;font-weight:800}.empty{padding:40px;text-align:center;color:var(--muted);background:var(--panel);border-radius:14px}.load-more-wrap{text-align:center;padding:20px}.modal{position:fixed;inset:0;background:#000e;z-index:100;display:grid;place-items:center;padding:16px}.modal-shell{width:min(1500px,98vw);max-height:97vh;overflow:auto;background:#0d1015;border:1px solid #2c333e;border-radius:16px;box-shadow:0 35px 100px #000;transition:.2s}.modal-shell.theater{width:100vw;max-height:100vh;height:100vh;border-radius:0;border:0;display:flex;flex-direction:column}.modal-shell.theater .video-stage{flex:1;min-height:0;max-height:none}.player-top{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #242a33;background:#0f1217}.player-heading{min-width:0}.player-top strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-top span{display:block;color:var(--muted);font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;gap:8px}.top-actions button,.player-actions button,.control-btn{border:1px solid #303743;background:#171b22;color:#fff;border-radius:10px;cursor:pointer}.top-actions button{width:42px;height:42px}.video-stage{position:relative;background:#000;overflow:hidden;display:grid;place-items:center;min-height:260px;max-height:76vh}.video-stage.aspect-auto{aspect-ratio:16/9}.video-stage.aspect-169{aspect-ratio:16/9}.video-stage.aspect-43{aspect-ratio:4/3}.video-stage.aspect-219{aspect-ratio:21/9}.video-stage video{width:100%;height:100%;display:block;background:#000;transition:transform .15s ease;transform-origin:center center}.video-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#0007;color:#fff;font-weight:700;z-index:3;pointer-events:none}.spinner{width:28px;height:28px;border:3px solid #ffffff25;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.big-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:4;width:68px;height:68px;border-radius:50%;border:1px solid #ffffff45;background:#07090bcc;color:#fff;font-size:24px;cursor:pointer;backdrop-filter:blur(8px)}.gesture-hint{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);background:#000c;color:#fff;border-radius:999px;padding:10px 16px;font-weight:800;pointer-events:none}.controls{background:#0f1217;border-top:1px solid #242a33;padding:10px 12px}.timeline-row{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:10px;color:#c9d0d9;font-variant-numeric:tabular-nums;font-size:12px}.seekbar,.volume{accent-color:var(--accent);padding:0;border:0;background:transparent}.seekbar{height:22px}.seekbar:disabled{opacity:.45}.control-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:6px}.control-group{display:flex;align-items:center;gap:7px;min-width:0}.control-btn{height:38px;min-width:40px;padding:0 10px;font-weight:700}.primary-control{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111;border:0}.volume{width:90px}.zoom-label{min-width:44px;text-align:center;color:#cfd6df;font-size:12px}.player-actions{display:flex;gap:10px;align-items:center;padding:11px 16px;border-top:1px solid #252b34;flex-wrap:wrap}.player-actions button{padding:9px 12px}.episode-panel{padding:12px 16px;background:#101319;border-top:1px solid #252b34;max-height:260px;overflow:auto}.season-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:10px}.season-tabs button{white-space:nowrap;border:1px solid #333b47;background:#171b22;color:#fff;border-radius:9px;padding:8px 11px;cursor:pointer}.season-tabs button.active{border-color:var(--accent);color:var(--accent)}.episode-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.episode-list button{border:1px solid #2c333e;background:#151922;color:#fff;border-radius:10px;padding:10px;text-align:left;cursor:pointer}.episode-list button:hover{border-color:#535f70}.episode-list small{display:block;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1000px){:root{--sidebar:200px}.content-layout{grid-template-columns:180px minmax(0,1fr)}.grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.right-controls{flex-wrap:wrap;justify-content:flex-end}.volume{width:70px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin-left:0}.mobile-menu{display:block}.search{width:min(240px,44vw)}.content-layout{grid-template-columns:1fr;padding:14px}.categories{position:static;max-height:none}.categories #categoryList{display:flex;overflow:auto;gap:6px}.categories button{width:auto;white-space:nowrap;background:#151922}.modal{padding:0}.modal-shell{width:100vw;max-height:100vh;height:100dvh;border-radius:0;border:0;display:flex;flex-direction:column}.video-stage{min-height:0;max-height:none;flex:1}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:12px}.topbar>div:nth-child(2){display:none}.player-top{padding:8px 10px}.controls{padding:8px}.control-row{align-items:flex-start;gap:8px}.left-controls,.right-controls{gap:5px;flex-wrap:wrap}.control-btn{height:36px;min-width:36px;padding:0 8px;font-size:12px}.volume{width:72px}.zoom-label{min-width:38px}.episode-panel{max-height:34vh}.player-actions{padding:8px 10px}.top-actions button{width:38px;height:38px}}
@media(max-width:520px){.search{width:48vw}.grid{gap:10px}.card-body{padding:9px}.control-row{display:grid;grid-template-columns:1fr}.right-controls{justify-content:flex-start}.volume{width:64px}.timeline-row{gap:6px}.player-top strong{max-width:52vw}.episode-list{grid-template-columns:1fr}.controls{padding-bottom:max(8px,env(safe-area-inset-bottom))}.player-actions{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
@media(orientation:landscape) and (max-height:560px){.modal-shell{height:100vh}.player-top{padding:6px 10px}.video-stage{flex:1;min-height:0;max-height:none}.controls{padding:5px 8px}.control-btn{height:32px}.episode-panel{max-height:120px}}

.brand-logo{width:72px;height:52px;object-fit:contain;filter:drop-shadow(0 4px 14px #ff850044)}
.brand.compact .brand-logo{width:62px;height:46px}.login-card .brand-logo{width:96px;height:70px}
.player-open{overflow:hidden}.modal{padding:0;background:#000}.modal-shell{width:min(1680px,100vw);height:min(96dvh,980px);max-height:100dvh;border-radius:0;background:#000;overflow:hidden;display:flex;flex-direction:column;border:0;box-shadow:none}
.video-stage{flex:1;min-height:0;max-height:none;background:#000;position:relative;overflow:hidden;display:grid;place-items:center;transition:aspect-ratio .2s ease}
.video-stage video{position:absolute;inset:0;width:100%;height:100%;background:#000;transition:transform .16s ease,object-fit .16s ease;transform-origin:center center}
.video-stage.aspect-auto{aspect-ratio:auto}.video-stage.aspect-169{aspect-ratio:16/9}.video-stage.aspect-1610{aspect-ratio:16/10}.video-stage.aspect-43{aspect-ratio:4/3}.video-stage.aspect-32{aspect-ratio:3/2}.video-stage.aspect-219{aspect-ratio:21/9}.video-stage.aspect-11{aspect-ratio:1/1}.video-stage.aspect-916{aspect-ratio:9/16}
.player-overlay-top{position:absolute;z-index:9;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px 34px;background:linear-gradient(180deg,rgba(0,0,0,.92),rgba(0,0,0,.52) 58%,transparent);transition:opacity .24s ease,transform .24s ease}
.player-branding{display:flex;align-items:center;gap:12px;min-width:0}.player-branding img{width:74px;height:52px;object-fit:contain;filter:drop-shadow(0 5px 16px #000)}.player-heading{min-width:0}.player-heading strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-heading span{display:block;color:#d5d8dd;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{display:flex;gap:8px;align-items:center}.top-actions button{width:42px;height:42px;border-radius:50%;border:1px solid #ffffff24;background:#090b0dcc;color:#fff;backdrop-filter:blur(10px);font-size:17px;cursor:pointer}.top-actions button:hover{background:#ffffff1c;border-color:#ffffff44}
.controls{position:absolute;z-index:10;left:0;right:0;bottom:0;padding:50px 16px 14px;background:linear-gradient(0deg,rgba(0,0,0,.96),rgba(0,0,0,.76) 52%,transparent);border:0;transition:opacity .24s ease,transform .24s ease}
.controls-hidden{cursor:none}.controls-hidden .player-chrome{opacity:0;pointer-events:none}.controls-hidden .player-overlay-top{transform:translateY(-12px)}.controls-hidden .controls{transform:translateY(12px)}.controls-visible .player-chrome{opacity:1;pointer-events:auto}
.control-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.control-group{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.control-btn,.control-select{height:38px;border:1px solid #ffffff26;background:#121418dc;color:#fff;border-radius:10px;backdrop-filter:blur(10px);font-weight:700}.control-btn{min-width:40px;padding:0 10px;cursor:pointer}.control-btn:hover,.control-select:hover{background:#252a32}.primary-control{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111;border:0}.control-select{padding:0 28px 0 10px;outline:none;cursor:pointer}.control-select option{background:#121418;color:#fff}.zoom-select{min-width:78px}.volume{width:96px}
.timeline-row{display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:10px;color:#fff;font-variant-numeric:tabular-nums;font-size:12px;margin-bottom:7px;text-shadow:0 1px 3px #000}.seekbar{width:100%;height:22px;cursor:pointer;accent-color:var(--accent)}
.video-status{z-index:7;background:rgba(0,0,0,.34);backdrop-filter:blur(2px)}.big-play{z-index:8;background:#080a0dd9;box-shadow:0 10px 35px #0009}.gesture-hint{z-index:12}
.episode-panel{flex:0 0 auto;max-height:30vh;background:#0d1015;border-top:1px solid #242a33}.modal-shell.theater{width:100vw;height:100dvh;max-height:100dvh}.modal-shell.theater .episode-panel{max-height:23vh}
@media(max-width:900px){.modal-shell{width:100vw;height:100dvh}.player-branding img{width:58px;height:42px}.controls{padding:42px 10px 10px}.control-row{align-items:flex-end}.right-controls{justify-content:flex-end}.control-select{height:36px;font-size:12px;padding-left:8px}.control-btn{height:36px;font-size:12px}.volume{width:76px}}
@media(max-width:650px){.player-overlay-top{padding:8px 8px 26px}.player-branding img{width:46px;height:34px}.player-heading strong{font-size:14px;max-width:48vw}.player-heading span{font-size:10px}.top-actions{gap:5px}.top-actions button{width:36px;height:36px;font-size:14px}.controls{padding:38px 8px max(8px,env(safe-area-inset-bottom))}.control-row{display:grid;grid-template-columns:1fr;gap:6px}.left-controls,.right-controls{justify-content:center;gap:5px}.control-btn{min-width:34px;padding:0 7px}.control-select{max-width:92px}.volume{width:68px}.timeline-row{grid-template-columns:42px minmax(80px,1fr) 42px;gap:6px}.episode-panel{max-height:34vh}.brand-logo{width:58px;height:42px}}
@media(orientation:landscape) and (max-height:620px){.modal-shell{height:100vh}.player-overlay-top{padding:5px 10px 22px}.player-branding img{width:48px;height:34px}.controls{padding:30px 8px 5px}.control-btn,.control-select{height:31px}.timeline-row{margin-bottom:2px}.episode-panel{max-height:110px}}


/* v8 player interaction refinements */
.player-chrome{transition:opacity .28s ease,transform .28s ease,visibility .28s ease}
.controls-hidden .player-chrome{visibility:hidden}
.controls-visible .player-chrome{visibility:visible}
.big-play{transition:opacity .2s ease,transform .2s ease,background .2s ease;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.big-play:hover{background:#15191ee8;transform:translate(-50%,-50%) scale(1.06)}
.big-play:active{transform:translate(-50%,-50%) scale(.95)}
.controls-hidden .big-play.hidden{display:none!important}
.video-stage{touch-action:manipulation}
.video-stage video{-webkit-user-select:none;user-select:none}
.control-btn,.top-actions button,.control-select{touch-action:manipulation}
@media (hover:none) and (pointer:coarse){.big-play{width:74px;height:74px;font-size:28px}.control-btn{min-width:44px;height:42px}.top-actions button{width:42px;height:42px}}

/* v9 cross-browser hardening */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;height:100%}
body{min-height:100%;min-height:100vh;min-height:100dvh;-webkit-tap-highlight-color:transparent}
button,select,input{touch-action:manipulation}
video{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.modal{min-height:100vh;min-height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.modal-shell{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
.modal-shell.theater{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh}
.video-stage{width:100%;isolation:isolate}
.video-stage video{min-width:0;min-height:0}
.player-overlay-top,.controls{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.controls{padding-bottom:max(10px,env(safe-area-inset-bottom))}
.control-select{-webkit-appearance:none;appearance:none;background:#171b22;color:#fff;border:1px solid #303743;border-radius:10px;padding:8px 28px 8px 10px;background-image:linear-gradient(45deg,transparent 50%,#cbd3dd 50%),linear-gradient(135deg,#cbd3dd 50%,transparent 50%);background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
@supports not (aspect-ratio:16/9){.video-stage.aspect-auto,.video-stage.aspect-169{height:0;padding-top:56.25%}.video-stage.aspect-43{height:0;padding-top:75%}.video-stage.aspect-219{height:0;padding-top:42.857%}.video-stage.aspect-1610{height:0;padding-top:62.5%}.video-stage.aspect-32{height:0;padding-top:66.667%}.video-stage.aspect-11{height:0;padding-top:100%}.video-stage.aspect-916{height:0;padding-top:177.778%}.video-stage>video,.video-stage>.player-overlay-top,.video-stage>.video-status,.video-stage>.big-play,.video-stage>.gesture-hint,.video-stage>.controls{position:absolute}}
@media(max-width:760px){.modal{padding:0}.modal-shell{width:100vw;max-height:100vh;max-height:100dvh;border-radius:0}.video-stage{min-height:220px}.control-row{align-items:flex-start}.left-controls,.right-controls{max-width:100%;overflow-x:auto;scrollbar-width:none}.left-controls::-webkit-scrollbar,.right-controls::-webkit-scrollbar{display:none}.control-btn{min-width:44px;height:44px}.control-select{height:44px}.volume{min-width:82px}.player-branding img{max-width:82px}}
@media(hover:none) and (pointer:coarse){.card:hover{transform:none}.control-btn,.top-actions button,.fav-mini{min-height:44px;min-width:44px}.controls-visible .player-chrome{pointer-events:auto}}
@media screen and (orientation:landscape) and (max-height:520px){.modal{padding:0}.modal-shell{width:100vw;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0}.video-stage{height:100vh;height:100dvh;max-height:none;aspect-ratio:auto!important}.episode-panel{display:none!important}.player-overlay-top{padding-top:max(6px,env(safe-area-inset-top))}.controls{padding-bottom:max(6px,env(safe-area-inset-bottom))}}

/* v10 player inactivity */
.controls-hidden .player-chrome{opacity:0!important;visibility:hidden!important;pointer-events:none!important}.controls-hidden .big-play.hidden{display:none!important}.controls-hidden .gesture-hint.hidden{display:none!important}.controls-hidden video{cursor:none}.controls-visible video{cursor:default}.player-chrome{-webkit-user-select:none;user-select:none}.control-select:focus,.control-btn:focus{outline:2px solid rgba(255,176,0,.55);outline-offset:2px}

/* v12 mobile-first playback and controls */
.device-ios .video-stage video,.device-android .video-stage video,.device-android-tv .video-stage video{transform-origin:center center}
@media(max-width:760px){
  .topbar{padding:max(10px,env(safe-area-inset-top)) 12px 10px;gap:10px}
  .topbar>div:first-of-type{min-width:0}.topbar h2{font-size:17px}.topbar p{display:none}
  .search{width:min(46vw,220px);padding:0 9px}.search input{font-size:16px;padding:9px 0}
  .content-layout{padding:10px;gap:10px}.categories{border-radius:12px;padding:9px;overflow-x:auto;white-space:nowrap}.categories h3{display:none}.categories #categoryList{display:flex;gap:6px}.categories button{width:auto;flex:0 0 auto;border:1px solid #2d3440;background:#151922;padding:9px 12px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.card{border-radius:11px}.card-body{padding:8px}.card-title{font-size:12px}.card-meta{font-size:9px}.fav-mini{width:32px;height:32px}.play-badge{padding:5px 7px;font-size:9px}
  .modal-shell{height:100dvh!important;max-height:100dvh!important}.video-stage{height:100%;min-height:0!important;aspect-ratio:auto!important}.player-overlay-top{padding-top:max(8px,env(safe-area-inset-top))}
  .controls{max-height:46dvh;overflow-y:auto;-webkit-overflow-scrolling:touch}.control-row{gap:8px}.left-controls,.right-controls{overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;padding-bottom:2px}.control-btn{flex:0 0 auto}.control-select{flex:0 0 auto;max-width:108px}.timeline-row{position:sticky;top:0}
}
@media(max-width:420px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-heading strong{max-width:42vw}.volume{display:none}.right-controls{justify-content:flex-start}.control-select{max-width:92px}}
@media screen and (orientation:landscape) and (max-height:540px){.player-branding img{width:42px;height:30px}.player-heading span{display:none}.top-actions button{width:34px;height:34px}.controls{padding-top:26px;max-height:42vh}.control-btn,.control-select{height:34px}.timeline-row{font-size:11px}}


/* v28.3 TV experience */
.card.live .poster{background:radial-gradient(circle at 50% 45%,#202632 0,#11151c 66%,#0c0f14 100%)}
.card.live .poster img.channel-logo{width:82%;height:78%;object-fit:contain;padding:9px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.55))}
.video-stage{background:#000}.video-stage video{transition:opacity .10s linear;background:#000}.video-stage video.video-blank{opacity:0!important}
.channel-nav{font-size:18px;min-width:46px}
.card:focus-visible,.nav:focus-visible,#categoryList button:focus-visible,.logout:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-color:var(--accent);transform:scale(1.02)}
html.tv-mode .control-btn,html.tv-mode .top-actions button{min-width:56px;height:52px;font-size:18px;border-radius:12px}
html.tv-mode .control-select{height:52px;font-size:15px;min-width:108px}
html.tv-mode .control-btn:focus,html.tv-mode .top-actions button:focus,html.tv-mode .control-select:focus{outline:4px solid #fff!important;outline-offset:3px;box-shadow:0 0 0 6px rgba(255,176,0,.48);transform:scale(1.08);z-index:20}
html.tv-mode .card:focus,html.tv-mode #categoryList button:focus,html.tv-mode .nav:focus{outline:4px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px rgba(255,176,0,.45);transform:scale(1.035)}
html.tv-mode .controls{padding-bottom:26px}html.tv-mode .control-row{gap:14px}html.tv-mode .control-group{gap:10px}
@media(max-width:760px){.channel-nav{min-width:44px}.card.live .poster img.channel-logo{width:86%;height:82%;padding:6px}}


/* v29 experience plus */
.channel-overlay{position:absolute;left:max(18px,env(safe-area-inset-left));top:82px;z-index:13;display:flex;align-items:center;gap:12px;max-width:min(72vw,560px);padding:10px 14px;border-radius:14px;background:rgba(8,10,14,.86);backdrop-filter:blur(8px);box-shadow:0 10px 30px #0008;pointer-events:none;animation:dtvIn .16s ease}
.channel-overlay img{width:54px;height:42px;object-fit:contain;background:#151922;border-radius:9px;padding:4px}.channel-overlay strong{display:block;color:#fff;font-size:16px;line-height:1.2}.channel-overlay span{display:block;color:#aeb8c5;font-size:11px;margin-top:3px}
@keyframes dtvIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.mini-guide{position:absolute;z-index:30;top:0;right:0;width:min(390px,88vw);height:100%;background:rgba(8,10,14,.96);backdrop-filter:blur(14px);border-left:1px solid #2b313a;box-shadow:-18px 0 42px #000b;display:flex;flex-direction:column}.mini-guide-head{height:66px;flex:0 0 66px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #252b34}.mini-guide-head strong{font-size:18px}.mini-guide-head button{width:42px;height:42px;border-radius:10px}.mini-guide-list{overflow:auto;padding:8px}.mini-guide-item{width:100%;min-height:58px;border:0;border-radius:10px;background:transparent;color:#fff;display:grid;grid-template-columns:54px 1fr;align-items:center;text-align:left;gap:10px;padding:7px 9px}.mini-guide-item:hover,.mini-guide-item:focus,.mini-guide-item.active{background:#1b212b;outline:2px solid var(--accent)}.mini-guide-item img{width:48px;height:40px;object-fit:contain;background:#11151b;border-radius:7px;padding:3px}.mini-guide-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.tv-mode .mini-guide{width:min(480px,42vw)}html.tv-mode .mini-guide-item{min-height:70px;font-size:17px}html.tv-mode .mini-guide-item:focus{outline:4px solid #fff;box-shadow:0 0 0 6px rgba(255,176,0,.45)}
.card .poster img{content-visibility:auto}.card{contain:layout paint style}.grid{content-visibility:auto;contain-intrinsic-size:800px}
@media(max-width:760px){.channel-overlay{top:58px;left:10px;padding:8px 10px}.channel-overlay img{width:44px;height:34px}.channel-overlay strong{font-size:13px}.mini-guide{width:94vw}.mini-guide-head{height:56px;flex-basis:56px}}
/* V30 Robust Zapping */
#playerShell .controls{z-index:50!important;pointer-events:auto!important}
#playerShell .player-overlay-top{z-index:45!important;pointer-events:auto!important}
#playerShell .video-status{z-index:7!important;pointer-events:none!important}
#playerShell .channel-overlay{z-index:35!important;pointer-events:none!important}
#playerShell .mini-guide{z-index:70!important}
#prevChannelBtn,#nextChannelBtn{position:relative;z-index:80;pointer-events:auto!important;touch-action:manipulation}
#videoStage:focus{outline:none}
html.tv-mode #prevChannelBtn:focus,html.tv-mode #nextChannelBtn:focus{outline:4px solid #fff!important;outline-offset:4px;box-shadow:0 0 0 7px rgba(255,176,0,.62),0 0 30px rgba(255,176,0,.32)!important;transform:scale(1.12)}

/* v31 universal catalog artwork */
.card:not(.live) .poster{background:linear-gradient(160deg,#1b2029,#0d1015 72%)}
.card:not(.live) .poster img.catalog-poster{width:100%;height:100%;object-fit:cover;display:block;background:#11151b;transform:translateZ(0);backface-visibility:hidden}
@media (max-width:760px){.card:not(.live) .poster img.catalog-poster{image-rendering:auto}}

/* v32 customer portal */
#accountInfo{font-weight:650;color:#c9d2df}.adult-modal{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.78);display:grid;place-items:center;padding:20px;backdrop-filter:blur(8px)}.adult-card{width:min(410px,100%);background:#141922;border:1px solid #333c49;border-radius:20px;padding:24px;box-shadow:0 24px 80px #000c;text-align:center}.adult-lock{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#2a1111;border:1px solid #7c3030;color:#ff8e8e;font-weight:900;font-size:22px}.adult-card h3{margin:5px 0 6px}.adult-card p{color:#a7b1bf;margin:0 0 14px}.adult-card input{width:100%;text-align:center;letter-spacing:8px;font-size:22px;background:#090c11;color:#fff;border:1px solid #3b4554;border-radius:12px;padding:12px}.adult-actions{display:flex;gap:10px;margin-top:14px}.adult-actions button{flex:1;padding:12px;border-radius:11px;border:1px solid #3a424f;background:#1a2029;color:#fff}.adult-actions .primary{border:0;background:linear-gradient(90deg,var(--accent),var(--accent2));color:#111;font-weight:900}


/* v36 · Epic Optimized */
.perf-status{display:flex;align-items:center;gap:7px;border:1px solid #2d3540;background:#10141a;padding:7px 10px;border-radius:999px;color:#aab4c0;font-size:11px;white-space:nowrap}
.perf-status span{width:7px;height:7px;border-radius:50%;background:#62e68a;box-shadow:0 0 12px #62e68a88}
.perf-status.busy span{background:#ffb000;box-shadow:0 0 12px #ffb00088}
.perf-status.offline span{background:#ff6b6b;box-shadow:0 0 12px #ff6b6b88}
.skeleton-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:16px;width:100%;padding:2px}
.skeleton-card{height:230px;border-radius:16px;background:linear-gradient(110deg,#12161c 8%,#1d232c 18%,#12161c 33%);background-size:200% 100%;animation:dtvShimmer 1.2s linear infinite;border:1px solid #242b35}
@keyframes dtvShimmer{to{background-position-x:-200%}}
.catalog-ready .card{animation:dtvReveal .22s ease both}
@keyframes dtvReveal{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.category-hint{padding:12px 13px;margin:8px 0 12px;border:1px solid #242b35;background:#0e1217;border-radius:12px;color:#8f9baa;font-size:12px}
.fast-note{font-size:11px;color:#7f8996;margin-left:auto}
@media(max-width:900px){.perf-status{display:none}}


/* v39 · experiencia transparente */
.perf-status,.category-hint,#resultCount{display:none!important}
#grid:empty{min-height:220px}
.catalog .empty{background:transparent;border:0;box-shadow:none}


/* v40 · carga automática y silenciosa */
.catalog{position:relative}
.catalog-loader{
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  color:#cfd6df;
  text-align:center;
  pointer-events:none;
}
.catalog-loader.hidden{display:none!important}
.catalog-loader-orbit{
  width:48px;height:48px;position:relative;
  animation:dtvSpin 1.15s linear infinite;
}
.catalog-loader-orbit span{
  position:absolute;width:12px;height:12px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 18px rgba(255,176,0,.28);
}
.catalog-loader-orbit span:nth-child(1){top:0;left:18px}
.catalog-loader-orbit span:nth-child(2){bottom:6px;left:3px}
.catalog-loader-orbit span:nth-child(3){bottom:6px;right:3px}
.catalog-loader-text{font-size:14px;font-weight:700;letter-spacing:.01em;color:#aeb8c5}
@keyframes dtvSpin{to{transform:rotate(360deg)}}

/* Oculta mensajes técnicos o tarjetas de error del catálogo */
.catalog .empty b,
.catalog .empty small,
.catalog .empty button{display:none!important}
.catalog .empty:has(b){min-height:220px}
