/* Prévia do tema "Superflix" — releitura, no nosso código, do visual estilo
   Netflix do projeto MannanK/Superflix (sem licença: nada do CSS dele foi
   copiado, só a direção visual). Só vale com html.theme-sf, que o index.html
   liga com ?tema=superflix e desliga com ?tema=padrao. Sem a classe, nada
   aqui casa e o app fica exatamente como era.

   O que muda na Home: cabeçalho por cima do destaque, destaque de tela cheia
   que se dissolve no fundo, trilhos encostados nele, pôster sem moldura com o
   título só no foco, e anel de foco branco. */

.theme-sf {
  --sf-bg: #141414;
  --sf-text: #e5e5e5;
  --sf-muted: #a3a3a3;
  --sf-red: #e50914;
  --sf-pad: 60px;          /* margem lateral de todo o conteúdo da Home */
  --sf-header-h: 116px;    /* o destaque sobe exatamente isso por trás do cabeçalho */
}

/* ── Trilho de navegação: preto chapado, como a barra do Superflix ───────── */
.theme-sf .nav-rail {
  background: #000;
  border-right-color: #000;
}

.theme-sf .nav-rail-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Fundo e cabeçalho ───────────────────────────────────────────────────── */
.theme-sf .home-view {
  position: relative;
  padding: 0 0 60px;
  background: var(--sf-bg);
}

.theme-sf .home-header {
  position: relative;
  z-index: 4;
  height: var(--sf-header-h);
  margin: 0;
  padding: 0 var(--sf-pad);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 10%, transparent);
}

.theme-sf .home-title {
  font-size: 34px;
  color: #fff;
}

.theme-sf .home-title img {
  width: 38px;
  height: 38px;
}

/* A Netflix não cumprimenta: o cabeçalho é só marca e busca. */
.theme-sf .home-greeting { display: none; }

.theme-sf .home-search-btn {
  padding: 10px 20px;
  color: #fff;
  background: transparent;
  border-color: transparent;
  border-radius: 4px;
}

.theme-sf .home-search-btn.focused,
.theme-sf .home-search-btn:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
}

/* ── Barra do topo: Início, Buscar e o perfil (substitui o trilho lateral) ── */
.theme-sf .sf-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-sf .sf-topbar-link,
.theme-sf .sf-topbar .home-search-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--sf-text);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.theme-sf .sf-topbar-link { color: #b3b3b3; }
.theme-sf .sf-topbar-link.active { font-weight: 700; color: #fff; }

.theme-sf .sf-topbar-sections {
  display: flex;
  gap: 2px;
  margin-right: 10px;
}

.theme-sf .sf-profile-item.active { font-weight: 700; color: #fff; }

/* Barra do topo também em Ao Vivo / Filmes / Séries (no lugar do trilho). */
.theme-sf .channel-view.sf-has-topbar {
  flex-direction: column;
  height: 100%;
}

.theme-sf .sf-topnav {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  padding: 0 28px 0 24px;
  background: var(--sf-bg);
  border-bottom: 1px solid #222;
}

.theme-sf .sf-topnav-brand { font-size: 28px; }

.theme-sf .sf-topnav-brand img {
  width: 32px;
  height: 32px;
}

.theme-sf .sf-channel-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.theme-sf .sf-topbar [data-focusable].focused,
.theme-sf .sf-topbar [data-focusable]:hover {
  transform: none;
  box-shadow: none;
}

.theme-sf .sf-topbar-link.focused,
.theme-sf .sf-topbar-link:hover {
  color: #000;
  background: #fff;
  border-color: #fff !important;
}

.theme-sf .sf-profile { position: relative; }

.theme-sf .sf-profile-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.theme-sf .sf-profile-btn.focused,
.theme-sf .sf-profile-btn:hover {
  border-color: #fff !important;
}

.theme-sf .sf-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7a0d14);
  border-radius: 4px;
}

/* Setinha do menu; gira quando ele abre. */
.theme-sf .sf-profile-caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #fff;
  transition: transform var(--dur-micro) var(--ease-decel);
}

.theme-sf .sf-profile-btn[aria-expanded="true"] .sf-profile-caret { transform: rotate(180deg); }

.theme-sf .sf-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sf-red);
}

.theme-sf .sf-profile-btn .sf-dot {
  position: absolute;
  top: 0;
  left: 42px;
  border: 2px solid #000;
}

.theme-sf .sf-profile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  min-width: 280px;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Bico apontando para o avatar */
.theme-sf .sf-profile-menu::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 22px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid rgba(255, 255, 255, 0.85);
}

.theme-sf .sf-profile-name {
  padding: 10px 22px 14px;
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--sf-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.theme-sf .sf-profile-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 20px;
  text-align: left;
  color: var(--sf-text);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.theme-sf .sf-profile-icon,
.theme-sf .sf-profile-icon .icon {
  width: 24px;
  height: 24px;
}

.theme-sf .sf-profile-item.focused,
.theme-sf .sf-profile-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent !important;
  box-shadow: none;
  transform: none;
}

/* ── Destaque de tela cheia ──────────────────────────────────────────────── */
/* Só sobe por trás do cabeçalho quando vem logo depois dele: com o aviso de
   boas-vindas ou o de plano grátis no meio, fica no fluxo normal. */
.theme-sf .home-header + .home-hero { margin-top: calc(-1 * var(--sf-header-h)); }

.theme-sf .home-hero {
  height: 74vh;
  min-height: 520px;
  margin-bottom: -9vh;     /* o primeiro trilho encosta na base do destaque */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: #000;
}

/* A camada de baixo vem primeiro (fica por cima): sem isso o escurecimento
   lateral pinta a base de preto e aparece uma emenda com o fundo dos trilhos. */
.theme-sf .home-hero-shade {
  background:
    linear-gradient(0deg, var(--sf-bg) 0%, rgba(20, 20, 20, 0.65) 14%, transparent 36%),
    linear-gradient(77deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
}

.theme-sf .home-hero-content {
  left: var(--sf-pad);
  right: auto;
  bottom: 24%;
  max-width: 780px;
}

.theme-sf .home-hero-badge { margin-bottom: 14px; }

.theme-sf .home-hero-badge .badge-pill {
  padding: 0;
  font-size: 18px;
  letter-spacing: 4px;
  color: #fff;
  background: none;
  border: 0;
  box-shadow: none;
}

.theme-sf .home-hero-badge .badge-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  margin-right: 12px;
  vertical-align: -4px;
  background: var(--sf-red);
}

.theme-sf .home-hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 18px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  /* Título longo não pode subir até o cabeçalho: no máximo duas linhas. */
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-sf .home-hero-plot {
  max-width: 680px;
  font-size: 24px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 26px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botão retangular translúcido; no foco vira branco com texto preto. */
.theme-sf .home-hero-btn {
  padding: 14px 40px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: rgba(51, 51, 51, 0.6);
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: none;
}

.theme-sf .home-hero-btn.focused,
.theme-sf .home-hero-btn:hover {
  color: #000;
  background: #fff;
  border-color: #fff !important;
  box-shadow: none;
}

.theme-sf .home-hero-arrow {
  width: 56px;
  height: 120px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
}

.theme-sf .home-hero-prev { left: 0; }
.theme-sf .home-hero-next { right: 0; }

.theme-sf .home-hero-arrow.focused,
.theme-sf .home-hero-arrow:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

/* Os pontos sobem para não ficarem atrás do primeiro trilho. */
.theme-sf .home-hero-dots {
  right: var(--sf-pad);
  bottom: calc(9vh + 36px);
}

.theme-sf .home-hero-dot {
  width: 18px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
}

.theme-sf .home-hero-dot.active {
  width: 36px;
  border-radius: 0;
  background: #fff;
}

/* ── Atalhos Ao Vivo / Filmes / Séries viram links de texto ─────────────── */
.theme-sf .home-tiles {
  position: relative;
  z-index: 2;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 var(--sf-pad);
}

.theme-sf .home-tile {
  flex: 0 0 auto;
  min-height: 0;
  gap: 10px;
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: rgba(42, 42, 42, 0.7);
}

.theme-sf .home-tile-glow,
.theme-sf .home-tile-sub { display: none; }

.theme-sf .home-tile-icon,
.theme-sf .home-tile-icon .icon {
  width: 24px;
  height: 24px;
}

.theme-sf .home-tile .icon { color: #fff; }
.theme-sf .home-tile-label { font-size: 20px; font-weight: 600; color: #fff; }

.theme-sf .home-tile.focused,
.theme-sf .home-tile:hover {
  background: #fff;
  border-color: #fff !important;
  box-shadow: none;
}

.theme-sf .home-tile.focused .home-tile-label,
.theme-sf .home-tile.focused .icon,
.theme-sf .home-tile:hover .home-tile-label,
.theme-sf .home-tile:hover .icon { color: #000; }

/* Avisos que ficam acima do destaque */
.theme-sf .home-welcome,
.theme-sf .home-upgrade {
  margin-left: var(--sf-pad);
  margin-right: var(--sf-pad);
}

/* ── Trilhos ─────────────────────────────────────────────────────────────── */
.theme-sf .home-rail {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.theme-sf .home-rail-head {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 0;
  padding: 0 var(--sf-pad);
}

.theme-sf .home-rail-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sf-text);
}

.theme-sf .home-rail-more {
  font-size: 18px;
  color: var(--sf-muted);
  border-radius: 4px;
}

.theme-sf .home-rail-more.focused,
.theme-sf .home-rail-more:hover {
  color: #000;
  background: #fff;
  border-color: #fff !important;
  box-shadow: none;
}

/* Folga em cima e embaixo para o pôster crescer no foco sem ser cortado. */
.theme-sf .home-rail-track {
  gap: 8px;
  padding: 24px var(--sf-pad) 32px;
}

.theme-sf .home-rail-empty {
  border-radius: 4px;
  background: #1f1f1f;
}

/* ── Pôsteres ────────────────────────────────────────────────────────────── */
.theme-sf .home-card {
  position: relative;
  width: 220px;
  padding: 0;
  border: 0;
  border-radius: 4px;
}

.theme-sf .home-card-thumb {
  height: 330px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background: #232323;
}

/* O título mora no pôster (como na Netflix) e só aparece no foco. */
.theme-sf .home-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 48px 14px 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: normal;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 30%, transparent);
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-decel);
}

.theme-sf .home-card.focused .home-card-title,
.theme-sf .home-card:hover .home-card-title { opacity: 1; }

/* Temporada/episódio de "Continuar vendo" vira etiqueta no canto do pôster. */
.theme-sf .home-card-sub {
  position: absolute;
  top: 8px;
  left: 8px;
  margin: 0;
  padding: 2px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 3px;
}

/* A barra de progresso continua visível por cima do título. */
.theme-sf .resume-bar {
  z-index: 3;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
}

.theme-sf .resume-bar-fill { background: var(--sf-red); }

.theme-sf .home-card.focused,
.theme-sf .home-card:hover {
  z-index: 5;
  background: none;
  border-color: transparent !important;
  box-shadow: none;
  transform: scale(1.12);
}

.theme-sf .home-card.focused .home-card-thumb,
.theme-sf .home-card:hover .home-card-thumb {
  box-shadow: 0 0 0 3px #fff, 0 18px 40px rgba(0, 0, 0, 0.8);
}

/* Canais ao vivo: logo não é pôster. Caixa 16:9 e nome sempre visível. */
.theme-sf .home-card-live .home-card-thumb { height: 124px; }
.theme-sf .home-card-live .poster-img { padding: 14px; }

.theme-sf .home-card-live .home-card-title {
  position: static;
  padding: 8px 2px 0;
  font-weight: 500;
  color: var(--sf-muted);
  background: none;
  opacity: 1;
  white-space: nowrap;
}

.theme-sf .home-card-live.focused .home-card-title,
.theme-sf .home-card-live:hover .home-card-title { color: #fff; }

/* Janela menor que a TV (notebook, navegador não maximizado): tudo do
   destaque encolhe para caber entre o cabeçalho e os trilhos. */
@media (min-width: 1024px) and (max-width: 1440px), (min-width: 1024px) and (max-height: 940px) {
  .theme-sf .home-hero-content { max-width: 640px; }
  .theme-sf .home-hero-title { font-size: 52px; margin-bottom: 12px; }

  .theme-sf .home-hero-plot {
    font-size: 19px;
    margin-bottom: 18px;
    /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
    -webkit-line-clamp: 2;
  }

  .theme-sf .home-hero-btn { padding: 11px 32px; font-size: 20px; }

  .theme-sf .sf-topbar-link,
  .theme-sf .sf-topbar .home-search-btn { padding: 8px 14px; font-size: 18px; }
  .theme-sf .sf-profile-avatar { width: 38px; height: 38px; }
  .theme-sf .sf-profile-btn .sf-dot { left: 36px; }
}

/* ── Celular e tablet ────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .theme-sf {
    --sf-pad: 16px;
    --sf-header-h: 64px;
  }

  /* Sem a barra de baixo na Home: só a folga da área segura do aparelho. */
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
  .theme-sf .home-view { padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); }

  .theme-sf .home-header {
    align-items: center;
    gap: 10px;
  }

  .theme-sf .home-brand { flex: 0 1 auto; }
  .theme-sf .home-title { font-size: 20px; gap: 8px; white-space: nowrap; }

  .theme-sf .home-title img {
    width: 26px;
    height: 26px;
  }

  .theme-sf .sf-topbar { gap: 2px; }

  .theme-sf .sf-topbar-link,
  .theme-sf .sf-topbar .home-search-btn {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 15px;
  }

  .theme-sf .sf-profile-btn { gap: 6px; padding: 3px; }
  .theme-sf .sf-profile-avatar { width: 32px; height: 32px; font-size: 15px; }
  .theme-sf .sf-profile-btn .sf-dot { left: 30px; }
  .theme-sf .sf-profile-menu { min-width: 230px; }
  .theme-sf .sf-profile-menu::before { right: 14px; }
  .theme-sf .sf-profile-name { font-size: 14px; padding: 8px 18px 10px; }
  .theme-sf .sf-profile-item { min-height: 48px; padding: 10px 18px; font-size: 16px; }

  /* Barra do topo nas telas de catálogo: sem a barra de baixo, o conteúdo vai
     até o fim da tela; categorias em cima, lista embaixo. */
  .theme-sf .sf-topnav {
    gap: 10px;
    height: 60px;
    padding: 0 10px 0 14px;
  }

  .theme-sf .sf-topnav-brand { font-size: 20px; gap: 8px; }

  .theme-sf .sf-topnav-brand img {
    width: 26px;
    height: 26px;
  }

  .theme-sf .sf-topbar-sections { margin-right: 2px; }
  .theme-sf .sf-channel-body { flex-direction: column; }
  .theme-sf .sf-has-topbar .channel-main { padding-bottom: 24px; }

  /* Os atalhos são o caminho para Ao Vivo/Filmes/Séries agora que a barra de
     baixo saiu da Home — no celular eles voltam a aparecer. */
  .theme-sf .home-tiles {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
  }

  .theme-sf .home-tile { padding: 8px 14px; }
  .theme-sf .home-tile-icon,
  .theme-sf .home-tile-icon .icon { width: 20px; height: 20px; }
  .theme-sf .home-tile-label { font-size: 15px; }

  .theme-sf .home-hero {
    height: 72vh;
    min-height: 440px;
    max-height: 620px;
    margin-bottom: -40px;
  }

  .theme-sf .home-hero-shade {
    background:
      linear-gradient(0deg, var(--sf-bg) 0%, rgba(20, 20, 20, 0.75) 28%, transparent 60%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%);
  }

  .theme-sf .home-hero-content {
    right: var(--sf-pad);
    bottom: 70px;
  }

  .theme-sf .home-hero-badge .badge-pill { font-size: 13px; letter-spacing: 3px; }

  .theme-sf .home-hero-badge .badge-pill::before {
    width: 4px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
  }

  .theme-sf .home-hero-title { font-size: 34px; margin-bottom: 10px; }
  .theme-sf .home-hero-plot { font-size: 15px; margin-bottom: 14px; }

  .theme-sf .home-hero-btn {
    min-height: 44px;
    padding: 9px 28px;
    font-size: 18px;
  }

  .theme-sf .home-hero-dots { bottom: 52px; }

  .theme-sf .home-rail { margin-bottom: 2px; }
  .theme-sf .home-rail-title { font-size: 18px; }
  .theme-sf .home-rail-more { font-size: 14px; padding: 4px 8px; }
  .theme-sf .home-rail-track { gap: 6px; padding: 10px var(--sf-pad) 16px; }

  .theme-sf .home-card { width: 30vw; max-width: 150px; }
  .theme-sf .home-card-thumb { height: 45vw; max-height: 225px; }

  /* Sem hover no toque: o nome vai embaixo, discreto, em duas linhas. */
  .theme-sf .home-card-title {
    position: static;
    min-height: 0;
    padding: 6px 2px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--sf-muted);
    background: none;
    opacity: 1;
  }

  .theme-sf .home-card-sub { font-size: 11px; padding: 1px 6px; }
  .theme-sf .home-card-live .home-card-thumb { height: 17vw; max-height: 90px; }
  .theme-sf .home-card-live .poster-img { padding: 8px; }

  .theme-sf .home-card.focused,
  .theme-sf .home-card:hover { transform: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .theme-sf .home-card { width: 22vw; max-width: 200px; }
  .theme-sf .home-card-thumb { height: 33vw; max-height: 300px; }
}

/* ── Detalhe de filme e série (tela cheia) ───────────────────────────────── */
/* Sem trilho e sem barra lateral: a imagem larga do título ocupa a tela, como
   o destaque da Home; as temporadas viram abas dentro da página. */
.theme-sf .channel-view.sf-detail-mode {
  height: 100%;
  background: var(--sf-bg);
}

.theme-sf .sf-detail-mode .channel-main {
  padding: 0 0 60px;
  background: var(--sf-bg);
}

.theme-sf .sf-detail {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  padding: 120px var(--sf-pad) 48px;
  overflow: hidden;
}

.theme-sf .sf-detail-series { min-height: 68vh; }

.theme-sf .sf-detail-bg,
.theme-sf .sf-detail-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.theme-sf .sf-detail-bg {
  background-size: cover;
  background-position: center 20%;
}

/* Só o pôster (sem imagem larga): desfocado para preencher sem esticar. */
.theme-sf .sf-detail-bg-poster {
  filter: blur(30px) brightness(0.55);
  transform: scale(1.15);
}

.theme-sf .sf-detail-shade {
  background:
    linear-gradient(0deg, var(--sf-bg) 0%, rgba(20, 20, 20, 0.55) 30%, transparent 62%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 78%);
}

.theme-sf .sf-detail-body { max-width: 840px; }

.theme-sf .sf-detail-body > * {
  position: relative;
  z-index: 1;
}

.theme-sf .sf-detail-body > .sf-back {
  position: absolute;
  top: 32px;
  left: var(--sf-pad);
  z-index: 2;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.theme-sf .sf-detail-kicker {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}

.theme-sf .sf-detail-kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  margin-right: 12px;
  vertical-align: -4px;
  background: var(--sf-red);
}

.theme-sf .sf-detail-title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-sf .sf-detail-facts {
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 600;
  color: #e5e5e5;
}

.theme-sf .sf-detail-facts span + span::before {
  content: '\2022';
  margin: 0 12px;
  color: var(--sf-muted);
}

.theme-sf .sf-detail-plot {
  max-width: 760px;
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.45;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-sf .sf-detail-credit {
  margin-top: 8px;
  font-size: 18px;
  color: #e5e5e5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-sf .sf-detail-credit span {
  margin-right: 8px;
  color: var(--sf-muted);
}

.theme-sf .sf-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

/* Botões no padrão da TV: translúcidos parados, brancos no foco. */
.theme-sf .sf-detail .sf-play,
.theme-sf .sf-detail .watchlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: rgba(109, 109, 110, 0.7);
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
}

.theme-sf .sf-detail [data-focusable].focused,
.theme-sf .sf-detail [data-focusable]:hover {
  color: #000;
  background: #fff;
  border-color: #fff !important;
  box-shadow: none;
  transform: none;
}

.theme-sf .sf-detail-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 17px;
  color: #d2d2d2;
}

.theme-sf .sf-progress {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.theme-sf .sf-progress-fill {
  height: 100%;
  background: var(--sf-red);
}

/* Abas de temporada */
.theme-sf .sf-seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px var(--sf-pad) 20px;
}

.theme-sf .sf-season {
  padding: 8px 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #e5e5e5;
  background: rgba(42, 42, 42, 0.85);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.theme-sf .sf-season.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.theme-sf .sf-season.focused,
.theme-sf .sf-season:hover {
  color: #000;
  background: #fff;
  border-color: #fff !important;
  box-shadow: none;
  transform: none;
}

/* Episódios em cartões largos */
.theme-sf .sf-episodes { margin: 0 var(--sf-pad); }

.theme-sf .sf-episodes .empty-state {
  padding: 24px 0;
  color: var(--sf-muted);
}

.theme-sf .sf-episode {
  height: 156px;
  padding: 12px 16px;
  gap: 22px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
}

.theme-sf .sf-episode.focused,
.theme-sf .sf-episode:hover {
  background: #2a2a2a;
  border-color: #fff !important;
  box-shadow: none;
  transform: none;
}

.theme-sf .sf-ep-num {
  flex: 0 0 36px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--sf-muted);
}

.theme-sf .sf-ep-thumb {
  position: relative;
  flex: 0 0 236px;
  height: 132px;
  overflow: hidden;
  background: #232323;
  border-radius: 4px;
}

.theme-sf .sf-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sem imagem do episódio, a arte da série entra mais apagada. */
.theme-sf .sf-ep-thumb-art img { filter: brightness(0.7); }

.theme-sf .sf-ep-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  font-size: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-decel);
}

.theme-sf .sf-episode.focused .sf-ep-play,
.theme-sf .sf-episode:hover .sf-ep-play { opacity: 1; }

.theme-sf .sf-ep-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
}

.theme-sf .sf-ep-info {
  flex: 1;
  min-width: 0;
}

.theme-sf .sf-ep-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.theme-sf .sf-ep-title {
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-sf .sf-ep-dur {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--sf-muted);
}

.theme-sf .sf-ep-plot {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  color: #b3b3b3;
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .theme-sf .sf-detail {
    min-height: 62vh;
    padding: 90px var(--sf-pad) 24px;
  }

  .theme-sf .sf-detail-series { min-height: 56vh; }

  .theme-sf .sf-detail-body > .sf-back {
    top: 14px;
    padding: 6px 12px;
    font-size: 15px;
  }

  .theme-sf .sf-detail-kicker { font-size: 13px; letter-spacing: 3px; }

  .theme-sf .sf-detail-kicker::before {
    width: 4px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
  }

  .theme-sf .sf-detail-title { font-size: 32px; margin: 8px 0 10px; }
  .theme-sf .sf-detail-facts { font-size: 14px; }
  .theme-sf .sf-detail-facts span + span::before { margin: 0 8px; }
  .theme-sf .sf-detail-plot { font-size: 15px; margin-top: 10px; }
  .theme-sf .sf-detail-credit { font-size: 13px; }
  .theme-sf .sf-detail-actions { gap: 10px; margin-top: 18px; }

  .theme-sf .sf-detail .sf-play,
  .theme-sf .sf-detail .watchlist-btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .theme-sf .sf-detail-progress { font-size: 13px; }
  .theme-sf .sf-progress { width: 140px; }
  .theme-sf .sf-seasons { gap: 8px; padding: 4px var(--sf-pad) 12px; }
  .theme-sf .sf-season { padding: 6px 14px; font-size: 14px; }
}

/* Celular: a linha do episódio tem 104px (ver rowH em channel-list.ts). */
@media (max-width: 640px) {
  /* Quatro seções + Buscar + perfil não cabem com o nome da marca: fica só o
     símbolo. */
  .theme-sf .home-title,
  .theme-sf .sf-topnav-brand {
    gap: 0;
    font-size: 0;
  }

  .theme-sf .home-header,
  .theme-sf .sf-topnav { gap: 6px; }

  .theme-sf .sf-topbar-link,
  .theme-sf .sf-topbar .home-search-btn {
    padding: 6px 5px;
    font-size: 13px;
    white-space: nowrap;
  }

  .theme-sf .sf-profile-avatar { width: 28px; height: 28px; }
  .theme-sf .sf-profile-caret { display: none; }

  .theme-sf .sf-episode {
    height: 96px;
    padding: 8px 6px;
    gap: 12px;
  }

  .theme-sf .sf-ep-num { display: none; }
  .theme-sf .sf-ep-thumb { flex-basis: 128px; height: 72px; }

  .theme-sf .sf-ep-play {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    font-size: 12px;
    opacity: 1;
  }

  .theme-sf .sf-ep-title { font-size: 15px; }
  .theme-sf .sf-ep-dur { font-size: 12px; }

  .theme-sf .sf-ep-plot {
    font-size: 12px;
    /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
    -webkit-line-clamp: 2;
  }
}

/* ── Catálogo: Filmes, Séries (e a coluna de categorias, comum ao Ao Vivo) ─ */
.theme-sf .channel-view,
.theme-sf .channel-main {
  background: var(--sf-bg);
}

/* Busca escura e sem moldura; no foco, contorno branco. */
.theme-sf .channel-search {
  padding: 18px 0 14px;
  background: var(--sf-bg);
}

.theme-sf .channel-search-input {
  font-family: inherit;
  color: #fff;
  background: #1f1f1f;
  border: 2px solid transparent;
  border-radius: 4px;
}

.theme-sf .channel-search-input.focused,
.theme-sf .channel-search-input:focus {
  border-color: #fff !important;
  box-shadow: none;
  transform: none;
}

/* Pôster sem moldura: o foco cresce o cartaz e põe o anel branco nele. */
.theme-sf .poster-card {
  border: 0;
  border-radius: 4px;
}

.theme-sf .poster-thumb {
  background: #232323;
  border-radius: 4px;
  transition: box-shadow var(--dur-focus) var(--ease-focus);
}

.theme-sf .poster-card.focused,
.theme-sf .poster-card:hover {
  z-index: 5;
  background: transparent;
  border-color: transparent !important;
  box-shadow: none;
  transform: scale(1.06);
}

.theme-sf .poster-card.focused .poster-thumb,
.theme-sf .poster-card:hover .poster-thumb {
  box-shadow: 0 0 0 3px #fff, 0 14px 30px rgba(0, 0, 0, 0.7);
}

/* Título em uma linha: com duas, o cartaz daquela célula encolhia e a grade
   ficava com pôsteres de alturas diferentes. */
.theme-sf .poster-title {
  display: block;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
  font-size: 16px;
  color: #e5e5e5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-sf .poster-sub {
  font-size: 14px;
  color: #8c8c8c;
}

/* A estrela de salvar só aparece no cartaz em foco (ou se já está salvo). */
.theme-sf .catalog-save-btn {
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.65);
  border: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-decel);
}

.theme-sf .poster-card.focused .catalog-save-btn,
.theme-sf .poster-card:hover .catalog-save-btn,
.theme-sf .catalog-save-btn:focus,
.theme-sf .catalog-save-btn[aria-pressed="true"] { opacity: 1; }

/* Coluna de categorias (PC e TV): texto, sem ícones, a ativa com a marca
   vermelha à esquerda; no foco, branca com texto preto como o resto do tema. */
@media (min-width: 1024px) {
  .theme-sf .sidebar {
    background: var(--sf-bg);
    border-right: 1px solid #222;
  }

  .theme-sf .sidebar-header {
    padding: 28px 24px 14px;
    border-bottom: 0;
  }

  .theme-sf .sidebar-header h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
  }

  .theme-sf .channel-count { color: var(--sf-muted); }
  .theme-sf .playlist-tabs { border-bottom-color: #222; }
  .theme-sf .group-list { padding: 4px 12px 24px; }

  .theme-sf .group-item {
    margin: 2px 0;
    padding: 10px 14px;
    background: transparent;
    border-radius: 4px;
  }

  .theme-sf .group-icon { display: none; }

  .theme-sf .group-name {
    font-size: 18px;
    color: #b3b3b3;
  }

  .theme-sf .group-count {
    font-size: 14px;
    color: #6d6d6d;
  }

  .theme-sf .group-item.active {
    background: transparent;
    box-shadow: inset 3px 0 0 var(--sf-red);
  }

  .theme-sf .group-item.active .group-name {
    font-weight: 700;
    color: #fff;
  }

  .theme-sf .group-item.focused,
  .theme-sf .group-item:hover {
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: none;
  }

  .theme-sf .group-item.focused .group-name,
  .theme-sf .group-item:hover .group-name { color: #000; }

  .theme-sf .group-item.focused .group-count,
  .theme-sf .group-item:hover .group-count { color: #555; }

  .theme-sf .channel-main { padding: 8px 28px; }
}

/* Celular/tablet: as categorias já viram fileira de chips (mobile.css). */
@media (max-width: 1023px) {
  .theme-sf .sidebar {
    background: var(--sf-bg);
    border-bottom-color: #222;
  }

  .theme-sf .sidebar-header h2 {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
  }

  .theme-sf .group-item {
    background: #232323;
    border-radius: 999px;
  }

  .theme-sf .group-icon { display: none; }
  .theme-sf .group-name { color: #d2d2d2; }

  .theme-sf .group-item.active { background: #fff; }
  .theme-sf .group-item.active .group-name { font-weight: 700; color: #000; }

  /* No toque não existe foco: o cartaz não cresce, a estrela fica visível. */
  .theme-sf .poster-card.focused,
  .theme-sf .poster-card:hover { transform: none; }

  .theme-sf .catalog-save-btn { opacity: 1; }
  .theme-sf .poster-title { font-size: 13px; }
  .theme-sf .poster-sub { font-size: 12px; }
}

/* O destaque do tema segue a seleção do app (.focused). O contorno nativo do
   navegador num item clicado antes deixava dois itens marcados ao mesmo tempo.
   Só existe no navegador (a TV não conhece :focus-visible e ignora a regra). */
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
.theme-sf [data-focusable]:focus-visible:not(.focused) { outline: none; }

/* ── Ao Vivo: linhas com o que está passando e painel do canal ───────────── */
.theme-sf .sf-live-row {
  height: 92px;
  padding: 10px 16px;
  gap: 18px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
}

.theme-sf .sf-live-row.focused,
.theme-sf .sf-live-row:hover {
  background: #2a2a2a;
  border-color: #fff !important;
  box-shadow: none;
  transform: none;
}

.theme-sf .sf-live-row.playing {
  background: rgba(229, 9, 20, 0.12);
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--sf-red);
}

.theme-sf .sf-lr-num {
  flex: 0 0 40px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #6d6d6d;
}

.theme-sf .sf-lr-logo,
.theme-sf .sf-lp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #232323;
}

.theme-sf .sf-lr-logo {
  flex: 0 0 72px;
  height: 72px;
  padding: 8px;
  border-radius: 8px;
}

.theme-sf .sf-lr-logo img,
.theme-sf .sf-lp-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.theme-sf .sf-logo-letter {
  font-size: 30px;
  font-weight: 700;
  color: #d2d2d2;
}

.theme-sf .sf-lr-info {
  flex: 1;
  min-width: 0;
}

.theme-sf .sf-lr-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-sf .sf-lr-name-text {
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-sf .sf-live-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--sf-red);
  border-radius: 3px;
}

.theme-sf .sf-lr-now {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 16px;
  color: #b3b3b3;
}

.theme-sf .sf-lr-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-sf .sf-lr-until {
  flex: 0 0 auto;
  color: #6d6d6d;
}

.theme-sf .sf-lr-noepg { color: #6d6d6d; }

.theme-sf .sf-lr-progress {
  width: 100%;
  max-width: 360px;
  height: 3px;
  margin-top: 8px;
}

.theme-sf .sf-lr-next {
  flex: 0 0 260px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  color: #8c8c8c;
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.theme-sf .sf-lr-next span {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6d6d6d;
}

/* Painel do canal em destaque, à direita da lista. */
.theme-sf .sf-live-panel {
  flex: 0 0 440px;
  overflow-y: auto;
  padding: 32px;
  background: linear-gradient(180deg, #1c1c1c 0%, var(--sf-bg) 60%);
  border-left: 1px solid #222;
}

.theme-sf .sf-lp-logo {
  width: 140px;
  height: 140px;
  padding: 16px;
  border-radius: 12px;
}

.theme-sf .sf-lp-logo .sf-logo-letter { font-size: 56px; }

.theme-sf .sf-lp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 16px;
  color: var(--sf-muted);
}

.theme-sf .sf-lp-name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.theme-sf .sf-lp-label {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.theme-sf .sf-lp-label-next { margin-top: 28px; margin-bottom: 4px; }

.theme-sf .sf-lp-title {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.theme-sf .sf-lp-time {
  margin-top: 4px;
  font-size: 16px;
  color: #b3b3b3;
}

.theme-sf .sf-lp-progress {
  width: 100%;
  margin-top: 10px;
}

.theme-sf .sf-lp-desc {
  margin-top: 14px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  color: #d2d2d2;
  display: -webkit-box;
  /* stylelint-disable-next-line value-no-vendor-prefix, property-no-vendor-prefix */
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.theme-sf .sf-lp-empty {
  margin-top: 22px;
  font-size: 17px;
  color: var(--sf-muted);
}

.theme-sf .sf-lp-next {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 17px;
  color: #e5e5e5;
  border-bottom: 1px solid #222;
}

.theme-sf .sf-lp-next span {
  flex: 0 0 56px;
  font-variant-numeric: tabular-nums;
  color: var(--sf-muted);
}

.theme-sf .sf-lp-hint {
  margin-top: 28px;
  font-size: 14px;
  color: #6d6d6d;
}

/* O painel só cabe com folga em telas largas; entre 1280 e 1599 a coluna
   "A seguir" da linha sai para não espremer o nome do programa. */
@media (max-width: 1279px) {
  .theme-sf .sf-live-panel { display: none; }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  .theme-sf .sf-lr-next { display: none; }
}

/* Celular: linha de 76px (ver rowH em channel-list.ts). */
@media (max-width: 640px) {
  .theme-sf .sf-live-row {
    height: 70px;
    padding: 6px 4px;
    gap: 10px;
  }

  .theme-sf .sf-lr-num,
  .theme-sf .sf-lr-next { display: none; }

  .theme-sf .sf-lr-logo {
    flex-basis: 52px;
    height: 52px;
    padding: 6px;
  }

  .theme-sf .sf-logo-letter { font-size: 22px; }
  .theme-sf .sf-lr-name-text { font-size: 15px; }
  .theme-sf .sf-live-badge { padding: 2px 6px; font-size: 10px; }
  .theme-sf .sf-lr-now { margin-top: 2px; font-size: 12px; }
  .theme-sf .sf-lr-progress { max-width: none; margin-top: 6px; }
}

/* ── Player ──────────────────────────────────────────────────────────────── */
/* O OSD deixa de ser uma caixa no rodapé e vira a tela inteira: título em cima,
   programa/controles embaixo, escurecido só nas bordas. O meio não captura o
   clique, que segue para o vídeo e liga/desliga o OSD como antes. */
.theme-sf #view-player .player-osd {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 60px 44px;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 18%, transparent 32%,
    transparent 50%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.92) 100%);
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  pointer-events: none;
}

.theme-sf #view-player .player-osd > * { pointer-events: auto; }

.theme-sf .osd-channel {
  gap: 18px;
  margin: 0;
}

.theme-sf .osd-btn svg {
  width: 30px;
  height: 30px;
}

.theme-sf .osd-back,
.theme-sf .osd-fullscreen {
  width: 56px;
  min-width: 56px;
  height: 56px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.theme-sf .osd-channel-number {
  min-width: 0;
  font-size: 26px;
  font-weight: 600;
  color: #b3b3b3;
}

.theme-sf .osd-channel-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.theme-sf .osd-title { min-width: 0; }

.theme-sf .osd-channel-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.theme-sf .osd-channel-sub {
  margin-top: 6px;
  font-size: 20px;
  color: #d2d2d2;
}

.theme-sf .osd-badge-replay { background: #444; }

/* Programa e barra de progresso: empurrados para o rodapé (o "a seguir" do
   ao vivo vem logo abaixo, não no meio da tela). */
.theme-sf .osd-programme { margin: auto 0 0; }

.theme-sf .osd-now-label {
  font-size: 16px;
  letter-spacing: 3px;
  color: #b3b3b3;
}

.theme-sf .osd-programme-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}

.theme-sf .osd-programme-time { font-size: 20px; color: #d2d2d2; }
.theme-sf .osd-remaining { font-size: 18px; color: #8c8c8c; }

.theme-sf .osd-time-current,
.theme-sf .osd-time-end { font-size: 18px; }
.theme-sf .osd-time-current { font-weight: 600; color: #fff; }
.theme-sf .osd-time-end { color: #b3b3b3; }

.theme-sf .osd-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.theme-sf .osd-progress-bar {
  background: var(--sf-red);
  border-radius: 2px;
}

/* A barra clicável tem área de toque alta e a linha de 4px no meio dela. */
.theme-sf .osd-progress[data-seekbar] {
  height: 34px;
  padding: 15px 0;
  background-clip: content-box;
}

.theme-sf .osd-progress[data-seekbar] .osd-progress-bar::after {
  right: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-micro) var(--ease-decel);
}

.theme-sf .osd-progress[data-seekbar]:hover .osd-progress-bar::after { transform: translateY(-50%) scale(1.3); }

.theme-sf .osd-description {
  max-width: 900px;
  font-size: 20px;
  color: #d2d2d2;
}

.theme-sf .osd-next { font-size: 20px; color: #d2d2d2; }
.theme-sf .osd-next-label { font-size: 15px; color: #8c8c8c; }
.theme-sf .osd-next-time { color: #8c8c8c; }

.theme-sf .osd-message {
  margin: auto;
  font-size: 24px;
  color: #fff;
}

/* Controles de filme/série: ícones brancos soltos, play em círculo branco no
   centro, volume encostado à esquerda. */
.theme-sf .osd-transport {
  position: relative;
  gap: 22px;
  margin-top: 10px;
}

.theme-sf .osd-btn {
  min-width: 60px;
  height: 60px;
  padding: 0 12px;
  color: #fff;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
}

.theme-sf .osd-btn:hover,
.theme-sf .osd-btn:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.9);
}

.theme-sf .osd-btn-play {
  width: 76px;
  min-width: 76px;
  height: 76px;
  color: #000;
  background: #fff;
}

.theme-sf .osd-btn-play svg {
  width: 34px;
  height: 34px;
}

.theme-sf .osd-btn-play:hover,
.theme-sf .osd-btn-play:focus {
  color: #000;
  background: #e5e5e5;
  border-color: #fff;
}

.theme-sf .osd-volume {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: #d2d2d2;
}

.theme-sf .osd-volume .osd-btn { min-width: 52px; height: 52px; padding: 0; }

/* Volume: linha branca fina no lugar do controle azul do navegador. */
.theme-sf .osd-volume-slider {
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  /* stylelint-disable-next-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
  -webkit-appearance: none;
}

.theme-sf .osd-volume-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  /* stylelint-disable-next-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
  -webkit-appearance: none;
}

/* Lista de canais (←) e menu (OK) por cima do vídeo, no mesmo grafite. */
.theme-sf .player-sidebar,
.theme-sf .player-menu {
  background: rgba(20, 20, 20, 0.96);
  border-color: #222;
}

.theme-sf .player-sidebar .sidebar-title,
.theme-sf .player-menu .menu-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.theme-sf .player-sidebar .sidebar-title { border-bottom-color: #222; }

.theme-sf .player-sidebar .sidebar-search-input {
  background: #1f1f1f;
  border-color: transparent;
  border-radius: 4px;
}

.theme-sf .player-sidebar .sidebar-search-input.focused,
.theme-sf .player-sidebar .sidebar-search-input:focus {
  background: #1f1f1f;
  border-color: #fff;
}

.theme-sf .player-sidebar .sidebar-tab.active {
  color: #fff;
  border-bottom-color: var(--sf-red);
  background: transparent;
}

.theme-sf .player-sidebar .sidebar-ch-item,
.theme-sf .player-menu .menu-item { border-radius: 6px; }

.theme-sf .player-sidebar .sidebar-ch-item.playing {
  background: rgba(229, 9, 20, 0.12);
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--sf-red);
}

.theme-sf .player-sidebar .sidebar-ch-item.focused,
.theme-sf .player-sidebar .sidebar-ch-item.playing.focused,
.theme-sf .player-menu .menu-item.focused {
  background: #2a2a2a;
  border-color: #fff;
}

.theme-sf .player-menu .menu-item:hover {
  background: #232323;
  border-color: #6d6d6d;
}

@media (max-width: 1023px) {
  .theme-sf #view-player .player-osd { padding: 14px 14px 18px; }
  .theme-sf .osd-channel { gap: 10px; }

  .theme-sf .osd-back,
  .theme-sf .osd-fullscreen {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .theme-sf .osd-btn svg { width: 24px; height: 24px; }
  .theme-sf .osd-channel-number { font-size: 16px; }
  .theme-sf .osd-channel-logo { width: 36px; height: 36px; }
  .theme-sf .osd-channel-name { font-size: 20px; }
  .theme-sf .osd-channel-sub { margin-top: 3px; font-size: 13px; }
  .theme-sf .osd-now-label { font-size: 12px; letter-spacing: 2px; }
  .theme-sf .osd-programme-title { font-size: 18px; }

  .theme-sf .osd-programme-time,
  .theme-sf .osd-remaining,
  .theme-sf .osd-time-current,
  .theme-sf .osd-time-end,
  .theme-sf .osd-description,
  .theme-sf .osd-next { font-size: 13px; }

  .theme-sf .osd-transport { gap: 10px; }
  .theme-sf .osd-btn { min-width: 46px; height: 46px; }

  .theme-sf .osd-btn-play {
    width: 58px;
    min-width: 58px;
    height: 58px;
  }

  .theme-sf .osd-btn-play svg { width: 26px; height: 26px; }

  /* No celular o volume é o do aparelho: o controle sai do centro da fila. */
  .theme-sf .osd-volume { position: static; transform: none; }
  .theme-sf .osd-volume-slider,
  .theme-sf .osd-volume [data-volume-label] { display: none; }
}
