/* ===================== NEXUS PLAYTV • BETA BRIDGE CSS ===================== */
/* Integração da nova interface do designer com o player, anúncios e autenticação */

#loginGate.hidden,
#appShell.hidden,
#playerLayer.hidden {
  display: none !important;
}

/* Estrutura do AppShell com Ad-Rail lateral reservado */
#appShell {
  width: 100vw;
  height: 100vh;height: 100dvh;
  display: grid;
  grid-template-rows: 84px minmax(0, 1fr) 48px;
  grid-template-columns: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 0%, #20271b70, transparent 48%), #060809;
}

.shell-body {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

main#screen {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 16px 3% 20px 4%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Ad-Rail Lateral Oculto Temporariamente para Layout Full-Bleed Edge-to-Edge */
.ad-rail {
  display: none !important;
}

#btnMotionToggle, button[data-action="motion"] {
  display: none !important;
}

.ad-billboard-img-link {
  display: block;
  width: 100%;
  max-width: 165px;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.ad-billboard-img-link.visible {
  opacity: 1;
  pointer-events: auto;
}

.ad-billboard-img-link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ad-billboard-img-link:hover {
  transform: scale(1.03);
  border-color: rgba(183, 255, 60, 0.4);
}

@media (max-width: 950px) {
  .ad-rail {
    display: none !important;
  }
}

/* Header Action Buttons */
.btn-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd6cc;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(255, 82, 82, 0.15);
  border-color: #ff5252;
  color: #ff5252;
}

/* Camada Persistente do Player */
#playerLayer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #010302;
  display: flex;
  flex-direction: column;
}

.player-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Modo Zoom Fill (Ampliado para preencher sem barras pretas) */
.player-shell.zoom-fill video {
  object-fit: cover !important;
  transform: scale(1.08) !important;
}

/* Barra Inferior de Comandos do Player — DEGRADÊ PURO FUMÊ (Fade / Vignette).
   Zero vidro fosco / zero blur / zero linhas ou caixas duras:
   Fundo 100% transparente no topo descendo suavemente para preto fumê translúcido na base.
   Invisível por padrão, só aparece em movimento do mouse, toque ou controle. */
.player-shell .player-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 40;
  padding: 50px 32px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.12) 75%, transparent 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  /* Recolhida: abaixo da borda da tela. Sai descendo (movimento inverso da
     entrada), com aceleracao no fim. So transform/opacity: nao pesa na TV. */
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.55, 0, 0.8, 0.3), opacity 0.28s ease-in;
  will-change: transform, opacity;
}

.player-shell.active-controls .player-bottom {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* Entrada: sobe de baixo e desacelera suave ao chegar. */
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

.player-shell:not(.active-controls) {
  cursor: none;
}

.player-shell .player-bottom button {
  background: transparent !important;
  border: none !important;
  color: #abb5aa;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  transition: color 0.18s ease;
}

.player-shell .player-bottom button:hover,
.player-shell .player-bottom button:focus {
  color: #b7ff3c !important;
  outline: none !important;
}

.player-shell .player-bottom button[aria-pressed="true"] {
  color: #b7ff3c !important;
}

.player-spacer {
  flex: 1;
}

/* OSD Banner Estilo Sky / BTV — Transparência suave com degradê cinematográfico */
.sky-channel-osd {
  position: absolute;
  bottom: 84px;
  left: 24px;
  right: 24px;
  /* Item 1.34 (Daniel, 23/09: "pode, eu prefiro"): vidro FUMe sem desfoque,
     igual a barra do player. O blur(16px) redesfocava o video a cada quadro —
     o efeito que mais pesa em TV barata. A base ficou mais escura para
     compensar a falta do desfoque na leitura; borda verde virou neutra. */
  background: linear-gradient(90deg, rgba(14, 18, 16, 0.90) 0%, rgba(10, 14, 12, 0.76) 55%, rgba(8, 12, 10, 0.40) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  z-index: 35;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.sky-channel-osd.show {
  opacity: 1;
  transform: translateY(0);
}

.osd-num {
  font-family: Space, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  color: #b7ff3c;
  min-width: 55px;
  letter-spacing: -1px;
  line-height: 1;
}

.osd-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #181d1f;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.osd-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.osd-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.osd-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osd-res {
  font-size: 10px;
  font-weight: 800;
  background: rgba(183, 255, 60, 0.2);
  color: #b7ff3c;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(183, 255, 60, 0.35);
}

.osd-live-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ff5252;
  letter-spacing: 1px;
}

.osd-prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.osd-prog-title {
  font-size: 12px;
  color: #a8b0aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge de Patrocínio Transitório (Topo e Centro da Tela) */
.ad-corner-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  right: auto;
  width: auto;
  max-width: min(440px, 90vw);
  height: auto;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-150%);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.85));
}

.ad-corner-badge.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ad-corner-badge img {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Lower-Third Banner do Patrocinador Oficial (Base do Vídeo) - Sem efeito de vidro em volta */
.ad-lower-third {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  width: 95%;
  max-width: 1100px;
  max-height: 185px;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-lower-third.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ad-lt-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ad-lt-img-link {
  display: block;
  width: 100%;
}

.ad-lt-img-link img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.9));
}

.ad-lt-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
}

.ad-lt-close:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Toast de Zoom (estilo YouTube) */
.zoom-toast {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(11, 15, 13, 0.92);
  border: 1px solid rgba(183, 255, 60, 0.3);
  color: #b7ff3c;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 60;
  backdrop-filter: blur(8px);
}

.zoom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Overlay de Carregamento */
.player-shell .overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 5, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.player-shell .overlay.hidden,
.overlay.hidden,
#overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.player-shell .overlay .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(183, 255, 60, 0.2);
  border-top-color: #b7ff3c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-shell .overlay .big {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.player-shell .overlay p {
  font-size: 12px;
  color: #9aa599;
  margin: 0;
}

/* =====================================================================
   INTERFACE TV PREMIUM DE 3 COLUNAS — Categorias | Canais | EPG Detalhado
   Inspirada em BTV 13 / RedPlay TV Box e Claro Box Mosaico.
   Paleta oficial Nexus: preto profundo #0b0e0f/#131718, verde #b7ff3c
   com glow rgba(183,255,60,0.2). PROIBIDO ciano. PROIBIDO caixa opaca
   (branca/preta) atrás de logomarcas — logos ficam sempre transparentes,
   direto sobre o fundo escuro; sem imagem usa monograma vetorial autoral.
   ===================================================================== */

.tv3-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  border-radius: 15px;
  overflow: hidden;
  background: #0b0e0f;
  display: flex;
  flex-direction: column;
}

.tv3-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  transform: scale(1.02);
}

.tv3-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 14, 15, 0.82) 0%, rgba(11, 14, 15, 0.65) 30%, rgba(11, 14, 15, 0.85) 100%),
    radial-gradient(ellipse at 20% 0%, rgba(183, 255, 60, 0.08), transparent 55%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv3-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 20px 24px 12px;
}

.tv3-head h1 {
  font: 500 clamp(22px, 2.4vw, 32px)/1 Display, Space, sans-serif;
  margin: 6px 0 0;
  color: #e5ede4;
}

.tv3-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 218px 400px minmax(0, 1fr);
  gap: 0;
}

.tv3-col {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Coluna 1 — Categorias */
.tv3-col-cats {
  padding: 6px 12px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 14, 15, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv3-cat-btn {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: #8f9a90;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.tv3-cat-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e5ede4;
}

.tv3-cat-btn.active {
  background: rgba(183, 255, 60, 0.12);
  border-color: rgba(183, 255, 60, 0.45);
  color: #b7ff3c;
  box-shadow: 0 0 24px rgba(183, 255, 60, 0.12);
}

/* Coluna 2 — Canais com logos oficiais (sem caixa opaca) */
.tv3-col-channels {
  padding: 14px 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(19, 23, 24, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv3-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  flex-shrink: 0;
}

.tv3-search input {
  flex: 1;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #131718;
  color: #e5ede4;
  padding: 9px 13px;
  font-size: 12.5px;
}

.tv3-search input:focus {
  border-color: rgba(183, 255, 60, 0.55);
  outline: none;
}

.tv3-search > span {
  flex-shrink: 0;
  font-size: 10.5px;
  color: #8f9a90;
  white-space: nowrap;
}

.tv3-chan-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Folga interna para o anel de foco nunca ser cortado nas laterais/topo/base */
  padding: 6px 8px 10px;
  scroll-padding: 8px;
}

.tv3-chan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  min-height: 56px;
  /* O anel de foco é desenhado por box-shadow inset: nunca é recortado pelo scroll */
  outline: none !important;
  scroll-margin: 8px;
  position: relative;
}

/* Foco/Hover do canal — anel sólido e completo (cantos preservados no Tizen/webOS) */
.tv3-chan-row:hover,
.tv3-chan-row.focused,
.tv3-chan-row.dpad-focused {
  background: rgba(183, 255, 60, 0.10);
  border-color: rgba(183, 255, 60, 0.45);
  box-shadow: inset 0 0 0 1px rgba(183, 255, 60, 0.85), 0 0 0 1px rgba(183, 255, 60, 0.25);
}

/* Alvo de seleção por controle remoto (D-Pad): prioridade visual máxima */
.tv3-chan-row.dpad-focused {
  background: rgba(183, 255, 60, 0.16);
  box-shadow: inset 0 0 0 2px #b7ff3c, 0 8px 26px rgba(183, 255, 60, 0.18);
}

.tv3-chan-row.playing {
  background: rgba(183, 255, 60, 0.16);
  border-color: #b7ff3c;
}

.tv3-chan-num {
  font: 700 12.5px/1 Space, sans-serif;
  color: #8f9a90;
  min-width: 30px;
  flex-shrink: 0;
}

/* Logo sempre transparente sobre o fundo escuro — nunca uma placa opaca */
.tv3-chan-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

/* Fallback vetorial autoral (monograma), usado quando não há logo ou a
   imagem falha — nunca emoji, nunca caixa branca/preta enorme */
.tv3-chan-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(183, 255, 60, 0.16), rgba(30, 38, 33, 0.6));
  border: 1px solid rgba(183, 255, 60, 0.28);
  color: #b7ff3c;
  font: 700 13px/1 Space, sans-serif;
}

.tv3-chan-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv3-chan-star {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tv3-chan-star:hover {
  color: #b7ff3c;
  transform: scale(1.2);
}

.tv3-chan-star.fav-active {
  color: #b7ff3c;
  text-shadow: 0 0 10px rgba(183, 255, 60, 0.65);
}

.tv3-chan-meta strong {
  font-size: 13px;
  color: #e5ede4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv3-chan-meta > span {
  font-size: 10.5px;
  color: #8f9a90;
}

.tv3-live-dot {
  font-size: 10px;
  color: #b7ff3c;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(183, 255, 60, 0.6);
}

.tv3-paging {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
}

.tv3-paging button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
}

.tv3-paging span {
  font-size: 11px;
  color: #8f9a90;
  font-family: Space, sans-serif; font-variant-numeric: tabular-nums;
}

/* Coluna 3 — EPG Detalhado */
.tv3-col-epg {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(11, 14, 15, 0.35), rgba(11, 14, 15, 0.85));
}

.tv3-epg-empty {
  color: #8f9a90;
  font-size: 13px;
  padding-top: 30px;
  text-align: center;
}

.tv3-epg-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tv3-epg-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}

.tv3-epg-mono {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(183, 255, 60, 0.18), rgba(30, 38, 33, 0.65));
  border: 1px solid rgba(183, 255, 60, 0.3);
  color: #b7ff3c;
  font: 700 20px/1 Space, sans-serif;
}

.tv3-epg-live {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff5252;
  margin-bottom: 4px;
}

.tv3-epg-head h2 {
  font: 700 19px/1.2 Space, sans-serif;
  color: #fff;
  margin: 0;
}

.tv3-epg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
  color: #8f9a90;
  font-size: 12.5px;
}

.tv3-epg-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(183, 255, 60, 0.2);
  border-top-color: #b7ff3c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tv3-epg-now {
  background: rgba(20, 26, 22, 0.7);
  border: 1px solid rgba(183, 255, 60, 0.3);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.tv3-epg-time {
  font-family: Space, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: #b7ff3c;
  font-weight: 700;
  margin-bottom: 6px;
}

.tv3-epg-now h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
}

.tv3-epg-now p {
  font-size: 12.5px;
  color: #a2aca0;
  line-height: 1.55;
  margin: 0 0 14px;
}

.tv3-epg-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.tv3-epg-bar span {
  display: block;
  height: 100%;
  background: #b7ff3c;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(183, 255, 60, 0.5);
}

.tv3-epg-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #8f9a90;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.tv3-epg-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv3-epg-item:last-child {
  border-bottom: 0;
}

.tv3-epg-item-time {
  flex-shrink: 0;
  font-family: Space, sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: #b7ff3c;
  min-width: 40px;
}

.tv3-epg-item strong {
  font-size: 12.5px;
  color: #e5ede4;
  font-weight: 600;
}

.tv3-epg-none {
  font-size: 12px;
  color: #6f7a70;
}

@media (max-width: 1180px) {
  .tv3-body {
    grid-template-columns: 180px 340px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .tv3-body {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .tv3-col-epg {
    display: none;
  }
}

@media (max-width: 640px) {
  .tv3-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .tv3-col-cats {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    gap: 8px;
    padding: 10px 12px;
  }
  .tv3-cat-btn {
    width: auto;
    white-space: nowrap;
  }
  .tv3-col-channels {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv3-bg {
    filter: none;
  }
}

/* =====================================================================
   STREAMING VOD & SÉRIES — PADRÃO REDPLAY / NETFLIX PREMIUM
   ===================================================================== */

.tv-vod-shell {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.tv-vod-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.brand-hub-section {
  margin-bottom: 24px;
}

.brand-hub-title {
  font: 700 13px/1 Space, sans-serif;
  color: #8f9a90;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.brand-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.brand-hub-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
}

.brand-hub-card:hover, .brand-hub-card:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #b7ff3c;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(183, 255, 60, 0.2);
}

.genre-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.genre-card {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #131718;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.genre-card:hover, .genre-card:focus {
  border-color: #b7ff3c;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(183, 255, 60, 0.25);
}

.genre-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.genre-card:hover .genre-card-bg {
  transform: scale(1.08);
}

.genre-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 15, 0.4) 0%, rgba(11, 14, 15, 0.92) 100%);
}

.genre-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}

.genre-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================================
   NEXUS MASTER BRAND TYPOGRAPHY — BARLOW CONDENSED & SPACE GROTESK
   ===================================================================== */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/BarlowCondensed-Bold.woff2') format('woff2'), url('./fonts/BarlowCondensed-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'), url('./fonts/BarlowCondensed-ExtraBold.ttf') format('truetype');
}

:root {
  --font-display: 'Barlow Condensed', -apple-system, sans-serif;
  --font-ui: Space, -apple-system, sans-serif;
}

/* Títulos de Seção & Cabeçalhos Principais — Padrão Netflix / Apple TV+ */
.tv-title h1 {
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: #edf2ed !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6) !important;
  margin: 4px 0 0 !important;
}

.tv-title .eyebrow {
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  color: #b7ff3c !important;
}

.brand-hub-title {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  color: #9ba59b !important;
  margin-bottom: 12px !important;
}

/* =====================================================================
   CARDS DE GÊNEROS — VIDRO TRANSLÚCIDO (GLASS) PADRÃO NEXUS
   Mesmo idioma visual dos painéis TV3/EPG do app: vidro fosco que deixa
   o fundo da página transparecer de forma discreta.
   ===================================================================== */
.genre-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 4px 0 32px;
}

.genre-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(19, 23, 24, 0.42);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.genre-card:hover,
.genre-card:focus {
  transform: scale(1.03) translateY(-2px);
  background: rgba(24, 30, 30, 0.55);
  border-color: rgba(183, 255, 60, 0.65) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(183, 255, 60, 0.18) !important;
  z-index: 10;
}

/* Imagem do gênero entra discreta, misturada ao vidro (não é o fundo opaco do card) */
.genre-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.genre-card:hover .genre-card-bg,
.genre-card:focus .genre-card-bg {
  transform: scale(1.06);
  opacity: 0.6;
}

/* Camada de vidro sobre a imagem: garante leitura do título sem matar o fundo */
.genre-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 14, 15, 0.72) 0%,
    rgba(11, 14, 15, 0.38) 40%,
    rgba(11, 14, 15, 0.06) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.genre-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  box-sizing: border-box;
}

.genre-card-title {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: #edf2ed !important;
  margin: 0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
  display: block;
}

.genre-card-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.genre-card-badge {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #b7ff3c;
  background: rgba(11, 14, 15, 0.55);
  border: 1px solid rgba(183, 255, 60, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.genre-card.is-adult-locked {
  border-color: rgba(255, 85, 85, 0.3) !important;
}

.genre-card.is-adult-locked:hover,
.genre-card.is-adult-locked:focus {
  border-color: #ff5555 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 85, 85, 0.35) !important;
}

.genre-card-num,
.genre-card-cta {
  display: none !important;
}

.rail-wrapper {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

.rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 4px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 14, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.rail-nav-btn:hover {
  background: #b7ff3c;
  color: #0b0e0f;
  border-color: #b7ff3c;
  transform: translateY(-50%) scale(1.1);
}

.rail-nav-btn.rail-prev {
  left: -8px;
}

.rail-nav-btn.rail-next {
  right: -8px;
}

.rail-item {
  flex: 0 0 185px;
  min-width: 185px;
  border-radius: 12px;
  overflow: hidden;
  background: #131718;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.rail-item:hover, .rail-item:focus {
  border-color: #b7ff3c;
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 28px rgba(183, 255, 60, 0.25);
}

.rail-item-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #0b0e0f;
}

.rail-item-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #131718;
}

.rail-item-title {
  font: 700 13px/1.2 Space, sans-serif;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-item-meta {
  font-size: 11px;
  color: #8f9a90;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Painel OSD de Detalhes Inferior (Padrão RedPlay / Claro tv+) */
.vod-detail-bar {
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(19, 23, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.vod-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vod-detail-badge {
  align-self: flex-start;
  font: 700 10px/1 Space, sans-serif;
  letter-spacing: 0.8px;
  color: #b7ff3c;
  background: rgba(183, 255, 60, 0.12);
  border: 1px solid rgba(183, 255, 60, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.vod-detail-title {
  font: 700 22px/1.2 Space, sans-serif;
  color: #fff;
  margin: 2px 0 0;
}

.vod-detail-meta {
  font-size: 13px;
  color: #8f9a90;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vod-detail-plot {
  font-size: 13px;
  color: #c4cdc3;
  line-height: 1.5;
  margin: 4px 0 0;
  max-width: 800px;
}

.vod-detail-actions {
  flex-shrink: 0;
}

.vod-detail-play {
  padding: 12px 28px;
  border-radius: 12px;
  background: #b7ff3c;
  color: #0b0e0f;
  font: 700 15px/1 Space, sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(183, 255, 60, 0.3);
}

.vod-detail-play:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(183, 255, 60, 0.5);
}

/* =====================================================================
   PERFIL NEXUS STICK / TV BOX (10-FOOT UI - ULTRA PERFORMANCE)
   ===================================================================== */
body.device-stick {
  cursor: none;
  user-select: none;
}

body.device-stick * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.device-stick .tv3-scrim {
  background: rgba(11, 14, 15, 0.94) !important;
}

/* Anel de foco do controle remoto — desenhado com box-shadow interno.
   Motivo: outline+offset é recortado pelo container de rolagem (cantos do seletor
   desapareciam) e ':focus-visible' não existe no Chromium 76 do Tizen. */
body.device-stick .rail-item:focus,
body.device-stick .tv3-chan-row.focused,
body.device-stick .brand-hub-card:focus,
body.device-stick .genre-card:focus {
  outline: none !important;
  outline-offset: 0 !important;
  transform: translateZ(0) !important;
  z-index: 100;
}

body.device-stick .tv3-chan-row.focused,
body.device-stick .tv3-chan-row:focus,
body.device-stick .tv3-chan-row.dpad-focused {
  box-shadow: inset 0 0 0 2px #b7ff3c !important;
  border-color: rgba(183, 255, 60, 0.5) !important;
  background: rgba(183, 255, 60, 0.16) !important;
}

body.device-stick .rail-item:focus,
body.device-stick .brand-hub-card:focus,
body.device-stick .genre-card:focus {
  box-shadow: inset 0 0 0 3px #b7ff3c, 0 0 24px rgba(183, 255, 60, 0.45) !important;
}

/* Seleção universal por D-Pad: qualquer alvo focado recebe anel nítido e completo */
body.device-stick .dpad-focused {
  box-shadow: inset 0 0 0 2px #b7ff3c, 0 0 22px rgba(183, 255, 60, 0.35) !important;
  border-color: rgba(183, 255, 60, 0.6) !important;
  z-index: 90;
}

body.device-stick .dpad-focused:focus {
  outline: none !important;
}

/* Modal de PIN Parental (+18) */
.pin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pin-modal-card {
  width: 100%;
  max-width: 380px;
  background: #111416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(183, 255, 60, 0.15);
}

.genre-card.is-adult-locked {
  border-color: rgba(255, 77, 77, 0.3) !important;
}

.genre-card.is-adult-locked:hover {
  border-color: #ff5555 !important;
  box-shadow: 0 12px 30px rgba(255, 85, 85, 0.25) !important;
}

/* =====================================================================
   HOME CINEMATOGRÁFICA — DEGRADÊ / PEDESTAL DE PROTEÇÃO DOS CARDS
   ===================================================================== */
.home-view .tv-home::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(to top, #0b0e0f 0%, #0b0e0f 18%, rgba(11, 14, 15, 0.94) 36%, rgba(11, 14, 15, 0.6) 55%, transparent 75%),
    linear-gradient(to right, rgba(11, 14, 15, 0.88) 0%, rgba(11, 14, 15, 0.5) 45%, transparent 80%) !important;
}

/* Enquadramento da scenery no hero da home:
   Posiciona o banner ligeiramente mais para cima (65% 25%) para garantir
   que tanto o topo da cabeça quanto a camisa com a marca fiquem perfeitamente visíveis */
.home-view .tv-home .scenery,
.home-view .tv-home .ambient-video {
  object-position: 65% 25% !important;
}

.home-view .home-copy {
  z-index: 2 !important;
}

/* Faixa de diferenciais tecnológicos — ancorada ao carrossel por variáveis compartilhadas.
   O selo e os cards leem a MESMA origem (base e altura), então o alinhamento
   permanece correto em qualquer resolução, sem depender de pixels fixos. */
.home-view {
  --dest-bottom: 5%;
  --dest-height: 24%;
  --tech-gap: 14px;
}

.home-view .destinations {
  bottom: var(--dest-bottom) !important;
  height: var(--dest-height) !important;
}

.home-view .destinations-header {
  position: absolute !important;
  left: 7% !important;
  right: 7% !important;
  bottom: calc(var(--dest-bottom) + var(--dest-height) + var(--tech-gap)) !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  z-index: 2 !important;
  pointer-events: none !important;
  padding: 0 !important;
}

.home-view .tech-bar-line {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  flex-wrap: nowrap !important;
}

.home-view .tech-badge {
  font-family: Space, sans-serif !important; font-variant-numeric: tabular-nums;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #b7ff3c !important;
  white-space: nowrap !important;
  text-shadow: 0 0 10px rgba(183, 255, 60, 0.25) !important;
}

.home-view .tech-dot {
  color: rgba(183, 255, 60, 0.4) !important;
  font-size: 10px !important;
}

@media (max-width: 900px) {
  .home-view {
    --tech-gap: 10px;
  }
  .home-view .tech-badge {
    font-size: 9px !important;
    letter-spacing: 1.1px !important;
  }
}

@media (max-width: 599px) {
  .home-view {
    --dest-bottom: 4%;
    --dest-height: 31%;
    --tech-gap: 8px;
  }
  .home-view .destinations-header {
    left: 6% !important;
    right: 6% !important;
  }
  .home-view .tech-badge:nth-child(n+6) {
    display: none !important;
  }
}

@media (max-height: 649px) and (min-width: 600px) {
  .home-view {
    --dest-bottom: 5%;
    --dest-height: 27%;
    --tech-gap: 10px;
  }
}

.home-view .destinations {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  z-index: 2 !important;
}

@media (max-width: 900px) {
  .home-view .destinations {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

.home-view .destination {
  background: rgba(19, 23, 24, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

.home-view .destination:hover,
.home-view .destination:focus {
  border-color: #b7ff3c !important;
  box-shadow: 0 12px 35px rgba(183, 255, 60, 0.35) !important;
  transform: translateY(-4px) !important;
}

/* =====================================================================
   DETALHE DO FILME/SÉRIE — ficha técnica real (elenco, direção, trailer)
   ===================================================================== */
.tv-detail .detail-cast {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.7;
  color: #9ba59b;
  margin: 10px 0 0;
  max-width: 62ch;
}

.tv-detail .detail-cast b {
  color: #cfd8ce;
  font-weight: 600;
}

.tv-detail .detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tv-detail .detail-actions .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #edf2ed;
  background: rgba(19, 23, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 18px;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tv-detail .detail-actions .ghost:hover,
.tv-detail .detail-actions .ghost:focus {
  border-color: rgba(183, 255, 60, 0.55);
  background: rgba(24, 30, 30, 0.7);
}

/* ==========================================================================
   NAVEGAÇÃO POR D-PAD (CONTROLE REMOTO) — SMART TV TIZEN / webOS / TV BOX
   O foco é a fonte única de seleção: anel interno (imune a recorte de scroll)
   e nenhuma dependência de :focus-visible (inexistente no Chromium 76 do Tizen).
   ========================================================================== */

/* Em modo TV o ponteiro do mouse/controle-ponteiro não deve conduzir a experiência */
body.device-stick,
body.device-stick a,
body.device-stick button,
body.device-stick input,
body.device-stick select,
body.device-stick [role="button"] {
  cursor: none !important;
}

body.device-stick .dpad-focused,
body.device-stick button:focus,
body.device-stick a:focus,
body.device-stick input:focus,
body.device-stick select:focus,
body.device-stick [role="button"]:focus {
  outline: none !important;
  box-shadow: inset 0 0 0 2px #b7ff3c, 0 0 20px rgba(183, 255, 60, 0.30) !important;
  border-color: rgba(183, 255, 60, 0.65) !important;
}

/* Cards e blocos grandes: anel externo curto, sem sair do container */
body.device-stick .tile:focus,
body.device-stick .poster:focus,
body.device-stick .channel-card:focus,
body.device-stick .brand-hub-card:focus,
body.device-stick .genre-card:focus {
  box-shadow: inset 0 0 0 3px #b7ff3c, 0 0 30px rgba(183, 255, 60, 0.40) !important;
}

/* Tira de navegação superior e ações: destaque sólido */
body.device-stick nav a:focus,
body.device-stick .tv3-cat-btn:focus,
body.device-stick .tv3-pager button:focus {
  background: #b7ff3c !important;
  color: #0b0e0f !important;
  box-shadow: inset 0 0 0 2px #b7ff3c, 0 0 22px rgba(183, 255, 60, 0.45) !important;
}

/* Rolagem suave ao trocar de alvo com o controle */
body.device-stick .tv3-chan-list,
body.device-stick .rail-scroll,
body.device-stick .tv3-col-cats {
  scroll-behavior: smooth;
}

/* =========================================================================
   BARRA DO PLAYER EM CAPSULA — aplicada em 23/09 a partir da previa aprovada.
   Daniel: "gostei dos elementos, textos, pilula no HD/FHD... em duvida da
   pilula abrangendo todos os elementos. Podemos aplicar; se eu nao gostar na
   pratica, mantemos os elementos e tiramos a pilula gigante, deixando so o
   degrade translucido."
   REVERSAO DA PILULA GIGANTE: apagar so o primeiro bloco (.player-bottom).
   Vidro FUMe (base escura translucida): legivel sobre video claro. Sem
   backdrop-filter — desfoque sobre video pesa em TV barata.
   ========================================================================= */

/* --neon nunca foi definido no /beta (medido 23/09): todo var(--neon) caia em
   "sem cor" — o foco verde do controle, o pontinho do seletor e o "Dividir"
   ligado do Collab. Verde-limao oficial da marca (brief visual: #B7FF3C). */
:root {
  --neon: #b7ff3c;
}

.player-shell .player-bottom {
  left: 24px;
  right: 24px;
  bottom: 18px;
  padding: 6px;
  gap: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.78) 0%, rgba(8, 10, 9, 0.86) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(calc(100% + 28px));
}
.player-shell.active-controls .player-bottom {
  transform: translateY(0);
}

.player-shell .player-bottom button {
  padding: 9px 14px;
  border-radius: 999px !important;
  text-shadow: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.player-shell .player-bottom button:hover,
.player-shell .player-bottom button:focus {
  color: #f4f6f1 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
/* Foco do controle remoto: pilula clara + texto verde (o unico verde da barra). */
.player-shell .player-bottom button:focus-visible {
  color: var(--neon) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Voltar em circulo, como o "Home" da inspiracao. O texto fica so para leitor
   de tela (aria-label no botao). */
.player-shell .player-bottom #btnPlayerBack {
  /* 44px: a altura minima de toque ja vale para os botoes; circulo precisa de
     largura igual, senao vira oval (medido 40x44). */
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  color: #f4f6f1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  flex-shrink: 0;
}
.player-shell .player-bottom #btnPlayerBack span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Seletor FHD | HD | SD em pilula: a opcao ativa vira um "botao de vidro"
   com um pontinho verde; as outras ficam discretas. */
.player-shell .player-bottom .seletor-qualidade {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.30);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
.player-shell .player-bottom .seletor-qualidade button {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.player-shell .player-bottom .seletor-qualidade button + button {
  border-left: 0;
}
.player-shell .player-bottom .seletor-qualidade button[aria-pressed="true"] {
  color: #f4f6f1 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
.player-shell .player-bottom .seletor-qualidade button[aria-pressed="true"]::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  margin-right: 6px;
  flex-shrink: 0;
}

/* Celular: a capsula quebra em duas linhas, entao vira retangulo arredondado. */
@media (max-width: 700px) {
  .player-shell .player-bottom {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 22px;
    flex-wrap: wrap;
  }
}

/* =========================================================================
   JANELA DO COLLAB no padrao da barra do player (Daniel, 23/09: "essa tela do
   collab deve ter o mesmo tratamento de design da barra... manter o padrao").
   Mesma linguagem: vidro fume sem desfoque, filete de luz, fechar redondo,
   verde so no foco do controle remoto. Reversao: apagar este bloco.
   ========================================================================= */
.yt-modal-overlay {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.yt-modal-overlay .yt-modal-card {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.94) 0%, rgba(8, 10, 9, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 26px 26px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.75);
}
.yt-modal-overlay .yt-modal-header {
  margin-bottom: 10px;
  gap: 16px;
}
.yt-modal-overlay .yt-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #f4f6f1;
  margin: 0;
}
/* Fechar redondo, como o Voltar da barra. */
.yt-modal-overlay .yt-modal-close {
  width: 40px;
  height: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  color: #f4f6f1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.yt-modal-overlay .yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.yt-modal-overlay .yt-modal-close:focus-visible {
  outline: none;
  color: var(--neon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 2px rgba(183, 255, 60, 0.55);
}
.yt-modal-overlay .yt-modal-desc {
  color: #abb5aa;
  margin-bottom: 20px;
}
/* Cards dos parceiros: vidro discreto; verde so no foco do controle. */
.yt-modal-overlay .yt-preset-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.yt-modal-overlay .yt-preset-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.yt-modal-overlay .yt-preset-card:focus {
  outline: none;
}
.yt-modal-overlay .yt-preset-card:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(183, 255, 60, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(183, 255, 60, 0.35);
}
.yt-modal-overlay .yt-preset-card:focus-visible strong {
  color: var(--neon);
}
/* Logo do parceiro (enviada no Ops, versao leve de 96 px) no canto do card. */
.yt-modal-overlay .yt-preset-card { position: relative; }
.yt-modal-overlay .yt-preset-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
/* Time do parceiro: chip neutro (antes cada card tinha um verde proprio). */
.yt-modal-overlay .yt-preset-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #cfd8ce;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.yt-modal-overlay .yt-preset-card strong {
  font-size: 15px;
  font-weight: 600;
  color: #f4f6f1;
}
.yt-modal-overlay .yt-preset-card small {
  font-size: 12px;
  color: #8f9a90;
}
@media (max-width: 600px) {
  .yt-modal-overlay .yt-presets-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   GRADE DE CANAIS no padrao da barra do player (esteira 1.41, 23/09 — pauta
   aprovada pelo Daniel). Vidro fume e filete de luz; verde so no TEXTO do
   ativo, no anel fino do foco do controle e no filete do canal tocando.
   Sem brilho (glow) e sem fundo verde cheio. Reversao: apagar este bloco.
   ========================================================================= */
.tv3-cat-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--neon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tv3-chan-row:hover,
.tv3-chan-row.focused {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* Foco do controle remoto: anel verde fino, nitido na TV, sem brilho. */
.tv3-chan-row.dpad-focused {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Canal tocando: filete verde a esquerda. */
.tv3-chan-row.playing {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--neon);
}
.tv3-chan-row.playing.dpad-focused {
  box-shadow: inset 3px 0 0 var(--neon), inset 0 0 0 1.5px var(--neon);
}
/* Painel do programa: vidro fume, borda neutra. */
.tv3-epg-now {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.78), rgba(10, 13, 12, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* Stick (Tizen/webOS): mesmo padrao; as regras antigas usavam !important. */
body.device-stick .tv3-chan-row.focused,
body.device-stick .tv3-chan-row:focus,
body.device-stick .tv3-chan-row.dpad-focused {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 2px var(--neon) !important;
}

/* =========================================================================
   DETALHE DE FILME/SERIE no padrao da barra do player (1.41, tela 2 de 9).
   Painel e botoes sem desfoque real; "Assistir Agora" vira pilula de vidro
   com texto verde (a acao principal e o unico destaque verde da tela).
   Reversao: apagar este bloco.
   ========================================================================= */
.vod-detail-bar {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.88), rgba(10, 13, 12, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 12px 36px rgba(0, 0, 0, 0.5);
}
.vod-detail-badge {
  color: #cfd8ce;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 4px 10px;
}
.vod-detail-play {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--neon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.vod-detail-play:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.vod-detail-play:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.tv-detail .detail-actions .ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tv-detail .detail-actions .ghost:hover,
.tv-detail .detail-actions .ghost:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}
.tv-detail .detail-actions .ghost:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--neon);
}

/* =========================================================================
   TELA INICIAL — cards de destino no padrao da barra (1.41, tela 3 de 9).
   Sem desfoque real (a imagem cobre o card inteiro; o blur so custava GPU).
   Mouse: borda clara neutra. Controle/teclado: anel fino verde, sem brilho.
   Reversao: apagar este bloco.
   ========================================================================= */
.home-view .destination {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}
.home-view .destination:hover,
.home-view .destination:focus {
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 32px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(-3px) !important;
}
.home-view .destination:focus-visible,
body.device-stick .home-view .destination:focus,
body.device-stick.home-view .destination:focus {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 2px var(--neon), 0 12px 32px rgba(0, 0, 0, 0.55) !important;
}

/* =========================================================================
   CARDS DE GENERO no padrao da barra (1.41, tela 4 de 9).
   Sem desfoque real (16px sobre a pagina e 10px no selo), fundo fume solido
   para a imagem translucida nao depender do blur. Selo vira chip neutro.
   Adulto bloqueado sem vermelho (Daniel 23/09: sem botoes vermelhos).
   Mouse: borda clara neutra. Controle/teclado: anel fino verde, sem brilho.
   Reversao: apagar este bloco (e o badgeStyle/emoji em app.js).
   ========================================================================= */
.genre-card {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.92), rgba(10, 13, 12, 0.96));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 28px rgba(0, 0, 0, 0.5);
}
.genre-card:hover,
.genre-card:focus,
.genre-card.is-adult-locked:hover,
.genre-card.is-adult-locked:focus {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(34, 40, 36, 0.92), rgba(12, 15, 14, 0.96));
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 32px rgba(0, 0, 0, 0.55) !important;
}
.genre-card:focus-visible,
body.device-stick .genre-card:focus,
body.device-stick .genre-card.is-adult-locked:focus {
  border-color: transparent !important;
  box-shadow: inset 0 0 0 2px var(--neon), 0 12px 32px rgba(0, 0, 0, 0.55) !important;
}
.genre-card.is-adult-locked {
  border-color: rgba(255, 255, 255, 0.10) !important;
}
.genre-card-badge {
  color: #cfd8ce;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 999px;
  padding: 3px 9px;
}

/* =========================================================================
   PROGRAMACAO (3a coluna da grade) e VOLTAR do topo no padrao da barra
   (1.41, complemento da tela 1 — Daniel 23/09: "todos elementos devem
   manter o modelo que fizemos na barra do player").
   Sem vermelho; verde so no ponto do "ao vivo" e na barra de progresso
   (sem brilho). Horarios em cinza claro. Voltar vira pilula de vidro.
   Reversao: apagar este bloco (e o <i> do AO VIVO em app.js).
   ========================================================================= */
.tv3-epg-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfd8ce;
  font-weight: 700;
}
.tv3-epg-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
}
.tv3-epg-time { color: #cfd8ce; }
.tv3-epg-item-time { color: #8f9a90; }
.tv3-epg-bar { height: 4px; background: rgba(255, 255, 255, 0.10); }
.tv3-epg-bar span { background: var(--neon); box-shadow: none; }
.tv3-epg-loading .spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.7);
}
.tv3-head > button[data-act="back"],
.tv-title > button[data-act="back"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5ede4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tv3-head > button[data-act="back"]:hover,
.tv-title > button[data-act="back"]:hover,
.tv3-head > button[data-act="back"]:focus,
.tv-title > button[data-act="back"]:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tv3-head > button[data-act="back"]:focus-visible,
.tv-title > button[data-act="back"]:focus-visible,
body.device-stick .tv3-head > button[data-act="back"]:focus,
body.device-stick .tv-title > button[data-act="back"]:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* =========================================================================
   SAIR e ABRIR TV AO VIVO no padrao da barra (1.37, Daniel 23/09:
   "botao sair com icone, abrir tv ao vivo com botao padronizado mais icone").
   Sair: pilula de vidro com icone, sem vermelho no hover.
   Abrir TV ao vivo: mesma pilula do "Assistir Agora" (texto verde).
   Reversao: apagar este bloco (e o svg do Sair em index.html).
   ========================================================================= */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5ede4;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-logout svg.icon { flex-shrink: 0; }
.btn-logout:hover,
.btn-logout:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn-logout:focus-visible,
body.device-stick .btn-logout:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
.home-copy .primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--neon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.home-copy .primary:hover,
.home-copy .primary:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.home-copy .primary:focus-visible,
body.device-stick .home-copy .primary:focus {
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}


/* =========================================================================
   FILMES/SERIES: fundo de navegacao visivel (1.49, Daniel 23/09: "aparece de
   relance a tela inicial e depois fica preta").
   Causa: a moldura nao era contexto de empilhamento — a imagem (z-index -3)
   caia atras do fundo escuro do #appShell e so aparecia durante a animacao de
   entrada. Mesmo tratamento da moldura da grade (.tv3-shell).
   ========================================================================= */
.tv-vod-shell { isolation: isolate; }

/* =========================================================================
   FAIXA DO CANAL na base da tela, mais larga e espessa (1.50, Daniel 23/09:
   "poderia ser mais para baixo, junto a base da tela, e um pouco mais
   larga/espessa... Ao vivo poderia ser verde"). Faixa e barra de controles
   nunca aparecem juntas (1.33), entao a faixa pode ocupar a base.
   Tamanhos crescem com a largura da tela (clamp), com teto — base do 1.26.
   Reversao: apagar este bloco.
   ========================================================================= */
.sky-channel-osd {
  bottom: 20px;
  left: 16px;
  right: 16px;
  padding: clamp(16px, 1.2vw, 26px) clamp(20px, 1.6vw, 32px);
  gap: clamp(16px, 1.3vw, 26px);
  border-radius: 16px;
}
.sky-channel-osd .osd-num { font-size: clamp(32px, 2.3vw, 46px); min-width: clamp(55px, 4vw, 84px); }
.sky-channel-osd .osd-logo { width: clamp(50px, 3.4vw, 72px); height: clamp(50px, 3.4vw, 72px); }
.sky-channel-osd .osd-name { font-size: clamp(19px, 1.4vw, 28px); }
.sky-channel-osd .osd-res { font-size: clamp(10px, 0.7vw, 14px); }
.sky-channel-osd .osd-live-badge { font-size: clamp(10px, 0.7vw, 14px); color: var(--neon); }
.sky-channel-osd .osd-prog-title { font-size: clamp(13px, 0.9vw, 18px); }

/* =========================================================================
   COLLAB — cabecalho retratil do PiP no padrao da barra do player (1.51,
   Daniel 23/09). Fume sem desfoque, pilulas de vidro, icones SVG, sem
   vermelho (ponto "ao vivo" verde), verde so no ponto e no foco do controle.
   Reversao: apagar este bloco (e os svg do PiP em index.html).
   ========================================================================= */
.yt-pip-header {
  background: linear-gradient(180deg, rgba(14, 18, 16, 0.92) 0%, rgba(10, 14, 12, 0.70) 70%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 8px 10px 14px;
  gap: 8px;
}
.yt-pip-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: none;
}
.yt-pip-title { font-size: 12px; font-weight: 600; color: #e5ede4; }
.yt-pip-tools { gap: 4px; }
.yt-pip-container .yt-sync-btn,
.yt-pip-container .yt-pip-btn-audio,
.yt-pip-container .yt-pip-tool-btn,
.yt-pip-container .yt-pip-btn-close {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfd8ce;
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin: 0;
}
.yt-pip-container .yt-pip-btn-close { padding: 4px 6px; }
.yt-pip-container .yt-sync-btn:hover,
.yt-pip-container .yt-pip-btn-audio:hover,
.yt-pip-container .yt-pip-tool-btn:hover,
.yt-pip-container .yt-pip-btn-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}
.yt-pip-container button:focus-visible,
body.device-stick .yt-pip-container button:focus {
  outline: none;
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--neon) !important;
}
.yt-pip-container .yt-sync-val { color: #a8b0aa; font-size: 11px; min-width: 22px; text-align: center; }
.yt-pip-container svg.icon { flex-shrink: 0; }
/* Moldura do PiP: borda neutra, sem brilho verde (verde so no foco). */
.yt-pip-container {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* =========================================================================
   COLLAB — TELA DIVIDIDA (3.5, teste pedido pelo Daniel 23/09).
   Jogo 16:9 em 75% no canto superior esquerdo (so transform: o <video> nunca
   muda de tamanho — regra da TV Samsung). Coluna direita: streamer 25% x 50%
   (recorte centralizado via JS) e patrocinador 25% x 25%. Faixa inferior 25%:
   dados do jogo + publicidade. Espacamento de 8 px.
   Reversao: apagar este bloco (o modo antigo de 340 px volta).
   ========================================================================= */
.player-shell.split-active .player-video-frame { width: 100% !important; }
.player-shell.split-active video {
  transform: scale(0.75) !important;
  transform-origin: 0 0 !important;
}
.player-shell.split-active .yt-pip-container {
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  width: calc(25% - 16px) !important;
  height: calc(50% - 12px) !important;
}
.player-shell.split-active .yt-pip-body {
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}
/* Painel de patrocinador nao aparece na dividida (Daniel 23/09: "tire o nome
   patrocinador oficial. Ali vai ou qr code para nossa assinatura, ou o banner
   de odds em tempo real"). */
.player-shell.split-active .ad-squeeze-col { display: none !important; }
.pd-lateral { display: none; }
.player-shell.split-active .pd-lateral {
  position: absolute;
  top: calc(50% + 4px);
  right: 8px;
  width: calc(25% - 16px);
  height: calc(25% - 12px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 20px);
  padding: clamp(12px, 1vw, 20px);
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.92), rgba(10, 13, 12, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.pd-lateral #pdQr {
  height: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  image-rendering: pixelated;
}

.painel-dividido { display: none; }
.player-shell.split-active .painel-dividido {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: calc(25% - 12px);
  z-index: 30;
  display: flex;
  gap: 8px;
}
.painel-dividido > div {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.92), rgba(10, 13, 12, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: clamp(12px, 1.2vw, 24px) clamp(14px, 1.4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.painel-dividido .pd-jogo { flex: 1; }
.painel-dividido .pd-rotulo {
  font-size: clamp(10px, 0.7vw, 14px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8f9a90;
  font-weight: 600;
}
.painel-dividido strong { font-size: clamp(18px, 1.4vw, 28px); color: #fff; }
.painel-dividido .pd-programa { font-size: clamp(13px, 0.95vw, 19px); color: #cfd8ce; }
.painel-dividido small { font-size: clamp(11px, 0.75vw, 15px); color: #6f7a70; }

/* =========================================================================
   COLLAB — PiP em 3 tamanhos (1.52, para o Daniel ver na pratica).
   Pequeno = atual; Medio = 30% da largura; Tela inteira = streamer ocupa a
   tela e o jogo vira o quadrado (so transform no <video>).
   ========================================================================= */
.yt-pip-container.pip-medio { width: 30% !important; }
.yt-pip-container.pip-cheia {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.yt-pip-container.pip-cheia .yt-pip-body { height: 100%; aspect-ratio: auto; }
.player-shell.pip-cheia-ativa .player-video-frame {
  position: absolute;
  inset: 0;
  z-index: 66;
  pointer-events: none;
}
.player-shell.pip-cheia-ativa video {
  transform: scale(0.2) !important;
  transform-origin: calc(100% - 24px) calc(100% - 96px) !important;
  border-radius: 40px;
  /* Tela fora de 16:9: sem o fundo preto da sobra, o quadrado e so o jogo. */
  background: transparent !important;
}
/* Barra de controle acima do streamer em tela inteira (Daniel 25/09: sumia).
   O iframe nao recebe o mouse (o player do YouTube ja vem sem controles), assim
   o movimento chega a tela do player e a barra aparece como nos outros modos. */
.player-shell.pip-cheia-ativa .player-bottom { z-index: 70; }
.yt-pip-container.pip-cheia .yt-pip-body iframe { pointer-events: none; }

/* =========================================================================
   FAIXA DE DADOS DO JOGO ao vivo (3.6, teste). Barras neutras (Daniel 23/09:
   barras verde-limao "podem atrair atencao demais durante o jogo"): lider em
   branco, outro lado em cinza. Verde so no ponto "ao vivo".
   ========================================================================= */
.painel-dividido .pd-jogo.com-dados {
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
}
.pd-placar { flex: 0 0 34%; display: flex; flex-direction: column; gap: clamp(6px, 0.6vw, 12px); min-width: 0; }
.pd-times { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: clamp(8px, 0.8vw, 16px); }
.pd-time { display: flex; align-items: center; gap: clamp(6px, 0.6vw, 12px); justify-content: flex-end; min-width: 0; }
.pd-time.fora { justify-content: flex-start; }
.pd-time em { font-style: normal; font-size: clamp(13px, 1vw, 20px); color: #e5ede4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-time img { width: clamp(28px, 2.4vw, 48px); height: clamp(28px, 2.4vw, 48px); object-fit: contain; flex-shrink: 0; }
.pd-times strong { font-size: clamp(26px, 2.4vw, 48px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pd-times > i { font-style: normal; color: #6f7a70; }
.pd-meta { text-align: center; font-size: clamp(11px, 0.75vw, 15px); color: #8f9a90; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pd-vivo { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }
.pd-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(16px, 1.8vw, 36px);
  row-gap: clamp(8px, 0.9vw, 18px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  padding-left: clamp(16px, 2vw, 40px);
  min-width: 0;
}
.pd-st { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "rot rot rot" "c barra f"; align-items: center; column-gap: 8px; row-gap: 4px; }
.pd-st-rot { grid-area: rot; text-align: center; font-size: clamp(9px, 0.62vw, 13px); letter-spacing: 1px; text-transform: uppercase; color: #8f9a90; }
.pd-st b { font-size: clamp(12px, 0.9vw, 18px); color: #a8b0aa; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.pd-st b:first-of-type { grid-area: c; text-align: right; }
.pd-st b:last-of-type { grid-area: f; }
.pd-st b.lider { color: #fff; }
.pd-st-barra { grid-area: barra; display: flex; gap: 3px; height: 4px; }
.pd-st-barra i { display: block; height: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.pd-st-barra i.c { margin-left: auto; }
.pd-st-barra i.lider { background: rgba(255, 255, 255, 0.78); }
/* Odds ao vivo na celula lateral (3.6): substitui o QR enquanto houver odds. */
/* Banner da assinatura (Daniel 23/09: "banner discreto com nossa logo, Plano
   anual 30% off") alterna com as odds a cada 1 min (.mostra-odds). */
.pd-banner { display: flex; align-items: center; gap: clamp(10px, 1vw, 20px); width: 100%; height: 100%; min-width: 0; }
.pd-marca { width: clamp(28px, 2.2vw, 44px); height: auto; flex-shrink: 0; opacity: 0.9; }
.pd-oferta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-oferta span { font-size: clamp(11px, 0.8vw, 16px); color: #cfd8ce; }
.pd-oferta strong { font-size: clamp(20px, 1.6vw, 32px); line-height: 1.05; color: #fff; font-weight: 700; }
.pd-oferta small { font-size: clamp(9px, 0.6vw, 12px); color: #8f9a90; }
.pd-odds { display: none; }
.pd-lateral.mostra-odds .pd-banner { display: none; }
.pd-lateral.mostra-odds .pd-odds {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 0.45vw, 9px);
  width: 100%;
}
.pd-odds .pd-rotulo { font-size: clamp(9px, 0.62vw, 13px); letter-spacing: 1.5px; text-transform: uppercase; color: #8f9a90; font-weight: 600; }
.pd-odd { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: clamp(6px, 0.5vw, 10px); }
.pd-odd em { font-style: normal; font-size: clamp(10px, 0.72vw, 15px); color: #cfd8ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-odd span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
  padding: clamp(6px, 0.6vw, 12px) 6px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
}
.pd-odd small { font-size: clamp(9px, 0.62vw, 13px); color: #a8b0aa; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-odd b { font-size: clamp(16px, 1.3vw, 26px); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Mini painel do Collab na barra do player em pilula (Daniel 23/09). */
.player-shell .colab-bottom-bar {
  border-radius: 999px;
  padding: 3px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* Escudos nas odds de resultado (Daniel 23/09). */
.pd-odd span img { width: clamp(18px, 1.3vw, 26px); height: clamp(18px, 1.3vw, 26px); object-fit: contain; }

/* =========================================================================
   CONTROLE PARENTAL (PIN) no padrao da barra (1.41, tela 6 de 9).
   Sem desfoque no fundo, card fume, cadeado SVG (sem emoji), sem vermelho,
   campo com borda neutra e anel verde so no foco. Botoes em pilula de vidro.
   ========================================================================= */
.botao-vidro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5ede4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.botao-vidro.destaque { color: var(--neon); }
.botao-vidro:hover,
.botao-vidro:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.22);
}
.botao-vidro:focus-visible,
body.device-stick .botao-vidro:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
.pin-modal-overlay {
  background: rgba(6, 8, 9, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pin-modal-card {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.96), rgba(10, 13, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 20px 50px rgba(0, 0, 0, 0.7);
}
.pin-campo {
  width: 150px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 6px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}
.pin-campo:focus { border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--neon); }
.tv3-epg-head .tv3-epg-mono { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10); }
.pin-modal-card .pin-campo { display: block; width: 150px; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0 auto; }
.botao-vidro { white-space: nowrap; }

/* =========================================================================
   SUA CONTA no padrao da barra (1.41, tela 9 de 9). So o visual: textos
   mantidos (Qualidade/Dispositivos dependem do 1.44). Verde so no ponto ativo.
   ========================================================================= */
.conta-card {
  width: 100%;
  max-width: 640px;
  margin: 20px auto;
  padding: clamp(16px, 1.6vw, 28px) clamp(18px, 2vw, 32px);
  box-sizing: border-box;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.90), rgba(10, 13, 12, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 12px 36px rgba(0, 0, 0, 0.45);
}
.conta-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, 0.9vw, 16px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.conta-linha span { color: #8f9a90; font-size: clamp(13px, 0.9vw, 17px); }
.conta-linha strong { color: #fff; font-weight: 600; font-size: clamp(14px, 1vw, 19px); display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.conta-ativo { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); }
.conta-acoes { padding-top: clamp(14px, 1.2vw, 22px); display: flex; justify-content: flex-start; }

/* Faixa de dados: placar no centro do topo, estatisticas embaixo na largura
   toda (Daniel 24/09 — opcao A no formato dele). Sobrescreve o arranjo lateral. */
.painel-dividido .pd-jogo.com-dados {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(8px, 0.9vw, 18px);
}
.painel-dividido .pd-jogo.com-dados .pd-placar {
  flex: 0 0 auto;
  align-self: center;
  gap: clamp(2px, 0.25vw, 5px);
}
.painel-dividido .pd-jogo.com-dados .pd-times strong { font-size: clamp(22px, 2vw, 40px); }
.painel-dividido .pd-jogo.com-dados .pd-stats {
  grid-template-columns: repeat(4, 1fr);
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-left: 0;
  padding-top: clamp(8px, 0.8vw, 16px);
}

/* Estatisticas no padrao aprovado 24/09 (estilo Flashscore): valores nas pontas,
   rotulo no centro, barra do centro para fora; lider em branco. */
.pd-st { grid-template-columns: auto 1fr auto; grid-template-areas: "c rot f" "barra barra barra"; column-gap: 8px; row-gap: clamp(4px, 0.35vw, 7px); }
.pd-st-rot { text-transform: none; letter-spacing: 0; font-size: clamp(10px, 0.72vw, 14px); color: #cfd8ce; font-weight: 600; }
.pd-st b:first-of-type { text-align: left; }
.pd-st b:last-of-type { text-align: right; }
.pd-st-barra { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: clamp(3px, 0.3vw, 6px); }
.pd-st-barra .lado { display: flex; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.06); }
.pd-st-barra .lado.c { justify-content: flex-end; }
.pd-st-barra .lado i { display: block; height: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.22); margin: 0; }
.pd-st-barra .lado i.lider { background: rgba(255, 255, 255, 0.85); }

/* Controles do Collab so com icone (3.8, Daniel 24/09). Botao quadrado-redondo,
   mesma pilula de vidro; sincronia (-1s/+1s) continua em texto. */
.so-icone { min-width: 32px; justify-content: center; padding-left: 8px !important; padding-right: 8px !important; }
.bottom-colab-btn.so-icone { display: inline-flex; align-items: center; gap: 4px; }
/* Mini capsula do audio: "TV | icone do Collab", lado que toca aceso (sem limao). */
.capsula-audio { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 99px; padding: 1px; margin-left: 2px; }
.capsula-audio i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; height: 16px; min-width: 22px; padding: 0 5px; border-radius: 99px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.4px; color: rgba(207, 216, 206, 0.45); transition: background .15s, color .15s; }
.capsula-audio[data-ativo="tv"] i[data-lado="tv"], .capsula-audio[data-ativo="streamer"] i[data-lado="streamer"] { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* =========================================================================
   MODO TV (1.26, passo 2): telas de navegacao 1,5x. zoom so no #appShell; a
   largura/altura sao divididas pelo fator para caber na tela. Player nao muda.
   ========================================================================= */
html.modo-tv #appShell {
  zoom: var(--escala-ui, 1.5);
  width: calc(100vw / var(--escala-ui, 1.5));
  height: calc(100vh / var(--escala-ui, 1.5));height: calc(100dvh / var(--escala-ui, 1.5));
}
.conta-escala { gap: 8px; }
.conta-escala .botao-vidro { min-height: 34px; padding: 6px 14px; }

/* Topo: aba da secao atual com marca (1.56, Daniel 24/09 "pode fazer").
   Branco + traco fino embaixo; sem verde (verde so no foco do controle). */
header nav button { position: relative; }
header nav button.active { color: #fff; }
header nav button.active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   LOGIN no padrao da barra (1.53) — amostra aprovada pelo Daniel 24/09
   ("ficou excelente, pode aplicar"). "Conectar" em pilula de vidro com texto
   verde; card do QR com borda neutra; rotulo cinza; PIN branco. Logo e mural
   de posteres intactos.
   ========================================================================= */
#loginGate #btnLogin {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--neon);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 6px 18px rgba(0, 0, 0, 0.35);
}
#loginGate #btnLogin:hover,
#loginGate #btnLogin:focus {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
}
#loginGate #btnLogin:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--neon), inset 0 1px 0 rgba(255, 255, 255, 0.20); }
#loginGate .login-qr-inline {
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.90), rgba(10, 13, 12, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#loginGate .qr-inline-title { color: #cfd8ce; }
#loginGate .qr-inline-pin strong { color: #fff; }
#loginGate .qr-inline-box { box-shadow: none; }
#loginGate .field input { border-radius: 14px; }

/* =========================================================================
   Celula abaixo do streamer em rotacao (Daniel 24/09): pressao agora ->
   grafico por minuto -> odds -> banner/QR. data-mostra escolhe o cartao.
   Substitui o toggle .mostra-odds.
   ========================================================================= */
.pd-lateral .pd-banner,
.pd-lateral .pd-odds,
.pd-lateral .pd-pressao-agora,
.pd-lateral .pd-pressao-grafico { display: none; }
.pd-lateral:not([data-mostra]) .pd-banner,
.pd-lateral[data-mostra="banner"] .pd-banner { display: flex; }
.pd-lateral[data-mostra="odds"] .pd-odds,
.pd-lateral[data-mostra="agora"] .pd-pressao-agora,
.pd-lateral[data-mostra="grafico"] .pd-pressao-grafico { display: flex; flex-direction: column; width: 100%; height: 100%; justify-content: center; gap: clamp(4px, 0.4vw, 8px); }
.pa-lado { font-size: clamp(16px, 1.3vw, 26px); color: #fff; line-height: 1.1; }
.pa-nivel { display: flex; align-items: center; gap: 8px; }
.pa-seg { display: flex; gap: 3px; }
.pa-seg i { width: clamp(14px, 1.1vw, 22px); height: clamp(5px, 0.4vw, 8px); border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.pa-seg i.on { background: rgba(255, 255, 255, 0.85); }
.pa-seg i.on:nth-child(4) { background: var(--neon); }
.pa-nivel span { font-size: clamp(11px, 0.8vw, 15px); color: #e5ede4; font-weight: 600; }
.pa-tend { font-size: clamp(10px, 0.72vw, 14px); color: #a8b0aa; }
.pa-mini { height: clamp(24px, 2.2vw, 44px); }
.pa-mini svg, .pg-g svg { width: 100%; height: 100%; display: block; }
.pg-corpo { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 6px; min-height: 0; }
.pg-eixo { display: flex; flex-direction: column; justify-content: space-between; font-size: clamp(9px, 0.62vw, 12px); font-weight: 700; color: #cfd8ce; padding: 4px 0; }
.pg-g { min-height: 0; }
.pd-lateral .pd-rotulo { font-size: clamp(9px, 0.62vw, 13px); letter-spacing: 1.5px; text-transform: uppercase; color: #8f9a90; font-weight: 600; }
.pa-mini { height: clamp(34px, 3vw, 60px); }
.pa-lado { display: flex; align-items: center; gap: 8px; }
.pa-lado img { width: clamp(20px, 1.6vw, 32px); height: clamp(20px, 1.6vw, 32px); object-fit: contain; }
.pg-eixo img { width: clamp(16px, 1.2vw, 24px); height: clamp(16px, 1.2vw, 24px); object-fit: contain; display: block; }

/* 3.11 — Card "Jogos do dia" na tela inicial (amostra aprovada pelo Daniel 24/09).
   Vidro dos cards de destino; limão só no "Ao vivo". Some abaixo de 900 px
   (no celular a tela inicial não tem espaço; os ícones ficam em "Jogos de Hoje"). */
.home-view .jd { position: absolute; right: 7%; top: calc(84px + 5%); width: 430px; z-index: 2; box-sizing: border-box;
  background: rgba(19, 23, 24, .75); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  box-shadow: rgba(255, 255, 255, .1) 0 1px 0 inset, rgba(0, 0, 0, .5) 0 10px 28px; padding: 18px 18px 14px; }
.home-view .jd[hidden] { display: none; }
.jd-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.jd .jd-v { all: unset; cursor: pointer; font-size: 11px; color: #8f9a90; }
.jd .jd-l { all: unset; cursor: pointer; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); width: 100%; box-sizing: border-box; border-radius: 6px; }
.jd .jd-l:hover { background: rgba(255, 255, 255, .04); }
.jd .jd-l:focus-visible, .jd .jd-v:focus-visible { outline: 2px solid #b7ff3c; outline-offset: 2px; }
.jd-h { font-size: 12px; font-weight: 600; color: #a8b0aa; display: flex; align-items: center; gap: 6px; }
.jd-h.vivo { color: #b7ff3c; }
.jd-h i { width: 6px; height: 6px; border-radius: 50%; background: #b7ff3c; }
.jd-j { display: flex; flex-direction: column; min-width: 0; }
.jd-j b { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-j b em { font-style: normal; color: #6f7a70; }
.jd-j small { font-size: 12px; color: #8f9a90; }
.jd-e { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin: 0 7px; }
.jd-e:first-child { margin-left: 0; }
.jd-i { display: flex; gap: 6px; }
.jd-i span { display: inline-grid; place-items: center; width: 28px; height: 26px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; color: #cfd8ce; }
.jd-leg { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; color: #8f9a90; }
.jd-leg span { display: flex; align-items: center; gap: 6px; }
@media (max-width: 899px) { .home-view .jd { display: none; } }

/* 3.10 — Estatisticas sem Collab (mockup aprovado 24/09). Mesma geometria da
   tela dividida: a celula do streamer vira "pressao agora" fixo e maior (ou o
   banner, sem pressao); a de baixo gira grafico -> odds -> banner. */
#btnPlayerStats[hidden] { display: none !important; }
.pd-topo { display: none; }
.player-shell.split-active.split-estat .pd-topo {
  position: absolute; top: 8px; right: 8px; width: calc(25% - 16px); height: calc(50% - 12px); z-index: 30;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 0.8vw, 16px);
  padding: clamp(14px, 1.4vw, 28px); box-sizing: border-box; border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 36, 32, 0.92), rgba(10, 13, 12, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.player-shell.split-estat .pd-lateral[data-mostra="vazio"] { display: none !important; }
.player-shell.split-estat .pd-lateral[data-mostra="vazio"] ~ .pd-topo { height: calc(75% - 16px); }
.pd-topo .pd-rotulo { font-size: clamp(10px, 0.7vw, 14px); letter-spacing: 1.5px; text-transform: uppercase; color: #8f9a90; font-weight: 600; }
.pd-topo .pa-lado { font-size: clamp(22px, 1.8vw, 36px); }
.pd-topo .pa-lado img { width: clamp(28px, 2.3vw, 46px); height: clamp(28px, 2.3vw, 46px); }
.pd-topo .pa-seg i { width: clamp(20px, 1.6vw, 32px); height: clamp(6px, 0.55vw, 10px); }
.pd-topo .pa-nivel span { font-size: clamp(13px, 1.05vw, 20px); }
.pd-topo .pa-tend { font-size: clamp(12px, 0.95vw, 18px); }
.pd-topo .pa-mini { height: auto; flex: 1; min-height: 0; max-height: 45%; margin-top: 6px; }
.pd-topo .pd-banner { flex-direction: column; justify-content: center; text-align: center; }
.pd-topo .pd-banner img:last-child { width: 55%; height: auto; aspect-ratio: 1; border-radius: 8px; background: #fff; padding: 6px; box-sizing: border-box; image-rendering: pixelated; }
/* Faixa com ate 6 estatisticas: 3 colunas, sem linha pela metade (24/09). */
.painel-dividido .pd-jogo.com-dados .pd-stats.tres { grid-template-columns: repeat(3, 1fr); }
/* Celula alta (so estatisticas): as barras recentes ocupam o espaco que sobra. */
.pd-topo .pa-mini { flex: 1; max-height: none; min-height: 60px; }

/* 3.13 — Tela "Jogos do Dia" (mockup aprovado 24/09). Mesma grade de 3 colunas;
   coluna do meio mais larga SO nesta tela (Daniel 24/09). */
/* So em tela larga: abaixo de 1180 px valem as regras responsivas da grade. */
@media (min-width: 1181px) { .tv3-shell.jogos-dia .tv3-body { grid-template-columns: 218px minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (min-width: 901px) and (max-width: 1180px) { .tv3-shell.jogos-dia .tv3-body { grid-template-columns: 180px minmax(0, 1.1fr) minmax(0, 1fr); } }
.jg-grupo { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: #8f9a90; font-weight: 600; padding: 14px 6px 6px; }
.tv3-chan-row.jg-row { display: grid; grid-template-columns: 58px auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.jg-hora { display: flex; align-items: center; gap: 6px; font-weight: 400; color: #8f9a90; }
.jg-hora.vivo { color: #cfd8ce; }
.jg-hora i { width: 6px; height: 6px; border-radius: 50%; background: #b7ff3c; }
.jg-escs { display: flex; gap: 4px; }
.jg-e { width: 22px; height: 22px; object-fit: contain; }
.jg-escs.grande .jg-e { width: 34px; height: 34px; }
.jg-row .tv3-chan-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-x { font-style: normal; color: #6f7a70; }
.jg-pl { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.jg-fim { opacity: .6; }
.jg-placar { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
.jg-placar .jg-e { width: 44px; height: 44px; }
.jg-placar b { font-size: 44px; line-height: 1; color: #fff; }
.jg-placar em { font-style: normal; color: #6f7a70; font-size: 22px; }
.jg-ic { display: inline-grid; place-items: center; color: #cfd8ce; }
.jg-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.jg-leg { display: flex; gap: 18px; padding: 12px 6px 0; font-size: 11.5px; color: #8f9a90; }
.jg-leg span { display: flex; align-items: center; gap: 6px; }
.jg-hora { white-space: nowrap; }
/* Horario discreto (Daniel 24/09): sem negrito, cinza; limao so no ponto do ao vivo. Escudos junto dos nomes. */
.jg-row .tv3-chan-meta strong .jg-e { width: 18px; height: 18px; vertical-align: -4px; margin: 0 6px; }
.jg-row .tv3-chan-meta strong .jg-e:first-child { margin-left: 0; }
/* Painel do jogo: canal abaixo do titulo; programacao do canal embaixo (padrao da grade). */
.jg-canal { display: block; font-size: 12px; color: #8f9a90; margin-top: 4px; }
.jg-prog { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }

/* 1.61 (24/09): avatar do topo sem distorcer a marca (era esticada 24x30). */
.profile img { object-fit: contain; }

/* 1.61: logos oficiais das plataformas, brancos e na mesma altura (padrao premium). */
.brand-hub-card .marca-logo { height: 26px; max-width: 80%; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
/* Equilibrio otico: logo compacto menor, logo largo maior — todos com o mesmo peso visual. */
.brand-hub-card .marca-netflix { height: 22px; }
.brand-hub-card .marca-max { height: 20px; }
.brand-hub-card .marca-apple-tv-plus { height: 24px; }
.brand-hub-card .marca-star-plus { height: 21px; }
.brand-hub-card .marca-globoplay { height: 22px; }
.brand-hub-card .marca-prime-video { height: 30px; }
.brand-hub-card .marca-disney-plus { height: 38px; }
.brand-hub-card .marca-paramount-plus { height: 30px; }
.brand-hub-card .marca-discovery-plus { height: 24px; }
.brand-hub-card:hover .marca-logo, .brand-hub-card:focus .marca-logo { opacity: 1; }

/* 1.61 — padrao visual (Daniel 24/09 "todos"): */
/* 7: nota do titulo em cinza claro (limao so em destaque). */
.nota-titulo { color: #cfd8ce; display: inline-flex; align-items: center; gap: 4px; }
/* 6: estrela do favorito como icone; ativa em limao sem brilho. */
.tv3-chan-star svg { display: block; }
.tv3-chan-star.fav-active { text-shadow: none; }
/* 8: sem vermelho — Sair, selo AO VIVO da programacao e categoria adulta bloqueada. */
.btn-logout:hover { color: #fff !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.tv3-epg-live { color: #cfd8ce; }
.genre-card.is-adult-locked, .genre-card.is-adult-locked:hover { border-color: rgba(255, 255, 255, 0.18) !important; }
/* 5: minimo legivel fora da inicial e do login. */
.tv3-chan-meta span { font-size: 12px; }
.jg-grupo { font-size: 11px; }
#clockDate { font-size: 10px; }
.jg-hora { font-variant-numeric: tabular-nums; }
/* 10: menu do topo sempre em uma linha. */
header nav button { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 901px) { header nav { gap: 2px; } header nav button { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 900px) and (min-width: 600px) { header nav { gap: 0; } header nav button { padding-left: 8px; padding-right: 8px; } }

/* Sua Conta com adicionais (amostra aprovada 24/09). */
.conta-sec { padding: clamp(16px, 1.4vw, 26px) 0 6px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #8f9a90; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.conta-linha .ad-nome { display: inline-flex; align-items: center; gap: 10px; color: #e5ede4; }
.conta-linha .ad-nome svg { color: #cfd8ce; flex-shrink: 0; }
.conta-linha .ad-nome small { display: block; color: #8f9a90; font-size: 12px; font-weight: 400; margin-top: 2px; }
.conta-linha .incluso { color: #cfd8ce; font-weight: 500; }
.conta-linha .botao-vidro { min-height: 34px; padding: 6px 16px; }
/* Erro do login sem vermelho (amostra aprovada 24/09). */
#loginGate .login-err { color: #e5ede4; border-left-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
/* Jogo de outro dia: sem clique no card; na tela so recebe foco para ver os detalhes. */
.jd .jd-futuro { cursor: default; }
.jd .jd-futuro:hover { background: none; }
.jg-row.jg-futuro { cursor: default; }

/* Sinal da conexao no player (Daniel 24/09): so barras; painel pequeno ao tocar. */
.sinal-conexao { position: relative; display: inline-flex; align-items: center; }
.sinal-conexao[hidden] { display: none; }
.sinal-conexao #btnSinal { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10); background: rgba(0, 0, 0, .30); }
.sinal-conexao #btnSinal svg { width: 16px; height: 14px; }
.sinal-conexao #btnSinal rect { fill: rgba(255, 255, 255, .22); }
.sinal-conexao #btnSinal rect.on { fill: #fff; }
.sinal-painel { position: absolute; right: 0; bottom: calc(100% + 12px); min-width: 230px; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(30, 36, 32, .95), rgba(10, 13, 12, .97));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); z-index: 60; }
.sinal-painel[hidden] { display: none; }
.sinal-painel strong { font-size: 14px; color: #fff; font-weight: 600; }
.sinal-painel span { font-size: 12px; color: #a8b0aa; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sinal-painel .botao-vidro { margin-top: 6px; min-height: 34px; }
/* Painel do jogo: escudos junto do titulo (Daniel 25/09). */
.jg-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.jg-titulo .jg-e { width: 30px; height: 30px; margin: 0; }

/* Central de avisos (1.40, mockup aprovado 25/09). Sino = pilula do Sair so com icone.
   Numero so com contorno limao (Daniel 25/09: preenchido chamava atencao demais).
   Painel = vidro do card "Proximos jogos". */
.btn-avisos { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14); color: #e5ede4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-avisos:hover, .btn-avisos:focus, .btn-avisos.aberto { outline: none; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-avisos:focus-visible, body.device-stick .btn-avisos:focus { border-color: transparent; box-shadow: inset 0 0 0 1.5px #b7ff3c, inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-avisos .cont { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  background: #0b0e0f; border: 1px solid #b7ff3c; color: #b7ff3c; font: 700 10px/15px Space, sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.btn-avisos .cont[hidden] { display: none; }
.avisos { position: fixed; z-index: 90; width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; box-sizing: border-box;
  background: rgba(19, 23, 24, .92); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  box-shadow: rgba(255, 255, 255, .1) 0 1px 0 inset, rgba(0, 0, 0, .55) 0 14px 34px; padding: 16px 16px 8px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: Space, sans-serif; }
.avisos .av-t { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 6px; }
.avisos .av-t small { font-size: 11px; color: #8f9a90; }
.avisos .av { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 10px; row-gap: 3px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.avisos .av:last-child { border-bottom: 0; }
.avisos .av i { grid-row: 1 / span 3; width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; }
.avisos .av.novo i { background: #b7ff3c; }
.avisos .av .k { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #8f9a90; font-weight: 600; }
.avisos .av .q { font-size: 11px; color: #6f7a70; text-align: right; font-variant-numeric: tabular-nums; }
.avisos .av b { grid-column: 2 / span 2; font-size: 14px; font-weight: 600; color: #fff; }
.avisos .av.lido b { color: #cfd6cc; font-weight: 500; }
.avisos .av p { grid-column: 2 / span 2; margin: 0; font-size: 12px; line-height: 1.5; color: #8f9a90; }
.avisos .av .ir { all: unset; grid-column: 2 / span 2; justify-self: start; cursor: pointer; font-size: 12px; color: #cfd8ce; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; border-radius: 4px; }
.avisos .av .ir .icon { width: 13px; height: 13px; }
.avisos .av .ir:hover { color: #fff; }
.avisos .av .ir:focus-visible { outline: 2px solid #b7ff3c; outline-offset: 3px; }
.avisos .av-vazio { padding: 26px 4px 20px; text-align: center; font-size: 12px; color: #8f9a90; }
/* Celular: o sino nao pode empurrar o Sair para fora (361 px: passava 13 px). */
@media (max-width: 599px) { .btn-avisos { width: 28px; height: 28px; min-height: 28px; } .btn-avisos .icon { width: 14px !important; height: 14px !important; }
  .header-end { gap: 6px !important; } .clock-block { padding-right: 6px !important; } }

/* Inicial B (teste ?inicial=b, prototipo aprovado 25/09): destaque de jogo + card de jogos a
   direita (o mesmo da inicial) + "Continuar assistindo" + atalhos. Mesmo vidro do card. */
.home-view .home-b .home-copy { top: calc(84px + 4%); bottom: auto; justify-content: flex-start; max-width: 54%; z-index: 2; }
.home-b .hb-escs { display: flex; gap: 10px; margin: 6px 0 4px; }
.home-b .hb-escs img { width: 40px; height: 40px; object-fit: contain; }
.home-b h1.hb-jogo { font-size: clamp(34px, 5.4vh, 60px); margin: 8px 0; }
.home-b h1.hb-jogo em { font-style: normal; color: #8f9a90; }
.home-b .hb-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.home-b .hb-rows { position: absolute; left: 4%; right: 4%; bottom: 4%; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.home-b .hb-rt { margin: 0 0 8px; font: 600 11px Space, sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: #8f9a90; }
.home-b .hb-row { display: flex; gap: 12px; overflow: hidden; }
.home-b .hb-ch { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 250px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px 14px;
  background: rgba(19, 23, 24, .75); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; box-shadow: rgba(255, 255, 255, .1) 0 1px 0 inset; }
.home-b .hb-ch:hover, .home-b .hb-ch:focus-visible { border-color: rgba(255, 255, 255, .28); }
.home-b .hb-ch:focus-visible { outline: 2px solid #b7ff3c; outline-offset: 2px; }
.home-b .hb-logo { display: grid; place-items: center; height: 36px; }
.home-b .hb-logo .tv3-chan-logo { max-width: 64px; max-height: 36px; object-fit: contain; }
.home-b .hb-txt { min-width: 0; }
.home-b .hb-txt b { display: block; font: 600 13px Space, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-b .hb-txt small { display: block; font: 11px Space, sans-serif; color: #8f9a90; margin: 3px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-b .hb-bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.home-b .hb-bar i { display: block; height: 100%; background: #e5ede4; }
.home-b .hb-atalho { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: 0 0 220px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.home-b .hb-atalho img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-b .hb-atalho:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #060809e6, #06080922); }
.home-b .hb-atalho strong { position: absolute; left: 14px; bottom: 10px; z-index: 1; font: 700 24px Display, sans-serif; color: #fff; }
.home-b .hb-atalho:focus-visible { outline: 2px solid #b7ff3c; outline-offset: 2px; }
@media (max-width: 899px) { .home-view .home-b .home-copy { max-width: none; right: 4%; } .home-b .hb-ch { flex-basis: 220px; } .home-b .hb-atalho { flex-basis: 150px; height: 80px; } }

/* Teste: cards de atalho da inicial em fume (CARDS_FUME no app.js). Foco devolve a cor. */
.home-view .destinations.cards-fume .destination img { filter: saturate(.3) brightness(.5) contrast(1.05); transition: filter .25s ease; }
.home-view .destinations.cards-fume .destination:hover img,
.home-view .destinations.cards-fume .destination:focus img,
.home-view .destinations.cards-fume .destination:focus-visible img { filter: none; }

/* Daniel 26/09: com o aviso central na tela (carregando / indisponivel, camada 50) a barra (40)
   ficava por baixo e nao havia como voltar — so recarregando o site. Barra ativa fica por cima. */
/* 70 (nao 60): 60 vencia a regra de 25/09 da tela inteira do Collab (70) e a barra caia por baixo
   do streamer (camada 66) — Daniel 26/09 ~22h30. */
.player-shell.active-controls .player-bottom { z-index: 70; }

/* Termômetro 40/60 aprovado: /100 discreto, sem animação ou requisição adicional. */
.pd-lateral .pd-termometro { display:none; }
.pd-lateral[data-mostra="termometro"] .pd-termometro { display:flex; flex-direction:column; justify-content:center; width:100%; gap:clamp(5px,.55vw,11px); }
.pd-topo[data-mostra="termometro"] { justify-content:center; gap:clamp(7px,.65vw,13px); }
.tm-linha { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#96a198; }
.tm-lider .tm-linha { color:#f4f6f1; }
.tm-linha > span { display:flex; align-items:center; gap:7px; font-size:clamp(11px,1vw,20px); min-width:0; }
.tm-linha img { width:clamp(18px,1.6vw,32px); height:clamp(18px,1.6vw,32px); object-fit:contain; }
.tm-linha b { font-size:clamp(20px,2vw,40px); white-space:nowrap; font-variant-numeric:tabular-nums; }
.tm-linha small,.tm-componentes small { font-size:.45em; color:#8f9a90; font-weight:400; margin-left:3px; }
.tm-barra { height:clamp(4px,.4vw,8px); margin-top:5px; background:#ffffff12; border-radius:6px; overflow:hidden; position:relative; }
.tm-barra::after { content:""; position:absolute; left:75%; top:0; height:100%; border-left:1px solid #879087; }
.tm-barra i { display:block; height:100%; background:#879087; border-radius:6px; }
.tm-lider .tm-barra i { background:#e0e5df; }
.tm-barra i.tm-alto { background:#b7ff3c; }
.tm-componentes { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-top:8px; border-top:1px solid #ffffff12; }
.tm-componentes span { display:flex; align-items:center; gap:4px; color:#8f9a90; text-transform:uppercase; letter-spacing:.5px; font-size:clamp(8px,.55vw,11px); }
.tm-componentes img { width:13px; height:13px; object-fit:contain; }
.tm-componentes b { display:block; font-size:clamp(14px,1.05vw,22px); margin-top:4px; color:#eef2ec; }

/* Preferência por aparelho: mesma linguagem visual, sem escala no vídeo. */
.conta-tamanho { flex-wrap:wrap; }
.conta-tamanho .conta-escala { display:flex; flex-wrap:wrap; text-align:left; }
.conta-card .conta-linha { flex-wrap:wrap; }
.conta-card .conta-linha > * { min-width:0; overflow-wrap:anywhere; }
.conta-escala button { white-space:normal; }
/* A escala reduz o espaço lógico: navegação pode rolar sem cortar o perfil. */
#appShell > header { min-width:0; }
#appShell > header nav { min-width:0; overflow-x:auto; flex-shrink:1; }
html.tela-compacta #appShell { grid-template-rows:auto minmax(0,1fr) 32px; }
html.tela-compacta #appShell > header { height:auto; min-height:0; flex-wrap:wrap; gap:8px; padding:8px 4%; }
html.tela-compacta #appShell > header nav { position:static; order:3; flex:1 0 100%; width:100%; height:auto; justify-content:flex-start; }
html.tela-compacta #appShell > header .header-end { margin-left:auto; flex-wrap:wrap; max-width:100%; gap:6px; }
