/* smarters-linux: categorias retas em faixa, catálogos densos e prévia ao vivo. */
.categoriesPadding { height: 83vh !important; padding: 2vh 3vw 5vh !important; overflow: auto !important; }
.categoriesPadding > .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 21vw, 440px), 1fr)); gap: 1.6vh 1.2vw; margin: 0; padding: 1vh 1vw 4vh; align-content: start; }
.categoriesSection { flex: none; width: auto; max-width: none; padding: 0; }
.section { position: relative; margin: 0; border: 0; border-left: .45vw solid var(--sl-category-accent, var(--sl-cyan)); height: clamp(72px, 10vh, 130px); min-height: 0; background: var(--sl-surface); padding: 0 1.4vw; transform: none; box-shadow: none; transition: transform var(--sl-motion) var(--sl-ease), background-color var(--sl-motion) var(--sl-ease), box-shadow var(--sl-motion) var(--sl-ease); }
.categoriesSection:nth-child(5n+2) .section { --sl-category-accent: var(--sl-red); }
.categoriesSection:nth-child(5n+3) .section { --sl-category-accent: var(--sl-green); }
.categoriesSection:nth-child(5n+4) .section { --sl-category-accent: var(--sl-pink); }
.categoriesSection:nth-child(5n+5) .section { --sl-category-accent: var(--sl-blue); }
.section > .floatLeft { width: 100%; height: 100%; display: flex; align-items: center; transform: none; }
.section > .floatLeft > img { display: none; }
.section > .floatLeft > p { width: 100%; margin: 0; border: 0; font-size: var(--sl-type); line-height: 1.25; text-align: left; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.section:is(:hover, .imageFocus) { border: 0; border-left: .45vw solid var(--sl-category-accent, var(--sl-text)); background: var(--sl-raised); transform: translateY(-.6vh) scale(1.03); box-shadow: var(--sl-shadow); }
#moviesList { height: 77vh !important; overflow-y: auto !important; margin-top: 0 !important; padding-bottom: 6vh; }
.movieListTopHeader { padding-top: 1vh !important; }
.movies_title_height { height: auto; margin: 0; padding: 0 2vw; align-items: center; }
.clearfixHeight { height: auto; min-height: 10vh; }
.slider-row, .top-added-section, .top-rated-section, .ascend-section, .descend-section { padding-left: 2vw !important; padding-right: 2vw !important; }
.slider-heading { background: var(--sl-clear); padding: 2vh 0 .5vh; border-radius: 0; }
.slider-heading h3, .related-slide { font-size: var(--sl-type) !important; font-weight: 500; }
.slider.responsive { display: flex; overflow-x: auto; gap: 1.3vw; padding: 3vh 2vw 4vh; }
.sliderimage-div, .sliderimage-view { position: relative; transform: none; border-radius: 0; background: var(--sl-cyan); border-bottom: .6vh solid var(--sl-cyan); padding: 0; margin: 0; overflow: hidden; height: auto; }
.sliderimage-div { flex: 0 0 clamp(140px, 12vw, 285px); width: clamp(140px, 12vw, 285px); }
:is(.sliderimage-div, .sliderimage-view):nth-child(4n+2) { border-color: var(--sl-red); }
:is(.sliderimage-div, .sliderimage-view):nth-child(4n+3) { border-color: var(--sl-green); }
:is(.sliderimage-div, .sliderimage-view):nth-child(4n) { border-color: var(--sl-pink); }
.sec-images, .view-images { display: block; width: 100% !important; max-width: 100%; margin-left: 0; height: auto !important; aspect-ratio: 2 / 3; object-fit: cover; transform: none; border-radius: 0; }
.view-stream { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(135px, 11vw, 260px), 1fr)); grid-template-rows: none; gap: 4vh 1.8vw; padding: 3vh 3vw 6vh; }
.view-stream::after { content: none; }
.view-stream .sliderimage-view { float: none; width: 100%; }
.view-stream .sliderimage-view.animation-element { opacity: 1; transform: none; }
.view-stream .sliderimage-view.animation-element:is(:hover, :has(.imageFocus)) { transform: translateY(-1.4vh) scale(1.04); }
.img-title.shows-image { opacity: 1; border: 0; border-radius: 0; background: var(--sl-clear); transform: none !important; color: var(--sl-text); }
.shows-image.imageFocus { outline-offset: -5px !important; background: var(--sl-clear); }
.movies-title { position: absolute; bottom: 0; left: 0; width: 100%; min-height: 3em; margin: 0; padding: .6em 1em; background: var(--sl-scrim); color: var(--sl-text); font-size: var(--sl-small) !important; line-height: 1.35; text-align: left; transform: none; text-overflow: ellipsis; }
.moviesHover, .sliderimage-div .rating, .sliderimage-view .rating { display: none; }
.sl-search-bar { display: flex; flex: 0 0 calc(100% - 5vw); width: calc(100% - 5vw); align-items: center; gap: 1vw; margin: 1vh 2.5vw 2vh; padding: .5vh 1vw; background: var(--sl-surface); border-bottom: 2px solid var(--sl-line); }
.sl-search-bar i { color: var(--sl-muted); }
.sl-search-field { width: 100%; min-height: 5.5vh; border: 0; background: var(--sl-clear); color: var(--sl-text); font-size: var(--sl-type); padding: .5vh; }
.sl-search-field::placeholder { color: var(--sl-muted); }
.sl-searching .sl-search-bar { visibility: hidden; }
.searchIcon, .sortIcon { width: clamp(35px, 3vw, 68px) !important; padding: .4vw; }
.sl-searching .overlay-screen { background: var(--sl-clear); pointer-events: none; }
.sl-searching #customMessage { position: fixed; top: 11vh; left: calc(var(--sl-rail) + 2.5vw); width: calc(95vw - var(--sl-rail)); height: auto; z-index: 10000; }
.sl-searching #customMessage .info-msg-cont { position: relative; inset: auto; transform: none; width: 100%; max-height: 20vh; margin: 0; padding: 1vh 1vw; display: flex; align-items: center; gap: 1vw; background: var(--sl-surface); border: 1px solid var(--sl-line); }
.sl-searching #customMessage .info-msg-cont > .row { flex: 1; min-width: 0; margin: 0; }
.sl-searching #customMessage :is(.col-md-2, label) { display: none; }
.sl-searching #customMessage .col-md-8 { flex: 0 0 100%; max-width: 100%; padding: 0; }
.sl-searching #customMessage .form-group { margin: 0; }
.sl-searching #searchedText { margin: 0 !important; padding: 1vh 1vw !important; height: 6vh; font-size: var(--sl-type) !important; }
.sl-searching #cancelButtonSearch { margin: 0 !important; font-size: var(--sl-small); padding: 1vh 1vw; }
.sl-searching #customMessage .error:empty { display: none; }
.sl-searching #customMessage .error:not(:empty) { position: absolute; top: 100%; background: var(--sl-surface); font-size: var(--sl-small); }
.liveTopHeader { height: 12vh !important; padding: 1vh 0; }
.liveBottomheader { margin: 1vh 0 0; height: 75vh; }
.liveBottomheader > .row { height: 100%; margin: 0; gap: 2vw; flex-wrap: nowrap; }
.liveChannels { margin-top: 0; padding: 0 1vw; flex: 0 0 44%; max-width: 44%; height: 100%; background: var(--sl-clear); }
.liveBodyTop { flex: 1; max-width: none; padding: 0; margin: 0 !important; }
.liveHeadLine { padding: 1vh; background: var(--sl-surface); font-size: var(--sl-type); }
.liveHeadLine p { margin: .5vh 0; font-size: var(--sl-type); }
.arrowsIcon { width: clamp(32px, 3vw, 66px); padding: .4vw; }
.liveDetails { padding: 2vh 1vw; height: calc(100% - 10vh) !important; }
.liveDetails > .rowSec { display: flex; align-items: center; min-height: 8.5vh; margin: 0 0 1.7vh; padding: 1vh .8vw; border: 0; background: var(--sl-surface); transform: none; }
.liveDetails > .rowSec > div { transform: none; }
.liveDetails > .rowSec:is(.imageFocus, :hover, .playing) { background: var(--sl-cyan); box-shadow: var(--sl-shadow); }
.liveDetailsH1 { width: 2em; flex: 0 0 2em; }
.liveDetailsH1 h1, .liveDetailsName h1 { font-size: var(--sl-small) !important; margin: 0; line-height: 1.35; }
.liveDetailsImg { width: 3em; flex: 0 0 3em; }
.liveDetailsImg img { max-height: 5vh; width: 100%; object-fit: contain; }
.liveDetailsName { flex: 1; width: auto; min-width: 0; padding: 0 .7vw; }
.liveDetailsName span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liveDetailPlayImg { width: 1.5em; flex: 0 0 1.5em; }
.playShowImg { font-size: var(--sl-type); }
#videoHtml.player { width: 100%; margin: 0; background: var(--sl-sidebar); }
.epgListing { height: auto; max-height: 24vh; overflow: auto; margin: 2vh 0; padding: 1vh 1vw; background: var(--sl-surface); }
.epgRow, .epgRow p, .epgRow span { font-size: var(--sl-small); }
.selectedEPG { background: var(--sl-raised); border-left: 4px solid var(--sl-cyan); }
.dropdown-content { background: var(--sl-surface); color: var(--sl-text); box-shadow: var(--sl-shadow); }
.dropdown-content a { color: var(--sl-text); font-size: var(--sl-small); padding: 1vh 1vw; }
.dropdown-content a:is(:hover, :focus-visible) { background: var(--sl-cyan); }
.next-icon { width: clamp(36px, 2.6vw, 60px) !important; height: auto !important; opacity: .85; }
body:has(.sl-search-bar) #searchIcon { opacity: 0; pointer-events: none; } /* a barra de busca substitui a lupa do cabeçalho */
.categoriesPadding > .row::before, .categoriesPadding > .row::after { content: none; } /* o clearfix do bootstrap ocupava a 1ª célula da grade */
.section > .floatLeft > p > span { display: inline; width: auto; max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
/* smarters-linux: dentro da categoria o cabeçalho flutua no topo; a busca desce para baixo dele. */
.sl-search-bar:has(+ #moviesList) { margin-top: 11vh; }
.sl-search-bar + #moviesList { height: 68vh !important; }
/* smarters-linux: títulos até três linhas, sem partir palavras nem anos. */
.movies-title, .sl-card-name { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.movies-title { min-height: 4.2em; max-height: 5.4em; padding: .6em .65em; }
.section p, .section span { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }
.section { height: auto; min-height: clamp(80px, 10vh, 130px); padding-top: 12px; padding-bottom: 12px; }
#clearSearch { width: auto !important; min-width: 110px; font-size: var(--sl-small) !important; padding: 10px 14px; }
/* smarters-linux: capas reais cobrem o ícone; falha/carregamento mantém superfície intencional. */
.sliderimage-div, .sliderimage-view, .stream-icon, .sl-card { background: var(--sl-surface); }
:is(.sliderimage-div, .sliderimage-view, .stream-icon, .sl-card-art)::before { content: '\f008'; font: 32px 'SL Icons'; color: var(--sl-muted); opacity: .35; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stream-icon { position: relative; }
.sec-images, .view-images, .stream-image, .sl-card-art img { position: relative; background: var(--sl-clear); }
/* capa visível assim que o navegador a pinta; some só a imagem de reserva do app (falha), deixando o placeholder de fundo */
:is(.sec-images, .view-images, .stream-image, .sl-card-art img, .posterImage)[src*="movieTile1"] { opacity: 0; }
/* smarters-linux: EPG com altura proporcional ao conteúdo e horário neutro. */
.epgListing .row1 { min-height: 0 !important; height: auto !important; padding: 10px 12px !important; margin: 0 0 6px !important; }
.epgListing .epgRow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 !important; margin: 0 !important; line-height: 1.4; }
.epgListing .epgRow > span { color: var(--sl-muted) !important; font-size: var(--sl-small); white-space: nowrap; }
.epgListing .epgRow > b { display: none; }
.epgListing .epgRow > p { flex: 1 1 180px; margin: 0; color: var(--sl-text); }

/* Ao vivo: lista navegável à esquerda e prévia acima da programação. */
.sl-live-page { height: auto; min-height: 100%; padding: clamp(12px, 2.8vw, 42px); }
#mainContent:has(> .sl-live-page) { overflow-anchor: none; }
.sl-live-head h1 { margin: 0 0 .6em; font-size: var(--sl-title); font-weight: 600; }
.sl-live-layout {
  display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr);
  grid-template-areas: "channels preview" "channels guide"; gap: clamp(10px, 1.4vw, 24px); align-items: start;
}
.sl-live-preview { grid-area: preview; min-width: 0; position: relative; }
.sl-live-list-panel { grid-area: channels; min-width: 0; }
.sl-live-guide { grid-area: guide; min-width: 0; }
.sl-live-guide h2 { font-size: var(--sl-small); margin: 0 0 .45em; }
.sl-live-page .epgListing { margin: 0; padding: 0; max-height: min(28vh, 300px); border-left: 3px solid var(--sl-cyan); }
.sl-live-page .epgListing:empty::after { display: block; color: var(--sl-muted); font-size: var(--sl-small); padding: .7em; content: 'Programação indisponível'; }
.sl-live-stage { position: relative; min-width: 0; background: var(--sl-sidebar); }
.sl-live-stage #videoHtml.player {
  float: none; position: relative; display: block; width: 100%; height: auto; margin: 0; aspect-ratio: 16 / 9;
  background: var(--sl-sidebar); border: 0; outline: 0 !important;
}
.sl-live-stage #player-wrapper { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-live-stage .wcp-toolbar :is(.wcp-maximize, .wcp-minimize, .wcp-time, .wcp-progress-bar, .wcp-playlist-but, .wcp-room-but[aria-disabled='true']) { display: none !important; }
.sl-live-now { display: flex; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 6px 8px 6px 12px; background: var(--sl-raised); }
.sl-live-title { min-width: 0; font-size: var(--sl-small); overflow-wrap: anywhere; font-weight: 650; }
.sl-live-expand { flex: none; display: inline-flex; gap: .55em; align-items: center; padding: 0 .65em; font-size: var(--sl-small); }
.sl-live-page button { border: 0; border-radius: 0; min-height: 44px; background: var(--sl-surface); color: var(--sl-text); }
.sl-live-now .sl-live-expand { border-left: 3px solid var(--sl-yellow); }
.sl-live-expand:disabled { opacity: .5; cursor: default; }
.sl-live-filter, .sl-live-category { display: grid; gap: 6px; align-items: stretch; margin: 0 0 6px; }
.sl-live-filter { grid-template-columns: minmax(0, 1fr) 44px; }
.sl-live-filter .sl-search-bar { width: auto; min-width: 0; margin: 0; min-height: 44px; }
.sl-live-filter #sortIcon { width: 44px; float: none; margin: 0; }
.sl-live-filter .sl-live-search { min-width: 0; padding: .3em; min-height: 42px; font-size: var(--sl-small); }
.sl-live-category { grid-template-columns: 44px minmax(0, 1fr) 44px; min-height: 52px; background: var(--sl-surface); }
.sl-live-category > div { align-self: center; padding: 4px; }
.sl-live-category h2 { font-weight: 600; margin: 0; font-size: var(--sl-small); overflow-wrap: anywhere; }
.sl-live-count, .sl-live-empty { color: var(--sl-muted); font-size: max(12px, .72em); }
.sl-live-page .liveChannels { width: 100%; max-width: none; height: auto; padding: 0; margin: 0; float: none; }
.sl-live-page .liveDetails { height: auto !important; max-height: min(63dvh, 760px); overflow: auto; overscroll-behavior-y: contain; padding: 2px; }
.sl-live-page .liveDetails > .rowSec { scroll-margin: 3px; }
.sl-live-page .liveDetails > .rowSec {
  display: grid; grid-template-columns: 3ch clamp(30px, 3vw, 56px) minmax(0, 1fr) auto 44px;
  align-items: center; column-gap: 8px; width: 100%; float: none; margin: 0 0 4px; padding: 3px 4px 3px 8px;
  min-height: 50px; border-left: 3px solid transparent; background: var(--sl-surface);
}
.sl-live-page .liveDetails > .rowSec::before, .sl-live-page .liveDetails > .rowSec::after { content: none; }
.sl-live-page .liveDetails > .rowSec[hidden], .sl-live-empty[hidden] { display: none; }
.sl-live-page .liveDetails > .rowSec.playing { border-left-color: var(--sl-yellow); background: var(--sl-raised); }
.sl-live-page .liveDetails > .rowSec:hover { border-left-color: var(--sl-cyan-hi); }
.sl-live-page .liveDetailsH1 { grid-column: 1; width: auto; padding: 0; color: var(--sl-muted); font-size: max(12px, .68em); text-align: center; }
.sl-live-page .liveDetailsImg { grid-column: 2; width: 100%; aspect-ratio: 1; position: relative; display: grid; place-items: center; padding: 0; background: var(--sl-bg); }
.sl-live-page .liveDetailsImg img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.sl-live-page .liveDetailsImg:has(img:not([hidden])) i { visibility: hidden; }
.sl-live-page .liveDetailsName { grid-column: 3; padding: 0; font-size: var(--sl-small); }
.sl-live-page .liveFavHeart { grid-column: 4; }
.sl-live-page .sl-live-more { grid-area: 1 / 5; padding: 0; background: transparent; }
.sl-live-page .liveDetails .dropdown-content { grid-column: 1 / -1; position: static; float: none; margin: 0; width: 100%; padding: 3px; box-shadow: none; }
.sl-live-page .liveDetails .dropdown-content.showInlineGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-live-page .liveDetails .dropdown-content a { display: grid; align-items: center; min-height: 44px; font-size: max(12px, .72em); white-space: normal; padding: 6px 8px; }
.sl-live-full .sl-live-stage {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 11000; background: #000;
}
.sl-live-full .sl-live-stage #videoHtml.player { height: 100%; max-height: none; aspect-ratio: auto; }
.sl-live-full .sl-live-stage :is(.wcp-center:has(> video), .wcp-video) { inset: 0; width: 100% !important; height: 100% !important; transform: none !important; object-fit: contain !important; }
.sl-live-full .sl-live-now { display: none; }
.sl-live-full .sl-live-stage:focus { outline: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.sl-mobile) .sl-live-full .sl-live-stage .wcp-toolbar .wcp-minimize { display: block !important; }
}
body.sl-live-full :is(.sl-sidebar, .sl-mobile-nav, #backArrow) { visibility: hidden !important; }
@media (max-width: 720px) {
  .sl-live-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "preview" "channels" "guide"; }
  .sl-live-page .liveDetails { max-height: none; overflow: visible; }
}
/* smarters-linux: geradores legados de cartões usam posterImage/pText. */
.shows-image:has(> .posterImage) { position: relative; background: var(--sl-surface); }
.shows-image:has(> .posterImage)::before { content: '\f008'; font: 32px 'SL Icons'; color: var(--sl-muted); opacity: .35; position: absolute; inset: 0; display: grid; place-items: center; }
.posterImage { position: relative; background: var(--sl-clear); }

.pText p, .pText span { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }
/* smarters-linux: busca aberta no mesmo retângulo da barra, compacta e entrando com deslize. */
.sl-searching #customMessage { top: var(--sl-search-top, 11vh); left: var(--sl-search-left, calc(var(--sl-rail) + 2.5vw)); width: var(--sl-search-width, calc(95vw - var(--sl-rail))); }
.sl-searching #customMessage .info-msg-cont { min-height: 0; height: var(--sl-search-height, 7vh); max-height: none; padding: 0 0 0 1vw !important; align-items: stretch; gap: 0; border: 0; border-bottom: 2px solid var(--sl-yellow); box-shadow: var(--sl-shadow); animation: sl-search-in 260ms var(--sl-ease); }
.sl-searching #searchedText { height: calc(var(--sl-search-height, 7vh) - 2px) !important; border: 0 !important; outline: 0 !important; background: var(--sl-clear) !important; padding: 0 1vw !important; }
.sl-searching #cancelButtonSearch { align-self: stretch; height: auto; padding: 0 1.6vw; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: var(--sl-type); }
@keyframes sl-search-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
