/* BRTV+ :: layout de TV estilo streaming.
   Projetado em 1920 px de largura. Em telas de TV (paisagem, >= 800 px) tudo escala
   pela largura (1rem = 16 px em 1080p, 32 px em 4K, ~10.7 px em 720p).
   Compatível com Android 7 WebView (Chrome 51+): flexbox, sem grid, sem JS moderno. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (orientation: landscape) and (min-width: 800px) {
  html { font-size: 0.8333vw; }
}
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0B0F1A; background: var(--fundo);
  color: #F5F7FA; color: var(--texto);
  overflow-x: hidden;
  line-height: 1.4;
}
img { border: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
.destaque { color: #00C853; color: var(--destaque); }

/* ---------- foco (controle remoto) ---------- */
.foco { outline: none; -webkit-transition: -webkit-transform .15s, box-shadow .15s, background .15s; transition: transform .15s, box-shadow .15s, background .15s; }
.foco:focus {
  -webkit-transform: scale(1.06); transform: scale(1.06);
  box-shadow: 0 0 0 .3rem #FFD600, 0 1rem 3rem rgba(0,0,0,.6);
  box-shadow: 0 0 0 .3rem var(--foco), 0 1rem 3rem rgba(0,0,0,.6);
  z-index: 5; position: relative;
}

/* ---------- topo ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  padding: 1.5rem 4rem;
  background: -webkit-linear-gradient(top, rgba(11,15,26,.95), rgba(11,15,26,0));
  background: linear-gradient(to bottom, rgba(11,15,26,.95), rgba(11,15,26,0));
}
.topo-logo { height: 2.6rem; margin-right: 3rem; }
.topo-menu { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.menu-item {
  display: inline-block; font-size: 1.25rem; font-weight: 600;
  padding: .5rem 1.2rem; margin-right: .5rem; border-radius: 2rem;
  color: #A9B3C7; color: var(--texto-2);
}
.menu-item.ativo { color: #F5F7FA; color: var(--texto); }
.menu-item:focus { background: #F5F7FA; color: #0B0F1A; box-shadow: none; }
.topo-versao { font-size: 1.1rem; color: #A9B3C7; color: var(--texto-2); }

/* ---------- hero ---------- */
.hero { position: relative; height: 46rem; overflow: hidden; }
.hero-fundo {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #0B0F1A url(../img/fundo-1080.jpg) center / cover no-repeat;
}
.hero-fundo:after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: -webkit-linear-gradient(left, rgba(11,15,26,.95) 20%, rgba(11,15,26,.2) 70%), -webkit-linear-gradient(bottom, #0B0F1A, rgba(11,15,26,0) 40%);
  background: linear-gradient(to right, rgba(11,15,26,.95) 20%, rgba(11,15,26,.2) 70%), linear-gradient(to top, #0B0F1A, rgba(11,15,26,0) 40%);
}
.hero-conteudo { position: relative; z-index: 2; padding: 11rem 4rem 0; width: 62rem; }
.hero-logo { height: 3.6rem; margin-bottom: 1.6rem; }
.hero-tv {
  position: absolute; z-index: 1; right: 4rem; top: 10rem; width: 52rem;
  -webkit-transform: perspective(120rem) rotateY(-14deg); transform: perspective(120rem) rotateY(-14deg);
  box-shadow: 0 3rem 8rem rgba(0,0,0,.6); border-radius: 1rem; opacity: .95;
}
.hero-titulo { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.2rem; }
.hero-texto { font-size: 1.6rem; color: #A9B3C7; color: var(--texto-2); margin-bottom: 2.2rem; }
.hero-botoes { margin-bottom: 1.8rem; }
.hero-meta .chip {
  display: inline-block; font-size: 1.1rem; padding: .4rem 1rem; margin: 0 .6rem .6rem 0;
  border-radius: .5rem; background: rgba(255,255,255,.08); color: #A9B3C7; color: var(--texto-2);
}
.hero-meta .chip b { color: #FFD600; color: var(--destaque-2); letter-spacing: .1em; }

/* ---------- botões ---------- */
.btn {
  display: inline-block; font-size: 1.6rem; font-weight: 700;
  padding: 1.1rem 2.6rem; margin-right: 1.2rem; border-radius: .6rem;
}
.btn-principal { background: #00C853; background: var(--destaque); color: #0B0F1A; }
.btn-principal:focus { background: #FFFFFF; }
.btn-secundario { background: rgba(255,255,255,.14); }
.btn-secundario:focus { background: rgba(255,255,255,.3); }
.btn-icone { font-size: 1.2rem; margin-right: .5rem; vertical-align: .15rem; }

/* ---------- fileiras ---------- */
.fileira { padding: 1.5rem 0 1rem; }
.fileira-titulo { font-size: 2rem; font-weight: 700; padding: 0 4rem; margin-bottom: .8rem; }
.fileira-titulo small { font-size: 1.15rem; font-weight: 400; color: #A9B3C7; color: var(--texto-2); margin-left: 1rem; }
.trilho {
  white-space: nowrap; overflow-x: auto; overflow-y: hidden;
  padding: 1.5rem 4rem 2rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.card {
  display: inline-block; vertical-align: top; white-space: normal;
  width: 25rem; margin-right: 1.6rem; border-radius: .9rem; overflow: hidden;
  background: #1C2438; background: var(--superficie);
  position: relative;
}
.card img { display: block; width: 100%; height: 14rem; background: #141A2B; }
.card-num {
  position: absolute; top: .8rem; left: .8rem; width: 2.6rem; height: 2.6rem; line-height: 2.6rem;
  text-align: center; border-radius: 50%; font-weight: 800; font-size: 1.3rem;
  background: #FFD600; background: var(--destaque-2); color: #0B0F1A;
}
.card-titulo { display: block; font-size: 1.45rem; font-weight: 700; padding: 1rem 1.2rem .2rem; }
.card-texto { display: block; font-size: 1.1rem; color: #A9B3C7; color: var(--texto-2); padding: 0 1.2rem 1.2rem; min-height: 3.8rem; }
.card-qr { text-align: center; width: 18rem; }
.card-qr .qr { width: 12rem; height: 12rem; margin: 1.2rem auto .2rem; border-radius: .5rem; background: #fff; }

/* pôsteres coloridos */
.card-poster { width: 19rem; height: 26rem; padding-top: 10rem; }
.card-poster .card-titulo { font-size: 1.7rem; }
.poster-icone { position: absolute; top: 2.5rem; left: 1.2rem; font-size: 4.5rem; line-height: 1; }
.p1 { background: -webkit-linear-gradient(top, #00C853, #1C2438 75%); background: linear-gradient(#00873A, #1C2438 75%); }
.p2 { background: -webkit-linear-gradient(top, #1565C0, #1C2438 75%); background: linear-gradient(#1565C0, #1C2438 75%); }
.p3 { background: -webkit-linear-gradient(top, #C62828, #1C2438 75%); background: linear-gradient(#C62828, #1C2438 75%); }
.p4 { background: -webkit-linear-gradient(top, #6A1B9A, #1C2438 75%); background: linear-gradient(#6A1B9A, #1C2438 75%); }
.p5 { background: -webkit-linear-gradient(top, #B8860B, #1C2438 75%); background: linear-gradient(#B8860B, #1C2438 75%); }

.rodape { padding: 2rem 4rem 4rem; font-size: 1.2rem; color: #A9B3C7; color: var(--texto-2); }
.rodape-pequeno { font-size: .95rem; opacity: .7; margin-top: .6rem; }

/* ---------- modal ---------- */
.modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(5,8,15,.85);
}
.modal.aberto {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.modal-caixa {
  width: 72rem; max-width: 94%;
  display: -webkit-box; display: -webkit-flex; display: flex;
  background: #141A2B; background: var(--fundo-2); border-radius: 1.2rem; overflow: hidden;
  box-shadow: 0 2rem 6rem rgba(0,0,0,.7);
}
.modal-img { width: 50%; display: block; background: #1C2438; }
.modal-texto { width: 50%; padding: 2.6rem; font-size: 1.4rem; }
.modal-texto h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.modal-texto p { margin-bottom: 1rem; color: #D5DBE6; }
.modal-texto .btn { margin-top: 1rem; }

/* ---------- página /atualizar ---------- */
.pagina { padding: 9rem 4rem 4rem; }
.pagina h1 { font-size: 3.2rem; margin-bottom: .6rem; }
.pagina .sub { font-size: 1.5rem; color: #A9B3C7; color: var(--texto-2); margin-bottom: 2rem; }
.versao-atual {
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #1C2438; background: var(--superficie); border-radius: 1rem; padding: 2rem 2.4rem; margin-bottom: 2.4rem; width: 70rem;
}
.versao-numero { font-size: 4.2rem; font-weight: 800; color: #00C853; color: var(--destaque); margin-right: 2.4rem; }
.versao-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; font-size: 1.3rem; color: #A9B3C7; color: var(--texto-2); }
.log-item { display: block; background: #141A2B; background: var(--fundo-2); border-radius: .8rem; padding: 1.4rem 2rem; margin-bottom: 1rem; width: 70rem; }
.log-item h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.log-item h3 span { font-size: 1.1rem; font-weight: 400; color: #A9B3C7; margin-left: .8rem; }
.log-item li { font-size: 1.25rem; margin-left: 1.6rem; color: #D5DBE6; }

/* ---------- celular / tela estreita ---------- */
@media (max-width: 799px), (orientation: portrait) {
  .topo { padding: 1rem; }
  .topo-menu, .topo-versao { display: none; }
  .hero { height: auto; padding-bottom: 2rem; }
  .hero-tv, .hero-logo { display: none; }
  .hero-conteudo { width: auto; padding: 6rem 1rem 0; }
  .hero-titulo { font-size: 2.2rem; }
  .hero-texto { font-size: 1.1rem; }
  .btn { font-size: 1.2rem; padding: .9rem 1.6rem; margin-bottom: .8rem; }
  .fileira-titulo { padding: 0 1rem; font-size: 1.4rem; }
  .fileira-titulo small { display: block; margin: .2rem 0 0; }
  .trilho { padding: 1rem; }
  .card { width: 16rem; }
  .card img { height: 9rem; }
  .card-poster { width: 12rem; height: 17rem; padding-top: 7rem; }
  .card-qr { width: 14rem; }
  .card-qr .qr { width: 9rem; height: 9rem; }
  .modal-caixa { display: block; }
  .modal-img, .modal-texto { width: 100%; }
  .modal-texto { padding: 1.4rem; font-size: 1.05rem; }
  .pagina { padding: 6rem 1rem 2rem; }
  .versao-atual, .log-item { width: auto; display: block; }
  .rodape { padding: 1rem 1rem 3rem; }
}
