/* ===== ZENITH4K Player — UI para TV (1920x1080) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 1920px; height: 1080px; overflow: hidden;
  background: #0a0a0f; color: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  user-select: none;
}
.brand, .brand-sm { font-weight: 800; letter-spacing: 1px; }
.brand span, .brand-sm span { color: #9ec3dc33; }
.brand { font-size: 64px; }
.brand-sm { font-size: 34px; }
.logo-big { height: 150px; margin: 0 auto 6px; display: block; }
.logo-sm { height: 64px; display: block; }

/* Telas */
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; }
.screen.active { display: block; }

/* ---- Login ---- */
#screen-login { display: none; align-items: center; justify-content: center; }
#screen-login.active { display: flex; }
.login-box {
  width: 560px; padding: 56px; border-radius: 24px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.login-sub { margin: 12px 0 28px; opacity: .7; font-size: 24px; }
.field {
  display: block; width: 100%; margin: 0 0 18px;
  padding: 20px 22px; font-size: 26px; color: #fff;
  background: #15151d; border: 2px solid #26263a; border-radius: 14px; outline: none;
}
.field:focus { border-color: #9ec3dc33; }
.privacy-link { display: block; margin: 8px auto 0; padding: 8px 12px; min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: #b8d9ef; font: inherit; font-size: 18px; text-decoration: underline; cursor: pointer; }
.btn {
  width: 100%; padding: 20px; margin-top: 10px;
  font-size: 26px; font-weight: 700; color: #04130c;
  background: #9ec3dc33; border: none; border-radius: 14px; cursor: pointer;
}
.msg { margin-top: 18px; min-height: 28px; font-size: 22px; color: #ff6b6b; }

/* ---- Escolha de avatar ---- */
#screen-avatar { display: none; align-items: center; justify-content: center; background: #0a0a0f; }
#screen-avatar.active { display: flex; }
.avatar-box { width: 1100px; max-width: 92%; text-align: center; }
.avatar-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 30px; margin-top: 36px; justify-items: center;
}
.avatar-pick {
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 84px; line-height: 1; cursor: pointer;
  border: 5px solid transparent; box-sizing: border-box;
}
.avatar-pick.focused { border-color: #9ec3dc33; box-shadow: 0 0 0 4px rgba(25,195,125,.25); }
/* avatar escolhido, mostrado no topo do login (clicável p/ trocar) */
.login-avatar {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 84px; line-height: 1; cursor: pointer;
  border: 4px solid transparent;
}
.login-avatar.focused { border-color: #9ec3dc33; box-shadow: 0 0 0 4px rgba(25,195,125,.25); }

/* ---- Qualidade da internet ---- */
#screen-quality { display: none; align-items: center; justify-content: center; background: #0a0a0f; }
#screen-quality.active { display: flex; }
.quality-box { width: 1200px; max-width: 94%; text-align: center; }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.quality-pick {
  background: linear-gradient(180deg, #14202e 0%, #0b1320 100%);
  border: 5px solid transparent; border-radius: 24px; cursor: pointer; color: #fff;
  padding: 46px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.quality-pick.focused { border-color: #9ec3dc33; box-shadow: 0 0 0 4px rgba(25,195,125,.25); }
.q-ic { font-size: 104px; line-height: 1; }
.q-name { font-size: 36px; font-weight: 700; }
.q-desc { font-size: 23px; opacity: .6; line-height: 1.3; }

/* ---- Guia de programação (EPG) ---- */
.guide-wrap { display: flex; height: calc(1080px - 110px); }
.guide-chans { width: 620px; overflow-y: auto; padding: 16px; border-right: 1px solid rgba(255,255,255,.08); }
.guide-chan {
  padding: 16px 20px; margin-bottom: 8px; border-radius: 12px;
  background: #14141d; border: 3px solid transparent; cursor: pointer;
}
.guide-chan.focused { border-color: #9ec3dc33; background: #16201b; }
.gc-name { font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-now { font-size: 19px; opacity: .6; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-progs { flex: 1; overflow-y: auto; padding: 24px 32px; }
.guide-head { font-size: 30px; font-weight: 700; margin-bottom: 14px; color: #9ec3dc33; }
.guide-desc { position: sticky; top: 0; z-index: 1; background: #14141d; border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; min-height: 96px; }
.gd-title { font-size: 25px; font-weight: 700; }
.gd-time { font-size: 20px; opacity: .55; font-weight: 400; margin-left: 8px; }
.gd-desc { font-size: 20px; opacity: .78; margin-top: 8px; line-height: 1.45; }
.guide-prog { display: flex; align-items: center; gap: 22px; padding: 16px 18px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; }
.guide-prog.now { background: rgba(25,195,125,.12); }
.guide-prog.focused { border-color: #9ec3dc33; background: rgba(25,195,125,.18); }
.gp-time { font-size: 23px; font-weight: 700; opacity: .85; min-width: 70px; }
.gp-title { font-size: 23px; flex: 1; }
.gp-live { font-size: 18px; color: #9ec3dc33; font-weight: 700; white-space: nowrap; }
.guide-loading { padding: 40px; font-size: 24px; opacity: .6; }

/* ---- Minhas Listas ---- */
.lists-wrap { padding: 36px 56px; height: calc(1080px - 110px); overflow-y: auto; }
.list-card {
  display: flex; align-items: center; gap: 20px;
  background: #14141d; border: 3px solid transparent; border-radius: 16px;
  padding: 22px 28px; margin: 0 auto 18px; max-width: 1180px;
}
.list-card.active-list { border-color: rgb(99 133 157); background: #63859d42; }
.list-info { flex: 1; min-width: 0; }
.list-name { font-size: 30px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 20px; opacity: .55; margin-top: 4px; }
.list-tag { font-size: 18px; color: #9ec3dc33; margin-left: 12px; }
.list-actions { display: flex; gap: 12px; flex-shrink: 0; }
.list-btn {
  font-size: 23px; padding: 13px 22px; border-radius: 12px; cursor: pointer; color: #fff;
  background: #1c1c28; border: 3px solid transparent;
}
.list-btn.enter { background: #9ec3dc33; color: #04130c; font-weight: 700; }
.list-btn.del { background: #3a1c20; width: 60px; padding: 13px 0; }
.list-btn.del .ic { width: 25px; height: 25px; margin: 0; }
.lists-empty { text-align: center; opacity: .6; font-size: 26px; margin-top: 90px; line-height: 1.6; }

/* ---- Topbar ---- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  height: 110px; padding: 0 56px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar h2 { font-size: 34px; font-weight: 600; }
.user-chip { margin-left: auto; font-size: 22px; opacity: .7; }
.list-total { font-size: 22px; opacity: .6; margin-left: 18px; white-space: nowrap; }
.back { font-size: 22px; color: #fff; background: #1c1c28; border: 2px solid transparent; border-radius: 12px; padding: 12px 20px; cursor: pointer; }
.list-quick-nav { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.quick-nav-btn { color: #d7d8e4; background: #171722; border: 2px solid transparent; border-radius: 10px; padding: 12px 16px; font-size: 22px; font-weight: 400; white-space: nowrap; cursor: pointer; }
.back, .quick-nav-btn { font-family: inherit; line-height: 28px; white-space: nowrap; flex: 0 0 auto; }
.quick-nav-btn:hover, .quick-nav-btn.active { color: #04130c; background: #9ec3dc33; border-color: #9ec3dc33; }

/* ---- Identidade SP800 ---- */
:root { --sp800-blue: #86b5d5; }
body { background: radial-gradient(circle at 50% -20%, #1c2833 0%, #080b10 52%, #030405 100%); }
.logo-big { width: 260px; height: 170px; object-fit: contain; }
.logo-sm { width: 112px; height: 76px; object-fit: contain; }
.topbar { background: rgba(7, 10, 14, .82); border-bottom-color: rgba(134,181,213,.22); }
.back, .quick-nav-btn { background: linear-gradient(180deg, #1b2732 0%, #101820 100%); border-color: rgba(134,181,213,.2); }
.back:focus, .back.focused, .quick-nav-btn.active { border-color: var(--sp800-blue); box-shadow: 0 0 18px rgba(134,181,213,.28); }
.quick-nav-btn:hover, .quick-nav-btn.active { color: #071019; background: var(--sp800-blue); }
.field:focus { border-color: var(--sp800-blue); }
.btn { background: linear-gradient(180deg, #a9cce4 0%, #5f8eae 100%); color: #071019; }

/* ---- Listagem ---- */
.list-wrap { display: flex; height: calc(1080px - 110px); }
.cat-count, .live-cat-n { flex: 0 0 auto; margin-left: 16px; color: #8b94a7; font-size: 22px; white-space: nowrap; }
.items { flex: 1; overflow-y: auto; padding: 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 18px; align-content: start; }
.card {
  background: #14141d; border: 4px solid transparent; border-radius: 16px;
  overflow: hidden; cursor: pointer; height: 340px; display: flex; flex-direction: column;
}
.card .poster { flex: 1; background-color: #0e0e16; background-position: center; background-size: contain; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.card.card-movie .poster, .card.card-series .poster, .card.card-episodes .poster { background-size: cover; }
.card.is-watched { opacity: .68; }
.card .watched-badge { position: absolute; top: 10px; left: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 87, 54, .94); color: #b8ffda; font-size: 15px; font-weight: 800; box-shadow: 0 2px 8px #000; }
.card .cap { padding: 12px; font-size: 19px; line-height: 1.25; height: 82px; overflow: hidden; }
/* Filmes e séries usam a mesma capa 2:3 da home, com o título fora da arte.
   fitCatalogPosters acompanha a largura da coluna sem depender de aspect-ratio. */
.card.card-movie, .card.card-series {
  display: block; height: auto; align-self: start; border-width: 2px; border-radius: 9px; background: transparent;
}
.card.card-movie .poster, .card.card-series .poster {
  position: relative; display: block; height: 276px; border-radius: 7px;
}
.card.card-movie .poster-placeholder, .card.card-series .poster-placeholder {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
}
.card.card-movie .cap, .card.card-series .cap {
  height: 44px; padding: 12px 7px 8px; white-space: nowrap; text-overflow: ellipsis;
}
.card.card-movie.focused, .card.card-series.focused { background: #22374a; }
.card.adult-locked { border-color: rgba(255, 82, 82, .42); }
.card.adult-locked .poster { background-image: none !important; background-color: #171018; color: #ff8d8d; font-size: 58px; }
.card .adult-badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 8px; background: #a91f2d; color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 2px 8px #000; }

/* Foco do controle remoto */
.focusable.focused, [data-focus].focused { border-color: #9ec3dc33 !important; box-shadow: 0 0 0 4px rgba(25,195,125,.25); }
.field.focused { border-color: #9ec3dc33; }

/* O foco cresce visualmente, sem mudar o tamanho das linhas ou colunas. */
button, .card, .key, .cat, .live-cat, .set-row, .guide-chan, .guide-prog, .details-episode, .login-avatar {
  position: relative; transform-origin: center;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .12s, border-color .12s;
}
button.focused, .card.focused, .key.focused, .login-avatar.focused {
  transform: translateY(-3px) scale(1.04); z-index: 3;
}
.live-chan.focused, .cat.focused, .live-cat.focused, .set-row.focused,
.guide-chan.focused, .guide-prog.focused, .details-episode.focused {
  transform: translateY(-2px) scale(1, 1.035); z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  button, .card, .key, .cat, .live-cat, .set-row, .guide-chan, .guide-prog, .details-episode, .login-avatar { transition: none !important; }
}

/* ---- Player ---- */
.player-screen { background: #000; }
/* modo player NATIVO (Android/ExoPlayer): deixa transparente p/ o vídeo de hardware aparecer atrás */
html.native-player, body.native-player { background: transparent !important; }
body.native-player #screen-player { background: transparent !important; }
body.native-player #html-player, body.native-player #av-player { display: none !important; }
/* moldura fina ao redor da imagem reproduzida */
.player-screen::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border: 0;
  pointer-events: none; z-index: 5;
}
#screen-player { touch-action: manipulation; }
#av-player { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: none; }
.player-screen.avplay #av-player { display: block; }
#html-player {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;            /* mantém a proporção e centraliza a imagem */
  object-position: center center;
  background: #000; display: none;
}
.player-screen.html #html-player { display: block; }
.player-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px; z-index: 10;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); transition: opacity .3s;
}
.player-overlay.hidden { opacity: 0; pointer-events: none; }
.po-title { font-size: 40px; font-weight: 700; margin-bottom: 8px; }
.po-epg { font-size: 24px; color: #9ec3dc33; margin-bottom: 16px; min-height: 28px; }
.po-controls { display: flex; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.pbtn {
  min-width: 120px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: rgba(28,28,40,.9); color: #fff; border: 3px solid transparent;
  font-size: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pbtn span { font-size: 18px; opacity: .85; }
.pbtn .screen-format-value { font-size: 16px; color: #b8def9; opacity: 1; }
.pbtn .ic { width: 34px; height: 34px; flex: 0 0 34px; margin-right: 0; }
.pbtn.active-fav .ic { fill: currentColor; }
.pbtn.focused { border-color: #9ec3dc33; background: #86b5d5a3; }
.pbtn.focused { border-color: #9ec3dc33; background: #86b5d5a3; }
.pbtn.active-fav { color: #ffd166; }
.po-hint { font-size: 22px; opacity: .7; }
/* estrela de favorito nos cards */
.card .fav-star { position: absolute; top: 10px; right: 12px; font-size: 30px; color: #ffd166; text-shadow: 0 1px 4px #000; }
.fav-star svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.card { position: relative; }
/* tela de carregamento do canal (fundo preto + logo) */
.player-poster { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 8; background: #000; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.player-poster.show { display: flex; }
.player-poster img { max-width: 520px; max-height: 300px; object-fit: contain; }
.player-poster img[src=""], .player-poster img:not([src]) { display: none; }
.player-poster .ppn { font-size: 34px; font-weight: 600; opacity: .9; }
.loader { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 9; display: none; align-items: center; justify-content: center; background: rgba(5, 6, 12, .96); }
.loader.show { display: flex; }
.loading-box { min-width: 420px; max-width: 760px; padding: 38px 48px; border: 1px solid rgba(25, 195, 125, .3); border-radius: 20px; background: #15151d; text-align: center; box-shadow: 0 14px 50px #000; }
.loading-spinner { width: 54px; height: 54px; margin: 0 auto 20px; border: 5px solid rgba(255,255,255,.15); border-top-color: #9ec3dc33; border-radius: 50%; animation: z4k-spin .8s linear infinite; }
.loading-title { font-size: 30px; font-weight: 700; color: #fff; }
.loading-subtitle { margin-top: 10px; font-size: 21px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes z4k-spin { to { transform: rotate(360deg); } }

/* VPN continua disponível no Android e segue a identidade SP800. */
.vpn-on { color: #b9e2f5 !important; }
.vpn-off { color: #ff8c8c !important; }

/* Detalhes de filmes e series */
.media-details { overflow: hidden; background: #0a0a10; }
/* Somente o conteúdo rola; o fundo permanece preso à tela, inclusive no app escalado. */
.details-scroll { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow-y: auto; padding-bottom: 70px; z-index: 1; }
.details-back { position: absolute; top: 28px; left: 42px; z-index: 3; padding: 12px 24px; color: #fff; background: rgba(20,20,30,.9); border: 2px solid #9ec3dc33; border-radius: 12px; font-size: 24px; cursor: pointer; }
.details-backdrop {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: .35; background: center top/cover no-repeat; filter: blur(1px); pointer-events: none;
}
.details-backdrop::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(#0a0a1040 75%, #0a0a10); }
.details-body { position: relative; z-index: 1; display: flex; gap: 34px; max-width: 1500px; margin: 110px auto 30px; padding: 0 70px; }
.details-poster { width: 260px; height: 390px; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 34px #000; background: #15151d; }
.details-info { flex: 1; padding-top: 35px; }
.details-info h1 { font-size: 44px; margin-bottom: 14px; }
.details-meta { display: flex; gap: 20px; flex-wrap: wrap; color: #ffd166; font-size: 24px; margin-bottom: 24px; }
.details-plot { max-width: 980px; font-size: 24px; line-height: 1.5; color: #ddd; min-height: 90px; }
.details-play { margin-top: 25px; padding: 15px 28px; border: 0; border-radius: 12px; background: #9ec3dc33; color: #04130c; font-size: 24px; font-weight: 700; cursor: pointer; }
.details-actions { display: flex; align-items: center; gap: 14px; margin-top: 25px; }
.details-actions .details-play { margin-top: 0; }
.details-fav { padding: 15px 28px; border: 2px solid #ffd166; border-radius: 12px; background: #1c1c28; color: #ffd166; font-size: 24px; font-weight: 700; cursor: pointer; }
.details-fav.active-fav { background: #ffd166; color: #241b00; }
.details-seasons { position: relative; z-index: 1; display: flex; gap: 12px; max-width: 1500px; margin: 0 auto 20px; padding: 0 70px; flex-wrap: wrap; }
.details-season { padding: 12px 20px; border: 2px solid transparent; border-radius: 10px; background: #171722; color: #fff; font-size: 22px; cursor: pointer; }
.details-season.active, .details-season:hover { border-color: #9ec3dc6e; background: #9ec3dc6e; }
.details-episodes { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; padding: 0 70px; display: flex; flex-direction: column; gap: 10px; }
.details-episode { display: flex; align-items: center; gap: 20px; padding: 12px 18px; background: #15151d; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.details-episode:hover, .details-episode:focus { border-color: #9ec3dc33; background: #9ec3dc33; outline: none; }
.details-episode.is-watched { opacity: .68; }
.details-episode-watched { margin-left: auto; color: #71e6a9; font-size: 18px; font-weight: 800; white-space: nowrap; }
.details-episode img { width: 150px; height: 84px; object-fit: cover; border-radius: 8px; background: #0e0e16; }
.details-episode-num { width: 42px; color: #9ec3dc33; font-size: 26px; font-weight: 700; text-align: center; }
.details-episode-info { flex: 1; min-width: 0; }
.details-episode-info strong { display: block; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.details-episode-info span { display: block; color: #aaa; font-size: 18px; margin-top: 6px; }

/* ---- Busca (teclado na tela) ---- */
.search-q { width: 900px; margin: 0 0 0 auto; min-width: 480px; max-width: 900px; padding: 12px 22px; font-size: 28px;
  background: #15151d; border: 2px solid #26263a; border-radius: 12px; min-height: 56px; overflow: hidden; white-space: nowrap; }
.search-wrap { display: flex; height: calc(1080px - 110px); }
.kb { flex: 0 0 760px; width: 760px; padding: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-content: start; border-right: 1px solid rgba(255,255,255,.07); }
.key { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: #14141d; border: 3px solid transparent; border-radius: 12px; cursor: pointer; }
.key.wide { width: 182px; font-size: 24px; }
.key.focused { border-color: #9ec3dc33; background: #9ec3dc33; }
.search-side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-status { padding: 20px 24px 0; min-height: 50px; font-size: 22px; color: #8b94a7; }
.search-results { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-content: start; }

/* ---- Configurações ---- */
.settings-wrap { padding: 40px 56px; max-width: 1100px; }
.set-row {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px; margin-bottom: 18px; border-radius: 16px;
  background: #14141d; border: 4px solid transparent; cursor: pointer;
}
.set-row.focused { border-color: #9ec3dc33; }
.set-label { font-size: 28px; }
.set-desc { font-size: 19px; opacity: .55; margin-top: 6px; }
.set-value { margin-left: auto; font-size: 26px; font-weight: 700; color: #9ec3dc33; }

/* SP800: seleção limpa, sem o aro e a sombra verdes do tema antigo. */
:root { --sp800-blue: #86b5d5; --sp800-blue-dark: #29465c; --sp800-glow: rgba(134,181,213,.22); }
.brand span, .brand-sm span,
.po-epg, .guide-head, .gp-live, .list-tag, .set-value { color: var(--sp800-blue); }
.field:focus, .details-back, .details-season.active, .details-season:hover,
.details-episode:hover, .details-episode:focus, .key.focused, .set-row.focused,
.pbtn.focused { border-color: var(--sp800-blue) !important; }
.btn, .list-btn.enter, .details-play { background: linear-gradient(180deg, #a9cce4 0%, #5f8eae 100%); color: #071019; }
.avatar-pick.focused, .login-avatar.focused, .quality-pick.focused,
.guide-chan.focused, .guide-prog.focused, .focusable.focused, [data-focus].focused {
  border-color: var(--sp800-blue) !important;
  box-shadow: 0 0 0 3px var(--sp800-glow) !important;
}
.card.focused { border-color: var(--sp800-blue) !important; box-shadow: 0 0 0 3px var(--sp800-glow) !important; }
.player-poster { border-color: var(--sp800-blue); }
.loading-box { border-color: rgba(134,181,213,.3); }
.loading-spinner { border-top-color: var(--sp800-blue); }
.set-value .off { color: #ff6b6b; }

/* ---- Modal de senha ---- */
.modal { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.7); z-index: 50; }
.modal.show { display: flex; }
.modal-box { width: 480px; padding: 48px; border-radius: 20px; background: #15151d; border: 1px solid #2c2c40; text-align: center; }
.modal-title { font-size: 30px; margin-bottom: 24px; }
.pin-field { text-align: center; letter-spacing: 16px; font-size: 40px; }
.modal-actions { display: flex; gap: 16px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.modal-actions .btn.focused { outline: 3px solid var(--sp800-blue); outline-offset: 4px; box-shadow: 0 0 18px rgba(134,181,213,.55); }
.btn.ghost { background: #1c1c28; color: #fff; }

/* Toast */
.toast {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  background: #1c1c28; padding: 18px 32px; border-radius: 14px; font-size: 24px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* versão do app no rodapé (canto direito) */
.app-version { position: fixed; right: 18px; bottom: 10px; font-size: 19px; color: rgba(255,255,255,.32); z-index: 60; pointer-events: none; }

/* Ajustes do Player Windows */
* { scrollbar-width: thin; scrollbar-color: #86b5d5 #15151d; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: #101017; border-radius: 8px; }
*::-webkit-scrollbar-thumb { background: #303545; border: 3px solid #101017; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #86b5d5; }
.vod-seek { display: none; align-items: center; gap: 18px; margin: 0 0 22px; padding: 8px 18px; color: #c8e2f4; font-size: 21px; border: 2px solid #29445c; border-radius: 14px; background: rgba(12,27,42,.9); }
.vod-seek.visible { display: flex; }
.vod-seek.focused { border-color: #b4e0ff; background: rgba(24,49,72,.96); box-shadow: 0 0 0 3px rgba(134,181,213,.3), 0 0 24px rgba(89,170,233,.3); }
#vod-current, #vod-duration { min-width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
#vod-progress { -webkit-appearance: none; appearance: none; flex: 1; min-width: 220px; height: 46px; margin: 0; padding: 0; border: 0; outline: none; background: transparent; cursor: pointer; }
#vod-progress::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(to right, #5dade9 0%, #9ed5fa var(--seek-progress, 0%), #30495f var(--seek-progress, 0%), #30495f 100%); }
#vod-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -7px; border: 3px solid #90cef8; border-radius: 50%; background: #e7f5ff; box-shadow: 0 0 12px rgba(105,190,249,.6); }
#vod-progress.focused::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -10px; border-color: #c7eaff; box-shadow: 0 0 0 5px rgba(134,181,213,.3), 0 0 20px #65b7ee; }
#vod-progress::-moz-range-track { height: 10px; border-radius: 5px; background: #30495f; }
#vod-progress::-moz-range-progress { height: 10px; border-radius: 5px; background: #86b5d5; }
#vod-progress::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid #90cef8; border-radius: 50%; background: #e7f5ff; }
#vod-progress:disabled { opacity: .45; cursor: default; }
.no-flex-gap .vod-seek { gap: 0; }
.no-flex-gap .vod-seek > * + * { margin-left: 18px; }

/* ===== Tema novo de Canais: painel de 3 colunas =====
   Chromium 79 não tem gap em flexbox, mas TEM em grid — por isso grid aqui. */
.live-panel {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 420px 620px 1fr;
  grid-template-rows: 110px minmax(0, 1fr); gap: 0;
  background: #05070c; z-index: 20;
}
#screen-player .live-panel { display: none; }
#screen-player.painel-aberto .live-panel { display: grid; }
.live-topbar { grid-column: 1 / -1; min-width: 0; }

.live-cats, .live-chans, .cats { min-height: 0; overflow-y: auto; padding: 8px 0; }
.live-cats, .cats { background: #0b0f18; border-right: 1px solid rgba(255,255,255,.06); }
.live-chans { background: #080b12; border-right: 1px solid rgba(255,255,255,.06); }

/* Mesmo menu lateral no catálogo; as capas mantêm sua própria grade. */
.cats { width: 420px; flex: 0 0 420px; }
.cat { margin: 0; border-radius: 0; }
.live-cat, .live-chan, .cat {
  width: 100%; text-align: left; cursor: pointer;
  padding: 18px 22px; font-size: 26px; color: #d7dbe6;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.live-cat, .cat { display: flex; align-items: center; min-width: 0; line-height: 32px; overflow: hidden; }
.live-chan { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.live-chan .fav-star { flex: 0 0 24px; margin-left: 16px; font-size: 24px; color: #ffd166; }
.live-chan .live-chan-n { flex: 0 0 62px; color: #8b94a7; }
.live-chan-logo, .live-chan-lock { flex: 0 0 44px; width: 44px; height: 44px; margin-right: 12px; }
.live-chan-logo { object-fit: contain; }
.live-chan-lock { display: flex; align-items: center; justify-content: center; }
.marquee-label { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.marquee-track { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.marquee-track > span { flex: 0 0 auto; }
.marquee-copy { display: none; }
.caption-marquee .marquee-label { display: block; max-width: 100%; }
.marquee-copy[data-marquee-copy]::before { content: attr(data-marquee-copy); }
.focused .marquee-label.marquee { text-overflow: clip; }
.focused .marquee-label.marquee .marquee-track {
  display: inline-flex; overflow: visible; text-overflow: clip;
  animation: live-channel-marquee 12s linear infinite;
}
.focused .marquee-label.marquee .marquee-copy { display: block; margin-left: 60px; }
@keyframes live-channel-marquee {
  0%, 15% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}
.live-cat.selected, .cat.selected { background: #1d2b3f; color: #fff; box-shadow: inset 4px 0 0 #86b5d5; }
.live-cat.focused, .live-chan.focused, .cat.focused { background: #1d2b3f; color: #fff; outline: 3px solid #86b5d5; }
.live-chan.tocando { color: #86b5d5; }
.live-cat.adult-locked, .live-chan.adult-locked, .cat.adult-locked { color: #ffb3b3; border-color: rgba(255, 82, 82, .35); }

.live-side { padding: 22px; overflow-y: auto; }
/* Reserva o espaço do vídeo. Quem desenha ali é o próprio <video>, posicionado
   no mesmo retângulo pelas regras de #html-player abaixo. */
.live-side-video { width: 100%; height: 486px; background: #000; cursor: pointer; }
body.native-player .live-side-video { background: transparent; }
body.native-player #screen-player.painel-aberto .live-panel,
body.native-player #screen-player.painel-aberto .live-side { background: transparent; }
.live-side-nome { font-size: 34px; color: #fff; margin: 18px 0 12px; }
.live-side-epg { font-size: 24px; color: #c8cfdd; }
.live-epg-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.live-epg-item.agora { color: #ffd166; }
.live-epg-hora { display: inline-block; width: 210px; color: #8b94a7; }
.live-epg-vazio { color: #8b94a7; padding: 10px 0; }

/* O <video> NUNCA é movido no DOM nem recebe transform: só muda de retângulo.
   Um transform em ancestral do <video> quebra o plano de hardware da LG. */
#screen-player.painel-aberto #html-player, #screen-player.painel-aberto #av-player {
  left: 1062px; top: 132px; width: 836px; height: 486px;
  z-index: 21; cursor: pointer;
}

/* ===== Fallback de "gap" em flexbox =====
   Chromium < 84 (webOS 6.x / Tizen antigos) aceita a propriedade gap mas a
   IGNORA em containers flex — o espaçamento vira 0 e o layout encavala.
   O webfit.js detecta isso e marca <html class="no-flex-gap">; aqui as
   mesmas distâncias são refeitas com margens. Em engines modernas nada muda. */
.no-flex-gap .quality-pick      > * + * { margin-top: 14px; }
.no-flex-gap .pbtn              > * + * { margin-top: 6px; }
.no-flex-gap .details-episodes  > * + * { margin-top: 10px; }
.no-flex-gap .guide-prog        > * + * { margin-left: 22px; }
.no-flex-gap .list-card         > * + * { margin-left: 20px; }
.no-flex-gap .list-actions      > * + * { margin-left: 12px; }
.no-flex-gap .topbar            > * + * { margin-left: 24px; }
.no-flex-gap .list-quick-nav    > * + * { margin-left: 10px; }
.no-flex-gap .details-body      > * + * { margin-left: 34px; }
.no-flex-gap .details-actions   > * + * { margin-left: 14px; }
.no-flex-gap .details-episode   > * + * { margin-left: 20px; }
.no-flex-gap .set-row           > * + * { margin-left: 24px; }
.no-flex-gap .modal-actions     > * + * { margin-left: 16px; }
/* containers com flex-wrap: a margem vai em todos os filhos (o excedente da
   borda cai fora da área visível ou dentro do padding do container) */
.no-flex-gap .po-controls    > * { margin-right: 18px; margin-bottom: 18px; }
.no-flex-gap .details-meta   > * { margin-right: 20px; margin-bottom: 20px; }
.no-flex-gap .details-seasons > * { margin-right: 12px; margin-bottom: 12px; }
.no-flex-gap .kb             > * { margin-right: 14px; margin-bottom: 14px; }

/* ===== Ícones vetoriais com o traço da tela inicial ===== */
.ic {
  width: 1em; height: 1em; vertical-align: -0.125em; margin-right: .4em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.back .ic, .quick-nav-btn .ic { width: 24px; height: 24px; vertical-align: -5px; margin-right: 10px; }
.avatar-pick .ic, .login-avatar .ic { width: 84px; height: 84px; margin: 0; color: #172738; stroke-width: 1.4; }
.q-ic .ic { width: 88px; height: 88px; margin: 0; color: #a9cce4; stroke-width: 1.4; }
.poster-placeholder .ic { width: 54px; height: 54px; margin: 0; color: #86b5d5; }
.adult-locked .poster-placeholder .ic { color: inherit; }
.live-chan-lock .ic, .home-remote-hint .ic { margin: 0; }
.details-fav.active-fav .ic { fill: currentColor; }
.details-meta > span { white-space: nowrap; }
.pbtn .ic { stroke-width: 2; }
.focusable.focused:not(.field), .pbtn.focused {
  box-shadow: 0 0 0 2px #86b5d5, 0 10px 22px rgba(0,0,0,.55) !important;
}

/* ===== Legenda das teclas coloridas do controle ===== */
.color-bar {
  position: absolute; left: 52%; right: auto; top: 0; bottom: auto; width: 610px; height: 110px;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 48px;
  background: transparent; border: 0;
  font-size: 22px; color: #d7dbe6; z-index: 40;
  pointer-events: none;            /* somente os atalhos habilitados recebem clique */
}
.color-bar.hidden { display: none; }
.cb-item { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cb-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.cb-dot.red    { background: #e5484d; box-shadow: 0 0 10px rgba(229, 72, 77, .55); }
.cb-dot.green  { background: #30a46c; box-shadow: 0 0 10px rgba(48, 164, 108, .55); }
.cb-dot.yellow { background: #f5d90a; box-shadow: 0 0 10px rgba(245, 217, 10, .55); }
.cb-dot.blue   { background: #3e63dd; box-shadow: 0 0 10px rgba(62, 99, 221, .55); }
.cb-number { display: none; }

/* Windows: teclas numéricas com as cores e o brilho da referência do menu. */
.windows-keyboard .color-bar { width: 660px; gap: 30px; }
.clickable-shortcuts .cb-item {
  cursor: pointer; pointer-events: auto; border-radius: 12px; touch-action: manipulation;
  transition: transform .15s ease, color .15s ease;
}
.windows-keyboard .cb-item { gap: 10px; }
.android-menu .cb-item { min-height: 68px; padding: 0 4px; }
.clickable-shortcuts .cb-item:hover, .clickable-shortcuts .cb-item.pressed {
  color: #fff; transform: translateY(-2px) scale(1.04);
}
.clickable-shortcuts .cb-item:focus { outline: 2px solid #a5d6f9; outline-offset: 8px; }
.windows-keyboard .cb-dot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 2px solid rgba(0,0,0,.55); font-style: normal;
  background: radial-gradient(circle at 36% 26%, var(--key-light), var(--key-color) 52%, var(--key-dark) 88%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.65), inset 0 -4px 5px rgba(0,0,0,.45),
    0 0 0 2px var(--key-dark), 0 0 16px var(--key-glow);
}
.windows-keyboard .cb-dot::before {
  content: ""; position: absolute; top: 3px; left: 6px; width: 23px; height: 12px;
  border-radius: 50%; transform: rotate(-25deg);
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0));
}
.windows-keyboard .cb-number {
  display: block; position: relative; color: #fff; font-size: 28px; line-height: 1;
  font-weight: 750; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.windows-keyboard .cb-dot.blue { --key-light: #43b6ff; --key-color: #0761de; --key-dark: #082459; --key-glow: #1476dd80; }
.windows-keyboard .cb-dot.yellow { --key-light: #fff87e; --key-color: #dcc400; --key-dark: #665900; --key-glow: #e3cd0070; }
.windows-keyboard .cb-dot.red { --key-light: #ff8b8b; --key-color: #e01826; --key-dark: #670d19; --key-glow: #f32c4770; }
.clickable-shortcuts .home-poster .fav-star, .clickable-shortcuts .guide-chan .fav-star {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 24px; color: #ffd166; filter: drop-shadow(0 1px 3px #000);
}
.clickable-shortcuts .home-poster { position: relative; }
.clickable-shortcuts .guide-chan { position: relative; padding-right: 46px; }

/* fallback de gap para a legenda (Chromium < 84) */
.no-flex-gap .topbar, .no-flex-gap .list-quick-nav,
.no-flex-gap .color-bar, .no-flex-gap .cb-item { gap: 0; }
.no-flex-gap .color-bar > * + * { margin-left: 48px; }
.no-flex-gap .cb-item   > * + * { margin-left: 12px; }
