/* POBREFLIX — tema escuro com vermelho (visual estilo streaming) */

:root {
  --bg: #101010;
  --bg2: #161616;
  --card: #1c1c1c;
  --borda: #2b2b2b;
  --red: #e50914;
  --red2: #b00710;
  --texto: #f2f2f2;
  --texto2: #b3b3b3;
  --raio: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--texto);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.oculto { display: none !important; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4d4d4d; }

/* ============================== SPLASH ============================== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.splash-conteudo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
#splash img { width: 92px; animation: pulso 1.6s ease-in-out infinite; }
#splash p {
  font-size: 30px; font-weight: 900; letter-spacing: 4px;
  animation: pulso 1.6s ease-in-out infinite;
}
#splash p b { color: var(--red); font-weight: 900; }
@keyframes pulso { 0%,100% { opacity: .55; transform: scale(.96);} 50% { opacity: 1; transform: scale(1);} }

/* ============================== TOPO ============================== */
#topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 4vw;
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  transition: background .3s;
}
#topo.solido { background: #0c0c0c; box-shadow: 0 2px 12px rgba(0,0,0,.5); }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 36px; }
#logo-nome { font-weight: 900; font-size: 21px; letter-spacing: 2px; }
#logo-nome b { color: var(--red); font-weight: 900; }

#menu { display: flex; gap: 4px; flex: 1; }
#menu a {
  padding: 8px 12px; border-radius: 6px;
  color: var(--texto2); font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
#menu a:hover { color: var(--texto); }
#menu a.ativo { color: var(--texto); }

.topo-direita { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.busca-topo input {
  width: 200px; padding: 9px 14px;
  background: rgba(0,0,0,.55); color: var(--texto);
  border: 1px solid var(--borda); border-radius: 20px;
  font-size: 13.5px; outline: none;
  transition: width .25s, border-color .2s, background .2s;
}
.busca-topo input:focus {
  width: 300px; border-color: var(--red); background: #000;
}

.btn-usuario {
  padding: 8px 16px; border: none; border-radius: 20px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 13.5px;
  transition: background .15s;
}
.btn-usuario:hover { background: #f6121d; }
.btn-usuario.avatar {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

.btn-drawer {
  background: none; border: none; color: var(--texto); font-size: 22px;
  padding: 4px 10px; border-radius: 6px; flex-shrink: 0;
}
.btn-drawer:hover { background: rgba(255,255,255,.08); }

/* ============================== DRAWER ============================== */
#drawer-fundo {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  animation: fundoAparece .2s ease;
}
@keyframes fundoAparece { from { opacity: 0; } to { opacity: 1; } }
#drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 401;
  width: 300px; max-width: 85vw; background: #131316;
  border-right: 1px solid var(--borda);
  transform: translateX(-105%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
#drawer.aberta { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,.6); }

.drawer-cabeca {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--borda);
}
.drawer-cabeca img { height: 28px; }
.drawer-cabeca b { flex: 1; font-size: 17px; letter-spacing: 2px; font-weight: 900; }
.drawer-cabeca b i { color: var(--red); font-style: normal; font-weight: 900; }
#drawer-fechar {
  background: none; border: none; color: var(--texto2); font-size: 18px;
  padding: 6px 10px; border-radius: 8px; transition: background .15s, color .15s;
}
#drawer-fechar:hover { background: rgba(255,255,255,.08); color: #fff; }

.drawer-usuario {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--borda);
}
.drawer-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.drawer-usuario-info { flex: 1; min-width: 0; }
.drawer-usuario-info b {
  display: block; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-usuario-info span { color: var(--texto2); font-size: 12px; }
.btn-mini-drawer { padding: 7px 14px; font-size: 12.5px; }

#drawer nav {
  flex: 1; overflow-y: auto; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.drawer-grupo {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--texto2);
  padding: 14px 12px 6px;
}
#drawer nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--texto2);
  transition: background .15s, color .15s;
}
#drawer nav a:hover { background: rgba(255,255,255,.06); color: var(--texto); }
#drawer nav a.ativo { background: var(--red); color: #fff; }
#drawer nav a span { width: 22px; text-align: center; }

.drawer-rodape {
  padding: 12px 18px 16px; border-top: 1px solid var(--borda);
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-rodape p { color: var(--texto2); font-size: 12px; }
.drawer-rodape b { color: var(--red); }
#drawer-sair {
  background: #26262c; border: 1px solid var(--borda); color: var(--texto2);
  padding: 10px; border-radius: 8px; font-weight: 700; font-size: 13px;
  transition: color .15s, border-color .15s;
}
#drawer-sair:hover { color: #ff6b6b; border-color: #5a2a2a; }

/* ============================== VISUAL GERAL ============================== */
.view { min-height: 100vh; padding-top: 64px; }
.view-full { padding-top: 0; }

main { position: relative; z-index: 1; }

/* ============================== HERO ============================== */
.hero { position: relative; height: 88vh; min-height: 520px; overflow: hidden; }
.hero-fundo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: opacity .6s;
}
.hero-fundo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 96%),
              linear-gradient(90deg, rgba(16,16,16,.75), transparent 60%);
}
.hero-conteudo {
  position: absolute; left: 4vw; bottom: 16%;
  max-width: 640px; z-index: 2;
}
.hero-badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 14px;
  background: var(--red); border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.hero-conteudo h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 900; line-height: 1.05; }
.hero-meta { color: var(--texto2); font-size: 14px; margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-sinopse {
  margin-top: 14px; color: #d9d9d9; font-size: 15px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-botoes { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border: none; border-radius: 6px;
  font-size: 15px; font-weight: 700;
  transition: transform .12s, background .15s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn-vermelho { background: var(--red); color: #fff; }
.btn-vermelho:hover { background: #f6121d; }
.btn-escuro { background: rgba(60,60,60,.7); color: #fff; }
.btn-escuro:hover { background: rgba(90,90,90,.75); }
.btn-verde { background: #25d366; color: #06240f; text-decoration: none; }
.btn-verde:hover { background: #2ee072; }

.aviso-assinatura {
  margin: 22px 4vw 8px; padding: 16px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #3a0d10, #201018);
  border: 1px solid var(--red);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.aviso-assinatura b { font-size: 15px; }
.aviso-assinatura span { color: var(--texto2); font-size: 13.5px; flex: 1; min-width: 220px; }

.hero-pontos { position: absolute; right: 4vw; bottom: 26px; display: flex; gap: 8px; z-index: 2; }
.hero-pontos span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.3); transition: background .2s;
}
.hero-pontos span.ativo { background: var(--red); }

/* ============================== LINHAS / CARROSSEL ============================== */
.secao { margin: 8px 0 26px; }
.secao-cabeca {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw; margin-bottom: 10px;
}
.secao-cabeca h2 { font-size: 19px; font-weight: 800; }
.secao-cabeca a { color: var(--red); font-size: 13px; font-weight: 700; }
.secao-cabeca a:hover { text-decoration: underline; }

.carrossel { position: relative; }
.trilha {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  padding: 6px 4vw 12px; scrollbar-width: none;
}
.trilha::-webkit-scrollbar { display: none; }
.trilha.sozinha { justify-content: flex-start; }

.seta {
  position: absolute; top: 0; bottom: 12px; z-index: 5;
  width: 48px; border: none; background: rgba(0,0,0,.55);
  color: #fff; font-size: 26px; opacity: 0;
  transition: opacity .2s, background .2s;
}
.carrossel:hover .seta { opacity: 1; }
.seta:hover { background: rgba(0,0,0,.85); }
.seta-esq { left: 0; border-radius: 0 6px 6px 0; }
.seta-dir { right: 0; border-radius: 6px 0 0 6px; }

/* ============================== CARDS ============================== */
.cartao {
  flex: 0 0 auto; width: 168px; border-radius: 10px;
  background: var(--card); overflow: hidden; position: relative;
  cursor: pointer; transition: transform .18s, box-shadow .18s;
}
.cartao:hover { transform: scale(1.08); z-index: 6; box-shadow: 0 10px 26px rgba(0,0,0,.75); }

.cartao-poster {
  width: 100%; aspect-ratio: 2/3; background: #252525 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.cartao-poster.sem-img { color: #555; font-size: 34px; font-weight: 800; }

.cartao-previa {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .28s;
}
.cartao:hover .cartao-previa { opacity: 1; }

.cartao-mini {
  position: absolute; left: 8px; bottom: 8px; z-index: 4;
  width: 34%; aspect-ratio: 2/3; border-radius: 6px;
  background: inherit; background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 14px rgba(0,0,0,.65);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.cartao:hover .cartao-mini { opacity: 1; transform: translateY(0); }

.cartao-sombra {
  position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .18s;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.92) 100%);
}
.cartao:hover .cartao-sombra { opacity: 1; }

.cartao-play {
  position: absolute; top: 42%; left: 50%; z-index: 3;
  transform: translate(-50%,-50%) scale(.6);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid rgba(255,255,255,.85);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.cartao:hover .cartao-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.cartao-play:hover { background: #f6121d; }

.cartao-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px;
  opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s;
}
.cartao:hover .cartao-info {
  opacity: 1; transform: translateY(0);
  padding-left: calc(8px + 34% + 8px);
}
.cartao-titulo { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cartao-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.badge {
  padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.14); color: #e8e8e8; letter-spacing: .3px;
}
.badge.cls { border: 1px solid var(--texto2); background: transparent; }
.badge.tipo-serie { background: var(--red); }
.badge.tipo-filme { background: #3d3d3d; }

.cartao-progresso {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: #3d3d3d; overflow: hidden; z-index: 3;
}
.cartao-progresso i { display: block; height: 100%; background: var(--red); }

.cartao-legenda {
  padding: 8px 6px 10px; font-size: 12.5px; font-weight: 600;
  color: var(--texto); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================== DETALHE ============================== */
.detalhe-topo {
  position: relative; min-height: 92vh;
  background-size: cover; background-position: center top;
}
.detalhe-topo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,.55), var(--bg) 97%);
}
.detalhe-corpo {
  position: relative; z-index: 2;
  display: flex; gap: 34px; flex-wrap: wrap;
  padding: 22vh 4vw 40px; align-items: flex-end;
}
.detalhe-poster {
  width: 250px; aspect-ratio: 2/3; border-radius: 10px; flex-shrink: 0;
  background: #252525 center/cover no-repeat;
  box-shadow: 0 16px 40px rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
}
.detalhe-info { flex: 1; min-width: 280px; max-width: 720px; }
.detalhe-info h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; }
.detalhe-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--texto2); margin-top: 10px; font-size: 14px; }
.detalhe-meta .selo {
  border: 1px solid var(--texto2); padding: 1px 7px; border-radius: 3px; font-size: 12px;
}
.detalhe-sinopse { margin-top: 18px; color: #d9d9d9; line-height: 1.6; font-size: 15px; max-width: 640px; }
.detalhe-botoes { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.temporadas { padding: 10px 4vw 30px; }
.temporadas h3 { font-size: 17px; margin: 18px 0 10px; font-weight: 800; }
.episodio {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: var(--raio); cursor: pointer;
  background: var(--card); border: 1px solid var(--borda);
  margin-bottom: 8px; max-width: 860px; transition: background .15s, border-color .15s;
}
.episodio:hover { background: #242424; border-color: var(--red); }
.episodio-num { font-weight: 800; color: var(--red); font-size: 16px; width: 46px; text-align: center; flex-shrink: 0; }
.episodio-info { flex: 1; }
.episodio-info b { font-size: 14.5px; }
.episodio-duracao { color: var(--texto2); font-size: 13px; flex-shrink: 0; }

/* ============================== BUSCA ============================== */
.busca-cabeca { padding: 26px 4vw 4px; }
.busca-cabeca h1 { font-size: 24px; font-weight: 800; }
.busca-contador { color: var(--texto2); font-size: 13px; margin-top: 4px; min-height: 18px; }
.busca-abas { display: flex; gap: 8px; padding: 10px 4vw 10px; }
.busca-generos { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 4vw 18px; }
.busca-mais { display: flex; justify-content: center; padding: 10px 4vw 50px; }
.busca-filtros {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 0 4vw 14px;
}
.busca-filtros select, .busca-filtros input {
  padding: 8px 12px; background: #242424; border: 1px solid var(--borda);
  border-radius: 8px; color: var(--texto); font-size: 13px; outline: none;
}
.busca-filtros input { width: 100px; }
.busca-filtros select:focus, .busca-filtros input:focus { border-color: var(--red); }
.aba {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--borda);
  background: transparent; color: var(--texto2); font-size: 13.5px; font-weight: 700;
}
.aba.ativo { background: var(--red); border-color: var(--red); color: #fff; }

.grade {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px; padding: 6px 4vw 40px;
}
.grade .cartao { width: 100%; }

.vazio { padding: 60px 4vw; color: var(--texto2); text-align: center; font-size: 15px; }

/* ============================== PLAYER ============================== */
#view-player { position: fixed; inset: 0; background: #000; z-index: 300; }

.player-caixa { position: absolute; inset: 0; display: flex; flex-direction: column; }
.player-area { position: relative; flex: 1; background: #000; }
.player-area video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: #000; outline: none;
  accent-color: var(--red);
}

.player-topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
  opacity: 1; transition: opacity .3s;
}
.player-topo.escondido { opacity: 0; pointer-events: none; }
.btn-voltar {
  background: none; border: none; color: #fff; font-size: 24px;
  display: flex; align-items: center; gap: 6px; font-weight: 700;
}
.btn-voltar small { font-size: 15px; }
.player-titulo { font-size: 16px; font-weight: 700; }

.player-episodios {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 12;
  width: 320px; max-width: 85vw; background: #151515;
  border-left: 1px solid var(--borda); padding: 60px 16px 16px;
  overflow-y: auto; transform: translateX(100%); transition: transform .25s;
}
.player-episodios.aberta { transform: translateX(0); }
.player-episodios h4 { margin-bottom: 12px; font-size: 15px; }
.ep-lista-item {
  display: block; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--borda); color: var(--texto);
  padding: 10px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13.5px;
}
.ep-lista-item:hover { border-color: var(--red); }
.ep-lista-item.ativo { border-color: var(--red); background: #2a1213; }
.btn-abrir-eps {
  position: absolute; top: 14px; right: 18px; z-index: 11;
  background: rgba(0,0,0,.6); border: 1px solid var(--borda); color: #fff;
  padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 700;
}

/* botão grande de tela cheia — só aparece em celular/touch */
.btn-tela-gigante {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 9; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1.5px solid rgba(255,255,255,.55);
  color: #fff; font-size: 26px;
  display: none; align-items: center; justify-content: center;
  transition: opacity .3s;
}
.btn-tela-gigante.escondido { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 600px) {
  .btn-tela-gigante { display: flex; }
}

/* ---- controles do player ---- */
.player-controles {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 34px 18px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,0));
  transition: opacity .3s;
}
.player-controles.escondido { opacity: 0; pointer-events: none; }

.pc-progresso {
  position: relative; height: 5px; margin-bottom: 14px; border-radius: 4px;
  background: rgba(255,255,255,.22); cursor: pointer;
  transition: height .12s;
}
.pc-progresso:hover { height: 9px; }
.pc-carregado {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px;
  background: rgba(255,255,255,.35); width: 0;
}
.pc-assistido {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px;
  background: var(--red); width: 0;
}
.pc-bolinha {
  position: absolute; top: 50%; left: 0; width: 15px; height: 15px;
  border-radius: 50%; background: var(--red);
  transform: translate(-50%,-50%) scale(0); transition: transform .15s;
  box-shadow: 0 0 8px rgba(0,0,0,.7); pointer-events: none;
}
.pc-progresso:hover .pc-bolinha { transform: translate(-50%,-50%) scale(1); }

.pc-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-botao {
  background: none; border: none; color: #fff; font-size: 19px;
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pc-botao:hover { background: rgba(255,255,255,.13); }
.pc-botao.pc-velocidade { font-size: 13px; font-weight: 800; }
.pc-botao.pc-legenda { font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.pc-botao.pc-legenda.ativo { color: var(--red); background: rgba(255,255,255,.16); }
.pc-volume { width: 90px; accent-color: var(--red); cursor: pointer; }
.pc-tempo {
  font-size: 13px; color: #e4e4e4; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pc-espaco { flex: 1; }

.player-carregando {
  position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.spin {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: var(--red);
  animation: gira 1s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

.player-erro {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(0,0,0,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 20px;
}
.player-erro h3 { font-size: 20px; }
.player-erro p { color: var(--texto2); font-size: 14px; max-width: 480px; line-height: 1.5; }

@media (max-width: 600px) {
  .pc-volume { width: 60px; }
  .pc-tempo { font-size: 11.5px; }
  .pc-botao { width: 34px; height: 34px; font-size: 16px; }
}

.player-fim {
  position: absolute; inset: 0; z-index: 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(0,0,0,.82);
}
.player-fim h3 { font-size: 22px; }

/* ============================== LOGIN ============================== */
#view-login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16,16,16,.6), var(--bg)),
    radial-gradient(ellipse at 50% 0%, #3a0d10, var(--bg) 70%);
}
.login-caixa {
  width: 380px; max-width: 92vw;
  background: rgba(0,0,0,.75); border: 1px solid var(--borda);
  border-radius: 12px; padding: 34px 30px;
}
.login-caixa h1 { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.login-caixa p.sub { color: var(--texto2); font-size: 13.5px; margin-bottom: 22px; }
.login-abas { display: flex; gap: 8px; margin-bottom: 20px; }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 12.5px; color: var(--texto2); margin-bottom: 5px; font-weight: 600; }
.campo input {
  width: 100%; padding: 11px 13px;
  background: #242424; border: 1px solid var(--borda); border-radius: 6px;
  color: var(--texto); font-size: 14.5px; outline: none;
}
.campo input:focus { border-color: var(--red); }
.login-botao { width: 100%; margin-top: 8px; justify-content: center; }
.login-erro { color: #ff6b6b; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ============================== PERFIL ============================== */
.perfil { padding: 24px 4vw 50px; max-width: 1100px; margin: 0 auto; }
.perfil-cabeca { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.perfil-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.perfil-cabeca h1 { font-size: 24px; font-weight: 900; }
.perfil-cabeca p { color: var(--texto2); font-size: 13.5px; }

.perfil-grelha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .perfil-grelha { grid-template-columns: 1fr; } }

.caixa {
  background: var(--card); border: 1px solid var(--borda);
  border-radius: 12px; padding: 20px;
}
.caixa h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }

.assinatura-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.assinatura-dias { font-size: 38px; font-weight: 900; color: var(--red); }
.assinatura-info { color: var(--texto2); font-size: 13.5px; }
.barra-dias { height: 8px; background: #333; border-radius: 5px; margin-top: 12px; overflow: hidden; }
.barra-dias i { display: block; height: 100%; background: var(--red); border-radius: 5px; }

.perfil-botoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.codigo-linha { display: flex; gap: 8px; margin-top: 14px; }
.codigo-linha input {
  flex: 1; padding: 10px 13px; background: #242424; color: var(--texto);
  border: 1px solid var(--borda); border-radius: 6px; font-size: 14px; outline: none;
  text-transform: uppercase;
}
.codigo-linha input:focus { border-color: var(--red); }

.perfil-lista { display: flex; flex-direction: column; gap: 8px; }
.item-linha {
  display: flex; align-items: center; gap: 12px;
  background: #202020; border: 1px solid var(--borda); border-radius: 8px;
  padding: 9px 12px; transition: border-color .15s;
}
.item-linha:hover { border-color: var(--red); }
.item-linha .mini-poster {
  width: 38px; height: 56px; border-radius: 4px; flex-shrink: 0;
  background: #2d2d2d center/cover no-repeat;
}
.item-linha .txt { flex: 1; min-width: 0; }
.item-linha b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-linha small { color: var(--texto2); font-size: 12px; }
.item-linha .barra-mini { width: 110px; height: 4px; background: #3a3a3a; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.item-linha .barra-mini i { display: block; height: 100%; background: var(--red); }
.btn-sair { margin-top: 22px; }

/* ============================== PLANOS ============================== */
.planos { padding: 30px 4vw 60px; max-width: 1000px; margin: 0 auto; }
.planos h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.planos .sub { color: var(--texto2); margin-bottom: 26px; }
.plano-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plano-cartao {
  background: var(--card); border: 1px solid var(--borda); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.plano-cartao:hover { border-color: var(--red); transform: translateY(-4px); }
.plano-cartao h3 { font-size: 18px; }
.plano-preco { font-size: 34px; font-weight: 900; color: var(--red); }
.plano-preco small { font-size: 15px; color: var(--texto2); font-weight: 400; }
.plano-desc { color: var(--texto2); font-size: 13.5px; flex: 1; }
.pix-caixa {
  margin-top: 26px; background: var(--card); border: 1px solid var(--borda);
  border-radius: 12px; padding: 20px;
}
.pix-caixa h3 { margin-bottom: 12px; }
.pix-linha { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.pix-chave {
  flex: 1; min-width: 200px; padding: 10px 13px; background: #242424;
  border: 1px dashed var(--borda); border-radius: 6px; color: var(--texto);
  font-size: 14px; word-break: break-all;
}
.codigo-ativar { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.codigo-ativar input {
  flex: 1; min-width: 220px; padding: 11px 13px; background: #242424;
  border: 1px solid var(--borda); border-radius: 6px; color: var(--texto);
  font-size: 14px; outline: none; text-transform: uppercase;
}
.codigo-ativar input:focus { border-color: var(--red); }

/* ============================== TV AO VIVO ============================== */
.tv-pagina { padding: 26px 4vw 60px; }
.tv-cabeca h1 { font-size: 26px; font-weight: 900; }
.tv-cabeca .sub { color: var(--texto2); margin: 6px 0 16px; }
.tv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tv-grade {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tv-cartao {
  background: var(--card); border: 1px solid var(--borda); border-radius: 12px;
  padding: 16px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.tv-cartao:hover { transform: translateY(-3px); border-color: var(--red); }
.tv-logo {
  height: 84px; border-radius: 8px; background: #232327;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: var(--texto2);
  margin-bottom: 12px; overflow: hidden;
}
.tv-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tv-nome { font-weight: 700; font-size: 15px; }
.tv-live {
  margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--red); display: flex; align-items: center; gap: 6px;
}
.tv-live.fora { color: var(--texto2); letter-spacing: 0; font-weight: 600; }
.tv-cartao.fora { opacity: .7; }
.tv-cartao.fora .tv-logo { filter: grayscale(1); }
.tv-bolinha {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pisca 1.2s ease-in-out infinite; display: inline-block;
}
@keyframes pisca { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.tv-player { position: fixed; inset: 0; z-index: 300; background: #000; }
.tv-area { position: absolute; inset: 0; }
.tv-area video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.tv-topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
}
.tv-indicador {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #fff;
  background: rgba(229,9,20,.85); padding: 6px 12px; border-radius: 20px;
}
.tv-indicador .tv-bolinha { background: #fff; }
.tv-lista {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 12;
  width: 280px; max-width: 85vw; background: #151515;
  border-left: 1px solid var(--borda); padding: 64px 12px 16px;
  overflow-y: auto; transform: translateX(100%); transition: transform .25s;
}
.tv-player:hover .tv-lista { transform: translateX(0); }
.tv-canal-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--card); border: 1px solid var(--borda); color: var(--texto);
  padding: 11px 12px; border-radius: 8px; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 600; text-align: left;
}
.tv-canal-btn:hover { border-color: var(--red); }
.tv-canal-btn.ativo { border-color: var(--red); background: #2a1213; }
.tv-canal-btn .tv-bolinha { flex-shrink: 0; }
@media (max-width: 600px) { .tv-lista { width: 100vw; max-width: 100vw; } }

/* ============================== SOLICITAR ============================== */
.solicitar { padding: 30px 4vw 60px; max-width: 860px; margin: 0 auto; }
.solicitar h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.solicitar .sub { color: var(--texto2); margin-bottom: 22px; }
.solicitar-forma { display: flex; gap: 10px; flex-wrap: wrap; }
.solicitar-forma input {
  flex: 1; min-width: 260px; padding: 12px 14px;
  background: #242424; border: 1px solid var(--borda); border-radius: 8px;
  color: var(--texto); font-size: 14.5px; outline: none;
}
.solicitar-forma input:focus { border-color: var(--red); }
.solicitar-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.sol-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--borda);
  border-radius: 10px; padding: 12px 14px;
}
.sol-info { flex: 1; min-width: 0; }
.sol-info b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sol-info small { color: var(--texto2); font-size: 12px; }
.sol-direita { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sol-status { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sol-status.pendente { color: #f5c542; }
.sol-status.atendida { color: #2ecc71; }
.sol-status.nao { color: #ff6b6b; }
.btn-mini-sol { padding: 6px 14px; font-size: 12.5px; }

/* ============================== RODAPÉ ============================== */
#rodape { padding: 40px 4vw; color: var(--texto2); text-align: center; font-size: 13px; }
#rodape .rodape-logo { color: var(--red); font-weight: 900; letter-spacing: 2px; margin-bottom: 8px; }
#rodape .rodape-credito { font-size: 12px; }
#rodape .rodape-credito b { color: var(--red); font-weight: 800; }

/* ============================== MODAL / TOAST ============================== */
#modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
}
.modal-caixa {
  position: relative; width: 420px; max-width: 92vw;
  background: #1b1b1b; border: 1px solid var(--borda);
  border-radius: 12px; padding: 28px;
}
.modal-caixa h2 { font-size: 19px; margin-bottom: 14px; }
.modal-caixa p { color: var(--texto2); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.modal-botoes { display: flex; gap: 10px; justify-content: flex-end; }
.modal-fechar {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--texto2); font-size: 16px;
}
.modal-fechar:hover { color: #fff; }

#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 600; max-width: 90vw;
  background: #fff; color: #000; font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: sobe .25s ease;
}
#toast.erro { background: #ff4b52; color: #fff; }
@keyframes sobe { from { opacity: 0; transform: translate(-50%, 12px);} to { opacity: 1; transform: translate(-50%, 0);} }

/* ============================== SUPORTE ============================== */
.sup-botao {
  position: fixed; right: 22px; bottom: 22px; z-index: 260;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 30px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transition: transform .15s, background .15s;
}
.sup-botao:hover { background: #f6121d; transform: translateY(-2px); }
.sup-botao span:first-child { font-size: 18px; }

/* enquanto um filme/série está passando, o suporte some */
body.no-suporte #sup-botao,
body.no-suporte #sup-painel { display: none !important; }

.sup-painel {
  position: fixed; right: 22px; bottom: 22px; z-index: 260;
  width: 380px; max-width: calc(100vw - 24px);
  height: 560px; max-height: calc(100vh - 24px);
  display: flex; flex-direction: column;
  background: #161616; border: 1px solid #333; border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.65);
  animation: supEntra .2s ease;
}
@keyframes supEntra {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.sup-cabeca {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2a0d13, #1a1a1a);
  border-bottom: 1px solid #333;
}
.sup-cabeca-info { display: flex; align-items: center; gap: 10px; }
.sup-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.sup-cabeca b { display: block; font-size: 14px; }
.sup-cabeca small { color: var(--texto2); font-size: 11.5px; }
#sup-fechar { background: none; border: none; color: var(--texto2); font-size: 16px; padding: 4px; }
#sup-fechar:hover { color: #fff; }

.sup-corpo {
  flex: 1; overflow-y: auto; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 10px;
}
.sup-boas-vindas {
  background: #1f1f1f; border: 1px solid #2e2e2e; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--texto2);
}
.sup-boas-vindas p + p { margin-top: 4px; }
.sup-sugestoes { display: flex; flex-wrap: wrap; gap: 7px; }
.sup-sugestoes button {
  background: transparent; border: 1px solid #4a4a4a; color: var(--texto);
  border-radius: 18px; padding: 7px 12px; font-size: 12px; font-weight: 600;
}
.sup-sugestoes button:hover { border-color: var(--red); background: rgba(229,9,20,.12); }

.sup-mensagens { display: flex; flex-direction: column; gap: 10px; }
.sup-msg { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.sup-msg small { color: #8a8a8a; font-size: 10.5px; }
.sup-msg.voce { align-self: flex-end; align-items: flex-end; }
.sup-msg.ia, .sup-msg.humano { align-self: flex-start; }
.sup-bolha { padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.sup-msg.voce .sup-bolha { background: var(--red); color: #fff; border-bottom-right-radius: 3px; }
.sup-msg.ia .sup-bolha { background: #242424; border: 1px solid #333; border-bottom-left-radius: 3px; }
.sup-msg.humano .sup-bolha { background: #10351d; border: 1px solid #1f6b38; border-bottom-left-radius: 3px; }

.sup-digitando {
  padding: 8px 16px; color: var(--texto2); font-size: 12px;
  display: flex; align-items: center; gap: 5px;
}
.sup-digitando span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--texto2);
  animation: supPula 1s infinite;
}
.sup-digitando span:nth-child(2) { animation-delay: .15s; }
.sup-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes supPula {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.sup-form {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #2e2e2e; background: #1a1a1a; align-items: flex-end;
}
.sup-form textarea {
  flex: 1; resize: none; min-height: 40px; max-height: 110px;
  padding: 10px 12px; background: #242424; border: 1px solid #3a3a3a;
  border-radius: 10px; color: var(--texto); font-size: 13.5px; line-height: 1.4;
  outline: none;
}
.sup-form textarea:focus { border-color: var(--red); }
.sup-form button {
  width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 17px;
}
.sup-form button:disabled { opacity: .5; cursor: not-allowed; }

.sup-rodape {
  padding: 8px 14px 12px; display: flex; flex-direction: column;
  gap: 4px; text-align: center; background: #1a1a1a;
}
.sup-rodape a { color: #25d366; font-size: 12px; font-weight: 700; text-decoration: none; }
.sup-rodape a:hover { text-decoration: underline; }
.sup-rodape small { color: #8a8a8a; font-size: 10.5px; line-height: 1.4; }

@media (max-width: 480px) {
  .sup-painel {
    right: 0; bottom: 0; width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh; border: none; border-radius: 0;
  }
  .sup-botao { right: 14px; bottom: 14px; padding: 14px; border-radius: 50%; }
  .sup-botao .sup-botao-texto { display: none; }
}

/* ============================== RESPONSIVO ============================== */
@media (max-width: 760px) {
  #menu { display: none; }
  #logo-nome { display: none; }
  .busca-topo { display: none; }
  .cartao { width: 132px; }
  .detalhe-corpo { padding-top: 16vh; justify-content: center; text-align: center; }
  .detalhe-botoes, .detalhe-meta { justify-content: center; }
  .hero { height: 68vh; min-height: 420px; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .player-episodios { width: 100vw; max-width: 100vw; }
}
