:root {
  --bg: #07070b;
  --bg-elev: #111118;
  --ink: #f5f2ea;
  --muted: #9b968c;
  --amber: #e8a317;
  --amber-ink: #1a1204;
  --nf-red: #e50914;
  --line: rgba(255, 255, 255, 0.08);
  --focus: #ffffff;
  --danger: #ff6b6b;
  /* Base sem max()/env(): webOS Chrome 68 descarta a propriedade inteira */
  --safe-x: 3vw;
  --safe-r: 3vw;
  --safe-b: 1rem;
}
@supports (padding: max(1px, 2px)) {
  :root {
    --safe-x: max(1rem, env(safe-area-inset-left), 3vw);
    --safe-r: max(1rem, env(safe-area-inset-right), 3vw);
    --safe-b: max(1rem, env(safe-area-inset-bottom));
  }
}

* { box-sizing: border-box; }

/* Scrollbar premium (lateral + listas) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.05);
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 4px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
#app-header.app-chrome {
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.99), rgba(7, 7, 11, 0.94));
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}
#app-header[hidden] { display: none !important; }
#app-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  width: 100%;
}
.logo-home {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.logo-home:hover span { filter: brightness(1.1); }

.screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden; /* p?gina nunca rola ? s? zonas internas */
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 50% -30%, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(229, 9, 20, 0.08), transparent 50%),
    var(--bg);
}

.screen[hidden] { display: none !important; }

/* Telas de formul?rio / pairing: scroll interno se precisar */
.screen#screen-onboard,
.screen#screen-mac,
.screen#screen-qr,
.screen#screen-code,
.screen#screen-browse,
.screen.profiles-screen {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.splash {
  display: grid;
  place-items: center;
}
.splash-logo, .logo-sm {
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
/* fallback fixo: webOS antigo ignora clamp() e o texto ficava minúsculo */
.splash-logo { font-size: 4.5rem; }
@supports (font-size: clamp(1rem, 2vw, 2rem)) {
  .splash-logo { font-size: clamp(2.8rem, 7vw, 5rem); }
}
body:not(.is-web) .splash-logo { font-size: 5.5rem; }
.splash-logo span, .logo-sm span { margin-left: 0.18em; }
.brand-stack {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.18em;
  max-width: 100%;
}
/* Resolve = branco | Play = dourado */
.brand-line-main { color: #fff; }
.brand-line-accent { color: var(--amber); }
.splash-mark p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}
.app-legal {
  margin: 1.4rem 0 0 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em !important;
  color: rgba(155, 150, 140, 0.85) !important;
  text-align: center;
}
.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.25rem var(--safe-x) calc(1rem + var(--safe-b));
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: rgba(155, 150, 140, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.app-footer span:first-child {
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem var(--safe-x) 0.8rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.95), rgba(7, 7, 11, 0));
}
.logo-sm {
  font-size: 1.35rem;
  /* Nome whitelabel longo n?o pode estourar o cabe?alho */
  max-width: 38vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem var(--safe-x);
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 11, 0.55);
}
.subbar strong {
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.surface-badge {
  margin-left: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--amber);
  border: 1px solid rgba(232, 163, 23, 0.4);
  background: rgba(232, 163, 23, 0.12);
}
body.is-web {
  cursor: default;
}
body.is-web .option:hover,
body.is-web .card:hover,
body.is-web .nav-btn:hover,
body.is-web .btn:hover {
  filter: brightness(1.08);
}
.home-bar {
  flex: 0 0 auto;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem 0.85rem;
  padding-right: var(--safe-r);
  position: relative;
  z-index: 16;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.98), rgba(7, 7, 11, 0.92));
}
/* Menus + lupa juntos; perfil fica ? direita */
.home-nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav-search-btn {
  margin-left: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.nav-search-btn:hover {
  border-color: rgba(232, 163, 23, 0.45);
  color: var(--amber);
}
.profile-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.profile-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber);
}
.nav-btn, .back, .btn, .group-chip {
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}
.nav-btn {
  padding: 0.55rem 1.05rem;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-btn.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.nav-btn.is-focused,
.nav-btn:focus {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.group-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem var(--safe-x) 0.9rem;
  scrollbar-width: thin;
}
.group-chip {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
.group-chip.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: #111;
}

.row h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.row-badge, .card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.48rem;
  border-radius: 6px;
}
.row-badge.live, .card-tag.live {
  background: #c43a3a;
  color: #fff;
}
.row-badge.vod, .card-tag.vod {
  background: #c48a12;
  color: #1a1204;
}
.row-badge.uhd, .card-tag.uhd {
  background: #6b4fd8;
  color: #fff;
}
.row-badge.series, .card-tag.series {
  background: #2f7fd4;
  color: #fff;
}
.row-badge.kids, .card-tag.kids {
  background: #2f9d5b;
  color: #fff;
}
.row-badge.adult, .card-tag.adult {
  background: #c23a55;
  color: #fff;
}
.nav-btn.nav-adult {
  color: #ff8fa3;
}
.nav-btn.nav-kids {
  color: #5eead4;
  font-weight: 800;
}
.nav-btn.nav-kids.is-active {
  color: #99f6e4;
  box-shadow: inset 0 -2px 0 #2dd4bf;
}
.cat-dropdown-title-kids,
#cat-dropdown-title.is-kids {
  color: #5eead4;
}
.group-chip.is-4k {
  border-color: rgba(160, 130, 255, 0.45);
  color: #cbb6ff;
}
.group-chip.is-4k.is-active {
  background: rgba(120, 90, 255, 0.22);
  border-color: rgba(180, 150, 255, 0.65);
  color: #e6deff;
}
.card-4k {
  box-shadow: inset 0 0 0 1px rgba(160, 130, 255, 0.25);
}
.card-tag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.section-empty {
  padding: 2rem var(--safe-x);
  color: var(--muted);
}
.back {
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fff;
}
.btn {
  background: #fff;
  color: #111;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn.ghost:hover,
.btn.ghost.is-focused,
.btn.ghost:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.focusable:focus, .focusable.is-focused {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.onboard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem var(--safe-x) 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.onboard-center {
  width: 100%;
  max-width: 1080px;
  text-align: center;
  margin: auto 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 22rem;
  margin: 0.5rem auto 0;
  text-align: left;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}
.login-field input {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
}
.login-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.login-password-wrap input#login-password {
  width: 100%;
  padding-right: 3rem;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute !important;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  box-shadow: none !important;
}
.password-toggle img,
.password-toggle .password-toggle-ico {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  pointer-events: none;
  object-fit: contain;
  color: #f5f5f5;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
}
/* Nunca exibir URL/caminho de ícone quebrado */
img[data-broken-handled="1"] {
  display: none !important;
}
.password-toggle:hover,
.password-toggle.is-focused,
.password-toggle:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none;
}
.login-form .btn {
  margin-top: 0.35rem;
  width: 100%;
}
.pair-panel {
  padding: 1rem var(--safe-x) 3rem;
  max-width: 1400px;
}
.pair-panel.pair-centered {
  margin: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1rem, 3vh, 1.5rem) var(--safe-x) clamp(1.5rem, 4vh, 2.5rem);
  min-height: 100%;
  box-sizing: border-box;
  justify-content: center;
  container-type: inline-size;
  container-name: pair;
  gap: clamp(0.35rem, 1.2vh, 0.75rem);
}
.pair-panel.pair-centered .lead,
.pair-panel.pair-centered .status {
  margin-left: auto;
  margin-right: auto;
}
.pair-panel.pair-centered .pair-back {
  align-self: flex-start;
  margin-bottom: 0.35rem;
}
.pair-panel.pair-centered .api-hint {
  text-align: left;
  width: 100%;
}
.screen#screen-qr,
.screen#screen-code,
.screen#screen-mac {
  display: flex;
  flex-direction: column;
}
.onboard h1, .pair-panel h1 {
  font-family: Syne, Manrope, sans-serif;
  font-size: 2.4rem;
  font-size: clamp(1.45rem, 5.2vw, 2.75rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 100%;
  text-wrap: balance;
}
.onboard .lead {
  margin-left: auto;
  margin-right: auto;
}
.lead {
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.45;
  margin: 0 0 clamp(0.85rem, 2.5vh, 1.4rem);
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
}
.pair-panel.pair-centered .status {
  margin: 0;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  line-height: 1.4;
  max-width: 34ch;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  text-align: left;
  justify-content: center;
}
.option-grid[data-count="1"] {
  grid-template-columns: minmax(0, 28rem);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.option-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.option-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
}
/* Web player: só login (se houver) + QR/código — sem MAC */
body.is-web .option-grid {
  max-width: 52rem;
  margin: 0 auto;
}
body.is-web .option-grid[data-count="1"] {
  max-width: 28rem;
}
body.is-web .opt-mac {
  display: none !important;
}
.option[hidden] {
  display: none !important;
}
.option {
  text-align: left;
  padding: 1.75rem 1.6rem 1.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(232, 163, 23, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: inherit;
  display: grid;
  gap: 0.65rem;
  min-height: 248px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.option:hover,
.option:focus-visible,
.option.is-focused,
body.is-tv .option.is-focused {
  border-color: rgba(232, 163, 23, 0.85);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(232, 163, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}
.tv-remote-tip {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(232, 163, 23, 0.14);
  border: 1px solid rgba(232, 163, 23, 0.4);
  color: #f5e6c8;
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
}
body.is-tv .tv-remote-tip { font-size: 1.15rem; }
body.tv-cursor-on .tv-remote-tip { display: block; }
.option strong {
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.option span:last-child {
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
  margin-top: auto;
}
.opt-kicker {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.onboard-legal {
  flex: 0 0 auto;
  width: 100%;
  max-width: 720px;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
.onboard-legal p {
  margin: 0 0 0.45rem;
}
.onboard-legal p:first-child {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 0.82rem;
}
.onboard-legal strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

/* ——— Tela "Como entrar" (banners TMDB + MAC + QR + login) ——— */
.screen.enter-screen {
  background: #050506;
}
.enter-cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.enter-cinema-slide {
  position: absolute;
  inset: -4%;
  background: #08080c center / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.35s ease;
}
.enter-cinema-slide.is-on {
  opacity: 1;
}
.enter-cinema-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 8, 0.62) 0%, rgba(4, 4, 8, 0.28) 48%, rgba(4, 4, 8, 0.58) 100%),
    linear-gradient(180deg, rgba(4, 4, 8, 0.22) 0%, rgba(4, 4, 8, 0.08) 42%, rgba(4, 4, 8, 0.72) 100%);
}
.enter {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  padding: clamp(1rem, 3.2vh, 2rem) var(--safe-x) calc(3.4rem + var(--safe-b));
  box-sizing: border-box;
}
.enter-head {
  text-align: center;
  margin: 0 auto clamp(1rem, 2.8vh, 1.8rem);
  max-width: 40rem;
}
.enter-brand {
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 5.4vw, 2.85rem);
  color: #fff;
  margin: 0 0 0.55rem;
  line-height: 1.1;
}
.enter-brand span {
  color: var(--amber);
}
.enter-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(245, 242, 234, 0.72);
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
}
.enter-pulse i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(232, 163, 23, 0.7);
  animation: enter-pulse 1.35s ease-in-out infinite;
}
@keyframes enter-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
.enter-head .tv-remote-tip {
  margin-top: 0.75rem;
  max-width: 36rem;
}
.enter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.2vw, 2.6rem);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.enter-grid[data-cols="1"] {
  grid-template-columns: minmax(0, 28rem);
  justify-content: center;
}
.enter-col {
  min-width: 0;
}
.enter-col-login {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: clamp(1.15rem, 3vw, 2.4rem);
}
.enter-col[hidden] {
  display: none !important;
}
.enter-step {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.7rem;
}
.enter-col h2 {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.enter-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: clamp(0.84rem, 2.1vw, 0.95rem);
  max-width: 36ch;
}
.enter-hint-sm {
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}
.enter-label {
  display: block;
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.enter-mac-block,
.enter-pair-block {
  margin-bottom: 1.15rem;
}
.enter-mac.mac-box {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.65rem;
  letter-spacing: 0.06em;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  white-space: nowrap;
}
.enter-copy {
  width: 100%;
  max-width: 16rem;
  border-radius: 0.7rem;
}
.enter-copy-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
}
.enter-copy-line .mac-box {
  margin: 0;
}
.enter-pair-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.enter-qr.qr-wrap {
  margin: 0;
  padding: 0.55rem;
  flex: 0 0 auto;
}
.enter-qr.qr-wrap img {
  width: min(38vw, 148px);
}
.enter-pair-code {
  flex: 1 1 11rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.enter-pair-code .code-huge.xl {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
}
.enter-code-nums {
  font-family: Manrope, "Segoe UI", Roboto, system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.08em;
}
.enter-screen .code-actions,
body:not(.is-web) .enter-screen .code-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  width: 100%;
}
.enter-screen .code-actions .btn {
  width: 100%;
  max-width: 16rem;
}
.enter-login {
  max-width: none;
  margin: 0;
}
.enter-login .login-field span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.enter-login .login-field input {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 12, 0.55);
  padding: 0.82rem 1.05rem;
}
.enter-login .login-field input:focus {
  border-color: rgba(232, 163, 23, 0.7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.18);
}
.btn.enter-go {
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 0.55rem;
  background: var(--amber);
  color: #16120a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}
.btn.enter-go:hover,
.btn.enter-go:focus,
.btn.enter-go.is-focused {
  filter: brightness(1.08);
}
.enter-legal {
  margin: auto auto 0;
  padding-top: 1.4rem;
  width: 100%;
  max-width: 40rem;
  text-align: center;
}
.enter-screen .onboard-device-meta {
  position: static;
  justify-content: center;
  text-align: center;
  margin-top: 0.65rem;
}
#onboard-mac-wrap[hidden] {
  display: none !important;
}
.enter-mac-block[hidden],
.enter-pair-block[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .enter-grid,
  .enter-grid[data-cols="1"] {
    display: flex;
    flex-direction: column;
    max-width: 26rem;
    gap: 1rem;
  }
  .enter-col-login {
    order: -1;
    border-left: 0;
    padding-left: 0;
    padding-top: 0;
  }
  .enter-col-device {
    order: 1;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .enter-copy,
  .enter-screen .code-actions .btn {
    max-width: none;
  }
}
body.is-mobile .enter-screen,
body.is-mobile.screen#screen-onboard {
  -webkit-overflow-scrolling: touch;
}
body.is-mobile .enter {
  padding: 0.7rem max(0.85rem, env(safe-area-inset-left)) calc(1.1rem + env(safe-area-inset-bottom));
  padding-right: max(0.85rem, env(safe-area-inset-right));
  gap: 0.55rem;
}
body.is-mobile .enter-head {
  margin-bottom: 0.55rem;
}
body.is-mobile .enter-brand {
  font-size: clamp(1.35rem, 7vw, 1.7rem);
  margin-bottom: 0.3rem;
}
body.is-mobile .enter-pulse {
  font-size: 0.75rem;
}
body.is-mobile .enter-head .tv-remote-tip,
body.is-mobile .enter-step {
  display: none !important;
}
body.is-mobile .enter-grid,
body.is-mobile .enter-grid[data-cols="1"] {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  gap: 0.85rem;
}
body.is-mobile .enter-col-login {
  order: -1;
  border: 0;
  padding: 0;
}
body.is-mobile .enter-col-device {
  order: 1;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
body.is-mobile .enter-col h2 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}
body.is-mobile .enter-hint {
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
  max-width: none;
}
body.is-mobile .enter-label {
  font-size: 0.62rem;
  margin-bottom: 0.28rem;
}
body.is-mobile .enter-pair-block,
body.is-mobile .enter-mac-block {
  margin-bottom: 0.7rem;
}
body.is-mobile .enter-pair-row {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
}
body.is-mobile .enter-qr.qr-wrap {
  padding: 0.4rem;
  align-self: center;
}
body.is-mobile .enter-qr.qr-wrap img {
  width: 84px;
}
body.is-mobile .enter-pair-code {
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0.35rem;
}
body.is-mobile .enter-pair-code .code-huge.xl {
  font-size: 1.25rem;
  padding: 0.45rem 0.55rem;
  letter-spacing: 0.06em;
}
body.is-mobile .enter-mac.mac-box {
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  width: 100%;
}
body.is-mobile .enter-copy-line {
  flex-direction: column;
  gap: 0.4rem;
}
body.is-mobile .enter-copy {
  width: 100%;
  max-width: none;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 0.6rem;
}
body.is-mobile .enter-login {
  gap: 0.55rem;
}
body.is-mobile .enter-login .login-field {
  gap: 0.22rem;
}
body.is-mobile .enter-login .login-field span {
  font-size: 0.66rem;
}
body.is-mobile .enter-login .login-field input {
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
}
body.is-mobile .btn.enter-go {
  margin-top: 0.15rem;
  padding: 0.75rem 1rem;
  letter-spacing: 0.1em;
}
body.is-mobile .enter-legal {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  font-size: 0.68rem;
  line-height: 1.4;
  max-width: 22rem;
}
body.is-mobile .enter-legal p:first-child {
  font-size: 0.72rem;
}
body.is-mobile .enter-screen .onboard-device-meta {
  font-size: 0.68rem;
  margin-top: 0.35rem;
}
body.is-mobile .status {
  font-size: 0.75rem;
}
body.is-tv .enter-mac.mac-box {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}
body:not(.is-web) .enter-screen .code-actions {
  display: flex;
}

.mac-box, .code-huge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0.65rem;
  padding: clamp(0.7rem, 2vw, 1.1rem) clamp(0.75rem, 3vw, 1.35rem);
  border-radius: 14px;
  background: rgba(232, 163, 23, 0.1);
  border: 1px solid rgba(232, 163, 23, 0.35);
  color: var(--amber);
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 2rem;
  font-size: clamp(1.45rem, 4.5vw, 2.4rem);
  line-height: 1.05;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
/* Código XXX-XXX: escala com a largura da tela e nunca quebra linha */
.code-huge.xl {
  width: 100%;
  max-width: min(100%, 22rem);
  /* ~7 glyphs: cabe numa linha mesmo em 320px */
  font-size: clamp(1.55rem, 11vw, 3.5rem);
  letter-spacing: clamp(0.04em, 1.1vw, 0.18em);
  padding-inline: clamp(0.65rem, 3.5vw, 1.4rem);
}
@supports (font-size: 1cqi) {
  .code-huge.xl {
    font-size: clamp(1.55rem, 16cqi, 3.5rem);
    letter-spacing: clamp(0.04em, 1.6cqi, 0.18em);
  }
}
.code-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.15rem 0 0.35rem;
  width: 100%;
}
.code-actions .btn {
  width: min(100%, 16rem);
  font-size: clamp(0.88rem, 2.6vw, 1rem);
  padding: clamp(0.65rem, 1.8vw, 0.85rem) 1.1rem;
}
body:not(.is-web) .code-actions { display: none; }
.status { color: var(--muted); }
.api-hint {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-elev);
  color: #cfc8b8;
  white-space: pre-wrap;
  font-size: 0.85rem;
  max-width: 720px;
  overflow: auto;
}

.qr-wrap {
  background: #fff;
  padding: clamp(0.65rem, 2vw, 1.1rem);
  border-radius: clamp(12px, 3vw, 18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin: 0.15rem 0 0.35rem;
  max-width: 100%;
  box-sizing: border-box;
}
.qr-wrap img {
  display: block;
  width: min(52vw, 240px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.pair-centered .code-huge {
  margin: 0.1rem 0 0.35rem;
}

/* Tela de código: hierarquia tipográfica estável em phone/tablet/TV */
#screen-code .pair-panel.pair-centered {
  max-width: min(100%, 28rem);
}
#screen-code .pair-panel h1 {
  font-size: clamp(1.35rem, 5vw, 2.35rem);
}
#screen-code .lead {
  max-width: 32ch;
  margin-bottom: clamp(0.55rem, 1.8vh, 1rem);
}

.hero {
  position: relative;
  min-height: 0;
  height: 42vh;
  height: clamp(300px, 52vh, 620px);
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(7, 7, 11, 0.94) 14%, rgba(7, 7, 11, 0.45) 52%, rgba(7, 7, 11, 0.1) 78%, transparent),
    linear-gradient(0deg, rgba(7, 7, 11, 0.88) 0%, transparent 48%),
    linear-gradient(135deg, #141414, #0b0b0f 55%, #111);
  background-size: cover;
  background-position: center 20%;
  flex: 0 0 auto;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.5rem var(--safe-x) 1.8rem;
  max-width: 42rem;
  width: 100%;
}
.hero-kicker {
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.hero-copy h1 {
  font-family: Syne, Manrope, sans-serif;
  font-size: 2rem;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
#hero-meta { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.9rem; }
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.rows {
  padding: 1rem 0 calc(1.5rem + var(--safe-b));
}
.row {
  margin-bottom: 1.4rem;
}
.row h2 {
  margin: 0 0 0.75rem;
  padding: 0 var(--safe-x);
  font-size: 1.15rem;
  font-weight: 800;
}
.rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.35rem var(--safe-x) 0.8rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 auto;
  width: 150px;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: visible;
  background: var(--bg-elev);
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Ano ★ nota acima da capa — padrão único */
.card-cap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0 0.1rem 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
}
/* Quadro padrão: imagem sempre centrada (contain se menor que o card) */
.card-art {
  position: relative;
  overflow: hidden;
  background: #0e0e14;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 0;
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
}
/* Canais: quadrado */
.card-live {
  width: 150px;
}
.card-live .card-art,
.card-art.logo-art {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}
/* webOS ≤22: sem aspect-ratio — altura fixa para a grelha D-pad não colapsar */
@supports not (aspect-ratio: 1 / 1) {
  .card-live .card-art,
  .card-art.logo-art {
    height: 150px;
  }
  .card-poster .card-art,
  .card-poster .poster-art {
    height: 225px;
  }
  /* Episódios: sem aspect-ratio a thumb rebentava no tamanho natural da imagem */
  .ep-thumb {
    height: 90px;
  }
  .trailer-frame {
    height: 460px;
    max-height: 52vh;
  }
}
body.is-tv .card-live .card-art,
body.is-tv .card-art.logo-art {
  min-height: 150px;
}
body.is-tv .card-poster .card-art,
body.is-tv .card-poster .poster-art {
  min-height: 210px;
}
/* VOD: retangular */
.card-poster {
  width: 150px;
}
.card-poster .card-art,
.card-poster .poster-art {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
}
/* Logo/poster inteiro, centrado — se menor que o card, não estica a cortar */
.card-art img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  padding: 0;
  background: transparent;
  display: block;
  pointer-events: none;
}
.card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.card-art.has-brand-fallback {
  background: linear-gradient(160deg, #1a1f2e 0%, #0d111a 100%);
}
.card-brand-fallback {
  display: block;
  width: 52%;
  height: auto;
  max-width: 120px;
  max-height: 40%;
  margin: auto;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
}
.card-fallback-brand {
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8ecf4;
  text-align: center;
  line-height: 1.15;
  opacity: 0.85;
}
.card-fallback-brand span {
  color: #e11d48;
  font-size: 0.68rem;
}
.card-body {
  flex: 0 0 auto;
  min-height: 3.6rem;
  padding: 0.7rem 0.8rem 0.9rem;
  display: grid;
  gap: 0.15rem;
  background: var(--bg-elev);
  position: relative;
  z-index: 1;
}
.card-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-body span {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  color: var(--muted);
}
.empty h2 { color: var(--ink); margin: 0; }

.player {
  background: #000;
  overflow: hidden !important;
  z-index: 30;
  padding: 0;
  height: 100%;
  max-height: 100%;
  max-height: 100dvh;
}
#screen-player.player {
  /* Nunca rolar a página do player — só a lista lateral */
  overflow: hidden !important;
  overscroll-behavior: none;
}
.watch-layout {
  display: grid;
  /* Lista à esquerda (rola) · player à direita (fixo) */
  grid-template-columns: minmax(320px, 42vw) minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
}
.watch-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #0c0c12;
  border-right: 1px solid var(--line);
  z-index: 2;
}
.watch-side-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: #0c0c12;
  /* Acima dos cards de episódios — menu de temporada não fica atrás */
  z-index: 40;
  overflow: visible;
}
.watch-side-head strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-title-btn {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: left;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
}
.watch-title-btn.has-seasons {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.watch-title-btn.has-seasons:hover,
.watch-title-btn.has-seasons.is-focused,
.watch-title-btn.has-seasons:focus {
  background: rgba(255, 255, 255, 0.16);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.watch-title-btn:disabled {
  opacity: 1;
  cursor: default;
}
.watch-title-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-title-season {
  flex: 0 0 auto;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.watch-season-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0.45rem;
  right: 0.45rem;
  z-index: 60;
  max-height: min(55vh, 380px);
  overflow-y: auto;
  background: linear-gradient(180deg, #1c1c1f 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  -webkit-overflow-scrolling: touch;
}
.watch-season-menu[hidden] {
  display: none !important;
}
.watch-season-item {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.watch-season-item.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: #111;
}
.watch-season-item.is-focused,
.watch-season-item:focus,
.watch-season-item:hover {
  outline: 2px solid #fff;
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.watch-season-item.is-active.is-focused,
.watch-season-item.is-active:focus,
.watch-season-item.is-active:hover {
  background: #fff;
  color: #111;
}
/* Grelha 5 colunas — capas compactas (episódios / lista lateral) */
.watch-thumbs {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0.3rem 0.45rem 0.4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem 0.3rem;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  -webkit-overflow-scrolling: touch;
}
.watch-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.watch-thumbs .card {
  width: 100% !important;
  max-width: none;
  height: auto !important;
  min-height: 0;
  align-self: start;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elev);
}
.watch-thumbs .card.is-active {
  border-color: rgba(232, 163, 23, 0.65);
  box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.35);
}
.watch-thumbs .card-art {
  flex: 0 0 auto !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Capas bem menores que a home / grelha de categorias */
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}
.watch-thumbs .card-poster .card-art,
.watch-thumbs .card-poster .poster-art {
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 0 !important;
}
.watch-thumbs .card-live .card-art {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
}
.watch-thumbs .card-art img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}
.watch-thumbs .card-live .card-art img {
  object-fit: contain !important;
  max-width: 88% !important;
  max-height: 88% !important;
  width: auto !important;
  height: auto !important;
}
/* Infos compactas sob a capa */
.watch-thumbs .card-body {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.28rem 0.2rem 0.32rem !important;
  gap: 0.06rem;
  background: var(--bg-elev) !important;
  position: relative;
  z-index: 2;
}
.watch-thumbs .card-body strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.62rem !important;
  font-weight: 700;
  color: var(--ink) !important;
  line-height: 1.2;
}
.watch-thumbs .card-body span {
  display: block !important;
  font-size: 0.55rem !important;
  color: var(--muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  outline: none;
}
/* Foco no palco: outline interno (overflow:hidden cortava o anel no #video) */
.watch-stage.focusable.is-focused,
.watch-stage.focusable:focus,
.watch-stage.is-focused {
  outline: 4px solid #fff !important;
  outline-offset: -4px !important;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28) !important;
  z-index: 5;
}
/* Web/desktop: fullscreen nativo / fixed */
body.is-web .watch-stage:fullscreen,
body.is-web .watch-stage.is-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  z-index: 200 !important;
  background: #000;
}
/*
 * TV: tela cheia SEM position:fixed / Fullscreen API —
 * fixed desloca a superfície MSE e fica preto + só áudio.
 * Só esconde a lista e o stage ocupa o ecrã inteiro no fluxo normal.
 */
body.is-tv.player-fs-active #app-header,
body.is-tv.player-fs-active #watch-side {
  display: none !important;
}
body.is-tv.player-fs-active #screen-player.player,
body.is-tv.player-fs-active .watch-layout {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}
body.is-tv.player-fs-active .watch-stage,
body.is-tv .watch-stage.is-fs {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  z-index: 1 !important;
  background: #000;
  grid-column: 1 / -1;
}
body.is-web.player-fs-active #watch-side,
body.is-web.player-fs-active #app-header {
  visibility: hidden !important;
  pointer-events: none !important;
}
#video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  cursor: pointer;
}
/* Nitidez opcional — só no web (filter na TV também pode matar a superfície) */
body.is-web #video {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
body.is-web #video.hq-enhance {
  filter: contrast(1.07) saturate(1.06) brightness(1.02);
}
/* TV: mesmo realce; após o toggle o player recupera a superfície de vídeo */
body.is-tv #video.hq-enhance {
  filter: contrast(1.08) saturate(1.08) brightness(1.02);
}
.watch-stage:fullscreen #video,
.watch-stage.is-fs #video {
  width: 100%;
  height: 100%;
}
.player-ui {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem var(--safe-x);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.player-ui.is-hidden { opacity: 0; pointer-events: none; }
/* TV (janela lateral): barra sempre visível. Em tela cheia esconde ao ficar parado. */
body.is-tv:not(.player-fs-active) .player-ui,
body.is-tv:not(.player-fs-active) .player-ui.is-hidden,
body.is-tv:not(.player-fs-active) .player-bottom,
body.is-tv:not(.player-fs-active) .player-bottom.is-hidden {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.is-tv .pip-btn.is-focused,
body.is-tv .player-actions select.is-focused,
body.is-tv #player-back.is-focused {
  outline: 3px solid var(--amber, #e8a317);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}
/* Barra inferior: play/pause + progresso (seek via D-pad na TV) */
.player-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem var(--safe-x) 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  z-index: 3;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.player-bottom.is-hidden { opacity: 0; pointer-events: none; }
.player-bottom[hidden] { display: none !important; }
.seek-time {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
  min-width: 3.4rem;
  text-align: center;
}
.seek-bar {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.seek-bar[hidden] { display: none !important; }
.seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--nf-red, #e50914);
}
.seek-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.seek-bar.is-focused,
.seek-bar:focus {
  outline: 3px solid var(--amber, #e8a317);
  outline-offset: 5px;
}
body.is-tv .seek-bar { height: 10px; }
body.is-tv .player-bottom:not(.nf-player-bottom) > * + * { margin-left: 0.8rem; }
body.is-tv .nf-player-main > * + * { margin-left: 0.85rem; }
body.is-tv .nf-track-row > * + * { margin-left: 0.45rem; }
body.is-tv .nf-osd-skips > * + * { margin-left: 0.45rem; }
#player-playpause { min-width: 3.2rem; }

/* Temporada no topo da lista lateral */
.watch-season {
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  max-width: 45%;
}
.watch-season.is-focused,
.watch-season:focus {
  outline: 3px solid var(--amber, #e8a317);
  outline-offset: 2px;
}

.player-meta { display: grid; gap: 0.15rem; flex: 1; min-width: 0; }
.player-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-meta span { color: var(--muted); font-size: 0.9rem; }
.player-actions { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.pip-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pip-btn.is-on {
  background: rgba(232, 163, 23, 0.22);
  border-color: rgba(232, 163, 23, 0.55);
  color: var(--amber);
}
.pip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.player-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.45);
}
.player-overlay[hidden] { display: none !important; }
.play-big {
  font-size: 1.25rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
}
.player-status {
  margin: 0;
  color: #f5f2ea;
  text-align: center;
  max-width: 28rem;
}
.player-status.is-error { color: #ff8e8e; }

body.is-web #video { z-index: 1; }
body.is-web .player-ui {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
body.is-web .player-ui.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Perfis + conta — cabe na tela sem rolagem */
.profiles-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem var(--safe-x) calc(0.85rem + var(--safe-b));
  overflow: hidden !important;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.profiles-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  width: min(980px, 100%);
  margin: auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.profiles-side {
  text-align: left;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(17, 17, 24, 0.92);
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  align-self: stretch;
  min-height: 0;
}
.profiles-side-title {
  margin: 0 0 0.55rem;
  font-family: Syne, Manrope, sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.profiles-brand { font-size: 1.1rem; margin-bottom: 0.55rem; }
.profiles-main {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.profiles-main h1 {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  margin: 0 0 1.1rem;
  font-weight: 800;
}
.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 640px;
}
@media (max-width: 820px) {
  .profiles-screen { align-items: flex-start; overflow-y: auto !important; }
  .profiles-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .profiles-side { order: 2; max-height: none; }
  .profiles-main { order: 1; }
}
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.55rem 0.65rem !important;
  font: inherit;
  width: 7.25rem;
  min-width: 7.25rem;
  max-width: 7.75rem;
  min-height: 0 !important;
  border-radius: 14px !important;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.profile-card.is-focused,
.profile-card:focus {
  z-index: 2;
  outline: 3px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
  border-color: #fff !important;
}
.profile-card.is-focused .profile-avatar,
.profile-card:focus .profile-avatar {
  outline: none;
  box-shadow: none;
  transform: scale(1.04);
}
.profile-name {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.15rem;
  box-sizing: border-box;
}
.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.12s ease-out;
}
.profile-avatar.add-av {
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.25);
  color: var(--muted);
}
.profile-manage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  width: 100%;
}
.profile-edit,
.profile-avatar-btn,
.profile-del {
  display: inline-block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.profile-del {
  color: #ff8e8e;
  background: rgba(255, 80, 80, 0.12);
}
.profiles-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.25rem;
}
.profiles-main .app-legal {
  margin-top: 0.75rem !important;
  font-size: 0.75rem;
  opacity: 0.7;
}
.profiles-side .account-card {
  margin: 0 0 1rem;
}
.profiles-side .account-actions {
  margin-bottom: 0.5rem;
}
.profiles-side .renew-panel {
  margin-top: 0.85rem;
}

/* Home: cabe?alho fixo + conte?do com scroll interno (p?gina nunca rola) */
.home {
  position: relative;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}
#home-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  touch-action: pan-y;
}
/* Web: cadeia flex + scroll fiável (evita home “presa” sem rolagem) */
body.is-web #app {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body.is-web #app-body {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}
body.is-web #screen-home.home:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
/* Nunca deixar home/browse “fantasma” tapar onboard/login (display:!important vs [hidden]) */
body.is-web #screen-home.home[hidden],
body.is-web #screen-browse[hidden],
body.layout-play10:not(.is-tv) #screen-browse[hidden] {
  display: none !important;
}
body.is-web #home-content {
  /* height:0 + flex-grow = área com altura limitada (overflow-y passa a funcionar) */
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-gutter: stable;
}
/* Trilhas horizontais: não engolir scroll vertical da página no desktop */
body.is-web .rail,
body.is-web .nav {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}
body.is-web #screen-browse {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
body.is-web.cats-open #home-content,
body.is-web.cats-open #screen-browse {
  overflow: hidden !important;
}
/* Dropdown de categorias: overlay (não empurra nem corta a página) */
.cat-dropdown {
  position: fixed;
  left: var(--safe-x);
  top: 4.6rem;
  z-index: 40;
  width: calc(100% - 2 * var(--safe-x));
  max-width: 720px;
  max-height: 62vh;
  max-height: min(62dvh, calc(100dvh - 6rem));
  display: flex;
  flex-direction: column;
  background: #12121a;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.cat-dropdown[hidden] { display: none !important; }
.cat-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
}
.cat-dropdown-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.cat-dropdown-tools {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.cat-tool {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.cat-tool span {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat-input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.cat-input:focus {
  border-color: rgba(232, 163, 23, 0.55);
}
select.cat-input {
  cursor: pointer;
}
.cat-dropdown-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem;
  display: grid;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.cat-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  cursor: pointer;
  min-height: 56px;
}
.cat-item strong { display: block; font-size: 1rem; }
.cat-item span { color: var(--muted); font-size: 0.82rem; }
.cat-item.is-4k { border-color: rgba(160, 130, 255, 0.4); }
.cat-chevron { font-size: 1.4rem; color: var(--muted); }

.browse-hint {
  margin: 0 var(--safe-x) 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Grid posters / canais ? mesma grelha em todos os aparelhos */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  padding: 0.5rem var(--safe-x) 1rem;
}
.poster-grid .card {
  width: 100%;
}
.poster-grid.grid-live {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.rail .card-live,
.rail .card-poster {
  width: 150px;
}
/* Nunca for?ar 2:3 em canais ? sobrescreve regras antigas */
.rail .card-live .card-art,
.rail-posters .card-live .card-art,
.watch-thumbs .card-live .card-art,
.poster-grid .card-live .card-art {
  aspect-ratio: 1 / 1 !important;
}
.rail .card-poster .card-art,
.rail-posters .card-poster .card-art,
.poster-grid .card-poster .card-art {
  aspect-ratio: 2 / 3 !important;
}
.poster-grid .card-art img,
.rail .card-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}
.has-trailer {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--amber);
  font-weight: 800;
}
.card-seen {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1db954;
  color: #041208;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.card-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
}
.card-progress i {
  display: block;
  height: 100%;
  background: var(--nf-red, #e50914);
}

/* Modal continuar / do in?cio */
.resume-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.resume-modal[hidden] { display: none !important; }
.list-switch-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  max-height: 40vh;
  overflow: auto;
}
.list-switch-choices .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}
.list-switch-choices .btn.is-selected {
  border-color: var(--amber, #e8a317);
  box-shadow: 0 0 0 1px var(--amber, #e8a317);
}
.resume-card {
  width: 100%;
  max-width: 420px;
  background: #14141e;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.resume-kicker {
  margin: 0 0 0.35rem;
  color: var(--amber, #e8a317);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.resume-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.25;
}
.resume-meta {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.resume-actions .btn { flex: 1 1 140px; }
.load-more {
  display: block;
  margin: 0 auto calc(1.5rem + var(--safe-b));
}

/* Busca global */
.search-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: start center;
  padding: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
  overflow: auto;
}
.search-modal[hidden] { display: none !important; }
.search-card {
  width: 100%;
  max-width: 960px;
  max-height: 86vh;
  max-height: min(88dvh, 900px);
  background: #12121a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-input {
  font-size: 1.05rem !important;
  padding: 0.75rem 0.9rem !important;
}
.search-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
/* Mesmo card padr?o da home (makeCard) ? largura fixa como nos rails */
.search-results {
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.85rem;
  padding: 0.35rem 0 0.5rem;
  flex: 1 1 auto;
  min-height: 120px;
}
.search-results .card-live,
.search-results .card-poster {
  width: 150px;
}
.search-results .card-live .card-art {
  aspect-ratio: 1 / 1 !important;
}
.search-results .card-poster .card-art {
  aspect-ratio: 2 / 3 !important;
}

/* Trailer modal */
.trailer-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.trailer-modal[hidden] { display: none !important; }
.trailer-card {
  width: 100%;
  max-width: 920px;
  background: #12121a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
}
.trailer-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
}
.trailer-frame {
  margin-top: 0.5rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.trailer-frame iframe,
.trailer-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .option-grid,
  body.is-web .option-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .option { min-height: 0; }
  .pair-panel.pair-centered { justify-content: flex-start; padding-top: 1.25rem; }
  .onboard { justify-content: flex-start; padding-top: 2rem; }
}

/* Mobile / tablet */
@media (max-width: 820px) {
  :root { --safe-x: max(0.85rem, env(safe-area-inset-left)); }
  .topbar {
    padding-top: max(0.8rem, env(safe-area-inset-top));
    gap: 0.6rem;
  }
  .home-bar { align-items: center; }
  .logo-sm { font-size: 1.1rem; }
  .nav-btn { padding: 0.55rem 0.7rem; font-size: 0.88rem; }
  .profile-chip { margin-left: auto; }
  .search-results .card-live,
  .search-results .card-poster,
  .rail .card-live,
  .rail .card-poster,
  body:not(.is-tv) .card-live,
  body:not(.is-tv) .card-poster { width: 130px; }
  body:not(.is-tv) .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.65rem;
  }
  body:not(.is-tv) .hero {
    height: clamp(220px, 38vh, 360px);
    margin: 0.25rem var(--safe-x) 0;
    border-radius: 14px;
  }
  body:not(.is-tv) .hero-copy { padding: 1.1rem 1.1rem 1.2rem; }
  body:not(.is-tv) .hero-copy h1 { font-size: 1.25rem; }
  body:not(.is-tv) .cat-dropdown {
    top: 5.8rem;
    max-height: min(55dvh, calc(100dvh - 7rem));
  }
  body:not(.is-tv) .cat-dropdown-tools {
    grid-template-columns: 1fr;
  }
  .profiles-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .profile-card { width: 6.5rem; min-width: 6.5rem; max-width: 7rem; }
  .profile-avatar { width: 5.5rem; height: 5.5rem; }
  /* PiP + Cast visíveis no mobile (Android Chrome / Safari iOS) */
  .pip-btn#player-pip,
  .pip-btn#player-cast { display: inline-flex; }
  .player-actions { gap: 0.35rem; }
  .pip-btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }
  .player-ui { padding: 0.9rem var(--safe-x); }
  /* Empilhar só no web/mobile — nunca na TV (viewport estreito no webOS) */
  body:not(.is-tv) .watch-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(38vh, 1fr) minmax(180px, 40vh);
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
  }
  body:not(.is-tv) .watch-stage { order: 1; min-height: 0; height: 100%; }
  body:not(.is-tv) .watch-side {
    order: 2;
    min-height: 0;
    max-height: none;
    height: 100%;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  body:not(.is-tv) .watch-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cat-dropdown {
    max-height: min(62dvh, calc(100dvh - 6.5rem));
    max-width: none;
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  body:not(.is-tv):not(.layout-play10) .watch-layout {
    grid-template-columns: minmax(300px, 52vw) minmax(0, 1fr);
  }
  body:not(.is-tv):not(.layout-play10) .watch-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .option { min-height: 0; }
  .code-huge.xl {
    font-size: clamp(1.5rem, 12.5vw, 2.35rem);
    letter-spacing: 0.08em;
  }
  #screen-code .qr-wrap img {
    width: min(48vw, 200px);
  }
  body:not(.is-tv) .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.is-tv) .watch-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem;
  }
}

/* ??? Conta (lateral do hub de perfis) ??? */
.account-card {
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.75);
  padding: 0.35rem 0;
}
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.account-row:last-child { border-bottom: 0; }
.account-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.account-actions .btn,
.account-actions a.btn {
  text-align: center;
  text-decoration: none;
}
.renew-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(232, 163, 23, 0.35);
  border-radius: 14px;
  background: rgba(232, 163, 23, 0.06);
}
.renew-status-line {
  margin: 0.35rem 0 0.65rem;
  min-height: 1.2em;
}
.renew-payer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.55rem 0 0.35rem;
}
.renew-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.renew-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
}
.renew-packages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.65rem 0 0.85rem;
}

/* Lista vencida / PIX — cartão simples, texto nítido, sem grelha partida */
.profiles-screen.is-renewing {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
  padding: 1.25rem var(--safe-x) calc(1.25rem + var(--safe-b));
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}
.profiles-layout.is-renewing {
  display: block !important;
  width: min(520px, 94vw) !important;
  max-width: 94vw;
  height: auto;
  max-height: none;
  margin: auto;
  overflow: visible;
}
.profiles-layout.is-renewing .profiles-main {
  display: none !important;
}
.profiles-layout.is-renewing .profiles-side {
  display: flex !important;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 20px;
}
.profiles-layout.is-renewing .profiles-brand,
.profiles-layout.is-renewing .profiles-side-title,
.profiles-layout.is-renewing #account-info,
.profiles-layout.is-renewing #account-actions {
  display: none !important;
}
.profiles-layout.is-renewing .renew-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible;
  font-family: Manrope, system-ui, sans-serif !important;
  font-synthesis: none !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0.01em;
}
.profiles-layout.is-renewing .renew-panel,
.profiles-layout.is-renewing .renew-panel * {
  font-family: Manrope, system-ui, sans-serif !important;
  font-synthesis: none !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
.profiles-layout.is-renewing .renew-panel [hidden] {
  display: none !important;
}
.profiles-layout.is-renewing #renew-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0;
}
.profiles-layout.is-renewing #renew-hint {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}
.profiles-layout.is-renewing .renew-status-line {
  margin: 0;
  font-size: 0.9rem;
}
.profiles-layout.is-renewing .renew-status-line:empty {
  display: none !important;
}
.profiles-layout.is-renewing .renew-packages {
  display: flex !important;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
}
.profiles-layout.is-renewing .renew-packages .renew-pack {
  padding: 0.85rem 1rem !important;
  font-size: 0.95rem;
  text-align: center;
  justify-content: center;
}
.profiles-layout.is-renewing .renew-payer {
  margin: 0;
  max-width: none;
}
.profiles-layout.is-renewing .renew-pix {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  text-align: center;
}
.profiles-layout.is-renewing .renew-pix img {
  width: min(220px, 70vw);
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}
.renew-pix img:not([src]),
.renew-pix img[src=""],
.renew-pix img[hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}
.profiles-layout.is-renewing .renew-pix-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
.profiles-layout.is-renewing .renew-copy {
  max-height: 5.5rem;
  font-size: 0.75rem;
  width: 100%;
  text-align: left;
}
.renew-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.renew-gate-actions .btn {
  flex: 1 1 10rem;
  text-align: center;
}
.renew-gate-actions #renew-pay-now {
  flex: 1 1 100%;
}
.profiles-layout.is-renewing .renew-gate-actions,
.profiles-layout.is-renewing #renew-cancel {
  margin-top: 0.35rem;
}
.profiles-layout.is-renewing #renew-cancel {
  align-self: stretch;
  min-width: 0;
  text-align: center;
}
body.is-tv .profiles-layout.is-renewing {
  width: min(560px, 94vw) !important;
}
body.is-tv .profiles-screen.is-renewing {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto !important;
}
.renew-packages .renew-pack {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-weight: 800;
  color: #111 !important;
  border: 0 !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 0.9rem 1.1rem !important;
  opacity: 1 !important;
}
.renew-packages .renew-pack.is-focused,
.renew-packages .renew-pack:focus {
  outline: 3px solid var(--amber, #e8a317) !important;
  outline-offset: 2px;
  background: #fff !important;
  color: #111 !important;
}
.renew-payer[hidden] {
  display: none !important;
}
#renew-payer-confirm {
  margin-top: 0.55rem;
  width: 100%;
  background: #fff !important;
  color: #111 !important;
  font-weight: 800 !important;
}
.renew-packages:empty {
  display: none;
}
.renew-pix {
  text-align: center;
  margin: 0.75rem 0;
}
.renew-pix img {
  display: block;
  width: 70vw;
  max-width: 280px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
}
.renew-pix img[hidden] {
  display: none !important;
}
.renew-value {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.65rem 0 0.35rem;
  color: var(--amber);
}
.renew-copy {
  font-size: 0.75rem;
  word-break: break-all;
  color: var(--muted);
  max-height: 4.5rem;
  overflow: auto;
  padding: 0.5rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.muted { color: var(--muted); font-size: 0.9rem; }

/* ??? Netflix hub / Top 10 / detalhe de s?rie ??? */
.hub-tools {
  padding: 0.25rem var(--safe-x) 0.75rem;
  display: flex;
  gap: 0.65rem;
}
.row-top10 h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rail-top10 {
  align-items: flex-end;
  gap: 0.2rem;
  padding-top: 0.35rem;
  padding-bottom: 1.1rem;
}
.card-top10 {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: auto !important;
  background: transparent !important;
  gap: 0;
  overflow: visible;
  margin-right: 0.15rem;
}
/* Número outline Netflix: atrás da capa, peeks à esquerda */
.card-top10 .top10-rank {
  position: relative;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5.8rem, 11vw, 8.6rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.92);
  text-shadow: none;
  transform: skewX(-8deg);
  -webkit-transform: skewX(-8deg);
  margin-right: -1.35rem;
  margin-bottom: -0.12em;
  z-index: 1;
  user-select: none;
  flex: 0 0 auto;
  pointer-events: none;
}
.card-top10 .card-art {
  position: relative;
  width: 132px;
  z-index: 2;
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.card-top10 .card-body {
  display: none;
}
.card-top10 .card-art img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-more {
  opacity: 0.85;
}
.poster-grid-nf {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.poster-grid-nf .card-poster .card-art {
  padding: 0;
}
.poster-grid-nf .card-art img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-detail {
  padding-bottom: 2rem;
}
.show-hero {
  min-height: min(52vh, 420px);
  margin: 0 0 1rem;
  padding: 3.5rem var(--safe-x) 2rem;
  display: flex;
  align-items: flex-end;
  background-color: #0a0a10;
  background-repeat: no-repeat;
}
.show-hero-copy {
  max-width: 640px;
}
.show-hero h1 {
  margin: 0.15rem 0 0.5rem;
  font-size: 2.2rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  font-family: Syne, Manrope, sans-serif;
}
.show-meta {
  color: var(--muted);
  margin: 0 0 0.65rem;
  font-weight: 600;
}
.show-overview {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1rem;
  max-width: 52ch;
  line-height: 1.45;
  font-size: 0.95rem;
}
.show-extras {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1rem;
  max-width: 56ch;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.show-extras strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  margin-right: 0.35rem;
}
.show-vote {
  color: #f5c518;
  font-weight: 800;
}
.show-eps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--safe-x);
  margin-bottom: 0.75rem;
}
.show-eps-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.season-select-wrap {
  min-width: 200px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.show-episodes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 var(--safe-x) 2rem;
}
.ep-row {
  display: grid;
  grid-template-columns: 2rem 160px 1fr;
  gap: 0.9rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
}
.ep-row:hover,
.ep-row:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.ep-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-thumb-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  color: rgba(255,255,255,.4);
}
.ep-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.2);
  display: block;
}
.ep-progress b {
  display: block;
  height: 100%;
  background: #e50914;
}
.ep-seen {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ep-info strong {
  font-size: 0.98rem;
}
.ep-info span {
  color: var(--muted);
  font-size: 0.82rem;
}
#show-fav.is-on {
  border-color: rgba(232, 163, 23, 0.55);
  color: #e8a317;
}
@media (max-width: 720px) {
  .card-top10 .top10-rank { font-size: 5.5rem; -webkit-text-stroke-width: 2px; z-index: 1; }
  .card-top10 .card-art { width: 110px; z-index: 2; }
  .ep-row { grid-template-columns: 1.5rem 110px 1fr; gap: 0.55rem; }
  .show-hero { min-height: 38vh; padding-top: 2.5rem; }
}

/* ??? Mobile: topo limpo + tabbar inferior ??? */
body.is-mobile #surface-badge {
  display: none !important;
}
body.is-mobile .home-nav-cluster .nav {
  display: none !important;
}
body.is-mobile .home-nav-cluster {
  flex: 0 0 auto;
  overflow: visible;
  margin-left: auto;
}
body.is-mobile #app-header.app-chrome {
  padding: max(0.55rem, env(safe-area-inset-top)) var(--safe-x) 0.45rem;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}
body.is-mobile #app-header .logo-sm {
  font-size: 1.05rem;
  flex: 0 0 auto;
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.is-mobile #app-header .profile-chip {
  margin-left: 0;
  max-width: 7.5rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}
body.is-mobile #app-header .profile-chip #active-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 4.5rem;
}
body.is-mobile #app-header .nav-search-btn {
  width: 2.2rem;
  height: 2.2rem;
}
body.is-mobile.has-mob-tabbar #app-body,
body.is-mobile.has-mob-tabbar .screen#screen-home,
body.is-mobile.has-mob-tabbar .screen#screen-browse,
body.is-mobile.has-mob-tabbar .screen#screen-onboard {
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
}
body.is-mobile.has-mob-tabbar .rows {
  padding-bottom: calc(1.5rem + 4.25rem + env(safe-area-inset-bottom));
}
body.is-mobile:not(.is-tv) .cat-dropdown {
  top: calc(3.6rem + env(safe-area-inset-top));
  max-height: min(58dvh, calc(100dvh - 8.5rem - env(safe-area-inset-bottom)));
  left: 0.5rem;
  right: 0.5rem;
  width: auto;
  max-width: none;
}
body.is-mobile .nav-btn.nav-kids {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 12, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-tabbar[hidden] { display: none !important; }
.mob-tab {
  border: 0;
  background: transparent;
  color: rgba(245, 242, 234, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.15rem;
  min-height: 3.35rem;
  cursor: pointer;
  font-family: Manrope, sans-serif;
}
.mob-tab.is-active {
  color: #fff;
}
.mob-tab.is-active .mob-ico {
  transform: translateY(-1px);
}
.mob-ico {
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  min-height: 1.4rem;
}
.mob-ico-bars {
  width: 1.35rem;
  height: 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.mob-ico-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mob-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.mob-kids-text {
  font-weight: 800;
  letter-spacing: 0.03em;
}
.mob-tab-kids.is-active .mob-lbl {
  filter: brightness(1.08);
}

.mobile-more-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 70;
}
.mobile-more-sheet[hidden] { display: none !important; }
.mobile-more-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.mobile-more-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(70dvh, 520px);
  background: #121218;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  padding: 0.85rem 0.85rem calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mobile-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.35rem 0.35rem;
}
.mobile-more-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-more-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.mobile-more-item.is-active {
  border-color: rgba(232, 163, 23, 0.45);
  background: rgba(232, 163, 23, 0.1);
}
.mobile-more-item.nav-adult {
  color: #ff8e8e;
}

/* Player mobile: overlay ? sempre leg?vel */
body.is-mobile .player-overlay {
  background: rgba(0, 0, 0, 0.55);
  z-index: 6;
}
body.is-mobile .play-big {
  font-size: 1.15rem;
  padding: 1.05rem 2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
body.is-mobile:not(.is-tv) .watch-layout {
  grid-template-rows: minmax(42vh, 1fr) minmax(160px, 38vh);
}
body.is-mobile #screen-player {
  padding-bottom: 0;
}
body.is-mobile #screen-player ~ .mobile-tabbar,
body.is-mobile.has-mob-tabbar #screen-player:not([hidden]) {
  /* tabbar escondida no player via JS */
}

@media (min-width: 821px) {
  body:not(.is-mobile):not(.is-tablet) .mobile-tabbar,
  body:not(.is-mobile):not(.is-tablet) .mobile-more-sheet {
    display: none !important;
  }
}

/* ——— Tablet / iPad: guia inferior + categorias estáveis (sem OOM Safari) ——— */
body.is-tablet #surface-badge {
  display: none !important;
}
body.is-tablet .home-nav-cluster .nav {
  display: none !important;
}
body.is-tablet .home-nav-cluster {
  flex: 0 0 auto;
  overflow: visible;
  margin-left: auto;
}
body.is-tablet #app-header.app-chrome {
  padding: max(0.55rem, env(safe-area-inset-top)) var(--safe-x) 0.5rem;
  gap: 0.65rem;
  flex-wrap: nowrap;
  align-items: center;
}
body.is-tablet #app-header .logo-sm {
  font-size: 1.15rem;
  max-width: 36vw;
}
body.is-tablet.has-mob-tabbar #app-body,
body.is-tablet.has-mob-tabbar .screen#screen-home,
body.is-tablet.has-mob-tabbar .screen#screen-browse,
body.is-tablet.has-mob-tabbar .screen#screen-onboard {
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
}
body.is-tablet.has-mob-tabbar .rows {
  padding-bottom: calc(1.5rem + 4.25rem + env(safe-area-inset-bottom));
}
body.is-tablet:not(.is-tv) .cat-dropdown {
  top: calc(3.8rem + env(safe-area-inset-top));
  max-height: min(62dvh, calc(100dvh - 9rem - env(safe-area-inset-bottom)));
  left: 0.75rem;
  right: 0.75rem;
  width: auto;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
body.is-tablet:not(.is-tv) .cat-dropdown-list {
  /* contain scroll; evita paint de milhares de nós de uma vez */
  content-visibility: auto;
  contain: content;
}
body.is-tablet .cat-item-more {
  border: 1px dashed rgba(255, 255, 255, 0.22) !important;
  background: rgba(232, 163, 23, 0.08) !important;
}
body.is-tablet:not(.is-tv) .watch-layout {
  grid-template-columns: 1fr;
}
body.is-tablet #screen-player ~ .mobile-tabbar,
body.is-tablet.has-mob-tabbar #screen-player:not([hidden]) {
  /* tabbar escondida no player via JS */
}

/* ??? Top 10 Netflix numbers + hover Pronto + mobile polish ??? */
.row-top10 h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rail-top10 {
  align-items: flex-end;
  gap: 0.15rem;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}
.card-top10 {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: auto !important;
  background: transparent !important;
  overflow: visible;
  gap: 0;
  margin-right: 0.25rem;
}
.card-top10 .top10-rank {
  position: relative;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.92);
  transform: skewX(-8deg);
  -webkit-transform: skewX(-8deg);
  margin-right: -1.4rem;
  margin-bottom: -0.1em;
  z-index: 1;
  user-select: none;
  flex: 0 0 auto;
  pointer-events: none;
}
.card-top10 .card-art {
  position: relative;
  width: 128px !important;
  z-index: 2;
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.card-top10 .card-body { display: none; }
.card-top10 .card-art img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.card-poster {
  position: relative;
  overflow: visible;
}
.card-hover {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0.55rem 0.45rem 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(8,8,12,.96) 35%);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}
.card-poster:hover .card-hover,
.card-poster:focus-within .card-hover {
  display: block;
  pointer-events: auto;
}
.card-poster:hover {
  transform: scale(1.38);
  z-index: 6;
  transition: transform 0.18s ease;
}
.card-hover-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.card-hbtn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.75);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.card-h-play {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.card-h-fav.is-on {
  border-color: var(--amber);
  color: var(--amber);
}
.card-h-more {
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 700;
}
.card-hover-meta {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.profile-avatar-btn {
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 700;
}

.mob-ico svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
.mob-tab.is-active .mob-ico {
  color: var(--amber);
}

/* Splash / onboarding centralizados no mobile */
body.is-mobile .splash {
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) var(--safe-x) calc(1.5rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
body.is-mobile .splash-mark {
  width: min(100%, 100vw - 2 * var(--safe-x, 1rem));
  max-width: 22rem;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 0.25rem;
}
body.is-mobile .splash-logo {
  font-size: clamp(1.45rem, 8.5vw, 2.6rem);
  line-height: 1.05;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}
/* Mobile: RESOLVE numa linha, PRO/PLAY na outra — sempre centralizado */
body.is-mobile .splash-logo .brand-stack,
body.is-mobile .app-loading-logo .brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  width: 100%;
  text-align: center;
}
body.is-mobile .splash-logo .brand-line-main,
body.is-mobile .splash-logo .brand-line-accent,
body.is-mobile .app-loading-logo .brand-line-main,
body.is-mobile .app-loading-logo .brand-line-accent {
  display: block;
  width: 100%;
  text-align: center;
  margin-left: 0;
  line-height: 1.05;
}
body.is-mobile .splash-logo .brand-line-accent,
body.is-mobile .app-loading-logo .brand-line-accent {
  color: var(--amber);
  font-size: 0.92em;
}
/* Logo imagem no splash: cabe na tela sem estourar */
body.is-mobile .splash-logo.has-logo-img {
  font-size: 0;
  line-height: 0;
  width: 100%;
  max-width: min(18rem, 86vw);
}
body.is-mobile .splash-logo.has-logo-img .brand-logo-img {
  height: auto !important;
  width: auto !important;
  max-height: min(22vw, 4.25rem) !important;
  max-width: min(86vw, 18rem) !important;
  margin: 0 auto;
}
body.is-mobile .app-loading-logo {
  font-size: clamp(1.25rem, 6.5vw, 1.9rem);
  max-width: min(18rem, 86vw);
}
body.is-mobile .app-loading-logo.has-logo-img {
  min-height: 3.2rem;
}
body.is-mobile .app-loading-logo .brand-logo-img,
body.is-mobile .app-loading-logo img {
  max-height: min(18vw, 3.4rem) !important;
  max-width: min(86vw, 16rem) !important;
}
body.is-mobile .logo-sm,
body.is-mobile .profiles-brand,
body.is-mobile #btn-logo-home {
  font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  max-width: min(12rem, 55vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.is-mobile .logo-sm.has-logo-img .brand-logo-img,
body.is-mobile .profiles-brand.has-logo-img .brand-logo-img,
body.is-mobile #btn-logo-home.has-logo-img .brand-logo-img {
  height: 1.35rem !important;
  max-width: min(9rem, 42vw) !important;
}
body.is-mobile .onboard-center > h1 {
  font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  line-height: 1.15;
  word-break: break-word;
}
body.is-mobile #screen-code .pair-panel h1 {
  font-size: clamp(1.3rem, 6vw, 1.75rem);
  word-break: normal;
}
body.is-mobile #screen-code .lead {
  font-size: clamp(0.84rem, 3.6vw, 0.98rem);
  max-width: 30ch;
}
body.is-mobile #screen-code .code-huge.xl {
  font-size: clamp(1.5rem, 11.5vw, 2.25rem);
  letter-spacing: 0.07em;
}
body.is-mobile .onboard,
body.is-mobile .pair-panel.pair-centered,
body.is-mobile .profiles-layout {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: var(--safe-x);
  padding-right: var(--safe-r);
  overflow-x: hidden;
}
body.is-mobile .profiles-grid {
  justify-content: center;
}
body.is-mobile #app,
body.is-mobile .screen {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Player mobile: encaixa na tela; landscape = quase fullscreen (nunca na TV) */
body.is-mobile:not(.is-tv) .watch-layout {
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(46vh, 1fr) minmax(140px, 36vh) !important;
  height: 100%;
  max-height: 100dvh;
}
body.is-mobile:not(.is-tv) .watch-stage {
  min-height: 46vh;
  background: #000;
}
body.is-mobile:not(.is-tv) #video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000;
}
body.is-mobile:not(.is-tv).orientation-landscape .watch-side {
  display: none !important;
}
body.is-mobile:not(.is-tv).orientation-landscape .watch-layout {
  grid-template-rows: 1fr !important;
}
body.is-mobile:not(.is-tv).orientation-landscape .watch-stage,
body.is-mobile:not(.is-tv).orientation-landscape #video {
  height: 100dvh !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
}
body.is-mobile .renew-pix {
  max-width: 100%;
  overflow-x: auto;
}
body.is-mobile .renew-pix img {
  max-width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  display: block;
}
body.is-mobile .renew-copy {
  word-break: break-all;
  font-size: 0.78rem;
  user-select: all;
  -webkit-user-select: all;
}

@media (max-width: 820px) {
  .card-top10 .top10-rank {
    font-size: 5.3rem;
    -webkit-text-stroke-width: 2px;
    margin-right: -0.75rem;
    z-index: 1;
  }
  .card-top10 .card-art { width: 100px !important; z-index: 2; }
  .card-hover { display: none !important; }
  .card-poster:hover { transform: none; }
}

/* Logo imagem (mesmo do Resolve Pro) + pager + player tracks */
.brand-logo-img {
  display: block;
  height: 1.55em;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.splash-logo.has-logo-img .brand-logo-img {
  height: 5rem;
  max-width: 420px;
  width: auto;
  margin: 0 auto;
}
@supports (height: clamp(1rem, 2vw, 2rem)) {
  .splash-logo.has-logo-img .brand-logo-img {
    height: clamp(3.2rem, 14vw, 5.5rem);
    max-width: min(420px, 78vw);
  }
}
body:not(.is-web) .splash-logo.has-logo-img .brand-logo-img {
  height: 6.5rem;
  max-width: 520px;
}
.logo-sm.has-logo-img,
#btn-logo-home.has-logo-img {
  padding: 0.15rem 0.2rem;
  background: transparent;
}
.browse-pager {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 1.25rem auto 2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.browse-pager .btn { min-width: 7.5rem; }
.browse-page-label {
  color: rgba(255,255,255,.78);
  font-size: 0.9rem;
  font-weight: 600;
}
.player-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.player-tracks label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,.8);
}
.player-tracks select {
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  max-width: 9rem;
}
.profile-chip .profile-dot,
#active-profile-dot {
  border-radius: 50% !important;
}

/* Loading global + vencimento */
.app-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  /* Opaco: não deixa a logo do splash aparecer por baixo (evita piscar) */
  background: #07070b;
  backdrop-filter: none;
}
.app-loading[hidden] { display: none !important; }
/* Dentro do app (home/lista/player): nunca cobrir com overlay de boot */
body.chrome-on #app-loading {
  display: none !important;
}
body.is-boot-loading #screen-splash {
  visibility: hidden !important;
}
.app-loading-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: min(28rem, 90vw);
}
.app-loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  max-width: min(16rem, 70vw);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}
.app-loading-logo span { color: var(--amber, #e8a317); margin-left: 0.12em; }
.app-loading-logo.has-logo-img {
  font-size: 0;
  min-height: 4.2rem;
}
.app-loading-logo .brand-logo-img,
.app-loading-logo img {
  display: block;
  max-height: 4.2rem;
  max-width: min(16rem, 70vw);
  width: auto;
  height: auto;
  object-fit: contain;
}
.app-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: rgba(18, 18, 24, 0.98);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 16rem;
  width: 100%;
  max-width: min(26rem, 86vw);
  text-align: center;
}
.app-loading-card p {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 1rem;
  min-height: 1.4em;
  max-width: 22rem;
  line-height: 1.35;
}
.app-loading-pct {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: 0.02em;
}
.app-loading-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.app-loading-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber, #e8a317), #fff);
  transition: width 0.35s ease;
}
.app-loading-spin {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--amber, #e8a317);
  animation: rp-spin 0.75s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }
body.is-loading { cursor: progress; }
.profile-card.is-entering {
  opacity: 0.65;
  pointer-events: none;
  transform: scale(0.98);
}
.account-row-expires {
  display: grid;
  gap: 0.35rem;
}
.account-expires-badge {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.account-expires-badge.is-ok { background: rgba(34,197,94,.2); color: #86efac; }
.account-expires-badge.is-near { background: rgba(232,163,23,.22); color: #fbbf24; }
.account-expires-badge.is-expired { background: rgba(239,68,68,.22); color: #fca5a5; }
.account-expires-badge.is-muted { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.account-expires-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  line-height: 1.35;
}
.expiry-banner {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.75rem 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(232,163,23,.2), rgba(232,163,23,.06));
  border: 1px solid rgba(232,163,23,.35);
}
/* webOS Chrome 68: display:flex anulava [hidden] — banner ficava sempre visível */
.expiry-banner[hidden] {
  display: none !important;
}
.expiry-banner-copy strong { display: block; color: #fbbf24; margin-bottom: 0.2rem; }
.expiry-banner-copy p { margin: 0; color: rgba(255,255,255,.8); font-size: 0.88rem; }
.expiry-banner-close {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.3);
  color: rgba(255,255,255,.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.expiry-banner-close:hover,
.expiry-banner-close:focus,
.expiry-banner-close.focused {
  background: rgba(255,255,255,.15);
  border-color: #fbbf24;
  color: #fff;
}

/* ========== Smart TV (D-pad / 10-foot UI) ==========
 * LG overscan: mínimo 20px de safe area
 * https://webostv.developer.lge.com/develop/guides/overscan
 * TVs reais cortam mais → margem prática ~6% / ≥96px laterais.
 */
body.is-tv {
  /* Valores absolutos: o app roda a 1920x1080 e o Chrome 68 do webOS
   * descarta qualquer propriedade que use var() com max() dentro. */
  --safe-x: 100px;
  --safe-r: 100px;
  --safe-t: 44px;
  --safe-b: 52px;
  /* Tamanho padrão de card na TV: dimensionado para o Top 10 caber inteiro
   * na tela (10 × (número + capa) ≤ 1720px úteis) — mesmo tamanho em todo o app. */
  --tv-card-w: 132px;
  --tv-poster-h: 198px;
  --tv-live-h: 132px;
  font-size: 28px;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}
body.is-tv #app {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body.is-tv #app-header.app-chrome {
  padding: var(--safe-t) var(--safe-x) 0.9rem var(--safe-x);
}
body.is-tv .home-bar.topbar {
  padding-top: 0.15rem;
  padding-left: 0;
  padding-right: 0;
  gap: 1.1rem;
}
body.is-tv #app-body {
  min-height: 0;
}
body.is-tv .screen.home,
body.is-tv .screen#screen-browse {
  padding-bottom: var(--safe-b);
}
body.is-tv .rail,
body.is-tv .poster-grid,
body.is-tv .row h2,
body.is-tv .browse-pager,
body.is-tv .subbar,
body.is-tv .expiry-banner,
body.is-tv .hero {
  scroll-margin-left: var(--safe-x);
  scroll-margin-right: var(--safe-r);
}
body.is-tv .rail {
  scroll-padding-inline: var(--safe-x);
  padding-left: var(--safe-x);
  padding-right: var(--safe-r);
}
body.is-tv .watch-side {
  padding-left: 16px;
}
body.is-tv .watch-side-head {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
body.is-tv .logo-sm {
  font-size: 1.85rem;
}
body.is-tv .splash-logo {
  font-size: 6.5rem;
}
body.is-tv .splash-logo.has-logo-img .brand-logo-img {
  height: 8rem;
  max-width: 640px;
}
body.is-tv #splash-tagline {
  font-size: 1.35rem;
}
body.is-tv .nav-btn {
  font-size: 1.35rem;
  padding: 1rem 1.5rem;
  min-height: 3.55rem;
}
body.is-tv .nav-search-btn {
  width: 3.55rem;
  height: 3.55rem;
  font-size: 1.55rem;
}
body.is-tv .profile-chip {
  font-size: 1.25rem;
  padding: 0.8rem 1.25rem;
  min-height: 3.55rem;
}
body.is-tv .surface-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
body.is-tv .btn,
body.is-tv .back {
  font-size: 1.3rem;
  padding: 1.15rem 1.85rem;
  min-height: 3.6rem;
  border-radius: 14px;
}
body.is-tv .onboard {
  padding: 2rem var(--safe-x) 2.5rem;
}
body.is-tv .onboard h1 {
  font-size: 3.2rem;
}
body.is-tv .onboard .lead {
  font-size: 1.3rem;
  max-width: 40ch;
}
body.is-tv .option-grid {
  gap: 1.25rem;
  max-width: 100%;
  padding: 0 0.25rem;
}
body.is-tv .option-grid[data-count="2"] {
  max-width: 58rem;
  gap: 1.75rem;
}
body.is-tv .option-grid[data-count="3"] {
  max-width: 100%;
  gap: 1.1rem;
}
body.is-tv .option {
  min-height: 13.5rem;
  padding: 1.75rem 1.5rem;
  border-width: 2px;
  border-radius: 22px;
}
body.is-tv .option-grid[data-count="3"] .option {
  min-height: 12.5rem;
  padding: 1.45rem 1.2rem;
}
body.is-tv .option-grid[data-count="2"] .option {
  min-height: 15rem;
  padding: 2rem 1.75rem;
}
body.is-tv .option strong {
  font-size: 1.75rem;
}
body.is-tv .option-grid[data-count="3"] .option strong {
  font-size: 1.55rem;
}
body.is-tv .option .opt-kicker {
  font-size: 1rem;
}
body.is-tv .option span:last-child,
body.is-tv .option p {
  font-size: 1.15rem;
}
body.is-tv .option-grid[data-count="3"] .option span:last-child {
  font-size: 1.05rem;
}
body.is-tv .card,
body.is-tv .card-live,
body.is-tv .card-poster,
body.is-tv .rail .card-live,
body.is-tv .rail .card-poster {
  width: var(--tv-card-w);
}
body.is-tv .rail {
  gap: 1rem;
  padding: 0.55rem var(--safe-x) 1.1rem;
}
body.is-tv .rows {
  padding: 1.1rem 0 calc(1.8rem + var(--safe-b));
}
body.is-tv .row {
  margin-bottom: 1.15rem;
}
body.is-tv .row h2 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}
body.is-tv .card-body {
  min-height: 3.9rem;
  padding: 0.65rem 0.7rem 0.8rem;
}
body.is-tv .card-body strong {
  font-size: 1.22rem;
}
body.is-tv .card-body span {
  font-size: 1.05rem;
}
/* Tags das capas: pequenas e coerentes com o card */
body.is-tv .card-tag,
body.is-tv .row-badge {
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  padding: 0.14rem 0.34rem;
  border-radius: 4px;
  top: 0.28rem;
  left: 0.28rem;
  line-height: 1.15;
}
body.is-tv .card-art {
  padding-top: 1.05rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}
/* Posters VOD na TV: capa full-bleed (sem padding de logo de canal) */
body.is-tv .card-poster .card-art,
body.is-tv .card-poster .poster-art {
  padding: 0 !important;
  height: var(--tv-poster-h) !important;
  min-height: var(--tv-poster-h) !important;
}
body.is-tv .card-poster .card-body {
  min-height: 0 !important;
  padding: 0.45rem 0.05rem 0 !important;
  background: transparent;
}
body.is-tv .card-poster .card-body strong {
  font-size: 0.95rem !important;
  line-height: 1.2;
}
body.is-tv .card-poster .card-body span {
  font-size: 0.82rem !important;
}
body.is-tv .hero {
  /* TV é 1080p fixo: valor absoluto (Chrome 68 não suporta clamp) */
  height: 360px;
  margin: 0.85rem var(--safe-x) 0.35rem;
  border-radius: 16px;
}
body.is-tv #hero-title {
  font-size: 2.6rem;
}
body.is-tv #hero-kicker {
  font-size: 1.2rem;
}
body.is-tv #hero-meta {
  font-size: 1.3rem;
}
body.is-tv .hero-actions .btn {
  font-size: 1.45rem;
  padding: 1.15rem 2rem;
}
/* Grelha categorias VOD/Canais na TV — igual ao web (densa, ecrã cheio).
 * Usa flex-wrap (não CSS Grid): no webOS antigo auto-fill/grid colapsava a 1 coluna. */
body.is-tv #screen-browse {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
body.is-tv #browse-grid,
body.is-tv #browse-grid.poster-grid,
body.is-tv .poster-grid,
body.is-tv .poster-grid-nf,
body.is-tv .poster-grid-live {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  gap: 0 !important; /* gap inexistente no Chrome 53 — margens nos cards */
  padding: 0.55rem var(--safe-x) 1.5rem !important;
  -webkit-align-content: flex-start !important;
  align-content: flex-start !important;
  -webkit-justify-content: flex-start !important;
  justify-content: flex-start !important;
}
body.is-tv .poster-grid .card,
body.is-tv .poster-grid .card-live,
body.is-tv .poster-grid .card-poster,
body.is-tv .poster-grid-nf .card-poster,
body.is-tv .poster-grid-live .card-live {
  -webkit-flex: 0 0 118px !important;
  flex: 0 0 118px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  margin: 0 0.45rem 0.85rem 0 !important;
  box-sizing: border-box;
}
body.is-tv .poster-grid .card-poster .card-art,
body.is-tv .poster-grid .card-poster .poster-art,
body.is-tv .poster-grid-nf .card-poster .card-art {
  width: 100% !important;
  height: 177px !important;
  min-height: 177px !important;
  max-height: 177px !important;
  padding: 0 !important;
}
body.is-tv .poster-grid .card-live .card-art,
body.is-tv .poster-grid-live .card-live .card-art {
  width: 100% !important;
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
}
body.is-tv .poster-grid .card-body,
body.is-tv .poster-grid-nf .card-body {
  min-height: 0 !important;
  padding: 0.35rem 0.1rem 0 !important;
}
body.is-tv .poster-grid .card-body strong,
body.is-tv .poster-grid-nf .card-body strong {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}
body.is-tv .poster-grid .card-body span,
body.is-tv .poster-grid-nf .card-body span {
  font-size: 0.62rem !important;
}
body.is-tv .browse-hint {
  font-size: 0.95rem !important;
  margin: 0.35rem var(--safe-x) 0.45rem !important;
}
body.is-tv .browse-pager,
body.is-tv .browse-head,
body.is-tv .browse-hint,
body.is-tv #show-detail {
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}
body.is-tv .subbar {
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}
body.is-tv .cat-dropdown {
  left: 100px !important;
  right: auto !important;
  width: calc(100% - 200px) !important;
  max-width: 920px !important;
  max-height: 70vh !important;
  position: fixed !important;
  z-index: 50 !important;
}
/* Menu de categorias aberto: fundo parado */
body.cats-open #screen-home,
body.cats-open #screen-browse,
body.cats-open #app-body {
  overflow: hidden !important;
}
body.cats-open #screen-home,
body.cats-open #screen-browse {
  -webkit-overflow-scrolling: auto;
}
body.is-tv .cat-dropdown-tools {
  grid-template-columns: 1fr auto !important;
}
body.is-tv .expiry-banner {
  margin-left: var(--safe-x);
  margin-right: var(--safe-r);
  margin-top: 0.35rem;
}
body.is-tv .login-field {
  font-size: 1.2rem;
}
body.is-tv .login-field input,
body.is-tv .cat-input,
body.is-tv #search-input {
  font-size: 1.4rem;
  padding: 1.15rem 1.25rem;
  min-height: 3.8rem;
}
body.is-tv .code-huge,
body.is-tv .mac-box,
body.is-tv .mac-value {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: 0.14em;
}
body.is-tv .code-huge.xl {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  max-width: min(100%, 28rem);
}
body.is-tv #screen-code .pair-panel h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
body.is-tv #screen-code .lead,
body.is-tv #screen-code .status {
  font-size: 1.15rem;
  max-width: 42ch;
}
body.is-tv #screen-code .qr-wrap img {
  width: min(28vw, 280px);
}
body.is-tv .cat-item {
  font-size: 1.3rem;
  padding: 1.1rem 1.25rem;
  min-height: 3.6rem;
}
body.is-tv .profile-card {
  width: 7.5rem;
  min-width: 7.5rem;
  max-width: 8rem;
  min-height: 0;
  font-size: 1.05rem;
  padding: 0.85rem 0.6rem 0.7rem !important;
}
body.is-tv .profile-avatar {
  width: 5.75rem;
  height: 5.75rem;
}
body.is-tv .profile-name {
  font-size: 0.95rem;
}
body.is-tv .profiles-grid {
  gap: 1rem 1.25rem;
}
body.is-tv .profiles-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: center;
  max-height: calc(100vh - 1.5rem);
}
body.is-tv .profiles-screen {
  overflow: hidden !important;
  height: 100vh;
  max-height: 100vh;
}
body.is-tv .profiles-main h1 {
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
body.is-tv .ep-row {
  font-size: 1.25rem;
  min-height: 3.8rem;
  padding: 1rem 1.15rem;
}
body.is-tv .focusable.is-focused,
body.is-tv .focusable:focus {
  outline: 4px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16);
  z-index: 5;
  position: relative;
}
body.is-tv .watch-stage.focusable.is-focused,
body.is-tv .watch-stage.focusable:focus {
  outline: 4px solid #fff !important;
  outline-offset: -4px !important;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28) !important;
  z-index: 5;
  position: relative;
}
body.is-tv .profile-card.focusable.is-focused,
body.is-tv .profile-card.focusable:focus {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
}
body.is-tv .card.focusable.is-focused {
  /* scale baixo para não invadir overscan / cortar na borda */
  transform: scale(1.04);
  transition: transform 0.1s ease-out;
}
body.is-tv .nav-btn.is-focused,
body.is-tv .btn.is-focused {
  transform: scale(1.05);
}
body.is-tv .option.is-focused {
  transform: translateY(-6px) scale(1.05);
}
body.is-tv input[readonly] {
  caret-color: transparent;
}
body.is-tv .card-live .card-art,
body.is-tv .card-art.logo-art {
  height: var(--tv-live-h);
  min-height: var(--tv-live-h);
}
body.is-tv .card-poster .card-art,
body.is-tv .card-poster .poster-art {
  height: var(--tv-poster-h);
  min-height: var(--tv-poster-h);
}
/* Lista lateral do player: capas bem menores (não usar --tv-poster-h da home) */
body.is-tv .watch-thumbs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.4rem 0.35rem !important;
  padding: 0.45rem 0.35rem !important;
}
body.is-tv .watch-thumbs .card,
body.is-tv .watch-thumbs .card-live,
body.is-tv .watch-thumbs .card-poster {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.is-tv .watch-thumbs .card-art,
body.is-tv .watch-thumbs .card-poster .card-art,
body.is-tv .watch-thumbs .card-poster .poster-art {
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}
body.is-tv .watch-thumbs .card-live .card-art {
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
}
body.is-tv .watch-thumbs .card-body {
  min-height: 0 !important;
  padding: 0.3rem 0.2rem 0.35rem !important;
}
body.is-tv .watch-thumbs .card-body strong {
  font-size: 0.7rem !important;
}
body.is-tv .watch-thumbs .card-body span {
  font-size: 0.6rem !important;
}
/* Vídeo na TV: preenche o palco; JS letterboxa por px (Chrome 68 sem inset/object-fit fiável) */
body.is-tv .watch-stage {
  position: relative !important;
  overflow: hidden;
  background: #000;
  transform: none !important;
  filter: none !important;
}
/*
 * TV: lista à esquerda + player à direita (teatro).
 * flex-row — CSS Grid colapsava no webOS como a grelha de categorias.
 */
body.is-tv .watch-layout {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  transform: none !important;
  filter: none !important;
  overflow: hidden !important;
}
body.is-tv:not(.player-fs-active) .watch-side {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  -webkit-flex: 0 0 42% !important;
  flex: 0 0 42% !important;
  width: 42% !important;
  max-width: 42% !important;
  min-width: 320px !important;
  height: 100% !important;
  max-height: none !important;
  order: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-top: 0 !important;
}
body.is-tv:not(.player-fs-active) .watch-stage {
  -webkit-flex: 1 1 auto !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  order: 0 !important;
  position: relative !important;
}
body.is-tv .watch-thumbs {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0.4rem 0.35rem !important;
  -webkit-align-content: flex-start !important;
  align-content: flex-start !important;
}
body.is-tv .watch-thumbs .card,
body.is-tv .watch-thumbs .card-live,
body.is-tv .watch-thumbs .card-poster {
  -webkit-flex: 0 0 18.5% !important;
  flex: 0 0 18.5% !important;
  width: 18.5% !important;
  max-width: 18.5% !important;
  min-width: 0 !important;
  margin: 0 0.75% 0.55rem 0 !important;
  box-sizing: border-box !important;
}
body.is-tv .watch-thumbs .card-art,
body.is-tv .watch-thumbs .card-poster .card-art,
body.is-tv .watch-thumbs .card-poster .poster-art {
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}
body.is-tv.player-fs-active .watch-layout {
  display: block !important;
}
body.is-tv.player-fs-active .watch-side {
  display: none !important;
}
body.is-tv.player-fs-active .watch-stage {
  width: 100% !important;
  height: 100% !important;
  -webkit-flex: none !important;
  flex: none !important;
}
body.is-tv #video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
  background: #000;
  z-index: 1;
  object-fit: contain;
  object-position: center center;
}
body.is-tv .player-ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 3;
}
body.is-tv .player-overlay:not([hidden]) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  place-items: center;
}
body.is-tv .onboard-device-meta {
  position: absolute;
  right: var(--safe-x);
  left: auto;
  bottom: calc(1.25rem + var(--safe-b));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  max-width: 48%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 242, 234, 0.88);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-align: right;
  z-index: 4;
}
body.is-tv .onboard-device-meta strong {
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.06em;
}
body.is-tv .onboard-meta-sep {
  opacity: 0.45;
}
.onboard-device-meta {
  position: absolute;
  right: var(--safe-x);
  left: auto;
  bottom: calc(1rem + var(--safe-b));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.55rem;
  font-size: 0.85rem;
  color: rgba(155, 150, 140, 0.95);
  text-align: right;
  z-index: 4;
}
.onboard-device-meta strong {
  color: var(--amber);
  font-weight: 700;
}
/* No Perfil: mesmo bloco MAC/versão do início (canto inferior), sem absolute sobre o layout */
.profiles-device-meta {
  position: static !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  justify-content: center;
  text-align: center;
  margin: 0.85rem auto 0;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 0;
}
body.is-tv .profiles-device-meta {
  font-size: 1.05rem;
  margin-top: 1rem;
}
body.is-tv .profiles-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Compat webOS (Chrome 68): flex-gap não existe — espaçar com margens.
 * Em webOS novos o gap também aplica; a folga extra é aceitável. ===== */
body.is-tv .topbar > * + *,
body.is-tv .home-bar > * + * { margin-left: 0.85rem; }
body.is-tv .home-nav-cluster > * + *,
body.is-tv .nav > * + * { margin-left: 0.4rem; }
body.is-tv .group-nav > * + * { margin-left: 0.5rem; }
body.is-tv .hero-actions > * + * { margin-left: 0.65rem; }
body.is-tv .subbar > * + * { margin-left: 0.8rem; }
body.is-tv .player-ui > * + * { margin-left: 0.9rem; }
body.is-tv .player-actions > * + * { margin-left: 0.5rem; }
body.is-tv .browse-pager > * + * { margin-left: 0.7rem; }
body.is-tv .expiry-banner > * + * { margin-left: 0.9rem; }
body.is-tv .watch-side-head > * + * { margin-left: 0.55rem; }
body.is-tv .login-form > * + * { margin-top: 0.85rem; }
body.is-tv .app-footer > * + * { margin-left: 0.9rem; }
/* Rails: espaçamento por margem (flex-gap é ignorado no Chrome 68) */
body.is-tv .rail > * + * { margin-left: 0.6rem; }
body.is-tv .rail-top10 > * + * { margin-left: 0.2rem; }

/* ===== Top 10 na TV: os 10 cards cabem na tela, sem arrastar =====
 * Útil: 1920 − 2×100 (safe) = 1720px.
 * 9×(nº ~25px + capa 132px) + nº "10" ~71px + capa 132px + margens ≈ 1670px. */
body.is-tv .rail-top10 {
  overflow-x: hidden;
  padding-bottom: 0.9rem;
}
body.is-tv .card-top10 {
  width: auto !important;
  margin-right: 0;
}
body.is-tv .card-top10 .top10-rank {
  position: relative;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.4rem;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
  transform: skewX(-8deg);
  -webkit-transform: skewX(-8deg);
  margin-right: -1.05rem;
  margin-bottom: -0.08em;
  z-index: 1;
  pointer-events: none;
}
body.is-tv .card-top10 .card-art {
  position: relative;
  z-index: 2;
  width: var(--tv-card-w) !important;
  height: var(--tv-poster-h);
  min-height: var(--tv-poster-h);
}

/* ========== Layout Netflix (home + detalhe + player) ========== */
.row-continue h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.rail-continue {
  align-items: flex-start;
  padding-top: 0.55rem;
  padding-bottom: 1.2rem;
}
.card-landscape {
  width: 280px;
  background: transparent;
  overflow: visible;
}
.card-landscape .card-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.card-landscape .card-art img,
.card-landscape .landscape-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}
.card-landscape .card-tag { display: none; }
.card-landscape .card-progress {
  height: 5px;
  border-radius: 0 0 6px 6px;
}
.card-landscape .card-body {
  padding: 0.45rem 0.15rem 0;
  background: transparent;
}
.card-landscape .card-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-landscape .card-body span {
  font-size: 0.78rem;
  color: var(--muted);
}
.card-landscape.is-focused,
.card-landscape:focus,
.card-landscape.focusable.is-focused {
  outline: none;
  transform: scale(1.06);
  z-index: 2;
}
.card-landscape.is-focused .card-art,
.card-landscape:focus .card-art,
.card-landscape.focusable.is-focused .card-art {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
body.is-tv .card-landscape {
  width: 300px;
}
body.is-tv .rail-continue > * + * { margin-left: 0.75rem; }

/* Detalhe estilo Netflix */
.show-hero {
  min-height: min(68vh, 560px);
  padding: 4.5rem var(--safe-x) 2.5rem;
  border-radius: 0;
  margin: 0;
}
.show-hero-copy {
  max-width: min(38rem, 42vw);
}
.show-hero h1 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.show-kicker-brand {
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.btn-continue-play {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  min-width: 16rem;
  padding: 0.85rem 1.35rem !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 800 !important;
}
.btn-continue-play .btn-play-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}
.btn-continue-play .btn-continue-label {
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.2;
}
.btn-continue-play .btn-continue-bar {
  flex: 0 0 72px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.btn-continue-play .btn-continue-bar i {
  display: block;
  height: 100%;
  background: var(--nf-red);
}
.resume-actions .btn-continue-play,
#resume-continue.btn-continue-play {
  min-width: 12rem;
}
.btn-link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  padding: 0.55rem 0.15rem !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
}
.btn-link-action.is-focused,
.btn-link-action:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.show-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.show-actions-stack .hero-actions {
  width: 100%;
}

/* Player OSD Netflix */
.player-ui.nf-osd-top {
  align-items: flex-start;
  padding-top: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  min-height: 7rem;
}
.nf-osd-left {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.nf-osd-skips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nf-skip-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.nf-skip-btn.is-focused,
.nf-skip-btn:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.nf-osd-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.player-meta {
  margin-left: auto;
  text-align: right;
}
.player-meta strong {
  display: block;
  font-size: 1.05rem;
}
.player-meta span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.nf-player-bottom {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.1rem var(--safe-x) calc(1.1rem + var(--safe-b));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
}
.nf-player-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.nf-play-btn {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px !important;
  border: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 1.25rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.nf-play-btn.is-focused,
.nf-play-btn:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.nf-seek-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nf-seek-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nf-seek-times .seek-time {
  min-width: 0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
}
.nf-seek-times .seek-time.is-remain {
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
}
.nf-player-bottom .seek-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
}
.nf-player-bottom .seek-knob {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}
.nf-track-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.2rem;
}
.nf-track-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.nf-track-pill.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}
.nf-track-pill.is-focused,
.nf-track-pill:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nf-track-row .player-tracks {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.nf-track-row .player-tracks label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nf-track-row .player-tracks select {
  max-width: 9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.25rem 0.4rem;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .card-landscape { width: 220px; }
  .show-hero-copy { max-width: 100%; }
  .btn-continue-play { min-width: 0; width: 100%; }
  .nf-osd-skips { display: none; }
  .nf-track-row .player-tracks { margin-left: 0; width: 100%; }
}

/* ========== Netflix global — todas as abas/telas ========== */

/* Posters VOD + canais: mesmo padrão — contain + centro (não crop) */
.card-poster {
  background: transparent;
  overflow: visible;
  border-radius: 4px;
}
.card-poster .card-art,
.card-poster .poster-art {
  padding: 0 !important;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.card-poster .card-art img,
.card-poster .poster-art img,
.card-live .card-art img,
.card-art.logo-art img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto;
}
.card-poster .card-body {
  padding: 0.4rem 0.1rem 0;
  background: transparent;
}
.card-poster .card-body strong {
  font-size: 0.82rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-poster .card-body span {
  font-size: 0.72rem;
  color: var(--muted);
}
.card-poster.is-focused .card-art,
.card-poster:focus .card-art,
.card-poster.focusable.is-focused .card-art {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.card-seen {
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Live: mantém logo contain, foco branco */
.card-live {
  background: transparent;
}
.card-live .card-art {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-live.is-focused .card-art,
.card-live:focus .card-art {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Browse / categorias */
.subbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  border-bottom: 0;
  padding: 0.85rem var(--safe-x);
}
.subbar .back {
  background: transparent;
  border: 0;
  padding-left: 0;
  font-size: 1rem;
}
.browse-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
.cat-dropdown {
  background: rgba(20, 20, 20, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.cat-input {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}
.cat-input:focus {
  outline: 2px solid #fff !important;
  border-color: #fff !important;
}
.cat-item {
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
}
.cat-item.is-focused,
.cat-item:focus,
.cat-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.cat-item.is-4k {
  color: #fff !important;
}

/* Search */
.search-card {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
}
.search-input:focus {
  outline: 2px solid #fff !important;
  border-color: #fff !important;
}

/* Profiles / conta / renew */
.profiles-screen,
.profiles-layout {
  background: transparent;
}
.account-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
}
/* profile-card: estilo base acima — não anular o card */
.profile-edit {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
}
.renew-panel {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
}
.renew-pack {
  background: #fff !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 12px !important;
  opacity: 1 !important;
}
.renew-pack.is-focused,
.renew-pack:focus {
  outline: 3px solid var(--amber, #e8a317) !important;
  border-color: transparent !important;
  background: #fff !important;
  color: #111 !important;
}
.renew-value {
  color: #fff !important;
}
.profile-avatar-btn.is-focused,
.profile-avatar-btn:focus {
  outline: 3px solid #fff !important;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16) !important;
}

/* Onboard / login / pairing */
.option {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.option:hover,
.option.is-focused,
.option:focus {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}
.opt-kicker {
  color: var(--amber) !important;
}
.tv-remote-tip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}
.mac-box,
.code-huge {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-radius: 12px !important;
  white-space: nowrap;
}
body.is-tv .onboard-device-meta strong {
  color: #fff !important;
}

/* Expiry banner — aviso escuro + CTA branco */
.expiry-banner {
  background: linear-gradient(90deg, rgba(80, 20, 20, 0.85), rgba(20, 20, 20, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
}

/* Episódios / detalhe */
#show-fav.is-on {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111 !important;
}
.season-select-wrap .cat-input,
#show-season-select {
  border-radius: 999px !important;
}
.ep-row.is-focused,
.ep-row:focus {
  outline: 3px solid #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Watch sidebar */
.watch-side {
  background: rgba(10, 10, 12, 0.96) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.watch-thumbs .card {
  background: transparent;
}
.watch-thumbs .card.is-active .card-art,
.watch-thumbs .card.is-focused .card-art {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
}
.watch-thumbs .card.is-active {
  border-color: transparent !important;
  box-shadow: none !important;
}
.watch-season:focus,
.watch-season.is-focused,
.seek-bar.is-focused,
.seek-bar:focus {
  outline-color: #fff !important;
}
.pip-btn {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.pip-btn.is-on {
  background: #fff !important;
  color: #111 !important;
}
body.is-tv .pip-btn.is-focused,
body.is-tv .player-actions select.is-focused,
body.is-tv #player-back.is-focused {
  outline-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

/* Mobile tabbar */
.mob-tab.is-active,
.mob-tab.is-active .mob-ico {
  color: #fff !important;
}
.mob-tab.is-active .mob-ico {
  background: rgba(255, 255, 255, 0.14);
}
.mobile-more-item.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

/* Hub tools / pager */
.hub-tools .btn,
.browse-pager .btn {
  border-radius: 999px;
}
.browse-pager {
  gap: 0.65rem;
}

/* Resume / exit modals */
.resume-card {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
}
.resume-kicker {
  color: var(--amber) !important;
}

/* Marca Resolve Play — Resolve branco, Play dourado */
.logo-sm .brand-line-main,
.splash-logo .brand-line-main,
.logo-home .brand-line-main,
.app-loading-logo .brand-line-main {
  color: #fff !important;
}
.logo-sm .brand-line-accent,
.splash-logo .brand-line-accent,
.logo-home .brand-line-accent,
.app-loading-logo .brand-line-accent {
  color: var(--amber) !important;
}
.profile-dot,
.profile-chip .profile-dot,
#active-profile-dot {
  background: var(--amber) !important;
}
.show-kicker-brand {
  color: var(--amber) !important;
}
.app-footer span:first-child {
  color: var(--amber) !important;
}
.nav-search-btn:hover,
.nav-search-btn.is-focused {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}
.surface-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Poster grid browse */
.poster-grid .card-poster,
.poster-grid-nf .card-poster {
  width: 150px;
}
body.is-tv .poster-grid .card-poster,
body.is-tv .poster-grid-nf .card-poster {
  width: 118px !important;
  max-width: 118px !important;
}

/* ========== Desktop web = layout do app TV (sem tipografia 10-foot / cursor:none) ========== */
body.layout-play10:not(.is-tv) {
  --tv-card-w: 132px;
  --tv-poster-h: 198px;
  --tv-live-h: 132px;
  --safe-x: 2.2vw;
  --safe-r: 2.2vw;
}
body.layout-play10:not(.is-tv) .card,
body.layout-play10:not(.is-tv) .card-live,
body.layout-play10:not(.is-tv) .card-poster,
body.layout-play10:not(.is-tv) .rail .card-live,
body.layout-play10:not(.is-tv) .rail .card-poster {
  width: var(--tv-card-w);
}
body.layout-play10:not(.is-tv) .rail {
  gap: 1rem;
  padding: 0.55rem var(--safe-x) 1.1rem;
}
body.layout-play10:not(.is-tv) .rows {
  padding: 1.1rem 0 calc(1.8rem + var(--safe-b));
}
body.layout-play10:not(.is-tv) .row {
  margin-bottom: 1.15rem;
}
body.layout-play10:not(.is-tv) .row h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}
body.layout-play10:not(.is-tv) .card-poster .card-art,
body.layout-play10:not(.is-tv) .card-poster .poster-art {
  padding: 0 !important;
  height: var(--tv-poster-h) !important;
  min-height: var(--tv-poster-h) !important;
}
body.layout-play10:not(.is-tv) .card-poster .card-body {
  min-height: 0 !important;
  padding: 0.45rem 0.05rem 0 !important;
  background: transparent;
}
body.layout-play10:not(.is-tv) .card-poster .card-body strong {
  font-size: 0.95rem !important;
  line-height: 1.2;
}
body.layout-play10:not(.is-tv) .card-poster .card-body span {
  font-size: 0.82rem !important;
}
body.layout-play10:not(.is-tv) .card-live .card-art,
body.layout-play10:not(.is-tv) .card-art.logo-art {
  height: var(--tv-live-h);
  min-height: var(--tv-live-h);
}
body.layout-play10:not(.is-tv) .hero {
  height: 360px;
  margin: 0.85rem var(--safe-x) 0.35rem;
  border-radius: 16px;
}
body.layout-play10:not(.is-tv) #screen-browse:not([hidden]) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
body.layout-play10:not(.is-tv) #browse-grid,
body.layout-play10:not(.is-tv) #browse-grid.poster-grid,
body.layout-play10:not(.is-tv) .poster-grid,
body.layout-play10:not(.is-tv) .poster-grid-nf,
body.layout-play10:not(.is-tv) .poster-grid-live {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  gap: 0 !important;
  padding: 0.55rem var(--safe-x) 1.5rem !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card,
body.layout-play10:not(.is-tv) .poster-grid .card-live,
body.layout-play10:not(.is-tv) .poster-grid .card-poster,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-poster,
body.layout-play10:not(.is-tv) .poster-grid-live .card-live {
  flex: 0 0 118px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  margin: 0 0.45rem 0.85rem 0 !important;
  box-sizing: border-box;
}
body.layout-play10:not(.is-tv) .poster-grid .card-poster .card-art,
body.layout-play10:not(.is-tv) .poster-grid .card-poster .poster-art,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-poster .card-art {
  width: 100% !important;
  height: 177px !important;
  min-height: 177px !important;
  max-height: 177px !important;
  padding: 0 !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card-live .card-art,
body.layout-play10:not(.is-tv) .poster-grid-live .card-live .card-art {
  width: 100% !important;
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card-body,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-body {
  min-height: 0 !important;
  padding: 0.35rem 0.1rem 0 !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card-body strong,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-body strong {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card-body span,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-body span {
  font-size: 0.62rem !important;
}
body.layout-play10:not(.is-tv) .poster-grid .card-poster,
body.layout-play10:not(.is-tv) .poster-grid-nf .card-poster {
  width: 118px !important;
  max-width: 118px !important;
}

/* Teatro: lista esquerda + player direita (igual TV) */
body.layout-play10:not(.is-tv) .watch-layout {
  display: flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}
body.layout-play10:not(.is-tv):not(.player-fs-active) .watch-side {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 42% !important;
  width: 42% !important;
  max-width: 42% !important;
  min-width: 320px !important;
  height: 100% !important;
  max-height: none !important;
  order: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-top: 0 !important;
}
body.layout-play10:not(.is-tv):not(.player-fs-active) .watch-stage {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  order: 0 !important;
  position: relative !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0.4rem 0.35rem !important;
  align-content: flex-start !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card,
body.layout-play10:not(.is-tv) .watch-thumbs .card-live,
body.layout-play10:not(.is-tv) .watch-thumbs .card-poster {
  flex: 0 0 18.5% !important;
  width: 18.5% !important;
  max-width: 18.5% !important;
  min-width: 0 !important;
  margin: 0 0.75% 0.55rem 0 !important;
  box-sizing: border-box !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card-art,
body.layout-play10:not(.is-tv) .watch-thumbs .card-poster .card-art,
body.layout-play10:not(.is-tv) .watch-thumbs .card-poster .poster-art {
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card-live .card-art {
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card-body {
  min-height: 0 !important;
  padding: 0.3rem 0.2rem 0.35rem !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card-body strong {
  font-size: 0.7rem !important;
}
body.layout-play10:not(.is-tv) .watch-thumbs .card-body span {
  font-size: 0.6rem !important;
}
body.layout-play10:not(.is-tv).player-fs-active .watch-layout {
  display: block !important;
}
body.layout-play10:not(.is-tv).player-fs-active .watch-side {
  display: none !important;
}
body.layout-play10:not(.is-tv).player-fs-active .watch-stage {
  width: 100% !important;
  height: 100% !important;
  flex: none !important;
}

/* Top 10: numeros outline + 10 cards na faixa */
body.layout-play10:not(.is-tv) .rail-top10 {
  overflow-x: hidden;
  padding-bottom: 0.9rem;
  align-items: flex-end;
  gap: 0.2rem;
}
body.layout-play10:not(.is-tv) .card-top10 {
  width: auto !important;
  margin-right: 0;
}
body.layout-play10:not(.is-tv) .card-top10 .top10-rank {
  position: relative;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.4rem;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
  transform: skewX(-8deg);
  margin-right: -1.05rem;
  margin-bottom: -0.08em;
  z-index: 1;
  pointer-events: none;
}
body.layout-play10:not(.is-tv) .card-top10 .card-art {
  position: relative;
  z-index: 2;
  width: var(--tv-card-w) !important;
  height: var(--tv-poster-h);
  min-height: var(--tv-poster-h);
}

/* /watch HTTP: só o teatro. Catálogo continua no HTTPS. */
body.watch-direct .app-chrome,
body.watch-direct #app-header,
body.watch-direct #screen-splash,
body.watch-direct #screen-onboard,
body.watch-direct #screen-home,
body.watch-direct #screen-browse,
body.watch-direct .mobile-tabbar,
body.watch-direct .mobile-more-backdrop,
body.watch-direct .mobile-more-panel {
  display: none !important;
}
body.watch-direct #screen-player {
  display: flex !important;
}

/* Lista vencida: estas regras ficam no fim para vencer TV/mobile */
body.is-tv .profiles-screen.is-renewing,
body.is-mobile .profiles-screen.is-renewing,
body.is-web .profiles-screen.is-renewing {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: 100% !important;
  max-height: 100% !important;
}
body.is-tv .profiles-layout.is-renewing,
body.is-mobile .profiles-layout.is-renewing,
body.is-web .profiles-layout.is-renewing {
  display: block !important;
  width: min(520px, 94vw) !important;
  max-width: 94vw !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}
body.is-tv .profiles-layout.is-renewing .profiles-side,
body.is-mobile .profiles-layout.is-renewing .profiles-side,
body.is-web .profiles-layout.is-renewing .profiles-side {
  height: auto !important;
  max-height: none !important;
  align-self: center !important;
  overflow: visible !important;
}

/* ——— Modo TV (apps e navegador de TV) ———
 * [hidden] tem de vencer sempre: `body.is-tv #screen-browse { display:block !important }`
 * passava por cima e a tela de categorias ficava desenhada por baixo do login
 * ("‹ Categorias", "Escolha uma série", "Carregar mais" sobre o QR/código). */
body.is-tv [hidden],
body.is-tv .screen[hidden],
body.is-tv #screen-home[hidden],
body.is-tv #screen-browse[hidden],
body.is-tv #browse-more[hidden] {
  display: none !important;
}
/* Versão/MAC/licença no fim do login, não flutuando sobre o formulário */
body.is-tv .enter-screen .onboard-device-meta {
  position: static;
  max-width: none;
  margin: 1.25rem auto 0;
  justify-content: center;
  text-align: center;
}
/* Código de ativação do login da TV cabendo na caixa (a regra geral de TV,
 * body.is-tv .code-huge.xl, deixava a fonte grande demais e cortava "295-37…") */
body.is-tv .enter-pair-code .code-huge.xl {
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: visible;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  max-width: none;
}

/* TV antiga (/tvl): sem desfoque nem transições — em hardware fraco travam a
 * navegação. Animações (spinner de carregamento) continuam. */
html.tv-lite *,
html.tv-lite *::before,
html.tv-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}
html.tv-lite [style*="blur("],
html.tv-lite .hero-backdrop,
html.tv-lite .hero-bg {
  filter: none !important;
}

/* Espaçador da grade contínua (blocos já rolados e removidos do DOM) */
.poster-grid .grid-spacer,
#browse-grid .grid-spacer {
  -webkit-flex: 0 0 100%;
  flex: 0 0 100%;
  width: 100%;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
