/* bricolage-grotesque-vietnamese-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/bricolage-grotesque-vietnamese-wght-normal-BUzh504Q.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* bricolage-grotesque-latin-ext-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/bricolage-grotesque-latin-ext-wght-normal-CcLUaPy7.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* bricolage-grotesque-latin-wght-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* manrope-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-cyrillic-ext-wght-normal-C8S-KRRz.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* manrope-cyrillic-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* manrope-greek-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-greek-wght-normal-DL7QRZyv.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* manrope-vietnamese-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* manrope-latin-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* manrope-latin-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/play/assets/manrope-latin-wght-normal-DHIcAJRg.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Play+ — "sala de projeção": fundo quase preto azulado, luz âmbar de letreiro.
   Unidades em rem com base fluida: o mesmo layout escala de TV Box 720p a TV 4K. */

:root {
  --bg: #0b0d12;
  --bg-2: #10131b;
  --surface: #161a24;
  --surface-2: #1d2230;
  --line: rgba(236, 231, 221, 0.08);
  --text: #ece7dd;
  --muted: #8f93a1;
  --amber: #e8141b;
  --amber-deep: #b80d12;
  --amber-rgb: 232, 20, 27;
  --amber-glow: rgba(var(--amber-rgb), 0.35);
  /* Texto sobre o destaque (troca para branco quando o revendedor escolhe uma cor escura). */
  --on-amber: #ffffff;
  --live: #ff5a4e;
  --danger: #ff6b5e;
  --radius: 0.9rem;
  --display: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Manrope Variable", "Manrope", system-ui, sans-serif;
  --sidebar: 5.6rem;
  color-scheme: dark;
}

html {
  /* 1920px → 20px; 1280px → 13.3px; celulares ficam em 13–14px. */
  font-size: 1.04vw;
  font-size: clamp(13px, 1.04vw, 24px);
  background: #0b0d12;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope Variable", "Manrope", system-ui, sans-serif;
  font-family: var(--body);
  color: #ece7dd;
  color: var(--text);
  /* O brilho do fundo fica em body::before, numa camada própria: assim mover o
     foco não obriga a TV a redesenhar o gradiente da tela inteira. A cor de
     base vem do html (o body fica transparente para a camada aparecer). */
  background: transparent;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(232, 20, 27, 0.07), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(64, 98, 255, 0.06), transparent 60%);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(var(--amber-rgb), 0.07), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(64, 98, 255, 0.06), transparent 60%);
  will-change: transform;
}

#root {
  height: 100vh;
}

button {
  font: inherit;
}

img {
  display: block;
}

.muted {
  color: #8f93a1;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Foco do controle remoto                                             */
/* ------------------------------------------------------------------ */

.focusable {
  cursor: pointer;
  outline: none;
  /* Só o zoom anima: transform roda na placa de vídeo. Sombra e cor animadas
     redesenhavam o item a cada quadro e pesavam no Fire Stick. */
  transition: transform 140ms ease-out;
}

/* Anel nítido, sem brilho desfocado (desfoque é o efeito mais caro de desenhar). */
.is-focused {
  box-shadow: 0 0 0 0.16rem #e8141b;
  box-shadow: 0 0 0 0.16rem var(--amber);
}

.using-pointer .is-focused {
  box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Botões, campos, estados                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: #1d2230;
  background: var(--surface-2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn.is-focused {
  transform: scale(1.04);
}

.btn-primary {
  background: linear-gradient(180deg, #e8141b, #b80d12);
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #ffffff;
  color: var(--on-amber);
}

.btn-danger {
  background: rgba(255, 107, 94, 0.14);
  color: #ff6b5e;
  color: var(--danger);
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  transition: box-shadow 140ms ease-out;
}

html.no-flexgap .field > * + * {
  margin-top: 0.4rem;
}

.field-toggle {
  position: absolute;
  right: 0.6rem;
  bottom: 0.45rem;
  display: flex;
  border: 0;
  padding: 0.45rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #8f93a1;
  color: var(--muted);
  cursor: pointer;
}

.field-toggle:hover {
  color: #ece7dd;
  color: var(--text);
}

.field-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f93a1;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ece7dd;
  color: var(--text);
  font: 600 1.25rem "Manrope Variable", "Manrope", system-ui, sans-serif;
  font: 600 1.25rem var(--body);
  user-select: text;
}

.field.is-focused .field-label {
  color: #e8141b;
  color: var(--amber);
}

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 12rem;
  height: 100%;
  text-align: center;
  color: #8f93a1;
  color: var(--muted);
  padding: 2rem;
}

html.no-flexgap .state > * + * {
  margin-top: 0.8rem;
}

.state strong {
  color: #ece7dd;
  color: var(--text);
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.3rem;
}

.spinner {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 0.22rem solid rgba(232, 20, 27, 0.18);
  border: 0.22rem solid rgba(var(--amber-rgb), 0.18);
  border-top-color: #e8141b;
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}

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

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(232, 20, 27, 0.14);
  background: rgba(var(--amber-rgb), 0.14);
  color: #e8141b;
  color: var(--amber);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff5a4e;
  color: var(--live);
}

html.no-flexgap .live-tag > * + * {
  margin-left: 0.4rem;
}

.live-tag::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff5a4e;
  background: var(--live);
  box-shadow: 0 0 0.6rem #ff5a4e;
  box-shadow: 0 0 0.6rem var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-weight: 700;
  color: #8f93a1;
  color: var(--muted);
  background: #1d2230;
  background: var(--surface-2);
}

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

.login {
  height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 0 7vw;
}

.login-hero {
  position: relative;
}

.marquee {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

html.no-flexgap .marquee > * + * {
  margin-left: 0.7rem;
}

.marquee-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e8141b;
  background: var(--amber);
  box-shadow: 0 0 1rem rgba(232, 20, 27, 0.35);
  box-shadow: 0 0 1rem var(--amber-glow);
  animation: bulbs 2.4s ease-in-out infinite;
}

.marquee-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.marquee-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes bulbs {
  50% {
    opacity: 0.25;
    box-shadow: none;
  }
}

.wordmark {
  margin: 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 6.4rem;
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 85;
}

.wordmark span {
  display: block;
  color: #e8141b;
  color: var(--amber);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 1.6rem 0 0;
  font-size: 1.3rem;
  color: #8f93a1;
  color: var(--muted);
  max-width: 22rem;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.4rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(29, 34, 48, 0.85), rgba(22, 26, 36, 0.85));
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.45);
}

html.no-flexgap .login-card > * + * {
  margin-top: 1rem;
}

.login-card h2 {
  margin: 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.login-card > .muted {
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.login-card .btn {
  margin-top: 0.6rem;
  min-height: 3.4rem;
  font-size: 1.1rem;
}

/* "Testar com demonstração": secundário, logo abaixo do Entrar. */
.login-card .btn.login-demo {
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-demo svg {
  width: 1.3rem;
  height: 1.3rem;
}

.lists-demo-note {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.login-error {
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  background: rgba(255, 107, 94, 0.12);
  color: #ff6b5e;
  color: var(--danger);
  font-weight: 600;
}

.login-playlists {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

html.no-flexgap .login-playlists > * + * {
  margin-top: 0.7rem;
}

.login-card .btn.login-playlist {
  margin-top: 0;
  justify-content: flex-start;
  gap: 0.8rem;
  background: rgba(232, 20, 27, 0.12);
  background: rgba(var(--amber-rgb), 0.12);
  border: 1px solid rgba(232, 20, 27, 0.35);
  border: 1px solid rgba(var(--amber-rgb), 0.35);
}

.login-playlist svg {
  width: 1.4rem;
  height: 1.4rem;
  color: #e8141b;
  color: var(--amber);
}

.login-or {
  margin: 0.6rem 0 0.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8f93a1;
  color: var(--muted);
}

.login-device {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #8f93a1;
  color: var(--muted);
}

html.no-flexgap .login-device > * + * {
  margin-left: 1.2rem;
}

html.no-flexgap .login-device > * {
  margin-bottom: 0.4rem;
}

.login-meta {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #8f93a1;
  color: var(--muted);
  text-align: center;
}

/* Tela deitada (TV, TV box, celular): o cartão nunca passa da altura da tela.
   Com muitas listas salvas, ele rola por dentro (o foco do controle acompanha). */
@media (orientation: landscape) {
  .login-card {
    max-height: calc(100vh - 2.4rem);
    overflow-y: auto;
    scrollbar-width: none;
    gap: 0.8rem;
    padding: 1.8rem 2.2rem;
  }

  .login-card::-webkit-scrollbar {
    display: none;
  }

  .login-card > * {
    flex-shrink: 0;
  }

  .login-card > .muted {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
  }

  .login-card .btn {
    margin-top: 0.3rem;
  }
}

/* Celular deitado e telas baixas: tudo mais compacto. */
@media (orientation: landscape) and (max-height: 560px) {
  .login {
    gap: 2rem;
    padding: 0 4vw;
  }

  .login-card {
    max-height: calc(100vh - 1.2rem);
    gap: 0.55rem;
    padding: 1.1rem 1.4rem;
    border-radius: 1.2rem;
  }

  .login-card h2 {
    font-size: 1.5rem;
  }

  .login-card > .muted {
    display: none;
  }

  .field {
    padding: 0.45rem 0.9rem;
    gap: 0.2rem;
  }

  .field input {
    font-size: 1.1rem;
  }

  .login-card .btn {
    min-height: 2.8rem;
  }

  .login-card .btn.login-playlist {
    min-height: 2.6rem;
  }

  .marquee,
  .tagline {
    display: none;
  }

  .wordmark {
    font-size: 4.4rem;
  }

  .login .login-logo {
    max-width: 18rem;
    max-width: min(18rem, 80%);
    max-height: 8rem;
    margin: 0;
  }

  .login .wordmark-logo img {
    width: 11rem;
  }
}

/* ------------------------------------------------------------------ */
/* Estrutura principal                                                 */
/* ------------------------------------------------------------------ */

.home {
  display: flex;
  height: 100vh;
}

.sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 5.6rem;
  width: var(--sidebar);
  padding: 1.6rem 0.8rem;
  background: linear-gradient(90deg, rgba(8, 9, 13, 0.98), rgba(8, 9, 13, 0.9));
  border-right: 1px solid rgba(236, 231, 221, 0.08);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

html.no-flexgap .sidebar > * + * {
  margin-top: 0.5rem;
}

/* Menu aberto: abre de uma vez (sem animação) e fica POR CIMA do conteúdo. A margem
   negativa devolve a largura extra, então a tela de trás não é rediagramada (antes
   cada abertura refazia o layout de todas as capas, quadro a quadro, no Fire Stick). */
.sidebar[data-has-focus] {
  width: 15rem;
  margin-right: calc(5.6rem - 15rem);
  margin-right: calc(var(--sidebar) - 15rem);
  background: #08090d;
}

.brand-mini {
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  padding: 0 0.95rem 1.4rem;
}

.brand-mini span {
  color: #e8141b;
  color: var(--amber);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.2rem;
  padding: 0 1rem;
  border-radius: 0.8rem;
  color: #8f93a1;
  color: var(--muted);
  white-space: nowrap;
}

html.no-flexgap .nav-item > * + * {
  margin-left: 1rem;
}

.nav-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-label {
  font-weight: 700;
  opacity: 0;
}

.sidebar[data-has-focus] .nav-label {
  opacity: 1;
}

.nav-item.is-active {
  color: #e8141b;
  color: var(--amber);
}

.nav-item.is-focused {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
  box-shadow: none;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0 0.6rem;
  font-size: 0.7rem;
  color: #8f93a1;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
}

.sidebar[data-has-focus] .sidebar-foot {
  opacity: 1;
}

.content {
  flex: 1;
  min-width: 0;
  height: 100vh;
}

.col {
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.col::-webkit-scrollbar {
  display: none;
}

/* Categorias */

.col-categories {
  flex: none;
  /* Proporcional à tela: em TV box (960px) não rouba espaço dos canais. */
  width: 21vw;
  width: clamp(12rem, 21vw, 19rem);
  padding: 1.6rem 0.8rem 4rem 1.2rem;
  border-right: 1px solid rgba(236, 231, 221, 0.08);
  border-right: 1px solid var(--line);
  background: rgba(16, 19, 27, 0.6);
}

.cat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  color: #8f93a1;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.25;
}

html.no-flexgap .cat > * + * {
  margin-left: 0.6rem;
}

.cat-icon {
  font-size: 1.2rem;
  color: #e8141b;
  color: var(--amber);
}

.cat.is-active {
  color: #ece7dd;
  color: var(--text);
  background: #161a24;
  background: var(--surface);
}

.cat.is-focused {
  background: #1d2230;
  background: var(--surface-2);
  color: #ece7dd;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* TV ao vivo                                                          */
/* ------------------------------------------------------------------ */

.live,
.vod,
.guide {
  display: flex;
  height: 100vh;
}

.col-channels {
  flex: 1;
  min-width: 0;
  padding: 1.6rem 1rem 4rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.8rem;
}

html.no-flexgap .channel > * + * {
  margin-left: 1rem;
}

.channel + .channel {
  margin-top: 0.2rem;
}

.channel.is-focused {
  background: #1d2230;
  background: var(--surface-2);
  transform: translateX(0.3rem);
}

.channel-num {
  width: 2.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #8f93a1;
  color: var(--muted);
  text-align: right;
}

.channel.is-focused .channel-num {
  color: #e8141b;
  color: var(--amber);
}

.channel-logo {
  flex: none;
  width: 4.2rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 0.4rem;
  font-size: 0.8rem;
}

.channel-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html.no-flexgap .channel-text > * + * {
  margin-top: 0.25rem;
}

/* Nome completo do canal: quebra em até 2 linhas em vez de cortar. */
.channel-name {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.quality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

html.no-flexgap .quality-list > * + * {
  margin-left: 0.3rem;
}

html.no-flexgap .quality-list > * {
  margin-bottom: 0.3rem;
}

.quality {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.38rem;
  border-radius: 0.3rem;
  color: #8f93a1;
  color: var(--muted);
  background: rgba(236, 231, 221, 0.07);
}

.channel.is-focused .quality {
  color: #e8141b;
  color: var(--amber);
  background: rgba(232, 20, 27, 0.14);
  background: rgba(var(--amber-rgb), 0.14);
}

.info-head .quality-list {
  margin-top: 0.5rem;
}

.col-info {
  flex: none;
  width: 25vw;
  width: clamp(15rem, 25vw, 25rem);
  padding: 2.2rem 2rem;
  border-left: 1px solid rgba(236, 231, 221, 0.08);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.9), rgba(11, 13, 18, 0.9));
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

html.no-flexgap .col-info > * + * {
  margin-top: 1.6rem;
}

.info-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

html.no-flexgap .info-head > * + * {
  margin-left: 1.2rem;
}

.info-logo {
  flex: none;
  width: 6rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem;
  font-size: 1.2rem;
}

.info-title {
  margin: 0.3rem 0 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.epg-now h3 {
  margin: 0.4rem 0 0.8rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.epg-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8141b;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 0.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b80d12, #e8141b);
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
}

.epg-desc {
  margin: 1rem 0 0;
  color: #8f93a1;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg-next {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(236, 231, 221, 0.08);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

html.no-flexgap .epg-next > * + * {
  margin-top: 0.8rem;
}

.epg-next li {
  display: flex;
  gap: 1rem;
  color: #8f93a1;
  color: var(--muted);
}

html.no-flexgap .epg-next li > * + * {
  margin-left: 1rem;
}

.hint {
  margin-top: auto;
  font-size: 0.8rem;
  color: #8f93a1;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Filmes e séries                                                     */
/* ------------------------------------------------------------------ */

.col-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.grid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.6rem 2rem 0;
  font-size: 0.85rem;
}

html.no-flexgap .grid-head > * + * {
  margin-left: 0.8rem;
}

html.no-flexgap .grid-head > * {
  margin-bottom: 0.8rem;
}

.sort-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem;
}

html.no-flexgap .sort-chips > * + * {
  margin-left: 0.5rem;
}

html.no-flexgap .sort-chips > * {
  margin-bottom: 0.5rem;
}

.sort-label {
  color: #8f93a1;
  color: var(--muted);
  margin-right: 0.2rem;
}

.chip.chip-small {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.search-bar {
  padding: 1.6rem 2rem 0;
}

.grid-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.grid-wrap::-webkit-scrollbar {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.8rem 1.2rem;
  padding: 1.2rem 2rem 5rem;
}

.poster {
  border-radius: 0.9rem;
  border-radius: var(--radius);
}

.poster.is-focused {
  box-shadow: none;
  transform: scale(1.06);
}

.poster-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #161a24;
  background: var(--surface);
}

.poster.is-focused .poster-art {
  box-shadow: 0 0 0 0.18rem #e8141b;
  box-shadow: 0 0 0 0.18rem var(--amber);
}

.poster-art img,
.poster-art .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  color: #ece7dd;
  color: var(--text);
}

.poster-rating {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(11, 13, 18, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  color: #e8141b;
  color: var(--amber);
}

.poster-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: #8f93a1;
  color: var(--muted);
}

.poster.is-focused .poster-title {
  color: #ece7dd;
  color: var(--text);
}

/* Detalhe de série */

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  background: #0b0d12;
  background: var(--bg);
}

.overlay-dim {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 9, 0.82);
}

.detail {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Botão Voltar das fichas de filme e série (controle: ▲ a partir dos botões; toque/mouse: clique). */
.detail-back {
  position: absolute;
  top: 0.8rem;
  left: 1.6rem;
  z-index: 2;
}

.detail-back .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

html.no-flexgap .detail-back .chip > * + * {
  margin-left: 0.4rem;
}

.detail-back svg {
  width: 1.1em;
  height: 1.1em;
}

.detail-back ~ .detail-body {
  padding-top: 4.4rem;
}

.detail-backdrop {
  position: absolute;
  top: -2rem;
  right: -2rem;
  bottom: -2rem;
  left: -2rem;
  background-size: cover;
  background-position: center 20%;
  opacity: 0.18;
  filter: saturate(0.8);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #0b0d12 25%, rgba(11, 13, 18, 0.7) 60%, #0b0d12),
    linear-gradient(0deg, #0b0d12, transparent 50%);
  background: linear-gradient(90deg, var(--bg) 25%, rgba(11, 13, 18, 0.7) 60%, var(--bg)),
    linear-gradient(0deg, var(--bg), transparent 50%);
}

.detail-body {
  position: relative;
  display: flex;
  gap: 3rem;
  height: 100%;
  padding: 3.2rem 4rem 0;
}

html.no-flexgap .detail-body > * + * {
  margin-left: 3rem;
}

.detail-poster {
  flex: none;
  width: 16rem;
  aspect-ratio: 2 / 3;
  border-radius: 1.1rem;
  object-fit: cover;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6);
  font-size: 1.1rem;
  padding: 1rem;
  text-align: center;
}

.detail-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-title {
  margin: 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.detail-meta {
  margin: 0.8rem 0 0;
  color: #e8141b;
  color: var(--amber);
  font-weight: 700;
}

.detail-plot {
  margin: 1rem 0 0;
  max-width: 48rem;
  color: #8f93a1;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seasons {
  display: flex;
  gap: 0.6rem;
  margin: 1.8rem 0 1rem;
  padding: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}

html.no-flexgap .seasons > * + * {
  margin-left: 0.6rem;
}

.chip {
  flex: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #161a24;
  background: var(--surface);
  font-weight: 700;
  color: #8f93a1;
  color: var(--muted);
}

.chip.is-active {
  color: #ece7dd;
  color: var(--text);
  background: #1d2230;
  background: var(--surface-2);
}

.chip.is-focused {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

.episodes {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0.3rem 4rem;
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
}

.episode {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
}

html.no-flexgap .episode > * + * {
  margin-left: 1.2rem;
}

.episode.is-focused {
  background: #1d2230;
  background: var(--surface-2);
}

.episode-num {
  width: 2.2rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8141b;
  color: var(--amber);
  text-align: right;
}

.episode-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #e8141b;
  color: var(--amber);
  background: rgba(232, 20, 27, 0.12);
  background: rgba(var(--amber-rgb), 0.12);
}

.episode-play svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.4;
  margin-left: 0.12rem;
}

.episode.is-focused .episode-play {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

.episode.is-focused .episode-play svg {
  fill: currentColor;
}

.episode-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Conta e diálogo */

.account {
  padding: 3rem 4rem;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.account-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

html.no-flexgap .account-grid > * + * {
  margin-left: 3rem;
}

html.no-flexgap .account-grid > * {
  margin-bottom: 3rem;
}

.account-grid .account-list {
  flex: 1 1 26rem;
  min-width: 0;
  max-width: 40rem;
}

.account-side {
  flex: 1 1 18rem;
  min-width: 0;
  max-width: 34rem;
}

.account-list dd {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.account-side .support {
  margin-top: 1.6rem;
}

.screen-title {
  margin: 0 0 2rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: -0.03em;
}

.account-list {
  margin: 0 0 2.4rem;
  border-top: 1px solid rgba(236, 231, 221, 0.08);
  border-top: 1px solid var(--line);
}

.account-list div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(236, 231, 221, 0.08);
  border-bottom: 1px solid var(--line);
}

html.no-flexgap .account-list div > * + * {
  margin-left: 2rem;
}

.account-list dt {
  color: #8f93a1;
  color: var(--muted);
}

.account-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.dialog {
  padding: 2.4rem 2.8rem;
  border-radius: 1.4rem;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  text-align: center;
}

.dialog h2 {
  margin: 0 0 1.8rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.8rem;
}

.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

html.no-flexgap .dialog-actions > * + * {
  margin-left: 1rem;
}

.update-dialog {
  width: 34rem;
  width: min(34rem, calc(100vw - 2rem));
  text-align: left;
}

.update-dialog h2 {
  margin: 0.8rem 0 0.4rem;
}

.update-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  color: #e8141b;
  color: var(--amber);
}

.update-version {
  color: #e8141b;
  color: var(--amber);
}

.update-notes {
  margin: 1.2rem 0 1.6rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.update-progress {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

html.no-flexgap .update-progress > * + * {
  margin-top: 0.6rem;
}

.update-msg {
  margin: 0 0 1.6rem;
  line-height: 1.5;
}

.update-dialog .dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Player web (navegador, Tizen, webOS)                                */
/* ------------------------------------------------------------------ */

.player {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background: #000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 0 -1.7rem;
  border-radius: 50%;
  border: 0.28rem solid rgba(232, 20, 27, 0.18);
  border: 0.28rem solid rgba(var(--amber-rgb), 0.18);
  border-top-color: #e8141b;
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}

.player-error {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.2rem;
  text-align: center;
}

html.no-flexgap .player-error > * + * {
  margin-top: 1.2rem;
}

.player-error button,
.player-close {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
  font-weight: 800;
  cursor: pointer;
}

.player-osd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 3rem 3.6rem 2.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 200ms ease-out,
    transform 200ms ease-out;
}

html.no-flexgap .player-osd > * + * {
  margin-left: 1.4rem;
}

.player-osd:not(.is-visible) {
  pointer-events: none;
}

.player-osd.is-visible {
  opacity: 1;
  transform: none;
}

/* Próximo episódio (último minuto). */
.next-card {
  position: absolute;
  right: 2.4rem;
  bottom: 6rem;
  z-index: 6;
  display: flex;
  gap: 1.2rem;
  width: 34rem;
  width: min(34rem, calc(100vw - 2rem));
  padding: 1.2rem;
  border-radius: 1rem;
  background: rgba(11, 13, 18, 0.9);
  box-shadow:
    0 0 0 1px rgba(236, 231, 221, 0.12),
    0 1.6rem 3rem rgba(0, 0, 0, 0.5);
  animation: next-in 260ms ease-out;
}
html.no-flexgap .next-card > * + * {
  margin-left: 1.2rem;
}

@keyframes next-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

.next-thumb {
  flex: none;
  width: 9.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.6rem;
}

.next-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html.no-flexgap .next-body > * + * {
  margin-top: 0.25rem;
}

.next-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8141b;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.next-body strong {
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.2rem;
}

.next-sub {
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.9rem;
}

.next-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

html.no-flexgap .next-actions > * + * {
  margin-left: 0.6rem;
}

.next-play,
.next-cancel {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.next-play {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

.next-cancel {
  background: rgba(236, 231, 221, 0.12);
  color: #ece7dd;
  color: var(--text);
}

.next-hint {
  margin-top: 0.4rem;
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Lista de canais sobre o vídeo (o canal atual continua tocando atrás). */
.player-list {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30rem;
  width: min(30rem, 92vw);
  padding: 1.4rem 1rem 2rem;
  overflow-y: auto;
  scrollbar-width: none;
  background: linear-gradient(90deg, rgba(8, 9, 13, 0.88), rgba(8, 9, 13, 0.62));
  backdrop-filter: blur(6px);
  transform: translateX(-104%);
  transition: transform 220ms ease-out;
  z-index: 5;
}

.player-list::-webkit-scrollbar {
  display: none;
}

.player-list.is-open {
  transform: none;
}

.player-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0.6rem 1rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.player-list-head small {
  font-family: "Manrope Variable", "Manrope", system-ui, sans-serif;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: #8f93a1;
  color: var(--muted);
}

.player-list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.55rem 0.6rem;
  background: transparent;
  color: #ece7dd;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

html.no-flexgap .player-list-item > * + * {
  margin-left: 0.8rem;
}

.player-list-item.is-cursor {
  background: rgba(232, 20, 27, 0.18);
  background: rgba(var(--amber-rgb), 0.18);
  box-shadow: inset 0 0 0 0.12rem #e8141b;
  box-shadow: inset 0 0 0 0.12rem var(--amber);
}

.player-list-num {
  width: 2rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
  color: #8f93a1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.player-list-item img,
.player-list-logo {
  flex: none;
  width: 3rem;
  height: 2rem;
  object-fit: contain;
}

.player-list-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.player-list-name small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8f93a1;
  color: var(--muted);
}

.player-list-live {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff5a4e;
  color: var(--live, #ff5a5a);
}

.player-list-item.is-playing .player-list-num {
  color: #e8141b;
  color: var(--amber);
}

.player-quality {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html.no-flexgap .player-quality > * + * {
  margin-left: 0.5rem;
}

.player-quality-hint {
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

.quality-btn {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ece7dd;
  color: var(--text);
  background: rgba(236, 231, 221, 0.12);
  cursor: pointer;
}

.quality-btn.is-active {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

.player-osd h2 {
  margin: 0.3rem 0 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 2rem;
}

.player-osd p {
  margin: 0.3rem 0 0;
  color: #8f93a1;
  color: var(--muted);
}

.player-logo {
  width: 6rem;
  height: 4rem;
  object-fit: contain;
}

/* Informações da transmissão: só os números, discretos, no canto superior direito. */
.player-stats {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  z-index: 3;
  color: #ece7dd;
  font-size: 0.8rem;
  text-align: right;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.player-stats.is-visible {
  opacity: 0.85;
  pointer-events: auto;
}
.player-stats p {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
}
.player-stats-bar {
  display: block;
  height: 2px;
  margin-top: 0.3rem;
  border-radius: 1rem;
  background: rgba(236, 231, 221, 0.2);
  overflow: hidden;
}
.player-stats-bar > span {
  display: block;
  height: 100%;
  background: #e8141b;
  background: var(--accent, var(--amber));
  transition: width 0.6s;
}
.player-stats small {
  display: none;
}

.player-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2.4rem 3rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

html.no-flexgap .player-top > * + * {
  margin-left: 1.4rem;
}

.player-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.player-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  background: rgba(11, 13, 18, 0.85);
  color: #ece7dd;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(236, 231, 221, 0.14);
}

html.no-flexgap .player-back > * + * {
  margin-left: 0.6rem;
}

.player-back:hover,
.player-back:focus-visible {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

.player-hint {
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.9rem;
}

.player-title {
  display: flex;
  flex-direction: column;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.player-title small {
  font-family: "Manrope Variable", "Manrope", system-ui, sans-serif;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #8f93a1;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Início (visão geral)                                                */
/* ------------------------------------------------------------------ */

.overview {
  flex: 1;
  padding: 2.4rem 0 5rem;
}

.overview-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 3rem 1rem;
}

html.no-flexgap .overview-hero > * + * {
  margin-left: 2rem;
}

.overview-hero .screen-title {
  margin: 0.2rem 0 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e8141b;
  color: var(--amber);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

html.no-flexgap .hero-meta > * + * {
  margin-left: 0.7rem;
}

.hero-meta .dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #8f93a1;
  background: var(--muted);
}

.rail {
  margin-top: 1.8rem;
}

.rail-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0 3rem;
}

html.no-flexgap .rail-head > * + * {
  margin-left: 0.8rem;
}

.rail-head h2 {
  margin: 0;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.rail-head .muted {
  font-size: 0.85rem;
}

.rail-track {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 3rem 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding: 0 3rem;
}

html.no-flexgap .rail-track > * + * {
  margin-left: 1.2rem;
}

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

.resume-card {
  flex: none;
  width: 18rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
}

.resume-card.is-focused {
  box-shadow: none;
  transform: scale(1.04);
}

.resume-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #161a24;
  background: var(--surface);
}

.resume-card.is-focused .resume-art {
  box-shadow: 0 0 0 0.18rem #e8141b;
  box-shadow: 0 0 0 0.18rem var(--amber);
}

.resume-art img,
.resume-art .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.resume-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 55%);
}

.resume-progress {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  height: 0.28rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.resume-progress span {
  display: block;
  height: 100%;
  background: #e8141b;
  background: var(--amber);
}

.resume-title {
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #8f93a1;
  color: var(--muted);
}

.channel-tile {
  position: relative;
  flex: none;
  width: 11rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

html.no-flexgap .channel-tile > * + * {
  margin-top: 0.7rem;
}

.channel-tile.is-focused {
  background: #1d2230;
  background: var(--surface-2);
  transform: scale(1.05);
}

.channel-tile-logo {
  width: 7rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 0.5rem;
  font-size: 1.2rem;
}

.channel-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Jogos de hoje */
.game-card {
  position: relative;
  flex: none;
  width: 17rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1d2230, #161a24);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}
html.no-flexgap .game-card > * + * {
  margin-top: 0.75rem;
}

.game-card.is-live {
  border-color: rgba(255, 90, 78, 0.35);
}

.game-card.is-focused {
  transform: scale(1.04);
  box-shadow: 0 0 0 0.18rem #e8141b;
  box-shadow: 0 0 0 0.18rem var(--amber);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.no-flexgap .game-top > * + * {
  margin-left: 0.6rem;
}

.game-comp {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8f93a1;
  color: var(--muted);
}

.game-when {
  flex: none;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background: rgba(232, 20, 27, 0.16);
  background: rgba(var(--amber-rgb), 0.16);
  color: #e8141b;
  color: var(--amber);
}

.game-live {
  flex: none;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background: #ff5a4e;
  background: var(--live);
  color: #fff;
  animation: game-pulse 1.6s ease-in-out infinite;
}

@keyframes game-pulse {
  50% {
    opacity: 0.65;
  }
}

.game-teams {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

html.no-flexgap .game-teams > * + * {
  margin-top: 0.45rem;
}

.game-team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

html.no-flexgap .game-team > * + * {
  margin-left: 0.6rem;
}

.game-crest {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.game-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
}

.game-channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(236, 231, 221, 0.08);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: #8f93a1;
  color: var(--muted);
}

html.no-flexgap .game-channel > * + * {
  margin-left: 0.5rem;
}

.game-channel-logo {
  flex: none;
  width: 2.6rem;
  height: 1.5rem;
  object-fit: contain;
  border-radius: 0.3rem;
  font-size: 0.65rem;
}

.game-channel-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #ece7dd;
  color: var(--text);
}

.game-more {
  flex: none;
  margin-left: auto;
  font-weight: 700;
}

.game-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.22rem;
  background: rgba(255, 255, 255, 0.08);
}

.game-progress span {
  display: block;
  height: 100%;
  background: #ff5a4e;
  background: var(--live);
}

.poster-rail {
  flex: none;
  width: 10rem;
}

.rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 0.5rem;
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #8f93a1;
  color: var(--muted);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 14rem));
  gap: 1.2rem;
  padding: 2rem 3rem;
}

.start-text {
  grid-column: 1 / -1;
  margin: 0 0 0.4rem;
}

.start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.6rem;
  border-radius: 1.1rem;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  font-size: 1.1rem;
}

html.no-flexgap .start-card > * + * {
  margin-top: 1.2rem;
}

.start-card svg {
  width: 2rem;
  height: 2rem;
  color: #e8141b;
  color: var(--amber);
}

.start-card.is-focused {
  background: #1d2230;
  background: var(--surface-2);
  transform: scale(1.03);
}

/* ------------------------------------------------------------------ */
/* Em alta                                                             */
/* ------------------------------------------------------------------ */

.trending {
  flex: 1;
  padding: 2.4rem 0 4rem;
}

.trending-head {
  padding: 0 2rem;
}

.trending-head .screen-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

html.no-flexgap .trending-head .screen-title > * + * {
  margin-left: 0.7rem;
}

.title-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: #e8141b;
  color: var(--amber);
}

.trending-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.3rem;
}

html.no-flexgap .trending-filters > * + * {
  margin-left: 0.6rem;
}

html.no-flexgap .trending-filters > * {
  margin-bottom: 0.6rem;
}

.filter-gap {
  width: 1.4rem;
}

.chip-soft {
  background: transparent;
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
}

.trend-list {
  padding: 1.2rem 2rem 4rem;
  max-width: 64rem;
}

.trend-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
}

html.no-flexgap .trend-row > * + * {
  margin-left: 1.2rem;
}

.trend-row.is-focused {
  background: #1d2230;
  background: var(--surface-2);
}

.trend-pos {
  width: 2.4rem;
  text-align: right;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #8f93a1;
  color: var(--muted);
}

.trend-pos.is-top {
  color: #e8141b;
  color: var(--amber);
}

.trend-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ */
/* Ajustes                                                             */
/* ------------------------------------------------------------------ */

.settings {
  flex: 1;
  max-width: 60rem;
  padding: 3rem 4rem 5rem;
}

.settings-section {
  margin-bottom: 2.4rem;
}

.settings-section h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8f93a1;
  color: var(--muted);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

html.no-flexgap .option-list > * + * {
  margin-top: 0.8rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
}

html.no-flexgap .option > * + * {
  margin-left: 1.2rem;
}

.option.is-focused {
  background: #1d2230;
  background: var(--surface-2);
}

.option.is-selected {
  border-color: rgba(232, 20, 27, 0.55);
  border-color: rgba(var(--amber-rgb), 0.55);
}

.option-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #e8141b;
  color: var(--amber);
}

.option-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

html.no-flexgap .option-body > * + * {
  margin-top: 0.3rem;
}

.option-body strong {
  font-size: 1.1rem;
}

.option-body span {
  color: #8f93a1;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.option-radio {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 0.15rem solid #8f93a1;
  border: 0.15rem solid var(--muted);
}

.option.is-selected .option-radio {
  border-color: #e8141b;
  border-color: var(--amber);
  background: radial-gradient(circle, #e8141b 45%, transparent 50%);
  background: radial-gradient(circle, var(--amber) 45%, transparent 50%);
}

.switch {
  flex: none;
  width: 3.2rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #1d2230;
  background: var(--surface-2);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  position: relative;
  transition: background-color 140ms ease-out;
}

.switch span {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #8f93a1;
  background: var(--muted);
  transition: transform 140ms ease-out, background-color 140ms ease-out;
}

.switch.is-on {
  background: rgba(232, 20, 27, 0.25);
  background: rgba(var(--amber-rgb), 0.25);
}

.switch.is-on span {
  transform: translateX(1.4rem);
  background: #e8141b;
  background: var(--amber);
}

.settings-text {
  margin: -0.4rem 0 1rem;
  line-height: 1.5;
  font-size: 0.92rem;
  max-width: 46rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.3rem;
}

html.no-flexgap .chip-row > * + * {
  margin-left: 0.6rem;
}

html.no-flexgap .chip-row > * {
  margin-bottom: 0.6rem;
}

.key-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

html.no-flexgap .key-log > * + * {
  margin-top: 0.35rem;
}

.key-log li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

html.no-flexgap .key-log li > * + * {
  margin-left: 1.2rem;
}

.key-log strong {
  min-width: 4rem;
}

.key-log span {
  color: #8f93a1;
  color: var(--muted);
}

.key-log li.is-dropped em {
  color: #e8141b;
  color: var(--amber);
  font-style: normal;
  font-weight: 700;
}

.settings-foot {
  font-size: 0.8rem;
}

/* TV deitada: tamanho exatamente proporcional à largura. O Fire Stick desenha a
   WebView com 960px de largura; com o mínimo de 13px tudo saía ~30% maior que o
   desenho e telas como "Minha conta" estouravam a tela. */
@media (orientation: landscape) and (min-width: 900px) and (min-height: 480px) {
  html {
    font-size: 1.0417vw;
  }
}

/* TV e TV box (classe posta pelo app): sempre proporcional à largura, mesmo com
   WebView estreita (853px na TV box 720p com densidade 1,5), sem o mínimo de 13px. */
@media (orientation: landscape) {
  html.tv-scale {
    font-size: 1.0417vw;
  }
}

/* TV box / telas de 960–1280px: menos enfeite, mais nome de canal. */
@media (max-width: 1300px) and (orientation: landscape) {
  .channel {
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
  }

  .channel-num {
    width: 1.8rem;
    font-size: 0.85rem;
  }

  .channel-logo {
    width: 3.2rem;
    height: 2.2rem;
  }

  .col-channels {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .col-info {
    padding: 1.6rem 1.4rem;
  }

  .info-logo {
    width: 4.4rem;
    height: 3rem;
  }

  .info-title {
    font-size: 1.4rem;
  }
}

/* ------------------------------------------------------------------ */
/* Celular em pé                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 760px) {
  html {
    font-size: 14px;
  }

  body {
    overflow: auto;
  }

  .login {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.2rem;
    height: auto;
    min-height: 100vh;
    align-content: center;
  }

  .wordmark {
    font-size: 3.6rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .login-card {
    padding: 1.6rem;
  }

  .home {
    flex-direction: column-reverse;
  }

  .sidebar,
  .sidebar[data-has-focus] {
    flex-direction: row;
    justify-content: space-around;
    margin-right: 0;
    width: 100%;
    height: auto;
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(236, 231, 221, 0.08);
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  .brand-mini,
  .sidebar-foot {
    display: none;
  }

  .nav-item {
    flex-direction: column;
    gap: 0.2rem;
    height: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .nav-label {
    opacity: 1;
  }

  .content {
    height: calc(100vh - 4.4rem);
  }

  .live,
  .vod {
    flex-direction: column;
    height: 100%;
  }

  .col {
    height: auto;
  }

  .col-categories {
    display: flex;
    gap: 0.4rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 231, 221, 0.08);
    border-bottom: 1px solid var(--line);
    flex: none;
  }

  html.no-flexgap .col-categories > * + * {
    margin-left: 0.4rem;
  }

  .cat {
    flex: none;
    white-space: nowrap;
  }

  .col-channels,
  .col-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.6rem;
  }

  .col-info {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.7rem;
    padding: 0.8rem 0.8rem 3rem;
  }

  .grid-head,
  .search-bar {
    padding: 0.8rem 0.8rem 0;
  }

  .detail-body {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.6rem 1rem 0;
    overflow-y: auto;
  }

  .detail-poster {
    width: 8rem;
  }

  .detail-title {
    font-size: 2rem;
  }

  .account {
    padding: 1.6rem 1rem;
  }

  .sidebar,
  .sidebar[data-has-focus] {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-item {
    flex: none;
  }

  .overview-hero,
  .rail-head,
  .trending-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .overview-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .rail-track {
    padding: 0.8rem 1rem 1rem;
  }

  .resume-card {
    width: 14rem;
  }

  .game-card {
    width: 15rem;
  }

  .start-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .trend-list {
    padding: 1rem 0.5rem 3rem;
  }

  .settings {
    padding: 1.6rem 1rem 4rem;
  }

  .player-top {
    padding: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Controle parental                                                   */
/* ------------------------------------------------------------------ */

.cat-name {
  flex: 1;
  min-width: 0;
}

.cat-lock {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: #e8141b;
  color: var(--amber);
  opacity: 0.85;
}

.cat.is-locked .cat-name {
  opacity: 0.75;
}

.warn-text {
  color: #e8141b;
  color: var(--amber);
}

.pin-dialog {
  width: 24rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 2rem 2.2rem;
}

.pin-dialog h2 {
  margin: 0.6rem 0 0.3rem;
}

.pin-dialog > .muted {
  margin: 0 0 1.2rem;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

html.no-flexgap .pin-dots > * + * {
  margin-left: 0.9rem;
}

.pin-dots span {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #8f93a1;
  border: 2px solid var(--muted);
}

.pin-dots span.is-filled {
  background: #e8141b;
  background: var(--amber);
  border-color: #e8141b;
  border-color: var(--amber);
}

.pin-dots.is-error span {
  border-color: #ff6b5e;
  border-color: var(--danger);
}

.pin-error {
  min-height: 1.4em;
  margin: 0.6rem 0;
  color: #ff6b5e;
  color: var(--danger);
  font-weight: 600;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.pin-key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  border-radius: 0.8rem;
  background: #1d2230;
  background: var(--surface-2);
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  transition: background 0.12s, color 0.12s;
}

.pin-key svg {
  width: 1.4rem;
  height: 1.4rem;
}

.pin-key.pin-ok {
  color: #e8141b;
  color: var(--amber);
  font-size: 1.1rem;
}

.pin-key.is-focused {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

/* ------------------------------------------------------------------ */
/* Favoritos e avisos rápidos                                          */
/* ------------------------------------------------------------------ */

.fav-mark {
  color: #e8141b;
  color: var(--amber);
  font-size: 1rem;
  line-height: 1;
}

.channel .fav-mark {
  flex: none;
  margin-left: 0.4rem;
}

.poster-fav {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.75);
}

.detail-actions {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

html.no-flexgap .detail-actions > * + * {
  margin-left: 0.6rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  z-index: 60;
  transform: translateX(-50%);
  max-width: 36rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #1d2230;
  background: var(--surface-2);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
  font-weight: 600;
  animation: toast-in 0.18s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.6rem);
  }
}

/* ------------------------------------------------------------------ */
/* Marca do revendedor, suporte e avisos                               */
/* ------------------------------------------------------------------ */

.brand-logo {
  display: block;
  width: 100%;
  max-height: 3.4rem;
  object-fit: contain;
  padding: 0 0.7rem 1.4rem;
}

.login-logo {
  display: block;
  max-width: 26rem;
  max-width: min(26rem, 80%);
  max-height: 12rem;
  object-fit: contain;
  margin: 1rem 0 1.4rem;
}

.support {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 1.6rem 0;
  padding: 1.2rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  background: #1d2230;
  background: var(--surface-2);
  text-align: left;
}

html.no-flexgap .support > * + * {
  margin-left: 1.4rem;
}

.support-compact {
  margin: 1.2rem 0 1.6rem;
}

.qr {
  flex: none;
  width: 8.5rem;
  height: 8.5rem;
  padding: 0.35rem;
  border-radius: 0.6rem;
  background: #fff;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.support-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

html.no-flexgap .support-text > * + * {
  margin-top: 0.35rem;
}

.support-label {
  color: #e8141b;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-phone {
  font-size: 1.2rem;
}

.support-message {
  margin: 0.3rem 0 0;
  white-space: pre-line;
}

.notice-dialog {
  width: 38rem;
  width: min(38rem, calc(100vw - 2rem));
  text-align: left;
}

.notice-dialog h2 {
  margin: 0.8rem 0 0.6rem;
}

.notice-dialog.is-warning .update-icon svg {
  color: #e8141b;
  color: var(--amber);
}

.notice-message {
  margin: 0;
  color: #ece7dd;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-line;
}

/* ------------------------------------------------------------------ */
/* Guia de programação                                                 */
/* ------------------------------------------------------------------ */

.guide-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem 0 1rem 1rem;
  overflow: hidden;
}

.guide-info {
  min-height: 7.4rem;
  padding: 0 1.4rem 1rem 0.4rem;
}

.guide-info h2 {
  margin: 0.2rem 0 0.3rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-info-channel {
  color: #e8141b;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-info-time {
  margin: 0;
  color: #8f93a1;
  color: var(--muted);
  font-weight: 600;
}

.guide-info-desc {
  display: -webkit-box;
  margin: 0.4rem 0 0;
  max-width: 60rem;
  overflow: hidden;
  color: #8f93a1;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.guide-scroll {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-top: 1px solid rgba(236, 231, 221, 0.08);
  border-top: 1px solid var(--line);
}

.guide-canvas {
  position: relative;
}

.guide-ruler {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 2.4rem;
  background: #0b0d12;
  background: var(--bg);
  border-bottom: 1px solid rgba(236, 231, 221, 0.08);
  border-bottom: 1px solid var(--line);
}

.guide-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  display: block;
  width: 13rem;
  height: 100%;
  background: #0b0d12;
  background: var(--bg);
}

.guide-slot {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 0.7rem 0.6rem 0;
  border-left: 1px solid rgba(236, 231, 221, 0.08);
  border-left: 1px solid var(--line);
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.guide-now {
  position: absolute;
  top: 2.4rem;
  bottom: 0;
  z-index: 2;
  width: 2px;
  background: #ff5a4e;
  background: var(--live);
  pointer-events: none;
}

.guide-row {
  position: relative;
  height: 4.2rem;
  border-bottom: 1px solid rgba(236, 231, 221, 0.08);
  border-bottom: 1px solid var(--line);
}

.guide-channel {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 13rem;
  height: 100%;
  padding: 0 0.6rem;
  background: #10131b;
  background: var(--bg-2);
  border-right: 1px solid rgba(236, 231, 221, 0.08);
  border-right: 1px solid var(--line);
}

html.no-flexgap .guide-channel > * + * {
  margin-left: 0.6rem;
}

.guide-logo {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: #161a24;
  background: var(--surface);
  font-size: 0.75rem;
}

.guide-channel-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.guide-channel .badge {
  display: none;
}

.guide-block {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  padding: 0 0.15rem;
}

.guide-block-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 0.7rem;
  overflow: hidden;
  border-radius: 0.55rem;
  background: #161a24;
  background: var(--surface);
}

.guide-block-title {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-block-time {
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.75rem;
}

.guide-block.is-past .guide-block-inner {
  background: transparent;
  border: 1px dashed rgba(236, 231, 221, 0.08);
  border: 1px dashed var(--line);
  color: #8f93a1;
  color: var(--muted);
}

.guide-block.is-replay .guide-block-inner {
  border-style: solid;
  border-color: rgba(232, 20, 27, 0.35);
  border-color: rgba(var(--amber-rgb), 0.35);
  color: #ece7dd;
  color: var(--text);
}

.guide-block.is-live .guide-block-inner {
  background: #1d2230;
  background: var(--surface-2);
}

.guide-block-progress {
  height: 3px;
  margin-top: 0.3rem;
  border-radius: 2px;
  background: rgba(236, 231, 221, 0.08);
  background: var(--line);
}

.guide-block-progress span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #ff5a4e;
  background: var(--live);
}

.guide-block.is-focused .guide-block-inner {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
  border-color: transparent;
}

.guide-block.is-focused .guide-block-time {
  color: #ffffff;
  color: var(--on-amber);
  opacity: 0.8;
}

.guide-hint {
  margin: 0.6rem 0 0 0.4rem;
  font-size: 0.8rem;
}

.wordmark-brand {
  max-width: 34rem;
  font-size: 5vw;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

html.no-flexgap .account-actions > * + * {
  margin-left: 0.8rem;
}

html.no-flexgap .account-actions > * {
  margin-bottom: 0.8rem;
}

/* "Limpar" do campo: ▶ no fim do texto chega nele (útil no Fire Stick). */
.field-clear {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.6;
}

.field.is-focused .field-clear,
.field-clear.is-focused {
  opacity: 1;
}

.field-clear.is-focused {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

/* Teclado do app (TV) */
#root {
  transition: transform 160ms ease-out;
}

.osk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.97), #0b0d12);
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.97), var(--bg));
  border-top: 1px solid rgba(236, 231, 221, 0.08);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1.5rem 3rem rgba(0, 0, 0, 0.5);
}

.osk-inner {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0.8rem 1.2rem 1.1rem;
}

.osk-display {
  display: flex;
  align-items: baseline;
  margin: 0 0.25rem 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(232, 20, 27, 0.5);
  border: 1px solid rgba(var(--amber-rgb), 0.5);
  min-width: 0;
}

.osk-label {
  flex: none;
  margin-right: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8f93a1;
  color: var(--muted);
}

.osk-value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  direction: ltr;
  font-size: 1.2rem;
  font-weight: 700;
}

.osk-caret {
  display: inline-block;
  width: 0.12rem;
  height: 1.2rem;
  margin-left: 0.1rem;
  vertical-align: -0.15rem;
  background: #e8141b;
  background: var(--amber);
  animation: osk-blink 1s steps(1) infinite;
}

@keyframes osk-blink {
  50% {
    opacity: 0;
  }
}

.osk-row {
  display: flex;
}

.osk-key {
  flex: 1 1 0;
  min-width: 0;
  margin: 0.22rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: #1d2230;
  background: var(--surface-2);
  border: 1px solid rgba(236, 231, 221, 0.08);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.osk-wide2 {
  flex-grow: 2;
}

.osk-wide3 {
  flex-grow: 3;
}

.osk-key.is-on {
  color: #e8141b;
  color: var(--amber);
  border-color: rgba(232, 20, 27, 0.6);
  border-color: rgba(var(--amber-rgb), 0.6);
}

.osk-go {
  background: rgba(232, 20, 27, 0.18);
  background: rgba(var(--amber-rgb), 0.18);
  color: #e8141b;
  color: var(--amber);
}

.osk-key.is-focused {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
  transform: scale(1.08);
  box-shadow: 0 0 1rem rgba(232, 20, 27, 0.35);
  box-shadow: 0 0 1rem var(--amber-glow);
}

.field.is-typing {
  border-color: rgba(232, 20, 27, 0.6);
  border-color: rgba(var(--amber-rgb), 0.6);
}

/* Ativação do aparelho */
.device-note {
  margin: 0.4rem 3rem 0;
  padding: 0.65rem 1rem;
  border-radius: 0.9rem;
  border-radius: var(--radius);
  background: rgba(232, 20, 27, 0.1);
  background: rgba(var(--amber-rgb), 0.1);
  border: 1px solid rgba(232, 20, 27, 0.3);
  border: 1px solid rgba(var(--amber-rgb), 0.3);
  color: #ece7dd;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.device-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  color: #e8141b;
  color: var(--amber);
}

.activation {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(232, 20, 27, 0.12), transparent 70%),
    #0b0d12;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(var(--amber-rgb), 0.12), transparent 70%),
    var(--bg);
}

.activation-card {
  width: 100%;
  max-width: 48rem;
  text-align: center;
}

.activation-logo {
  max-height: 4rem;
  max-width: 14rem;
  object-fit: contain;
  margin: 0 auto 1.4rem;
  display: block;
}

.activation-brand {
  margin: 0 0 1.2rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
}

.activation .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

html.no-flexgap .activation .eyebrow > * + * {
  margin-left: 0.4rem;
}

.activation-key {
  width: 1rem;
  height: 1rem;
}

.activation-title {
  margin: 0.4rem 0 0.6rem;
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.activation-lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: #8f93a1;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.activation-code {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.activation-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 4.6rem;
  margin: 0 0.25rem;
  border-radius: 0.8rem;
  background: #161a24;
  background: var(--surface);
  border: 1px solid rgba(232, 20, 27, 0.45);
  border: 1px solid rgba(var(--amber-rgb), 0.45);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.6rem;
  font-weight: 800;
  color: #e8141b;
  color: var(--amber);
}

.activation-dash {
  margin: 0 0.5rem;
  font-size: 2.4rem;
  color: #8f93a1;
  color: var(--muted);
}

.activation-key-line {
  margin: -1rem 0 1.8rem;
  color: #8f93a1;
  color: var(--muted);
  font-size: 1.05rem;
}

.activation-key-line b {
  margin-left: 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: #ece7dd;
  color: var(--text, #fff);
}

.activation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

html.no-flexgap .activation-row > * + * {
  margin-left: 1.6rem;
}

html.no-flexgap .activation-row > * {
  margin-bottom: 1.6rem;
}

.activation-support {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  max-width: 24rem;
}

html.no-flexgap .activation-support > * + * {
  margin-left: 1rem;
}

.activation-support strong {
  display: block;
  margin-bottom: 0.2rem;
}

.activation-support .muted {
  font-size: 0.85rem;
  line-height: 1.4;
}

.activation-qr {
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
}

.activation-check {
  min-height: 3.4rem;
  padding: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
}

html.no-flexgap .activation-check > * + * {
  margin-left: 0.6rem;
}

.activation-check svg {
  width: 1.2rem;
  height: 1.2rem;
}

.activation-check .spin {
  animation: spin 0.9s linear infinite;
}

.activation-foot {
  margin-top: 1.6rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .activation-char {
    width: 2.3rem;
    height: 3.2rem;
    margin: 0 0.12rem;
    font-size: 1.6rem;
  }
  .activation-title {
    font-size: 1.9rem;
  }
  .device-note {
    margin: 0.4rem 1rem 0;
  }
}

/* ── Listas (vários servidores no mesmo aparelho) ── */
.lists {
  flex: 1;
  max-width: 64rem;
  padding: 3rem 4rem 5rem;
  gap: 1.2rem;
}

.lists-intro {
  margin: -0.4rem 0 0.4rem;
}

.lists-row {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
}

html.no-flexgap .lists-row > * + * {
  margin-left: 0.8rem;
}

.lists-row .list-item {
  flex: 1;
  min-width: 0;
}

.list-item .option-body strong,
.list-item .option-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(232, 20, 27, 0.16);
  background: rgba(var(--amber-rgb), 0.16);
  color: #e8141b;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

html.no-flexgap .list-badge > * + * {
  margin-left: 0.4rem;
}

.list-badge svg {
  width: 1rem;
  height: 1rem;
}

.list-badge-ghost {
  background: transparent;
  color: #8f93a1;
  color: var(--muted);
}

.list-item.is-focused .list-badge-ghost {
  color: #ece7dd;
  color: var(--text);
}

.btn.list-remove {
  min-height: auto;
  padding: 0 1.2rem;
  border-radius: 1rem;
}

.btn.list-remove svg {
  width: 1.4rem;
  height: 1.4rem;
}

.btn.lists-add {
  align-self: flex-start;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn.lists-add svg {
  width: 1.3rem;
  height: 1.3rem;
}

.lists-modes .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

html.no-flexgap .lists-modes .chip > * + * {
  margin-left: 0.5rem;
}

.chip-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.lists-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
}

html.no-flexgap .lists-form > * + * {
  margin-top: 1rem;
}

.lists-form > .muted {
  margin: 0;
}

.lists-notice {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(232, 20, 27, 0.1);
  background: rgba(var(--amber-rgb), 0.1);
  border: 1px solid rgba(232, 20, 27, 0.3);
  border: 1px solid rgba(var(--amber-rgb), 0.3);
  line-height: 1.5;
  font-size: 0.95rem;
}

html.no-flexgap .lists-notice > * + * {
  margin-left: 0.9rem;
}

.lists-notice svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: #e8141b;
  color: var(--amber);
}

.lists-notice p {
  margin: 0;
  color: #8f93a1;
  color: var(--muted);
}

.lists-notice b {
  color: #ece7dd;
  color: var(--text);
}

.lists-actions {
  justify-content: flex-start;
  margin-top: 0.4rem;
}

/* ── TVs sem CSS Grid (LG webOS 3/4, Chrome < 57): mesmo desenho com flex ── */
@supports not (display: grid) {
  .login {
    display: flex;
    align-items: center;
  }
  .login > .login-hero {
    flex: 1.2;
    margin-right: 4rem;
  }
  .login > .login-card {
    flex: 1;
  }
  .grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.6rem;
  }
  .grid > * {
    width: 10.5rem;
    margin: 0 0.6rem 1.8rem;
  }
  .start-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .start-grid > * {
    width: 14rem;
    margin: 0 1.2rem 1.2rem 0;
  }
  .start-grid > .start-text {
    width: 100%;
  }
  .pin-pad {
    display: flex;
    flex-wrap: wrap;
  }
  .pin-pad > * {
    width: 30%;
    margin: 0 1.5% 0.6rem;
  }
}

/* ── Ajuste de transmissão dentro do player (▲▼ no ao vivo) ── */
.player-modes {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  z-index: 4;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 24rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border-radius: 1.25rem;
  background: rgba(11, 13, 18, 0.94);
  border: 1px solid rgba(232, 20, 27, 0.4);
  border: 1px solid rgba(var(--amber-rgb), 0.4);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55);
  color: #ece7dd;
}

.player-modes-stripe {
  width: 2.2rem;
  height: 0.25rem;
  margin-bottom: 0.7rem;
  border-radius: 1rem;
  background: #e8141b;
  background: var(--amber);
}

.player-modes-title {
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
}

.player-modes-sub {
  margin: 0.15rem 0 0.4rem;
  color: #8a8f9c;
  font-size: 0.8rem;
}

.player-modes-hint {
  margin-top: 0.8rem;
  color: #6e7380;
  font-size: 0.75rem;
}

.player-modes button {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(236, 231, 221, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.player-modes button.is-cursor {
  background: rgba(232, 20, 27, 0.2);
  background: rgba(var(--amber-rgb), 0.2);
  border-color: #e8141b;
  border-color: var(--amber);
}

.mode-bars {
  display: flex;
  align-items: flex-end;
  flex: none;
  height: 1.15rem;
  margin-right: 0.9rem;
}

.mode-bars i {
  display: block;
  width: 0.32rem;
  margin-left: 0.18rem;
  border-radius: 0.15rem;
  background: rgba(236, 231, 221, 0.2);
}

.mode-bars i:first-child {
  margin-left: 0;
  height: 0.5rem;
}

.mode-bars i:nth-child(2) {
  height: 0.8rem;
}

.mode-bars i:nth-child(3) {
  height: 1.15rem;
}

.mode-bars i.is-on {
  background: #b0b3be;
}

.player-modes button.is-cursor .mode-bars i.is-on,
.player-modes button.is-current .mode-bars i.is-on {
  background: #e8141b;
  background: var(--amber);
}

.mode-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mode-text b {
  font-size: 1.05rem;
}

.mode-text small {
  margin-top: 0.1rem;
  color: #9a9fac;
  font-size: 0.78rem;
}

.mode-badge {
  flex: none;
  margin-left: 0.8rem;
  padding: 0.22rem 0.65rem;
  border-radius: 1rem;
  background: rgba(236, 231, 221, 0.08);
  color: #b0b3be;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.player-modes button.is-cursor .mode-badge {
  color: #e8141b;
  color: var(--amber);
}

.player-modes button.is-current .mode-badge {
  background: #e8141b;
  background: var(--amber);
  color: #ffffff;
  color: var(--on-amber);
}

/* ── Continuar assistindo em Filmes/Séries e fichas ── */
.poster-progress {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  height: 0.28rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.poster-progress span {
  display: block;
  height: 100%;
  background: #e8141b;
  background: var(--amber);
}

.poster-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #8f93a1;
  color: var(--muted);
}

.episode-seen {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8f93a1;
  color: var(--muted);
}

.episode-bar {
  width: 5rem;
  height: 0.28rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.episode-bar span {
  display: block;
  height: 100%;
  background: #e8141b;
  background: var(--amber);
}

.btn.detail-play {
  gap: 0.6rem;
}

.btn.detail-play svg {
  width: 1.2rem;
  height: 1.2rem;
}

.detail-actions-main {
  margin-top: 1.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-plot.detail-plot-full {
  -webkit-line-clamp: 6;
}

.detail-credits {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: 0.92rem;
}

.detail-credits div {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

html.no-flexgap .detail-credits div > * + * {
  margin-left: 0.8rem;
}

.detail-credits dt {
  flex: none;
  width: 4.5rem;
  color: #8f93a1;
  color: var(--muted);
}

.detail-credits dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-progress {
  max-width: 24rem;
  height: 0.3rem;
  margin-top: 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.detail-progress span {
  display: block;
  height: 100%;
  background: #e8141b;
  background: var(--amber);
}

.detail-poster {
  align-self: flex-start;
}

.detail-main > .detail-actions {
  margin-top: 1.2rem;
}

/* Lista do player: categorias */
.player-list-head {
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
}

.player-list-back {
  flex-basis: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #e8141b;
  color: var(--amber);
  font: inherit;
  font-family: "Manrope Variable", "Manrope", system-ui, sans-serif;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.player-list-cat {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Escudo de verdade (imagem): sem o fundo colorido das iniciais. */
.game-crest.game-crest-img {
  background: transparent;
  object-fit: contain;
  border-radius: 0;
}

/* Ícones das categorias fixas (Buscar, Continuar, Favoritos): mesmo desenho. */
.cat-icon {
  display: inline-flex;
  align-items: center;
}

.cat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
}

/* ── Modo leve: TVs antigas sem animações, transições, sombras e desfoques ── */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.reduce-motion * {
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.reduce-motion .is-focused {
  transform: none !important;
}

/* Sem sombra, o anel de foco vira contorno (desenhado por dentro para não ser
   cortado pelas fileiras do início). */
.reduce-motion .is-focused {
  outline: 0.2rem solid #e8141b;
  outline: 0.2rem solid var(--amber);
  outline-offset: -0.2rem;
}

/* Capas: uma moldura por cima da imagem (o contorno ficaria embaixo da sombra da capa). */
.reduce-motion .poster.is-focused .poster-art::after,
.reduce-motion .resume-card.is-focused .resume-art::after,
.reduce-motion .game-card.is-focused::after,
.reduce-motion .channel-tile.is-focused::after,
.reduce-motion .start-card.is-focused::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  border: 0.2rem solid #e8141b;
  border: 0.2rem solid var(--amber);
  border-radius: inherit;
  pointer-events: none;
}

.reduce-motion.using-pointer .is-focused::after,
.reduce-motion.using-pointer .is-focused .poster-art::after,
.reduce-motion.using-pointer .is-focused .resume-art::after {
  display: none;
}

.reduce-motion .poster.is-focused,
.reduce-motion .resume-card.is-focused,
.reduce-motion .nav-item.is-focused,
.reduce-motion .cat.is-focused,
.reduce-motion .channel.is-focused,
.reduce-motion .trend-row.is-focused,
.reduce-motion .option.is-focused,
.reduce-motion .guide-block.is-focused,
.reduce-motion .game-card.is-focused,
.reduce-motion .channel-tile.is-focused,
.reduce-motion .start-card.is-focused,
.reduce-motion.using-pointer .is-focused {
  outline: none;
}

.reduce-motion .poster.is-focused .poster-title,
.reduce-motion .resume-card.is-focused .resume-title {
  color: #e8141b;
  color: var(--amber);
}

.reduce-motion .detail-backdrop {
  filter: none !important;
}

.reduce-motion .player-stats,
.reduce-motion .player-stats * {
  text-shadow: 0 1px 3px #000 !important;
}

/* ── Carregando as listas (catálogo no aparelho) ───────────────────────── */
.catalog-rows {
  list-style: none;
  margin: 0 auto 1.4rem;
  padding: 0;
  max-width: 30rem;
  text-align: left;
}
.catalog-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s, border-color 0.3s;
}
.catalog-row.is-done {
  border-color: rgba(232, 20, 27, 0.35);
  border-color: rgba(var(--amber-rgb), 0.35);
  background: rgba(232, 20, 27, 0.07);
  background: rgba(var(--amber-rgb), 0.07);
}
.catalog-row-icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.85rem;
  color: #e8141b;
  color: var(--amber);
  flex-shrink: 0;
}
.catalog-row-label {
  font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, sans-serif;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
}
.catalog-row-status {
  display: inline-flex;
  align-items: center;
  color: #8f93a1;
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.catalog-row-status svg,
.catalog-row-status .catalog-spinner {
  margin-left: 0.5rem;
}
.catalog-ok {
  width: 1.15rem;
  height: 1.15rem;
  color: #3ecf8e;
}
.catalog-warn {
  width: 1.15rem;
  height: 1.15rem;
  color: #e8141b;
  color: var(--amber);
}
.catalog-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 0.16rem;
}
.catalog-bar {
  max-width: 30rem;
  height: 0.35rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.catalog-bar-fill {
  height: 100%;
  border-radius: 1rem;
  background: #e8141b;
  background: var(--amber);
  transition: width 0.5s ease;
}

/* Logo Play+ (arte oficial) quando não há marca do parceiro. */
.wordmark-logo img {
  display: block;
  width: 17rem;
  height: auto;
  margin-left: -1rem;
}
.brand-logo-lp {
  max-height: 4.2rem;
  padding: 0 0.4rem 1.2rem;
}

/* APK de teste: resultado de cada URL do DNS na tela de carregamento. */
.catalog-servers { margin-top: 1.2rem; text-align: left; font-size: 0.9em; }
.catalog-servers-title { font-weight: 600; margin: 0 0 0.4rem; }
.catalog-servers .catalog-row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.catalog-server { flex-wrap: wrap; }
.catalog-server-detail { flex-basis: 100%; font-size: 0.85em; opacity: 0.75; word-break: break-word; overflow-wrap: anywhere; }

/* Ajustes: teste de velocidade. */
.speed-results { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.45rem; max-width: 42rem; }
.speed-results li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; border-radius: 0.6rem; background: #161a24; background: var(--surface, rgba(255, 255, 255, 0.05)); }
html.no-flexgap .speed-results li > * + * {
  margin-left: 1rem;
}
.speed-results li span { opacity: 0.8; }
.speed-results .speed-verdict { justify-content: flex-start; }

/* Diagnóstico do menu */
.diag-dialog {
  width: 38rem;
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  text-align: left;
}
.diag-dialog h2 { margin-bottom: 0.6rem; }
.diag-dialog > .muted { margin: 0 0 1rem; line-height: 1.5; }
.diag-dialog .chip-row { display: flex; }
.diag-dialog .speed-results { max-width: none; }
.diag-dialog .speed-results strong { text-align: right; }
.diag-foot { margin: 1rem 0 1.2rem; font-size: 0.85rem; }
.diag-dialog .dialog-actions { justify-content: flex-end; }

/* ------------------------------------------------------------------ */
/* Ficha de filme/série no celular (toque): a ficha inteira rola, a     */
/* lista de episódios aparece toda e os botões ficam menores. Só vale   */
/* para celular: o Fire TV também diz ter toque (pointer: coarse) e     */
/* desenha 960×540, por isso as regras pulam html.tv-scale.            */
/* ------------------------------------------------------------------ */

@media (pointer: coarse) and (max-height: 560px), (pointer: coarse) and (max-width: 760px) {
  html:not(.tv-scale) .detail-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
  }

  html:not(.tv-scale) .detail-main {
    flex: none;
  }

  html:not(.tv-scale) .detail-body > .detail-main {
    flex: 1 0 auto;
  }

  html:not(.tv-scale) .episodes {
    flex: none;
    overflow: visible;
    padding-bottom: 2rem;
  }

  html:not(.tv-scale) .detail .btn {
    min-height: 2.4rem;
    padding: 0 1.1rem;
    font-size: 0.9rem;
  }

  html:not(.tv-scale) .detail .chip {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  html:not(.tv-scale) .seasons {
    margin: 1rem 0 0.4rem;
  }

  html:not(.tv-scale) .episode {
    gap: 0.8rem;
    padding: 0.55rem 0.6rem;
  }

  html:not(.tv-scale) .episode-num {
    width: 1.6rem;
    font-size: 1rem;
  }

  html:not(.tv-scale) .episode-play {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* Celular deitado: pôster e título menores para sobrar espaço aos episódios. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  html:not(.tv-scale) .detail-back {
    top: 0.5rem;
    left: 1rem;
  }

  html:not(.tv-scale) .detail-body,
  html:not(.tv-scale) .detail-back ~ .detail-body {
    gap: 1.6rem;
    padding: 3.2rem 1.6rem 2rem;
  }

  html:not(.tv-scale) .detail-poster {
    width: 8.5rem;
    position: sticky;
    top: 0;
  }

  html:not(.tv-scale) .detail-title {
    font-size: 1.8rem;
  }

  html:not(.tv-scale) .detail-meta {
    margin-top: 0.4rem;
    font-size: 0.9rem;
  }

  html:not(.tv-scale) .detail-plot {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  html:not(.tv-scale) .detail-actions-main,
  html:not(.tv-scale) .detail-main > .detail-actions {
    margin-top: 0.8rem;
  }
}

/* Capas no celular (toque): menores, para caber mais por linha. Deitado, a
   grade e as fileiras usam capas de ~7rem (6–8 por linha); em pé, 4 por linha.
   TV e Fire Stick não mudam. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  html:not(.tv-scale) .grid {
    grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr));
    gap: 1rem 0.7rem;
    padding: 0.8rem 1.2rem 3rem;
  }

  html:not(.tv-scale) .poster-rail {
    width: 6.8rem;
  }

  html:not(.tv-scale) .rail-track {
    gap: 0.7rem;
  }

  html:not(.tv-scale) .poster-title {
    font-size: 0.78rem;
  }
}

@media (pointer: coarse) and (max-width: 760px) {
  html:not(.tv-scale) .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem 0.5rem;
  }

  html:not(.tv-scale) .poster-rail {
    width: 5.6rem;
  }

  html:not(.tv-scale) .rail-track {
    gap: 0.5rem;
  }

  html:not(.tv-scale) .poster-title {
    font-size: 0.72rem;
  }
}
