:root{color-scheme:dark;font:16px Arial,Helvetica,sans-serif;background:#0c0d12;color:#f2f3f9}*{box-sizing:border-box}body{margin:0}main{width:100%;max-width:1800px;margin:auto;padding:16px 28px;--brand:#1b397b;--accent:#b9caff;--panel:#15161d}header{display:flex;align-items:center;gap:12px;padding:8px 0 18px;border-bottom:1px solid #262833}header img{width:48px;height:48px;object-fit:contain}header strong{font-size:22px}header small,.identity small{display:block;color:#a5a8b8;font-size:12px}header #accountButton{margin-left:auto}#clock{font-weight:bold;text-align:right;white-space:pre-line;line-height:1.35;font-size:.9rem;margin-left:auto}.head-nav{display:flex;gap:5px;margin:auto;padding:5px;background:#1e2028;border:1px solid #343741;border-radius:30px}.head-nav button{border:0;background:none;border-radius:24px;font-size:.9rem}section{margin:12px 0;padding:18px;border:1px solid #262833;border-radius:13px;background:var(--panel)}h1,h2,p{overflow-wrap:anywhere}h1,h2{margin:0 0 12px}h2{font-size:1.3rem}p{line-height:1.45}.notice{color:#bfaf86;font-size:12px;margin:8px 0}.expiry{border:1px solid #e3a354;background:#412b1d;color:#ffe9c9;border-radius:12px;padding:16px 20px}.expiry p{margin:6px 0 12px}.expiry button{border-color:#c98d42}.identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.identity>div{padding:18px;background:#1e2029;border:1px solid #30333e;border-radius:9px}.identity strong{display:block;font-size:22px;overflow-wrap:anywhere}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}button,select,input{font:inherit;color:inherit;background:#22242e;border:1px solid #383b49;border-radius:9px;padding:12px;min-height:44px}button{cursor:pointer;font-weight:600}button:hover{background:#303342}button:focus,input:focus,select:focus{outline:3px solid var(--accent);outline-offset:2px}button:disabled{opacity:.35;cursor:default}input{min-width:0}select{max-width:100%}#home,#browser{border:0;background:transparent;padding:0}.home-heading{display:flex;justify-content:space-between;align-items:center;margin:12px 0 20px}.home-heading small,.section-label{color:#9099b3;font-size:12px;font-weight:bold;letter-spacing:1.5px}.home-heading h1{font-size:clamp(24px,3vw,42px);margin:6px 0}.home-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(75px, clamp(85px,13vh,165px)));gap:12px}.home-tiles .tile{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #ffffff24;border-radius:13px;text-align:center;gap:8px;overflow:hidden;background:#252832;font-size:18px}.tile strong{font-size:clamp(19px,2.4vw,34px);letter-spacing:.8px}.tile small{font-size:14px;font-weight:400;opacity:.85}.tile .tile-icon{font-size:clamp(30px,5vw,64px);line-height:1.1}.home-tiles .tile-live{grid-column:1/3;grid-row:1/4;background:linear-gradient(140deg,var(--brand),#3a235b)}.home-tiles .tile-movie{grid-column:3/4;grid-row:1/3;background:linear-gradient(140deg,#943153,#7b3930)}.home-tiles .tile-series{grid-column:4/6;grid-row:1/3;background:linear-gradient(140deg,#3d3193,#204578)}.home-tiles .tile-short{font-size:clamp(12px,1.3vw,16px);gap:4px}.tile-short span{font-size:27px}.home-tiles #searchHome{grid-column:3;grid-row:3}.home-tiles #favorites{grid-column:4;grid-row:3}.home-tiles #history{grid-column:5;grid-row:3}.home-tiles #listButton{grid-column:1/3;grid-row:4;min-height:62px;flex-direction:row}.layout-compact .home-tiles{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:10px}.layout-compact .home-tiles .tile{grid-column:auto!important;grid-row:auto!important;min-height:90px}.layout-compact .home-tiles .tile strong{font-size:20px}.layout-compact .tile-icon{font-size:28px}.browser-header{display:flex;align-items:center;gap:14px;margin:14px 0}.browser-header h2{flex:1;margin:0}.browser-header input{width:min(35vw,450px)}.browse-layout{display:flex;align-items:flex-start;gap:18px}.browse-layout aside{width:26%;flex:none;min-width:175px;max-width:340px}.browse-layout aside p{margin:5px 0 12px}.browse-layout aside button{display:block;text-align:left;width:100%;margin-bottom:7px;overflow-wrap:anywhere;background:#17181e;border-color:#252731}.browse-layout aside button.selected{background:var(--brand);border-color:var(--accent)}.browse-layout aside .toolbar button{width:auto;flex:1;text-align:center}.results{flex:1;min-width:0}.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.items article{position:relative;background:#17181e;border:1px solid #282a34;border-radius:9px;min-width:0;overflow:hidden;display:flex;flex-direction:column}.items article button.primary{padding:0;background:transparent;border:0;border-radius:7px;display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;line-height:1.3;min-height:62px}.items article .name{padding:10px;overflow-wrap:anywhere;font-size:14px}.items article img{width:100%;object-fit:cover;aspect-ratio:2/3;background:#1c202b}.items article .star{font-size:18px;min-height:36px;align-self:flex-end;margin:3px;border:0;background:#252832}.items.live{grid-template-columns:1fr}.items.live article{flex-direction:row;align-items:center}.items.live article button.primary{flex-direction:row;align-items:center;padding:9px;gap:12px;flex:1}.items.live article img{width:58px;height:42px;aspect-ratio:auto;object-fit:contain}.items.live article .name{font-size:17px}.items article:focus-within{border-color:var(--accent)}.pagination{justify-content:center}.pagination span{color:#acb0c0}video{display:block;width:100%;max-height:65vh;background:#000;border-radius:9px}#player .toolbar h2{flex:1}#epgRows>div{padding:12px;margin:6px 0;background:#20222b;border-radius:6px}#epgRows small{display:block;color:#aeb1c3;margin-top:5px}footer{color:#989caf;font-size:12px;padding:12px 0}[hidden]{display:none!important}#status,#mediaStatus{color:#abb9df;font-size:13px}.theme-green{--brand:#205b48;--accent:#8be5bf}.theme-purple{--brand:#543d78;--accent:#d6baff}.theme-orange{--brand:#88451c;--accent:#ffd09a}.theme-blue{--brand:#1b397b;--accent:#b9caff}@media(min-width:1100px){main.player-live #browser{width:63%;display:inline-block;vertical-align:top}main.player-live #player{display:inline-block;vertical-align:top;width:35%;margin-left:1%;margin-top:18px;padding:12px}main.player-live #player video{max-height:40vh}main.player-live #browser[hidden],main.player-live #player[hidden]{display:none!important}}@media(max-width:800px){main{padding:12px}.head-nav{display:none!important}#clock{display:none}.home-tiles{grid-template-rows:repeat(3,90px)}.home-tiles .tile small{display:none}.browse-layout{gap:8px}.browse-layout aside{min-width:120px;width:30%}.browse-layout aside button{font-size:12px;padding:8px}.items{grid-template-columns:repeat(2,minmax(0,1fr))}.browser-header{flex-wrap:wrap}.browser-header input{width:100%}.identity{grid-template-columns:1fr}.home-heading h1{font-size:24px}}@media(max-width:450px){.home-tiles .tile-short{font-size:10px}.home-tiles .tile strong{font-size:16px}.home-tiles{gap:6px}.browse-layout aside{width:35%;min-width:95px}.items article .name{font-size:12px}}

#epgRows progress{display:block;width:100%;height:5px;accent-color:#a585f4;margin-top:10px;}
/* V19 preview: readable focus and resume indicators, no animation. */
.items article .resume-marker{padding:0 10px 8px;color:var(--accent);font-size:12px}.items article button.primary:focus-visible{outline-offset:-3px}.browse-layout aside button:focus-visible{outline-offset:-3px}.home-tiles .tile:focus-visible{outline:4px solid #fff;outline-offset:-5px}.items article .name{font-weight:600}.items:not(.live) article .name{min-height:3.8em;display:flex;align-items:center}.items article img{max-height:380px}.home-tiles .tile-short{overflow-wrap:anywhere}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.support-link{display:inline-block;background:#176348;color:white;text-decoration:none;font-weight:bold;padding:12px;border-radius:8px;margin:4px 10px 4px 0}.support-link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* V19: optional Premium is deliberately static, no banner downloads or animation. */
.theme-red{--brand:#792d43;--accent:#ffc2cf}.theme-slate{--brand:#384452;--accent:#d4e1ef}.theme-teal{--brand:#115c65;--accent:#ade9eb}#premiumHero{background:linear-gradient(110deg,var(--brand),#181923 76%);border:1px solid #ffffff20;border-radius:14px;padding:clamp(20px,4vw,48px);margin-bottom:18px}#premiumHero h2{font-size:clamp(24px,4vw,44px);margin:12px 0}#premiumHero small{letter-spacing:2px}#premiumHero p{max-width:44ch;color:#e0e0e9}.layout-premium .home-tiles{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows: auto;gap:10px}.layout-premium .home-tiles .tile{grid-column:auto;grid-row:auto;min-height:74px}.layout-premium .home-tiles .tile:not(.tile-short){min-height:clamp(95px,15vh,155px)}.layout-premium .home-tiles .tile-short{flex-direction:row}.layout-premium .home-tiles #listButton{grid-column:auto;grid-row:auto}.resume-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.resume-shelf button{text-align:left;overflow-wrap:anywhere}#resumeShelf{margin:22px 0}#seasonBar{border-bottom:1px solid #292d39;padding-bottom:12px}#trackBar select{max-width:50%} .items article button.primary:focus{outline-offset:-4px}@media(max-width:600px){.layout-premium .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-premium .home-tiles .tile strong{font-size:18px}}

#technical{margin-top:16px;padding:12px;border:1px solid #343741;border-radius:8px}#technical summary{cursor:pointer;font-weight:bold}#technicalInfo{font-size:13px;color:#bbc2d6}
/* V26: Fun Play-inspired proportions, lightweight independent scrolling. */
main{max-width:none;padding:12px 24px;--panel:#14151d}header{padding:7px 0 12px}header strong{font-size:clamp(16px,2vw,23px)}header #accountButton{margin-left:0}.home-heading h1{font-size:clamp(22px,3vw,36px)}.home-heading{margin:16px 0 12px}.head-nav{display:none}main.browsing .head-nav:not([hidden]){display:flex}.home-tiles{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(4,minmax(52px,clamp(60px,10vh,105px)));gap:10px}.home-tiles .tile-live{grid-column:1/5;grid-row:1/5}.home-tiles .tile-movie{grid-column:5/9;grid-row:1/3}.home-tiles .tile-series{grid-column:9/13;grid-row:1/3}.home-tiles #searchHome{grid-column:5/9;grid-row:3}.home-tiles #favorites{grid-column:9/13;grid-row:3}.home-tiles #history{grid-column:5/9;grid-row:4}.home-tiles #listButton{grid-column:9/13;grid-row:4}.home-tiles .tile-short{flex-direction:row;gap:10px;font-size:15px}.home-tiles .tile-short span{font-size:22px}.home-tiles .tile strong{font-size:clamp(18px,2.2vw,30px)}#settings:not([hidden]){padding:12px;background:#191b24;border:1px solid #2d303b;border-radius:9px}.browse-layout{gap:14px}.browse-layout aside{width:23%;min-width:145px;max-width:300px;position:sticky;top:0}#categoryRows{max-height:calc(100vh - 215px);min-height:130px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b5060 #191b24;padding-right:4px}.browse-layout aside button{font-size:15px;line-height:1.25;min-height:52px;overflow-wrap:anywhere;border-radius:9px}.browse-layout aside button.selected{border-left:4px solid var(--accent)}.results{max-height:calc(100vh - 175px);min-height:180px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b5060 #191b24;padding:3px 7px 6px 3px}.items{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px}.items:not(.live) article .name{font-size:13px;line-height:1.25;min-height:3.4em;padding:8px}.items article img{max-height:none;object-fit:cover}.items article .star{position:absolute;top:6px;right:6px;min-height:32px;padding:4px 8px;background:#141820dc;border:1px solid #ffffff25}.items.live article .star{position:static;align-self:center;min-width:36px}.items.live article button.primary{min-height:57px;padding:8px;gap:8px}.items.live article .name{font-size:15px;padding:6px}.items.live article img{width:45px;height:34px}.items.live article{min-height:62px}#player{background:#10121b;border:1px solid #262a36;border-radius:12px}#player .toolbar{gap:7px}#player .toolbar button{font-size:12px;min-height:37px;padding:8px}#player video{background:#000;aspect-ratio:16/9;object-fit:contain}#liveIdle{display:none;background:#14151d;border:1px solid #272a35;border-radius:10px;padding:12px;color:#a6acbf}#liveIdle .idle-video{background:#08090c;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;border-radius:8px}#liveIdle span{font-size:32px;color:var(--accent)}main.player-vod #browser,main.player-vod #home{display:none}main.player-vod #player{max-width:1400px;margin:12px auto}main.player-vod #player video{max-height:72vh}main.player-vod #liveIdle{display:none!important}
@media(min-width:1100px){main.browse-live #browser{width:64%;display:inline-block;vertical-align:top}main.browse-live #browser[hidden]{display:none!important}main.browse-live .browse-layout aside{width:42%;max-width:none;min-width:160px}main.browse-live #player:not([hidden]),main.browse-live:not(.player-live) #liveIdle{display:inline-block;vertical-align:top;width:34%;margin:66px 0 0 1%}main.browse-live #player video{max-height:38vh}main.browse-live #player .toolbar h2{flex:1 1 100%;font-size:16px}main.browse-live .browser-header input{width:45%}main.browse-live #epgRows{max-height:35vh;overflow:auto}main.browse-live .items{grid-template-columns:1fr}}
@media(max-width:1099px){#categoryRows,.results{max-height:65vh}main.browsing .head-nav{display:none!important}main.browse-live #player:not([hidden]){display:block}}@media(max-width:600px){main{padding:8px}header img{width:34px;height:34px}header button{font-size:12px;min-height:36px}.home-tiles{grid-template-rows:repeat(4,64px);gap:6px}.home-tiles .tile-short{font-size:12px}.home-tiles .tile strong{font-size:13px}.browse-layout aside{min-width:96px;width:30%}.browse-layout aside button{font-size:11px;padding:6px}.items{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.items.live{grid-template-columns:1fr}.items article .name{font-size:11px}.items.live article .name{font-size:13px}.results{max-height:65vh}}
/* Preserve explicitly configured layouts, without overriding the default TV blocks. */
.layout-compact .home-tiles,.layout-premium .home-tiles{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto}.layout-compact .home-tiles .tile,.layout-premium .home-tiles .tile{grid-column:auto!important;grid-row:auto!important;min-height:80px}.layout-premium .home-tiles .tile:not(.tile-short){min-height:clamp(95px,15vh,155px)}

/* V27: lightweight wallpaper, rounded navigation and independent continuous scrolling. */
html,body{min-height:100%;background:#101827}main{min-height:100vh;background:#111826 url('../media/ui33-theme-blue.jpg') center/cover fixed;max-width:none}main.theme-green{background-image:url('../media/ui33-theme-green.jpg')}main.theme-purple{background-image:url('../media/ui33-theme-purple.jpg')}main.theme-orange{background-image:url('../media/ui33-theme-orange.jpg')}main.theme-red{background-image:url('../media/ui33-theme-red.jpg')}main.theme-slate{background-image:url('../media/ui33-theme-slate.jpg')}main.theme-teal{background-image:url('../media/ui33-theme-teal.jpg')}section{background:#161c28e8;border-radius:20px}button,select,input,.browse-layout aside button{border-radius:14px}.home-tiles .tile{border-radius:22px;border:1px solid #ffffff30}.home-tiles .tile-live{background:linear-gradient(140deg,var(--brand),#172641)}.home-tiles .tile-movie{background:linear-gradient(140deg,#9a3658,#412237)}.home-tiles .tile-series{background:linear-gradient(140deg,#543d78,#2c2345)}.home-tiles .tile-short{background:#252d3a}.head-nav{display:none!important}.results,#categoryRows{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:auto;scrollbar-color:#828da6 #222b39;touch-action:pan-y}.results::-webkit-scrollbar,#categoryRows::-webkit-scrollbar{width:10px}.results::-webkit-scrollbar-thumb,#categoryRows::-webkit-scrollbar-thumb{background:#7a8498;border-radius:8px}.results::-webkit-scrollbar-track,#categoryRows::-webkit-scrollbar-track{background:#222b39;border-radius:8px}.result-count{padding:12px;color:#c5cbd9;font-size:12px;text-align:center}#themePanel{padding:10px 12px;background:#202737;border-radius:14px}#browser{min-height:70vh}.items article{border-radius:13px}.items article img{border-radius:12px 12px 0 0}#player{border-radius:18px}#player video{border-radius:14px}header{border-bottom:1px solid #ffffff25}footer{opacity:.8}@media(max-width:600px){main{background-attachment:scroll}.home-tiles .tile{border-radius:15px}section{padding:10px}.results,#categoryRows{max-height:68vh}.browse-layout aside{position:relative;top:auto}header #themeButton{padding:8px}.notice{font-size:11px}}

/* V28: one stationary workspace. Only the two independent panes scroll. */
#catalogWorkspace{width:100%;min-width:0;min-height:0}#page{display:none!important}
main.browsing:not(.player-vod){height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
main.browsing:not(.player-vod)>:not(#catalogWorkspace){flex-shrink:0}
main.browsing:not(.player-vod) #catalogWorkspace{flex:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px;overflow:hidden}
main.browsing:not(.player-vod) #browser:not([hidden]){width:100%;min-height:0;margin:0;display:flex;flex-direction:column;overflow:hidden}
main.browsing:not(.player-vod) .browser-header{flex-shrink:0;min-width:0}
main.browsing:not(.player-vod) .browse-layout{flex:1;min-height:0;align-items:stretch;overflow:hidden}
main.browsing:not(.player-vod) #categories:not([hidden]){display:flex;flex-direction:column;position:relative;top:auto;min-height:0}
main.browsing:not(.player-vod) #categoryRows{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
main.browsing:not(.player-vod) .results{flex:1;min-width:0;min-height:0;max-height:none;overflow:auto}
main.browsing:not(.player-vod) #player:not([hidden]),main.browsing:not(.player-vod) #liveIdle{width:100%;margin:0;min-width:0;min-height:0;align-self:start;overflow:auto;max-height:100%}
main.browsing:not(.player-vod) #player .toolbar{flex-wrap:wrap}
main.browsing:not(.player-vod) #player video{display:block;width:100%;aspect-ratio:16/9;max-height:38vh}
main.browsing:not(.player-vod) #liveIdle .idle-video{width:100%;max-height:38vh}
main.browsing:not(.player-vod) #epgRows{max-height:29vh;overflow:auto}
main.browsing:not(.player-vod) #liveIdle{display:none}main.browse-live:not(.player-live):not(.player-vod) #liveIdle{display:block!important}
main.browse-live:not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,62fr) minmax(0,38fr)}
main.browse-live .browse-layout aside{width:40%;min-width:110px;max-width:310px}
main.player-vod #catalogWorkspace{display:block}main.player-vod #player{width:100%}
@media(max-width:850px){main.browse-live:not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}main.browse-live:not(.player-vod) #browser{grid-row:2}main.browse-live:not(.player-vod) #player,main.browse-live:not(.player-vod) #liveIdle{grid-row:1;max-height:30vh}main.browse-live:not(.player-vod) #player video,main.browse-live:not(.player-vod) #liveIdle .idle-video{max-height:19vh}main.browse-live #epgRows{max-height:12vh}main.browse-live .browse-layout aside{width:35%;min-width:95px}main.browsing #status{font-size:12px;margin:4px 0}main.browsing footer{display:none}}

/* V30: three secondary home actions fill the available space. Account owns playlist controls. */
.home-tiles #searchHome{grid-column:5/9;grid-row:3/4}.home-tiles #favorites{grid-column:9/13;grid-row:3/4}.home-tiles #history{grid-column:5/13;grid-row:4/5}.home-tiles [hidden],#settings [hidden]{display:none!important}

/* V34: actual HTML workspace opened in MSX. No focus-triggered pages, no native options overlay. */
main.msx-workspace{padding:12px 16px;min-height:100vh;max-width:none}
main.msx-workspace.browsing:not(.player-vod){height:100vh;height:100dvh;min-height:0}
main.msx-workspace header{min-height:0;padding:4px 0 8px}
main.msx-workspace header img{max-width:46px;max-height:46px}
main.msx-workspace.browsing footer{display:none}
main.msx-workspace .notice{margin:4px 0;font-size:11px}
main.msx-workspace #status{margin:4px 0;font-size:13px}
main.msx-workspace #catalogWorkspace{gap:10px}
main.msx-workspace #browser{padding:10px 12px}
main.msx-workspace .browse-layout{gap:9px}
main.msx-workspace #categoryRows{padding-right:6px;overflow-y:auto;overflow-x:hidden}
main.msx-workspace .browse-layout aside button{width:100%;text-align:left;min-height:42px;font-size:14px;margin-bottom:5px}
main.msx-workspace .results{overflow-x:hidden;overflow-y:auto}
main.msx-workspace .items:not(.live){grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
main.msx-workspace .items.live article{min-height:48px}
main.msx-workspace .items.live article button.primary{min-height:46px}
main.msx-workspace #player:not([hidden]),main.msx-workspace #liveIdle{align-self:start}
main.msx-workspace button:focus{outline:2px solid #e3efff;outline-offset:-2px}
main.msx-workspace #returnMSX:not([hidden]){display:inline-block}
main.msx-workspace.workspace-video-full #player{position:fixed!important;inset:0!important;z-index:1000;display:flex!important;flex-direction:column;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0;background:#000;border:0;border-radius:0;overflow:hidden!important}
main.msx-workspace.workspace-video-full #player video{flex:1;min-height:0;width:100%!important;height:100%!important;max-height:none!important;border-radius:0}
main.msx-workspace.workspace-video-full #player .toolbar{flex-shrink:0;margin:4px;padding:4px}
main.msx-workspace.workspace-video-full #epg,main.msx-workspace.workspace-video-full #mediaStatus,main.msx-workspace.workspace-video-full #retry,main.msx-workspace.workspace-video-full #trackBar{display:none!important}
@media (min-width:650px) and (orientation:landscape){
  main.msx-workspace.browse-live:not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,62fr) minmax(0,38fr);grid-template-rows:minmax(0,1fr)}
  main.msx-workspace.browse-live:not(.player-vod) #browser{grid-row:1;grid-column:1}
  main.msx-workspace.browse-live:not(.player-vod) #player,main.msx-workspace.browse-live:not(.player-vod) #liveIdle{grid-row:1;grid-column:2;max-height:100%}
  main.msx-workspace.browse-live:not(.player-vod) #player video,main.msx-workspace.browse-live:not(.player-vod) #liveIdle .idle-video{max-height:40vh}
  main.msx-workspace.browse-live #epgRows{max-height:27vh}
  main.msx-workspace.browse-live .browse-layout aside{width:40%;min-width:100px;max-width:310px}
  main.msx-workspace:not(.browse-live) .browse-layout aside{width:23%;min-width:110px;max-width:280px}
}

/* V36: one explicit search action, avoids fetching the whole section while typing. */
.browser-header #searchSubmit{flex:none;padding:9px 14px;border-radius:10px;background:var(--brand)}
@media(max-width:800px){.browser-header input{flex:1;min-width:140px;width:auto}}

/* V48 · TLS Aurora: commercial UI, edge-to-edge workspace and no asset-heavy effects. */
:root{--tls-glow:#13c4db;--tls-ink:#eaf6ff;--tls-soft:#a8bfd3}
main{width:100%;max-width:none;margin:0;padding:clamp(10px,1.4vw,22px);min-height:100dvh;background-color:#071424;background-image:radial-gradient(ellipse at 20% 1%,rgba(11,132,181,.15),transparent 54%),linear-gradient(145deg,rgba(6,19,33,.94),rgba(8,28,47,.91)),url('../media/ui33-theme-blue.jpg');background-attachment:scroll;color:var(--tls-ink)}
main.theme-green{--tls-glow:#32d6ad}main.theme-purple{--tls-glow:#b997ff}main.theme-orange{--tls-glow:#ffb761}main.theme-red{--tls-glow:#fc839f}main.theme-slate{--tls-glow:#b1cadf}main.theme-teal{--tls-glow:#4de4e3}
main header{background:linear-gradient(90deg,rgba(14,43,65,.88),rgba(9,29,47,.62));border:1px solid rgba(123,215,246,.13);border-radius:16px;padding:10px 14px;margin-bottom:10px;box-shadow:0 5px 20px rgba(0,0,0,.15)}
main header strong{font-size:clamp(17px,1.4vw,24px);letter-spacing:.05em}
main header small,.home-heading small{color:var(--tls-soft);letter-spacing:.14em}
main section{background:linear-gradient(155deg,rgba(14,39,61,.96),rgba(8,24,41,.97));border:1px solid rgba(103,188,228,.13);box-shadow:0 10px 25px rgba(0,0,0,.14);border-radius:16px}
main button,main select,main input{transition:background-color .12s,border-color .12s,box-shadow .12s;border-color:rgba(146,204,232,.2)}
main button:focus-visible,main input:focus-visible,main select:focus-visible{outline:2px solid var(--tls-glow)!important;outline-offset:1px!important}
main .home-tiles{display:grid;gap:clamp(9px,1vw,18px);width:100%;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:row;grid-template-rows:repeat(4,minmax(70px,clamp(85px,12vh,160px)))}
main .home-tiles .tile{width:100%;min-width:0;height:100%;box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 9px 22px rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.18);border-radius:20px}
main .home-tiles .tile-live{background:linear-gradient(145deg,#08799d,#103451)}
main .home-tiles .tile-movie{background:linear-gradient(145deg,#b44878,#54284b)}
main .home-tiles .tile-series{background:linear-gradient(145deg,#7251c3,#302a63)}
main .home-tiles .tile-short{background:linear-gradient(130deg,#244565,#152b43)}
main .home-tiles .tile strong{font-size:clamp(15px,1.8vw,28px)}
main .home-tiles .tile small{font-size:clamp(11px,1vw,15px);color:#f0f8ff}
main .home-tiles .tile-icon{font-size:clamp(22px,2.5vw,42px);color:#e4faff}
main.browsing:not(.player-vod) #browser{padding:clamp(9px,1.2vw,17px);min-height:0;min-width:0;width:100%;display:flex;flex-direction:column}
main.browsing:not(.player-vod) #catalogWorkspace{width:100%;gap:clamp(9px,1vw,16px)}
main.browsing:not(.player-vod) .browse-layout{width:100%;min-height:0;flex:1;gap:clamp(9px,1vw,15px)}
main.browsing:not(.player-vod) .browse-layout aside{min-width:130px;max-width:320px;flex:0 0 clamp(155px,24%,320px);width:auto!important}
main.browsing:not(.player-vod) #categoryRows{width:100%;min-height:0}
main.browsing:not(.player-vod) #categoryRows button{width:100%;border-radius:10px;text-align:left;padding:11px 12px;font-size:clamp(12px,1vw,15px);background:#17354c;color:#dbedf7;border:1px solid transparent;margin:0 0 5px}
main.browsing:not(.player-vod) #categoryRows button.selected{background:linear-gradient(95deg,#0c87a8,#15566c);border-color:#53c9e4;color:#fff;font-weight:700}
main.browsing:not(.player-vod) #categories.searching-all #categoryRows{opacity:.8}
main.browsing:not(.player-vod) #categories.searching-all::before{content:'⌕  TODOS OS RESULTADOS';color:#68e1f7;font-weight:700;font-size:12px;letter-spacing:.06em;margin:0 0 6px}
main .browser-header{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
main .browser-header h2{flex:1 1 auto;margin:0;font-size:clamp(16px,1.5vw,23px)}
main .browser-header #search{min-width:160px;flex:1 1 240px;width:auto;max-width:none;background:#102f48;border:1px solid #377793;color:#fff;padding:12px 14px;border-radius:12px}
main .browser-header #search::placeholder{color:#a3c4d6}
main .browser-header #searchSubmit{display:none!important}
main .results{min-width:0;width:100%}
main .items:not(.live){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(7px,.8vw,14px)}
main .items article{min-width:0;background:linear-gradient(165deg,#17374d,#101d30);border:1px solid #2b526b;border-radius:14px;overflow:hidden}
main .items:not(.live) article button.primary{width:100%;min-width:0}
main .items.live{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
main .items.live article{background:#102e46;border-left:3px solid #1684a8}
main .items article .name{font-weight:600;color:#e4f4ff}
main #liveIdle,main #player{min-width:0;width:100%;background:linear-gradient(150deg,#11344d,#071e35);border:1px solid rgba(82,185,218,.24);border-radius:16px}
main #liveIdle .idle-video{background:linear-gradient(145deg,#123e57,#092134);border-radius:12px}
main #status{color:#a6d6eb;font-size:13px}
main.browsing:not(.player-vod) .notice{display:none}
@media(min-width:1000px){main.browse-live:not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,66fr) minmax(0,34fr)}main.browse-live:not(.player-vod) .browse-layout aside{flex-basis:clamp(145px,28%,270px)}main.browse-live:not(.player-vod) #player,main.browse-live:not(.player-vod) #liveIdle{margin:0!important;width:100%!important}}
@media(max-width:1000px){main .items:not(.live){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){main .home-tiles{gap:8px;grid-template-rows:repeat(4,minmax(60px,10vh))}main .items:not(.live){grid-template-columns:repeat(2,minmax(0,1fr))}main.browsing:not(.player-vod) .browse-layout aside{min-width:98px;flex-basis:110px}main .browser-header #search{flex-basis:100%;max-width:100%}main header{padding:7px 9px}main.browse-live:not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,1fr)}}
/* V48: keep all seven lightweight brand themes vivid and the workspace responsive. */
main.theme-green{background-image:radial-gradient(ellipse at 18% 0,rgba(42,188,146,.19),transparent 55%),linear-gradient(145deg,rgba(6,22,29,.90),rgba(9,36,38,.93)),url('../media/ui33-theme-green.jpg')}
main.theme-purple{background-image:radial-gradient(ellipse at 18% 0,rgba(157,102,237,.18),transparent 55%),linear-gradient(145deg,rgba(19,13,39,.90),rgba(27,20,52,.94)),url('../media/ui33-theme-purple.jpg')}
main.theme-orange{background-image:radial-gradient(ellipse at 18% 0,rgba(241,144,45,.17),transparent 55%),linear-gradient(145deg,rgba(28,19,13,.90),rgba(44,25,22,.94)),url('../media/ui33-theme-orange.jpg')}
main.theme-red{background-image:radial-gradient(ellipse at 18% 0,rgba(223,75,112,.19),transparent 55%),linear-gradient(145deg,rgba(32,17,31,.91),rgba(48,21,38,.94)),url('../media/ui33-theme-red.jpg')}
main.theme-slate{background-image:radial-gradient(ellipse at 18% 0,rgba(127,169,200,.17),transparent 55%),linear-gradient(145deg,rgba(14,23,37,.90),rgba(23,36,49,.94)),url('../media/ui33-theme-slate.jpg')}
main.theme-teal{background-image:radial-gradient(ellipse at 18% 0,rgba(46,210,213,.17),transparent 55%),linear-gradient(145deg,rgba(6,24,32,.90),rgba(7,37,46,.94)),url('../media/ui33-theme-teal.jpg')}
main:not(.layout-compact):not(.layout-premium) #home .home-tiles{min-height:min(75vh,820px);grid-template-rows:repeat(4,minmax(80px,1fr))}
@media(min-width:850px){main.msx-workspace .items:not(.live){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:600px){main:not(.layout-compact):not(.layout-premium) #home .home-tiles{min-height:min(62vh,550px);grid-template-rows:repeat(4,minmax(65px,1fr))}main.msx-workspace .items:not(.live){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){main button,main input,main select{transition:none}}

/* V49: Home has one clear entry per section. Search belongs to the open catalogue. */
main #home .home-tip{font-size:clamp(12px,1.05vw,15px);color:#a8d8ed;margin:2px 0 0;line-height:1.35}
main:not(.layout-compact):not(.layout-premium) #home .home-tiles #searchHome{display:none!important}
main:not(.layout-compact):not(.layout-premium) #home .home-tiles #favorites{grid-column:3/4;grid-row:3}
main:not(.layout-compact):not(.layout-premium) #home .home-tiles #history{grid-column:4/6;grid-row:3}
main #home .home-tiles #searchHome[hidden]{display:none!important}
/* Keep existing high-contrast focus while reducing visual noise in the catalog. */
main .home-tiles .tile-short{font-weight:600}
main.browsing .browser-header #search{box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
main.browsing .browser-header #search:focus{border-color:var(--tls-glow);box-shadow:0 0 0 2px rgba(19,196,219,.15)}
@media(max-width:700px){main #home .home-tip{font-size:12px}main:not(.layout-compact):not(.layout-premium) #home .home-tiles #history{grid-column:4/6}}

/* V51: optional 12x5 layout, positions remain identical to native MSX (y=1..5). */
.home-tiles.custom-home{grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(56px,clamp(68px,11vh,120px)))!important;gap:8px}
.home-tiles.custom-home .tile{min-width:0;min-height:0!important;border:1px solid #ffffff55;box-shadow:inset 0 1px 0 #ffffff29;font-size:clamp(12px,1.4vw,19px)}
.home-tiles.custom-home .tile strong{font-size:clamp(12px,1.6vw,23px)}
.home-tiles.custom-home .tile .tile-icon{font-size:clamp(19px,3.2vw,45px)}
@media(max-width:650px){.home-tiles.custom-home{grid-template-rows:repeat(5,minmax(40px,13vw))!important;gap:4px}.home-tiles.custom-home .tile strong{font-size:clamp(9px,2vw,14px)}}

/* V62: accessible playlist/favorite collection on desktop and mobile. */
main .tls-collection-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border:1px solid rgba(160,210,245,.22);border-radius:16px;background:rgba(10,25,45,.80);box-shadow:0 8px 30px rgba(0,0,0,.13)}
main .tls-collection-bar[hidden]{display:none!important}
main .tls-collection-bar>strong{font-size:18px;color:#f4f9ff}
main .tls-collection-count{font-size:12px;color:#a9cade}
main .tls-collection-filters{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
main .tls-collection-filters button{border:1px solid rgba(165,205,235,.3);border-radius:999px;padding:8px 14px;color:#d8edff;background:rgba(255,255,255,.07);font-weight:650;min-height:38px}
main .tls-collection-filters button[aria-pressed="true"]{background:#147eaf;color:white;border-color:#49baf0;box-shadow:0 0 0 2px rgba(66,180,231,.15)}
main .tls-collection-empty{grid-column:1/-1;text-align:center;padding:30px 18px;border:1px dashed rgba(170,210,240,.32);border-radius:15px;color:#d6e8f6;line-height:1.6}
main .items article{border-radius:14px;overflow:hidden}
main .items article .star{min-width:38px;min-height:38px;font-size:23px;touch-action:manipulation}
main #home .home-tiles #favorites{border-color:rgba(123,206,247,.40)}
main #settings select#lists{max-width:100%;min-width:0;border-radius:10px}
@media(max-width:700px){main .tls-collection-bar{padding:12px;align-items:flex-start}main .tls-collection-filters{width:100%;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}main .tls-collection-filters button{padding:9px 2px;font-size:12px}main .tls-collection-bar>strong{font-size:16px}}

main #favorites .collection-count{font-size:11px;display:block;opacity:.92;color:#d6efff;margin-top:3px}

/* V63: Biblioteca de favoritos organizada com seleção e ordenação acessíveis */
main .tls-collection-sort{display:flex;align-items:center;gap:8px;color:#b9d6e9;font-size:12px;font-weight:600;white-space:nowrap}
main .tls-collection-sort select{max-width:230px;min-height:39px;padding:7px 12px;border-radius:11px;border:1px solid rgba(170,210,240,.3);background:#112a40;color:#eff9ff;font:inherit;font-size:13px}
main .tls-collection-filters button:focus-visible,main .tls-collection-sort select:focus-visible{outline:3px solid #80d7ff;outline-offset:2px}
main .items .tls-collection-empty{width:100%;min-height:110px;display:flex;justify-content:center;align-items:center}
@media(max-width:700px){main .tls-collection-sort{width:100%;justify-content:space-between}main .tls-collection-sort select{width:70%;max-width:none}main .tls-collection-filters button{overflow:hidden;text-overflow:ellipsis}}
/* V65: touch-first, clear favorite action and watched states; no extra libraries. */
main .items article{position:relative;min-width:0;overflow:hidden;border-radius:16px}
main .items .tls-favorite-action{position:relative;min-height:44px;width:calc(100% - 16px);margin:0 8px 9px;padding:9px 12px;border:1px solid #4e718f;border-radius:12px;background:#1d354e;color:#ecf5ff;font-size:14px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;opacity:1}
main .items .tls-favorite-action.is-saved{background:#60304b;border-color:#ad577c;color:#fff3f7}
main .items .tls-favorite-action:focus-visible{outline:3px solid #87caff;outline-offset:2px}
main .items .watched-marker{display:inline-flex;margin:6px 0;padding:5px 9px;border-radius:999px;background:#1a604e;color:#e4fff4;font-size:12px;font-weight:800}
main #resumeShelf{margin:12px 0 20px;border-radius:18px;padding:16px;background:linear-gradient(120deg,#102c47,#193e5b);border:1px solid #335b79}
main #resumeShelf h2{font-size:1.15rem;margin:0 0 12px}
main #resumeRows{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
main #resumeRows button{min-height:55px;text-align:left;padding:11px 13px;border-radius:12px;background:#224766;color:#f3faff;border:1px solid #477394;font-size:13px}
main .tls-collection-filters button{min-height:44px;font-weight:700}
@media(max-width:600px){main .tls-collection-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}main .tls-collection-filters button{width:100%}main .items .tls-favorite-action{font-size:13px}}

/* V65: Minha Lista remains one tap away even with a reseller's custom home layout. */
main #headerFavorites{border:1px solid rgba(105,205,233,.5);border-radius:11px;background:linear-gradient(110deg,#165474,#187f92);color:#fff;font-weight:750;min-height:42px;padding:9px 13px;white-space:nowrap}
main #headerFavorites:focus-visible{outline:3px solid #94eaf4;outline-offset:2px}
main .items .tls-favorite-action{min-height:46px;touch-action:manipulation}
@media(max-width:670px){main #headerFavorites{padding:7px 10px;min-height:40px;font-size:13px}}

@media(max-width:800px){main header{flex-wrap:wrap;gap:8px}main #headerFavorites{order:3;flex:1 0 auto;text-align:center}main header #accountButton{margin-left:auto}}

/* V66 | Navegação de três áreas, reprodução na lateral, visual acessível.
   Um único vídeo; sem players duplicados, fontes externas ou animações contínuas. */
main.tls-vivid{--tls-v66-teal:#24ddda;--tls-v66-blue:#48adff;--tls-v66-text:#f0fbff;--tls-v66-surface:#10273c}
main.tls-vivid:not(.theme-green):not(.theme-purple):not(.theme-orange):not(.theme-red):not(.theme-slate):not(.theme-teal){background-image:radial-gradient(ellipse at 12% 6%,rgba(17,154,213,.25),transparent 48%),radial-gradient(ellipse at 90% 90%,rgba(21,220,186,.13),transparent 45%),linear-gradient(150deg,#0a1a2d,#0e2739 64%,#0b1a30)}
main.tls-vivid section,main.tls-vivid #browser,main.tls-vivid #player,main.tls-vivid #liveIdle{border-color:rgba(98,207,242,.32)}
main.tls-vivid .home-tiles .tile,main.tls-vivid .head-nav{box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 8px 26px rgba(0,0,0,.12)}
main.tls-vivid .tile-live{background:linear-gradient(135deg,#0874ac,#125270)!important}
main.tls-vivid .tile-movie{background:linear-gradient(135deg,#ac366b,#5b2655)!important}
main.tls-vivid .tile-series{background:linear-gradient(135deg,#6044be,#264b96)!important}
main.tls-vivid .tile-short{background:linear-gradient(130deg,#164d70,#155d65)}
main.tls-vivid .browse-layout button.selected,main.tls-vivid #headerFavorites{background:linear-gradient(100deg,#1686ba,#118d96)!important;color:#fff}
main.tls-vivid #player{background:linear-gradient(160deg,#102f46,#071522)}
main.tls-lite{background:#111d2b!important;--tls-v66-teal:#35c5d0;--tls-v66-blue:#408acd;--tls-v66-text:#f5faff;--tls-v66-surface:#1c3045}
main.tls-lite,main.tls-lite *,main.tls-lite *:before,main.tls-lite *:after{animation:none!important;transition:none!important;backdrop-filter:none!important;scroll-behavior:auto!important}
main.tls-lite .home-tiles .tile,main.tls-lite #player,main.tls-lite section{box-shadow:none!important}
main.tls-lite .home-tiles .tile{background:#214763!important}
main.tls-lite button,main.tls-lite .tls-collection-bar{box-shadow:none!important}

/* The browser internally contains categories/results; the third column is the player. */
@media (min-width:700px){
  main.browsing #catalogWorkspace,main.browsing.player-vod #catalogWorkspace{
    display:grid!important;grid-template-columns:minmax(0,58fr) minmax(0,42fr)!important;
    grid-template-rows:minmax(0,1fr)!important;align-items:start;gap:10px;overflow:hidden;
  }
  main.browsing #browser:not([hidden]){grid-column:1!important;grid-row:1!important;width:100%!important;max-width:none!important;display:flex!important;min-width:0;min-height:0;flex-direction:column;overflow:hidden}
  main.browsing .browse-layout{display:flex!important;flex:1;min-height:0;min-width:0;overflow:hidden;gap:8px}
  main.browsing .browse-layout #categories:not([hidden]){width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 34%!important;height:100%;overflow:hidden}
  main.browsing .browse-layout .results{flex:1;min-width:0!important;max-width:none!important;overflow-y:auto;overflow-x:hidden}
  main.browsing #player:not([hidden]),main.browsing #liveIdle:not([hidden]){grid-column:2!important;grid-row:1!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0;max-height:calc(100dvh - 125px);position:sticky;top:0;margin:0!important;overflow:auto}
  main.browsing #player video{width:100%;max-height:min(40vh,410px);aspect-ratio:16/9;background:#050c12;object-fit:contain}
  main.browsing #liveIdle{display:block!important}
  main.browsing #player:not([hidden])~#liveIdle{display:none!important}
  main.browsing.player-vod{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  main.browsing.player-vod #browser,main.browsing.player-vod .browse-layout{flex:1;min-height:0}
  main.browsing #catalogWorkspace #liveIdle[hidden]{display:none!important}
}
@media(min-width:700px) and (max-width:1080px){
  main.browsing .browse-layout #categories:not([hidden]){flex-basis:37%!important}
  main.browsing #catalogWorkspace{gap:7px!important}
  main.browsing .browser-header{gap:5px;flex-wrap:wrap}
  main.browsing .browser-header #search{flex:1 0 55%;min-width:0;width:100%;font-size:13px}
  main.browsing #player .toolbar button{min-height:34px;padding:6px 8px;font-size:12px}
  main.browsing .items:not(.live){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:700px) and (max-height:540px){
  main.browsing header{padding:3px 6px}
  main.browsing #catalogWorkspace #player,main.browsing #catalogWorkspace #liveIdle{max-height:calc(100dvh - 75px)}
  main.browsing .browser-header{padding:3px}
  main.browsing footer{display:none}
  main.browsing #player video{max-height:34vh}
}
/* Portrait phones: preview remains visible above independent category/content columns.
   No horizontal gestures or off-screen player required. */
@media(max-width:699px){
  main.browsing,main.browsing.player-vod{min-height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  main.browsing #catalogWorkspace,main.browsing.player-vod #catalogWorkspace{display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:6px}
  main.browsing #player:not([hidden]),main.browsing #liveIdle:not([hidden]){order:0;position:relative;display:block;width:100%!important;margin:0!important;max-height:32vh;min-height:0;overflow:auto}
  main.browsing #player video{width:100%;max-height:23vh;aspect-ratio:16/9}
  main.browsing #browser:not([hidden]){order:1;flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
  main.browsing .browse-layout{display:flex;flex:1;min-height:0;overflow:hidden;gap:6px}
  main.browsing .browse-layout #categories:not([hidden]){flex:0 0 33%;min-width:0!important;max-width:none!important;width:auto!important;overflow:hidden}
  main.browsing .browse-layout .results{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden}
  main.browsing .browser-header{gap:5px}
  main.browsing .browser-header #search{flex:1 0 54%;min-height:37px;padding:7px}
  main.browsing footer{display:none}
  main.browsing .items:not(.live){grid-template-columns:repeat(2,minmax(0,1fr))}
}
main.browsing #catalogWorkspace{min-width:0}
main.browsing .browser-header button{white-space:nowrap}
main.browsing .browse-layout #categories button{min-height:45px;white-space:normal;overflow-wrap:anywhere}
main.browsing #items article.tls-now-playing{border:2px solid var(--tls-v66-teal,#28bfca);background:#123d4f}
main.browsing #items article.tls-now-playing .primary{color:#fff}
main.browsing #items.tls-episodes{grid-template-columns:1fr!important;gap:6px}
main.browsing #items.tls-episodes article{display:flex;align-items:stretch;gap:4px;min-height:66px;background:#19334a;border:1px solid rgba(120,207,236,.22);border-radius:12px}
main.browsing #items.tls-episodes article .primary{display:flex;flex:1;flex-direction:row;flex-wrap:wrap;align-items:center;text-align:left;min-height:58px;gap:7px;padding:9px;background:transparent;border:0}
main.browsing #items.tls-episodes article .primary img{width:54px;height:45px;object-fit:cover;border-radius:8px}
main.browsing #items.tls-episodes article .name{font-size:clamp(12px,1.1vw,15px);font-weight:700;min-height:0;padding:0;flex:1;line-height:1.2}
main.browsing #items.tls-episodes article .tls-favorite-action{width:auto;max-width:92px;min-width:65px;margin:7px 6px 7px 0;padding:6px;font-size:12px;align-self:center}
main.browsing #items.tls-episodes .watched-marker,main.browsing #items.tls-episodes .resume-marker{font-size:11px;display:block;margin:0}
main.browsing #items .tls-episode-progress{width:100%;height:7px;accent-color:var(--tls-v66-teal,#34d6dc);border-radius:8px;display:block;flex:1 0 100%;margin:3px 0 0}
main.browsing #items .tls-episode-progress::-webkit-progress-bar{background:#253e56;border-radius:8px}
main.browsing #items .tls-episode-progress::-webkit-progress-value{background:#31d5d7;border-radius:8px}

/* Existing native video controls remain available. This adds a larger TV-friendly seek bar. */
main .tls-seek{padding:9px 12px;background:#0e2434;border:1px solid #2c6a86;border-radius:12px;margin:8px 0}
main .tls-seek[hidden],main .tls-next-episode[hidden],main .tls-resume-modal[hidden]{display:none!important}
main .tls-seek-times{display:flex;align-items:center;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums;color:#f2fbff}
main .tls-seek-times strong{font-size:14px}
main .tls-seek-times span{color:#9fd6e6;font-size:12px}
main #tlsSeekBar{display:block;width:100%;height:35px;min-height:35px;padding:0;cursor:pointer;accent-color:#27ddd7;touch-action:pan-y}
main #tlsSeekBar::-webkit-slider-thumb{height:22px;width:22px}
main .tls-seek-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
main .tls-seek-actions button{background:#17445e;border-color:#2e8294;min-height:40px;padding:7px 10px;font-size:13px}
main .tls-next-episode{padding:10px 12px;background:#163c45;border:1px solid #35bab8;border-radius:12px;display:grid;gap:5px;margin:8px 0}
main .tls-next-episode strong{color:#9cfff0}
main .tls-next-episode span{font-size:13px}
main .tls-next-episode div{display:flex;flex-wrap:wrap;gap:8px}
main .tls-next-episode button{min-height:39px;padding:7px 10px;background:#185e6c}
main .tls-resume-modal{position:fixed;inset:0;z-index:2400;background:rgba(2,11,22,.88);display:flex;align-items:center;justify-content:center;padding:16px}
main .tls-resume-card{background:linear-gradient(145deg,#123951,#0a2237);border:2px solid #51d1df;border-radius:20px;padding:clamp(16px,4vw,30px);max-width:510px;width:100%;box-shadow:0 20px 65px rgba(0,0,0,.4)}
main .tls-resume-card h2{font-size:clamp(20px,2vw,27px);color:#fff}
main .tls-resume-card div{display:grid;gap:8px}
main .tls-resume-card button{min-height:51px;background:#156282;color:#fff;border-color:#3dacc5;font-size:16px;text-align:left}
main .tls-resume-card #tlsResumeStart{background:#243b51}
main .tls-resume-card #tlsResumeCancel{background:transparent}
@media(max-width:430px){main .tls-seek-times span{display:none}main.browsing #items.tls-episodes article .tls-favorite-action{font-size:11px;min-width:58px;max-width:74px}main.browsing .browse-layout #categories:not([hidden]){flex-basis:38%}}
@media(prefers-reduced-motion:reduce){main.tls-vivid *,main.tls-vivid *:before,main.tls-vivid *:after{animation:none!important;transition:none!important}}
/* A single clear action in Minha Lista; no extra details page. */
main.browsing #items .tls-watch-hint{display:inline-block;padding:5px 10px;background:#166b80;border:1px solid #2fb6bc;color:#fff;border-radius:8px;font-size:12px;font-weight:800}
main.browsing #items .primary:focus-visible .tls-watch-hint{background:#21abc2;color:#031b28}

/* V70: in-page video enlargement for browsers without fullscreen API. */
main.workspace-video-full #player{position:fixed!important;inset:0!important;z-index:1000;display:flex!important;flex-direction:column;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;margin:0!important;padding:12px;box-sizing:border-box;background:#101a27;border:0;border-radius:0;overflow:auto!important}
main.workspace-video-full #player video{flex:1 1 auto;min-height:0;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain;border-radius:0}
main.workspace-video-full #player .toolbar,main.workspace-video-full #tlsSeek,main.workspace-video-full #tlsNextEpisode{flex-shrink:0}
main.workspace-video-full #epg{display:none!important}
.tls-resume-modal button:focus-visible,.tls-seek input:focus-visible{outline:3px solid #55dce6;outline-offset:3px}

/* V76: short programme guide, no animation or additional images. */
.tls-epg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.tls-epg-head h3{margin:0}.tls-epg-head button{font-size:.85rem;padding:6px 10px}.tls-epg-program{display:grid;gap:4px;padding:9px 0;overflow-wrap:anywhere}.tls-epg-program .tls-epg-label{color:var(--accent);font-weight:bold}.tls-epg-program strong{line-height:1.3}#epgRows progress{accent-color:var(--accent);height:7px;margin-top:4px}
/* V77: compact, local parental controls. */
.tls-parental-account{margin:16px 0;padding:14px;border:1px solid #ffffff25;border-radius:12px}.tls-parental-modal{z-index:2500!important}.tls-parental-modal .tls-resume-card{max-height:90vh;overflow:auto}.tls-parental-modal label{display:grid;gap:5px;font-size:14px;margin:7px 0}.tls-parental-modal input[type=password]{width:100%;font-size:1.2rem;letter-spacing:.2em}.tls-parental-modal .tls-parental-sections{display:grid;gap:4px}.tls-parental-modal .tls-parental-sections label{display:flex;align-items:center;gap:10px;margin:0}.tls-parental-modal input[type=checkbox]{min-height:26px;width:26px;accent-color:var(--accent)}#tlsParentError{color:#ffc4a4;min-height:1.2em;margin:5px 0}.tls-parental-modal small{line-height:1.45;color:#b6c5d5}

/* V78: optional transfer stays secondary to watching. */
main .tls-favorite-transfer{margin:8px 0;padding:10px 14px;border:1px solid rgba(170,210,240,.25);border-radius:12px;background:rgba(15,36,55,.72);color:#e0eef9;min-width:0}
main .tls-favorite-transfer summary{cursor:pointer;font-weight:700;padding:5px 0}
main .tls-favorite-transfer p{font-size:13px;line-height:1.5;margin:8px 0}
main .tls-favorite-transfer textarea{display:block;width:100%;box-sizing:border-box;min-height:75px;max-height:180px;resize:vertical;background:#102437;color:#f2f7fb;border:1px solid #607b93;border-radius:8px;font:inherit;padding:8px}
main .tls-favorite-transfer label{font-size:13px;display:block;margin:8px 0 4px}
main .tls-favorite-transfer .toolbar{flex-wrap:wrap;gap:6px}
main .tls-favorite-transfer summary:focus-visible,main .tls-favorite-transfer textarea:focus-visible{outline:3px solid #80d7ff;outline-offset:2px}
main .tls-favorite-transfer[hidden]{display:none!important}

/* V81: visible refresh, solid lightweight surfaces, portrait cover + separate caption. */
main.tls-vivid{--v81-surface:#132b40;--v81-line:#315670;--v81-ink:#f1f8ff}
main.tls-vivid #home{background:#142e44;border-color:#315670}
main.tls-vivid .home-tiles:not(.custom-home) .tile-live{background:#087f95!important}
main.tls-vivid .home-tiles:not(.custom-home) .tile-movie{background:#3663ad!important}
main.tls-vivid .home-tiles:not(.custom-home) .tile-series{background:#6951b9!important}
main.tls-vivid .home-tiles:not(.custom-home) .tile-short{background:#1c4a61!important}
main #browser,main #player{border-radius:16px}
main .items:not(.live):not(.tls-episodes) article .primary{display:flex;flex-direction:column;align-items:stretch;min-width:0;height:auto;position:relative;overflow:hidden;background:#173247;padding:0;text-align:left;border-radius:12px}
main .items:not(.live):not(.tls-episodes) article .primary img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:#0c1c2c;border-radius:10px 10px 0 0;position:static;max-height:none;flex:none}
main .items:not(.live):not(.tls-episodes) article .primary .name{display:block;position:static;background:none;color:#f3f8ff;min-height:2.8em;line-height:1.35;padding:7px 8px 4px;font-size:clamp(12px,1.1vw,15px);overflow:hidden;overflow-wrap:anywhere;text-overflow:ellipsis}
main .items:not(.live):not(.tls-episodes) article .primary small{position:static;padding:4px 8px;min-width:0}
main .items:not(.live):not(.tls-episodes) article .star{position:static;width:100%;margin:0;border-radius:0 0 10px 10px;background:#1f4256;color:#e9fcff;min-height:37px}
main .items:not(.live):not(.tls-episodes) article .star.is-saved{background:#176c61;color:#fff}
main .items:not(.live):not(.tls-episodes) article{border-radius:12px;overflow:hidden;box-shadow:none}
main #resumeShelf{padding:13px 0 0;margin:12px 0 0}
main #resumeShelf h2{font-size:clamp(18px,2.1vw,25px);margin:0 0 8px}
main #resumeAll{background:#176c61;color:#fff;padding:12px 18px;border:1px solid #318b80;width:auto;margin:0 0 10px;font-weight:700;min-height:42px}
main.tls-lite #resumeAll{background:#1e4758}
main .resume-shelf button{background:#1b4058;border:1px solid #37617a;box-shadow:none;min-height:55px}
main .browse-layout #categoryRows button{transition:none!important}
@media (min-width:1000px){main.browsing #catalogWorkspace,main.browsing.player-vod #catalogWorkspace{grid-template-columns:minmax(0,64fr) minmax(0,36fr)!important}main.browsing .browse-layout #categories:not([hidden]){flex-basis:36%!important}main .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(116px,1fr))!important}}
@media(max-width:699px){main #resumeAll{width:100%}main .items:not(.live):not(.tls-episodes) article .primary .name{font-size:12px}}

/* V90: fit home to the viewport without cropping custom layouts or locking orientation. */
main{width:100%;min-width:0;padding-inline:clamp(8px,2vw,32px)}
main #home{min-width:0;margin-inline:0;width:100%}
main #home .home-tiles{width:100%;min-width:0;gap:clamp(5px,1vw,14px)}
main #home .home-tiles .tile{min-width:0;overflow-wrap:anywhere}
main #home .home-tiles.custom-home{grid-template-rows:repeat(5,minmax(48px,clamp(48px,10vh,150px)))!important}
@media(max-width:650px){main #home .home-tiles.custom-home{grid-template-rows:repeat(5,minmax(40px,13vw))!important}main #home .home-tiles.custom-home .tile strong{font-size:clamp(10px,2.2vw,14px)}}
@media(max-height:540px) and (min-width:651px){main #home .home-tiles.custom-home{grid-template-rows:repeat(5,minmax(42px,9vh))!important}}

/* V113: compact local category controls */
.tls-category-tools{display:grid;gap:4px;flex:none;margin-bottom:8px}.tls-category-tools button{font-size:12px;padding:6px 8px;min-height:32px;text-align:left}.tls-category-tools small{font-size:11px;opacity:.8;line-height:1.25}

/* V119: compact portrait cards, without cropping source art or changing live/episodes. */
main .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(96px,1fr))!important;gap:7px!important;align-content:start}
main .items:not(.live):not(.tls-episodes) article .primary .name{font-size:12px;line-height:1.25;min-height:2.5em;padding:5px 6px 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
main .items:not(.live):not(.tls-episodes) article .primary small{padding:3px 5px;font-size:11px;overflow-wrap:anywhere}
main .items:not(.live):not(.tls-episodes) article .star{min-height:32px;margin:0;padding:5px 3px;font-size:11px;width:100%;white-space:normal}
main .items:not(.live):not(.tls-episodes) article .primary img{aspect-ratio:2/3;object-fit:contain}
main .browse-layout #categoryRows button{padding:8px 9px;min-height:34px;line-height:1.2}
main #resultsScroll,main #categoryRows{overscroll-behavior:contain;scroll-behavior:auto}
@media(min-width:1200px){main .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(106px,1fr))!important}}
@media(max-width:500px){main .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(78px,1fr))!important;gap:5px!important}}

/* V133: Web Play standalone. Occupies the available viewport; the OS/browser chrome
   and the Media Station X host menu are not controlled by this stylesheet. */
html,body{width:100%;min-height:100%;margin:0;padding:0;overflow-x:hidden}
main.tls133-standalone{width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;padding:6px!important;border:0;border-radius:0;background-size:cover}
main.tls133-standalone header{position:relative;display:flex;align-items:center;gap:8px;min-height:48px;margin:0 0 6px;padding:5px 8px;border-radius:9px}
main.tls133-standalone header img{max-width:38px;max-height:38px;object-fit:contain}
main.tls133-standalone header #tls133Menu{display:inline-flex!important;align-items:center;justify-content:center;margin-left:auto;order:30;flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;font-size:21px;border:1px solid rgba(185,215,245,.35);border-radius:10px;color:#eef8ff;background:#133653;cursor:pointer}
main.tls133-standalone:not(.tls133-menu-open) header :is(#themeButton,#accountButton,#headerFavorites,#returnMSX,#clock,.head-nav){display:none!important}
main.tls133-standalone.tls133-menu-open header{flex-wrap:wrap}
main.tls133-standalone.tls133-menu-open header :is(#themeButton,#accountButton,#headerFavorites){display:inline-flex!important;order:35}
main.tls133-standalone.tls133-menu-open header .head-nav:not([hidden]){display:flex!important;order:36;flex:1 1 100%;flex-wrap:wrap}
main.tls133-standalone.tls133-menu-open header #clock{display:block!important;order:37}
main.tls133-standalone :is(#browser,#home,#account){border-radius:10px}
main.tls133-standalone .notice{margin:2px 2px 5px;font-size:11px;line-height:1.3}
main.tls133-standalone.browsing:not(.player-vod){height:100vh;height:100dvh}
main.tls133-standalone.browsing:not(.player-vod) #catalogWorkspace{gap:6px}
main.tls133-standalone.player-vod #player{max-width:none;margin:0;padding:0;border-radius:0}
main.tls133-standalone.player-vod #player video{max-height:calc(100dvh - 120px);width:100%}
@media(max-width:600px){main.tls133-standalone{padding:3px!important}main.tls133-standalone header{border-radius:6px}}

/* V136: Live TV only. A true fixed-height, three-visible-column workspace.
   Earlier V26/V28/V66/V81 responsive rules remain for VOD and series. */
#shell.browsing.browse-live:not(.player-vod){--tls136-folders:36%;--tls136-player:36%;width:100%;max-width:100%;min-width:0;overflow:hidden}
#shell.browsing.browse-live:not(.player-vod) #catalogWorkspace{
  display:grid!important;position:relative!important;
  grid-template-columns:minmax(0,calc(100% - var(--tls136-player) - 10px)) minmax(0,var(--tls136-player))!important;
  grid-template-rows:minmax(0,1fr)!important;gap:10px!important;
  align-items:stretch!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;width:100%!important;
  overflow:hidden!important
}
#shell.browsing.browse-live:not(.player-vod) #browser:not([hidden]){
  grid-column:1!important;grid-row:1!important;order:0!important;display:flex!important;
  width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;
  height:100%!important;margin:0!important;padding:clamp(4px,.7vw,12px)!important;overflow:hidden!important
}
#shell.browsing.browse-live:not(.player-vod) .browse-layout{
  display:grid!important;position:relative;grid-template-columns:minmax(0,var(--tls136-folders)) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;gap:6px!important;flex:1 1 auto!important;
  min-width:0!important;min-height:0!important;width:100%!important;max-width:100%!important;
  align-items:stretch!important;overflow:hidden!important
}
#shell.browsing.browse-live:not(.player-vod) .browse-layout #categories:not([hidden]){
  grid-column:1!important;grid-row:1!important;display:flex!important;position:relative!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;
  height:100%!important;flex:none!important;overflow:hidden!important
}
#shell.browsing.browse-live:not(.player-vod) .browse-layout #resultsScroll{
  grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:0!important;height:100%!important;overflow-x:hidden!important;overflow-y:auto!important
}
#shell.browsing.browse-live:not(.player-vod) #player:not([hidden]),
#shell.browsing.browse-live:not(.player-vod) #liveIdle:not([hidden]){
  grid-column:2!important;grid-row:1!important;order:0!important;position:relative!important;
  display:block!important;align-self:stretch!important;top:auto!important;left:auto!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;
  padding:clamp(4px,.7vw,12px)!important;overflow-x:hidden!important;overflow-y:auto!important
}
#shell.browsing.browse-live.player-live #liveIdle{display:none!important}
#shell.browsing.browse-live:not(.player-vod) #player video,
#shell.browsing.browse-live:not(.player-vod) #liveIdle .idle-video{
  display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:min(43vh,460px)!important;
  aspect-ratio:16/9;object-fit:contain;min-height:0
}
#shell.browsing.browse-live:not(.player-vod) #liveIdle .idle-video{display:flex}
#shell.browsing.browse-live:not(.player-vod) #player .toolbar{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#shell.browsing.browse-live:not(.player-vod) #player .toolbar button{min-width:0;min-height:30px;padding:5px 7px;font-size:clamp(10px,.8vw,13px)}
#shell.browsing.browse-live:not(.player-vod) #player .toolbar h2{font-size:clamp(12px,1.25vw,18px);margin:0;min-width:0;overflow-wrap:anywhere}
#shell.browsing.browse-live:not(.player-vod) .browser-header{min-width:0!important;display:flex!important;flex-wrap:wrap;gap:5px;margin:4px 0 6px}
#shell.browsing.browse-live:not(.player-vod) .browser-header h2{font-size:clamp(13px,1.25vw,20px);min-width:0}
#shell.browsing.browse-live:not(.player-vod) .browser-header #search{width:auto!important;flex:1 1 105px;min-width:0!important;max-width:100%;min-height:31px;padding:6px}
#shell.browsing.browse-live:not(.player-vod) #categories button{min-width:0!important;max-width:100%;overflow-wrap:anywhere}
#shell.browsing.browse-live:not(.player-vod) .items.live{grid-template-columns:minmax(0,1fr)!important}
#shell.browsing.browse-live:not(.player-vod) .items.live article{max-width:100%;min-width:0}
#shell.browsing.browse-live:not(.player-vod) .items.live article button.primary{min-width:0;flex:1;overflow:hidden}
#shell.browsing.browse-live:not(.player-vod) .items.live .name{min-width:0;overflow:hidden;overflow-wrap:anywhere}
#shell.browsing.browse-live:not(.player-vod) #epgRows{max-height:25vh;overflow-y:auto}
#shell.browse-live #tls136Columns:not([hidden]){display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;min-height:32px;padding:6px 9px;border-radius:9px;font-size:12px;background:#194f70;color:#f2fbff}
#shell.browse-live .tls136-columns-panel:not([hidden]){display:grid;flex:0 0 auto;gap:8px;min-width:0;max-height:39vh;overflow:auto;margin:2px 0 7px;padding:10px;border:1px solid #3b7a9e;border-radius:12px;background:#102b40;color:#edf8ff}
.tls136-sliders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tls136-sliders label{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px}
.tls136-sliders input[type=range]{width:100%;min-width:30px;max-width:none;min-height:20px;accent-color:#49c8dc}
.tls136-sliders output{font-size:12px;min-width:34px}
.tls136-presets{display:flex;flex-wrap:wrap;gap:6px}
.tls136-presets button{min-height:34px;padding:7px 9px;font-size:12px;background:#1b5674;color:#fff}
.tls136-columns-panel small{font-size:11px;color:#b5dcec}
#shell.browsing.browse-live:not(.player-vod) .tls136-divider:not([hidden]){
  display:block!important;position:absolute!important;z-index:8;width:11px;height:100%;
  top:0;border-radius:8px;background:transparent;cursor:col-resize;touch-action:none;outline-offset:-2px
}
#shell.browsing.browse-live:not(.player-vod) .tls136-divider:focus-visible,
#shell.browsing.browse-live:not(.player-vod) .tls136-divider:hover{background:rgba(61,194,224,.32);outline:2px solid #71e7f5}
#shell.browsing.browse-live:not(.player-vod) #tls136PlayerDivider{left:calc(100% - var(--tls136-player) - 16px);height:100%;grid-column:1 / -1;grid-row:1;pointer-events:auto}
#shell.browsing.browse-live:not(.player-vod) #tls136FolderDivider{left:calc(var(--tls136-folders) - 8px);height:100%;grid-column:1 / -1;grid-row:1;pointer-events:auto}
#shell.workspace-video-full.browse-live #player{position:fixed!important;inset:0!important;z-index:1000!important;
 width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;margin:0!important;
 display:flex!important;overflow:auto!important}
#shell.workspace-video-full.browse-live #player video{flex:1 1 auto;width:100%!important;max-width:100%!important;
 height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:760px){
 #shell.browsing.browse-live:not(.player-vod) #browser:not([hidden]),#shell.browsing.browse-live:not(.player-vod) #player:not([hidden]){padding:3px!important}
 #shell.browsing.browse-live:not(.player-vod) #catalogWorkspace{gap:5px!important;grid-template-columns:minmax(0,calc(100% - var(--tls136-player) - 5px)) minmax(0,var(--tls136-player))!important}
 #shell.browsing.browse-live:not(.player-vod) .browse-layout{gap:3px!important}
 #shell.browsing.browse-live:not(.player-vod) #categories .tls-category-tools small{display:none}
 #shell.browsing.browse-live:not(.player-vod) #categories .section-label{font-size:10px;letter-spacing:0}
 #shell.browsing.browse-live:not(.player-vod) #categories button{font-size:11px;padding:5px;min-height:31px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article img{width:27px;height:25px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article .name{font-size:11px;padding:2px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article button.primary{gap:3px;padding:3px;min-height:33px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article .star{min-width:25px;font-size:11px;padding:4px}
 #shell.browsing.browse-live:not(.player-vod) .browser-header h2{flex:1 1 100%}
 #shell.browsing.browse-live:not(.player-vod) #player .toolbar button{padding:4px;font-size:10px}
 #shell.browsing.browse-live:not(.player-vod) #epg{display:none}
 .tls136-sliders{grid-template-columns:1fr}
}
/* Fullscreen must outrank the live preview grid. MSX remote Back returns here. */
#shell.browsing.browse-live.workspace-video-full:not(.player-vod) #catalogWorkspace #player:not([hidden]){
 position:fixed!important;inset:0!important;z-index:1500!important;display:flex!important;
 grid-column:auto!important;grid-row:auto!important;width:100%!important;height:100%!important;
 min-width:0!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:8px!important;background:#07101b!important;overflow:auto!important
}
#shell.browsing.browse-live.workspace-video-full:not(.player-vod) #player video{
 flex:1 1 auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important
}

/* V146.0.16: o seletor de seções não aparece ao alterar o PIN adulto. */
.tls-parental-modal .tls-parental-sections[hidden]{display:none!important}
/* V146.0.47 | TLS CINEMA • Full-width TV interface (static, GPU-light layers).
   All visual overrides are after legacy rules; parental controls and native playback stay intact. */
#shell{--tls046-panel:#0d2335;--tls046-card:#132f44;--tls046-line:rgba(105,193,224,.23);
  background-color:#061421;
  background-image:radial-gradient(ellipse at 8% -18%,rgba(14,157,195,.25),transparent 48%),radial-gradient(ellipse at 98% 24%,rgba(65,98,206,.13),transparent 45%),repeating-linear-gradient(90deg,transparent 0,transparent 109px,rgba(62,186,228,.016) 110px,transparent 111px),linear-gradient(150deg,#061422,#0b2335 56%,#081421);
  color:#edf7ff;}
#shell.theme-green{--tls046-line:rgba(66,212,170,.25)}
#shell.theme-purple{--tls046-line:rgba(164,138,254,.29)}
#shell.theme-red{--tls046-line:rgba(247,116,149,.28)}
#shell.theme-teal{--tls046-line:rgba(73,218,219,.26)}
#shell header{border:1px solid var(--tls046-line);border-radius:12px;background:linear-gradient(110deg,#102e45,#0a2032);box-shadow:0 5px 16px rgba(0,0,0,.12)}
#shell section,#shell #player,#shell #liveIdle{background:linear-gradient(160deg,rgba(13,39,58,.98),rgba(8,25,40,.98));border:1px solid var(--tls046-line);box-shadow:none;border-radius:12px}
#shell.browsing:not(.player-vod){padding:clamp(4px,.6vw,10px)!important;min-height:0}
#shell.browsing:not(.player-vod) header{min-height:44px;padding:4px 10px;margin-bottom:5px}
#shell.browsing:not(.player-vod) #catalogWorkspace{gap:7px}
#shell.browsing:not(.player-vod) #browser:not([hidden]){padding:clamp(5px,.7vw,11px)!important}
#shell.browsing:not(.player-vod) .browser-header{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 5px!important;min-height:33px}
#shell.browsing:not(.player-vod) .browser-header #heading{font-size:clamp(15px,1.4vw,23px);letter-spacing:.01em;white-space:nowrap;max-width:60%;overflow:hidden;text-overflow:ellipsis}
#shell.browsing:not(.player-vod) .browser-header #back{border-radius:8px;background:#19435b;min-height:33px;padding:5px 10px;font-size:13px}
#shell.browsing:not(.player-vod) #status{font-size:11px;line-height:1.2;margin:3px 0 4px;min-height:0}
#shell.browsing:not(.player-vod) .notice{font-size:10px;line-height:1.05;padding:0;margin:0 3px 3px}
#shell.browsing:not(.player-vod) footer{display:none}
/* Search is a separate toolbar above the catalogue, never embedded among posters. */
#shell .tls-search-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-height:50px;padding:7px 11px;margin:0 0 8px;border:1px solid rgba(52,180,213,.35);border-radius:11px;background:linear-gradient(95deg,rgba(11,62,79,.9),rgba(14,40,61,.93));box-shadow:inset 0 1px 0 rgba(255,255,255,.045)}
#shell .tls-search-label{font-size:12px;display:flex;align-items:center;gap:8px;font-weight:800;color:#c8f1f8;letter-spacing:.1em;white-space:nowrap}
#shell .tls-search-label:first-letter{font-size:23px}
#shell .tls-search-toolbar #search{flex:1 1 260px;width:auto!important;min-width:110px;min-height:38px;border:1px solid rgba(110,201,223,.35);border-radius:9px;background:#071b2c;color:#fff;padding:8px 12px;font-size:clamp(13px,1vw,16px)}
#shell .tls-search-toolbar #search:focus{outline:2px solid var(--tls-glow);outline-offset:0}
#shell .tls-search-toolbar #searchSubmit[hidden]{display:none!important}
#shell .tls-search-toolbar #tlsSearchHint{flex:0 1 auto;white-space:nowrap;font-size:11px;color:#a6d1e3}
#shell.browse-live .tls-search-label span{display:none}
#shell.browse-live .tls-search-toolbar{min-height:42px;padding:4px 8px;margin-bottom:5px}
#shell.browse-live .tls-search-toolbar #search{min-height:33px}
/* Live TV uses nearly all available viewport width: folders + long channel list + preview. */
#shell.browsing.browse-live:not(.player-vod) .browse-layout{gap:6px!important}
#shell.browsing.browse-live:not(.player-vod) .items.live{gap:4px!important;align-content:start}
#shell.browsing.browse-live:not(.player-vod) .items.live article{border:1px solid rgba(107,168,198,.15);border-radius:9px;background:#0c2539;min-height:44px}
#shell.browsing.browse-live:not(.player-vod) .items.live article button.primary{min-height:43px;padding:4px 7px;gap:9px;border-radius:8px;background:transparent;flex:1;display:flex;align-items:center;text-align:left}
#shell.browsing.browse-live:not(.player-vod) .items.live article img{width:clamp(37px,3.4vw,58px);height:clamp(30px,2.6vw,43px);object-fit:contain;flex:none;border-radius:5px;background:#091c29}
#shell.browsing.browse-live:not(.player-vod) .items.live article .name{font-size:clamp(12px,.95vw,16px);font-weight:600;line-height:1.2;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
#shell.browsing.browse-live:not(.player-vod) .items.live article:focus-within,#shell.browsing.browse-live:not(.player-vod) .items.live article.tls-now-playing{border-color:#44c9e0;background:#124660;box-shadow:inset 3px 0 0 #46dbef}
#shell.browsing.browse-live:not(.player-vod) .items.live article .star{min-height:30px;min-width:32px;padding:3px 5px;border-radius:7px;font-size:10px}
#shell.browsing.browse-live:not(.player-vod) #categoryRows button{padding:7px 9px;min-height:37px;margin-bottom:3px;border:1px solid transparent;border-radius:8px;font-size:clamp(11px,.9vw,15px);line-height:1.15;text-align:left;background:#122f42;color:#e3f2ff}
#shell.browsing.browse-live:not(.player-vod) #categoryRows button.selected{background:#14677c;border-color:#48bcd3;color:#fff}
#shell.browsing.browse-live:not(.player-vod) #categories .section-label{margin:2px 0 6px;color:#87cddd;letter-spacing:.13em;font-size:11px}
#shell.browsing.browse-live:not(.player-vod) #player:not([hidden]),#shell.browsing.browse-live:not(.player-vod) #liveIdle:not([hidden]){padding:8px!important}
#shell.browsing.browse-live:not(.player-vod) #player video,#shell.browsing.browse-live:not(.player-vod) #liveIdle .idle-video{max-height:min(48vh,500px)!important;border:1px solid rgba(73,176,208,.21);border-radius:10px;background:#020b14}
/* VOD poster wall: more columns than the previous oversized sidebars, with legible captions. */
@media(min-width:1100px){
 #shell.browsing:not(.browse-live):not(.player-vod) #catalogWorkspace{grid-template-columns:minmax(0,1fr)!important}
 #shell.browsing:not(.browse-live):not(.player-vod) .browse-layout #categories:not([hidden]){flex:0 0 clamp(175px,18%,275px)!important;min-width:150px;max-width:275px}
 #shell.browsing:not(.browse-live):not(.player-vod) .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(146px,1fr))!important;gap:9px!important}
}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article{background:linear-gradient(160deg,#102b3f,#0b2031);border:1px solid rgba(102,174,209,.24);border-radius:12px;overflow:hidden}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article:focus-within{border-color:#55d6eb;box-shadow:0 0 0 2px rgba(44,204,232,.3)}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .primary img{width:100%;aspect-ratio:2/3;object-fit:contain;background:linear-gradient(140deg,#0b1d2a,#18384d)}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .primary .name{font-size:clamp(12px,.87vw,15px);line-height:1.25;padding:7px 8px 5px;min-height:2.6em}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .star{border-radius:0 0 10px 10px;min-height:34px;background:#183c51}
#shell.browsing:not(.browse-live) #categoryRows button{min-height:36px;padding:7px 10px;margin-bottom:4px;border-radius:8px}
#shell.browsing:not(.browse-live) .results{padding:3px 4px}
#shell .results::-webkit-scrollbar,#shell #categoryRows::-webkit-scrollbar{width:7px}
#shell .results::-webkit-scrollbar-thumb,#shell #categoryRows::-webkit-scrollbar-thumb{background:#32758f;border-radius:12px}
#shell #home{background:radial-gradient(circle at 93% 10%,rgba(33,153,185,.14),transparent 43%),linear-gradient(150deg,#112e43,#071d2e)}
#shell #home .home-heading h1{font-size:clamp(25px,3.1vw,48px)}
#shell #home .home-tiles .tile{border-radius:17px;border:1px solid rgba(149,223,239,.2);box-shadow:inset 0 1px rgba(255,255,255,.07),0 8px 20px rgba(0,0,0,.13)}
#shell #home .home-tiles .tile-live{background:linear-gradient(140deg,#0b829b,#102c49)!important}
#shell #home .home-tiles .tile-movie{background:linear-gradient(140deg,#4f5bba,#162c53)!important}
#shell #home .home-tiles .tile-series{background:linear-gradient(140deg,#7651ad,#222b52)!important}
@media(max-width:1099px){
 #shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;gap:7px!important}
 #shell .tls-search-label span{display:none}
 #shell .tls-search-toolbar #tlsSearchHint{display:none}
}
@media(max-width:680px){
 #shell .tls-search-toolbar{padding:5px 7px;gap:5px;min-height:39px}
 #shell .tls-search-toolbar #search{font-size:13px;min-height:32px}
 #shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important;gap:5px!important}
 #shell.browsing.browse-live:not(.player-vod) #categoryRows button{padding:4px 5px;min-height:31px;font-size:11px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article img{width:27px;height:25px}
 #shell.browsing.browse-live:not(.player-vod) .items.live article .name{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#shell *{transition:none!important;animation:none!important}}

/* V146.0.51: TV Studio, balanced columns and consistent poster artwork. */
#shell .tls-search-toolbar #searchSubmit{background:#16798a;color:#fff;border-radius:9px;padding:8px 15px;font-weight:700;min-height:36px}
#shell.browsing.browse-live:not(.player-vod){--tls136-folders:50%;--tls136-player:33%;}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .primary img{object-fit:contain!important;aspect-ratio:2/3;background:#071523;display:block}
#shell #home .home-tiles .tile{box-shadow:inset 0 1px rgba(255,255,255,.12);border-radius:12px}
#shell #home .home-tiles .tile-live{background:linear-gradient(135deg,#0e8393,#123248)!important}
#shell #home .home-tiles .tile-movie{background:linear-gradient(135deg,#475d9c,#172e49)!important}
#shell #home .home-tiles .tile-series{background:linear-gradient(135deg,#6854a1,#212e48)!important}

/* V146.0.52: dense poster wall, no letterboxing; title remains outside the artwork. */
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .primary img{object-fit:cover!important;object-position:center;border-radius:11px 11px 0 0}
#shell.browsing:not(.browse-live) .items:not(.live):not(.tls-episodes) article .primary .name{min-height:2.6em;padding:6px 7px;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(min-width:1100px){#shell.browsing:not(.browse-live):not(.player-vod) .items:not(.live):not(.tls-episodes){grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;gap:7px!important}}

/* V146.0.54: renewal message remains within the player in expanded view. */
.tls-renewal-strip:not([hidden]){flex:none;box-sizing:border-box;padding:.5rem .75rem;margin:0 0 .3rem;border-left:3px solid #e4b66c;background:#183747;color:#fff0d7;font-size:clamp(.76rem,1.4vw,1.05rem);line-height:1.3;overflow-wrap:anywhere;text-align:center}
.tls-renewal-strip[hidden]{display:none!important}
