/* smarters-linux: C6, sem zoom; o menu também se adapta à prévia. */
.wcp-wrapper { container-type: size; background: var(--sl-sidebar); }
.wcp-wrapper .wcp-menu {
  zoom: 1; width: min(76cqw, 900px); height: min(70cqh, 560px);
  max-width: 90%; max-height: 85%; padding: clamp(10px, 1.4cqw, 30px);
  background: var(--sl-scrim); color: var(--sl-text); border: 1px solid var(--sl-line);
  font-family: system-ui, sans-serif; font-size: clamp(16px, 1.8cqw, 40px);
  letter-spacing: normal; box-shadow: var(--sl-shadow); border-radius: 0;
}
.wcp-wrapper .wcp-menu-title { width: calc(100% - 3em); height: 2.5em; line-height: 2.5em; padding: 0 .7em; background: var(--sl-surface); color: var(--sl-text); }
.wcp-wrapper .wcp-menu-items { margin: .6em 0 0; height: calc(100% - 3.1em); padding: 0 .3em .3em; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--sl-line) var(--sl-sidebar); }
.wcp-wrapper .wcp-menu-item { width: 100%; height: auto; min-height: 2.7em; line-height: 1.5; padding: .6em .8em; margin-bottom: .35em; border-left: .25em solid var(--sl-clear); cursor: pointer; }
.wcp-wrapper .wcp-menu-selected { background: var(--sl-cyan); color: var(--sl-text); border-left-color: var(--sl-yellow); }
.wcp-wrapper .wcp-menu-item:is(:hover, :focus-visible) { background: var(--sl-raised); color: var(--sl-text); }
.wcp-wrapper .wcp-menu-close { width: 2.3em; height: 2.3em; line-height: 2.3em; top: .6em; right: .6em; padding: 0; font-size: inherit; background: var(--sl-raised); color: var(--sl-text); }
.wcp-wrapper .wcp-menu-close::before { font-size: 1em; }
.wcp-wrapper .wcp-menu-close:is(:hover, :focus-visible) { background: var(--sl-cyan); color: var(--sl-text); }
.wcp-wrapper .wcp-titlebar { background: var(--sl-scrim); color: var(--sl-text); font: 400 clamp(16px, 1.9cqw, 42px) system-ui; padding: 1.4cqh 2cqw; height: auto; min-height: 7cqh; }
.wcp-wrapper .wcp-title { font-size: inherit; color: var(--sl-text); }
.wcp-wrapper .wcp-button { color: var(--sl-text); }
.wcp-wrapper .wcp-button:is(:hover, :focus-visible) { background: none; color: var(--sl-cyan-hi); box-shadow: none; transform: none; }
.wcp-wrapper .wcp-button[data-player-download][hidden] { display: none !important; }
.wcp-wrapper .wcp-button[data-player-download]:focus-visible { outline: none; }
.wcp-wrapper .wcp-button[data-player-download] { border: 0; background: none; position: relative; }
.wcp-wrapper [data-player-download] small {
  position: absolute; inset: auto 0 0; line-height: 1; font: 600 10px/1 system-ui, sans-serif;
  color: var(--sl-cyan-hi); text-align: center;
}
.wcp-wrapper > .wcp-toolbar .wcp-progress-bar {
  position: relative; inset: auto; flex: 0 0 100%; height: 18px;
  background: linear-gradient(var(--sl-line), var(--sl-line)) center / 100% 4px no-repeat;
  touch-action: none; display: flex; align-items: center;
}
.wcp-wrapper > .wcp-toolbar .wcp-progress-seen { background: var(--sl-cyan) !important; height: 4px; flex: none; }
.wcp-wrapper > .wcp-toolbar .wcp-progress-pointer {
  position: static !important; width: 10px !important; height: 10px !important;
  flex: none; margin: 0 0 0 -5px !important; border-radius: 50% !important;
  background: var(--sl-text) !important;
}
.wcp-wrapper .wcp-time { color: var(--sl-text); font: 400 clamp(14px, 1.3cqw, 24px) system-ui; }
.wcp-wrapper .wcp-vol-bar-full { background: var(--sl-cyan); }
body.sl-player-open #HTML5Div { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; margin: 0 !important; }
body.sl-player-open #videoHtml.playerMovies { width: 100% !important; height: 100% !important; max-height: none; margin: 0 !important; aspect-ratio: auto; }
body.sl-player-open .playerDiv { margin: 0 !important; width: 100% !important; height: 100% !important; }
body.sl-player-open #HTML5Div > .no-padding { display: none; }
body.sl-player-open #HTML5Div .playerDiv > div:has(> #closeModal) { position: fixed !important; right: 2vw !important; top: 2vh; z-index: 1000; }
/* No Ao vivo em tela cheia, o botão central só aparece para retomar uma pausa. */
:is(.sl-live-full .sl-live-stage, .sl-player-open #HTML5Div) .wcp-wrapper:has(video[data-sl-live="active"]) > .wcp-pause-anim {
  display: none !important;
}
/* As regras injetadas pelo vendor têm !important e medidas fixas em px. */
.wcp-wrapper .wcp-menu-items::-webkit-scrollbar { width: 8px !important; }
.wcp-wrapper .wcp-menu-items::-webkit-scrollbar-track { background: var(--sl-sidebar) !important; border: 0 !important; }
.wcp-wrapper .wcp-menu-items::-webkit-scrollbar-thumb { background: var(--sl-line) !important; border: 0 !important; box-shadow: none !important; }
/* smarters-linux: proposta B, superfície opaca e opções legíveis em todos os estados. */
.wcp-wrapper .wcp-menu { background: var(--sl-sidebar); }
.wcp-wrapper .wcp-menu-item { color: var(--sl-text); background: var(--sl-surface); white-space: normal; word-break: normal; overflow-wrap: normal; }
.wcp-wrapper .wcp-menu-selected { background: var(--sl-cyan); }
.wcp-wrapper .wcp-menu-item:is(:hover, :focus-visible, .imageFocus) { color: var(--sl-text); outline: 3px solid var(--sl-text) !important; outline-offset: -3px; }
.wcp-wrapper .wcp-menu-items::-webkit-scrollbar { display: none !important; width: 0 !important; }
.wcp-wrapper > .wcp-toolbar {
  box-sizing: border-box; inset: auto 0 0; height: auto !important; min-height: 0;
  padding: 4px 12px 8px !important; background: var(--sl-scrim);
  flex-wrap: wrap; align-items: center; gap: 2px 4px;
}
.wcp-wrapper > .wcp-toolbar[style*='display: block'] { display: flex !important; }
.wcp-wrapper > .wcp-toolbar .wcp-button {
  float: none; flex: 0 0 auto; margin: 0; border: 0;
  width: clamp(44px, 3.5cqw, 64px); height: 44px; line-height: 44px;
}
.wcp-wrapper .wcp-time { flex: 1 1 auto; float: none; margin: 0 8px; height: 44px; line-height: 44px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wcp-wrapper .wcp-vol-control { flex: 0 1 auto; margin: 0; }
.wcp-wrapper .wcp-status { color: var(--sl-text); background: var(--sl-scrim); max-width: calc(100% - 32px); padding: 6px 10px; font: 16px system-ui; }
/* smarters-linux: largura da janela determina lateral; menu nunca cobre o centro. */
@media (min-width: 1000px) {
  .wcp-wrapper .wcp-menu { animation: none !important; left: auto; right: 0; top: 60px; bottom: 100px; transform: none; width: min(32%, 420px); height: auto; max-height: none; max-width: none; }
}
@media (max-width: 999px) {
  .wcp-wrapper .wcp-menu { top: 45%; left: 50%; transform: translate(-50%, -50%); width: min(88%, 540px); max-width: 88%; height: min(60cqh, 480px); }
}
@container (max-width: 650px) {
  .wcp-wrapper .wcp-time { order: -1; flex-basis: 100%; height: 20px; line-height: 20px; text-align: left; }
  .wcp-wrapper > .wcp-toolbar .wcp-progress-bar { order: -2; }
  .wcp-wrapper .wcp-menu { bottom: auto; height: min(58cqh, 420px); }
}

/* smarters-linux: sem o X de fechar o player (sai com Voltar no controle e Esc no teclado; app/js/player-remote.js). */
body.sl-player-open #closeModal, body.sl-player-open #HTML5Div .playerDiv > div:has(> #closeModal) { display: none !important; }
/* Controle remoto na barra e nos menus do player: o item marcado muda a COR do ícone (ciano claro, que se lê sobre o
   preto da barra), sem fundo, caixa nem moldura. Ícones de fonte levam color; os de imagem, um filtro ciano. */
.wcp-wrapper [data-pfocus] { background: none !important; outline: 0 !important; box-shadow: none !important; transform: none !important; }
.wcp-wrapper .wcp-toolbar [data-pfocus] { color: var(--sl-cyan-hi) !important; }
.wcp-wrapper .wcp-toolbar [data-pfocus] img, .wcp-wrapper .wcp-toolbar .wcp-button:hover img { opacity: 1; filter: brightness(0) saturate(100%) invert(78%) sepia(55%) saturate(1500%) hue-rotate(170deg) brightness(105%); }
.wcp-wrapper .wcp-menu [data-pfocus] { background: var(--sl-cyan) !important; color: #fff !important; }

/* Volume: o wcjs-player deslocava o controle 8 px para baixo (position: relative; top: 8px, pensado para a barra
   de 38 px dele); na barra flex do app o controle fica centrado na altura dos botões e a barrinha no meio dele. */
/* (responsive.css fixa top e height com !important por faixa de largura; aqui se vence com mais especificidade.) */
.wcp-wrapper .wcp-toolbar .wcp-vol-control { top: 0 !important; height: 44px !important; display: flex; align-items: center; }
.wcp-wrapper .wcp-toolbar .wcp-vol-bar { top: 0 !important; margin: 0 10px 0 2px; flex: 1 1 auto; width: auto !important; min-width: 0; display: flex; align-items: center; }
.wcp-wrapper .wcp-toolbar .wcp-vol-bar-full { float: none; flex: none; }
.wcp-wrapper .wcp-toolbar .wcp-vol-bar-pointer { float: none; flex: none; margin-top: 0; }

/* smarters-linux: o contêiner do player recebe .imageFocus e com ele uma borda de 6 px (destaque do foco), que
   desenhava uma linha branca no topo e na esquerda e empurrava o player 6 px para baixo e para a direita,
   cortando a barra de controles. No player não há destaque de foco no contêiner. */
body.sl-player-open .playerDiv, body.sl-player-open .playerDiv.imageFocus { border: 0 !important; outline: 0 !important; box-shadow: none !important; }

/* smarters-linux (Fire TV): com o player nativo o vídeo está atrás do WebView; os elementos acima dele ficam
   transparentes (android-src/native-player.js marca a cadeia do <video> com data-sl-clear). */
body.sl-native-on, body.sl-native-on [data-sl-clear], html:has(body.sl-native-on) { background: transparent !important; }
body.sl-native-on #player-wrapper video { background: transparent !important; }
/* Enquanto o vídeo nativo toca, esconde a lista ou a ficha que compartilha o contêiner com o player. */
body.sl-native-on.sl-player-open :is(#mainContent, #SingleMoviePage) > :not(#HTML5Div) { visibility: hidden !important; }

/* Sem o botão Voltar do canto no player: o fundo opaco o escondia, e com o vídeo nativo (fundo transparente) ele aparecia. */
body.sl-player-open #backArrow { display: none !important; }
