:root {
  --bg: #0b0b10; --bg2: #14141c; --bg3: #1d1d28; --linha: #2a2a38;
  --txt: #f4f2f7; --mut: #a3a1ad; --cor: #a855f7; --cor2: #ec4899; --ok: #22c55e;
  --grad: linear-gradient(135deg, #7c3aed, #ec4899);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--txt); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; padding-bottom: 70px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
[hidden] { display: none !important; }

/* topo */
#topo { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px 4vw; background: linear-gradient(#0b0b10ee, #0b0b1000); transition: background .3s; }
#topo.cheio { background: #0b0b10f2; backdrop-filter: blur(8px); }
.logo { font-size: 23px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-o { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 3px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 15px; vertical-align: 3px; }
#topo nav { display: flex; gap: 20px; flex: 1; }
#topo nav a { color: var(--mut); font-size: 15px; }
#topo nav a.ativo, #topo nav a:hover { color: var(--txt); }
.btn-conta { background: var(--grad); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-conta.logado { background: var(--bg3); }

/* barra de baixo (celular) */
#barra { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #0e0e15f5; border-top: 1px solid var(--linha); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
#barra a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--mut); }
#barra a span { font-size: 19px; line-height: 1.2; }
#barra a.ativo { color: var(--txt); }
@media (max-width: 760px) {
  #topo nav { display: none; }
  #topo { justify-content: space-between; }
  #barra { display: flex; }
}

/* destaque */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0 4vw 6vh; overflow: hidden; }
.hero-fundo { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transform: scale(1.06); filter: brightness(.55); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b10 0%, #0b0b10cc 30%, transparent 70%), linear-gradient(0deg, #0b0b10 0%, transparent 45%); }
.hero-capa { position: absolute; right: 8vw; bottom: 8vh; width: min(240px, 22vw); aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 60px #000c; z-index: 1; }
.hero-txt { position: relative; z-index: 2; max-width: 560px; }
.selo { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--grad); margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 6vw, 56px); line-height: 1.02; letter-spacing: -1px; margin-bottom: 14px; text-shadow: 0 2px 20px #000; }
.hero p { color: #dcd9e4; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.5; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.botoes { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 800; font-size: 16px; }
.btn-1 { background: #fff; color: #111; }
.btn-2 { background: #ffffff2e; color: #fff; backdrop-filter: blur(6px); }
.btn-g { background: var(--grad); color: #fff; }
.btn-full { width: 100%; }
@media (max-width: 760px) {
  .hero { min-height: 72vh; padding-bottom: 4vh; }
  .hero-capa { display: none; }
  .hero::after { background: linear-gradient(0deg, #0b0b10 8%, #0b0b1088 50%, transparent 80%); }
  .hero-fundo { filter: brightness(.75); }
  .btn { padding: 12px 18px; font-size: 15px; }
}

/* fileiras */
.fileira { margin: 26px 0 8px; }
.fileira h2 { font-size: clamp(17px, 2vw, 21px); padding: 0 4vw; margin-bottom: 10px; }
.trilho { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4vw 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 auto; width: clamp(118px, 15vw, 190px); aspect-ratio: 9/14; border-radius: 10px; overflow: hidden; background: var(--bg3); scroll-snap-align: start; transition: transform .2s; cursor: pointer; }
.card:hover { transform: scale(1.04); z-index: 2; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 9px 9px; font-size: 13px; font-weight: 700; line-height: 1.2; background: linear-gradient(transparent, #000e); }
.card .tag { position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: #000b; }
.card .tag.gratis { background: var(--grad); }
.card .tag.minha { background: var(--ok); color: #04210f; }
.card .barra-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cor2); }
.card.top .num { position: absolute; right: 6px; bottom: 34px; font-size: 54px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px #000; opacity: .9; line-height: 1; }

/* grade (minhas / busca) */
.pagina { padding: 90px 4vw 30px; max-width: 1200px; margin: 0 auto; }
.pagina h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.pagina .sub { color: var(--mut); margin-bottom: 22px; line-height: 1.5; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.grade .card { width: auto; }

/* página da novela */
.det { position: relative; }
.det-fundo { position: absolute; inset: 0 0 auto; height: 70vh; background-size: cover; background-position: center 20%; filter: blur(28px) brightness(.4); transform: scale(1.2); }
.det-conteudo { position: relative; padding: 90px 4vw 30px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.det-capa { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px #000a; }
.det h1 { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.05; margin: 8px 0 10px; }
.meta { color: var(--mut); font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.meta .ok { color: var(--ok); font-weight: 700; }
.sinopse { color: #dcd9e4; line-height: 1.6; margin: 16px 0 22px; }
.eps h3 { margin: 26px 0 10px; font-size: 18px; }
.ep { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--linha); margin-bottom: 8px; cursor: pointer; }
.ep:hover { border-color: var(--cor); }
.ep .n { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); font-weight: 800; }
.ep .t { flex: 1; font-weight: 600; line-height: 1.3; }
.ep .t small { display: block; color: var(--mut); font-weight: 400; margin-top: 2px; }
.ep .s { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--bg3); white-space: nowrap; }
.ep .s.gratis { background: var(--grad); }
.ep.filme { background: linear-gradient(135deg, #7c3aed22, #ec489922); border-color: #a855f766; }
@media (max-width: 760px) {
  .det-conteudo { grid-template-columns: 1fr; gap: 18px; padding-top: 74px; }
  .det-capa { width: 46%; margin: 0 auto; display: block; }
  .det-conteudo > div:last-child { text-align: left; }
}

/* player */
.player { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
.player video { flex: 1; width: 100%; min-height: 0; background: #000; }
.player-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 14px 30px; background: linear-gradient(#000c, transparent); transition: opacity .3s; }
.player-topo button { background: #ffffff22; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; }
.player-topo .tit { font-weight: 700; line-height: 1.2; text-shadow: 0 1px 4px #000; }
.player-topo .tit small { display: block; color: #ccc; font-weight: 400; }
.player .prox { position: absolute; right: 14px; bottom: 80px; z-index: 2; }
.paywall { position: absolute; inset: 0; z-index: 3; background: #000d; backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.paywall-caixa { max-width: 440px; width: 100%; text-align: center; }
.paywall h2 { font-size: 24px; margin: 10px 0 8px; }
.paywall p { color: #ccc; line-height: 1.5; margin-bottom: 18px; }

/* planos */
.planos { display: grid; gap: 12px; }
.plano { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 2px solid var(--linha); cursor: pointer; text-align: left; color: var(--txt); width: 100%; }
.plano:hover, .plano.sel { border-color: var(--cor); }
.plano.forte { background: linear-gradient(135deg, #7c3aed33, #ec489933); border-color: #a855f7; }
.plano .pn { flex: 1; }
.plano .pn b { display: block; font-size: 17px; }
.plano .pn small { color: var(--mut); font-size: 13px; line-height: 1.4; display: block; margin-top: 3px; }
.plano .pv { text-align: right; font-weight: 900; font-size: 20px; white-space: nowrap; }
.plano .pv small { display: block; font-size: 11px; color: var(--mut); font-weight: 500; }
.plano .fita { position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: var(--grad); }
.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.metodo { padding: 14px; border-radius: 12px; background: var(--bg2); border: 2px solid var(--linha); color: var(--txt); font-weight: 700; }
.metodo small { display: block; color: var(--mut); font-weight: 400; font-size: 12px; margin-top: 3px; }
.metodo.sel { border-color: var(--cor); }

/* formulários / modal */
.modal { position: fixed; inset: 0; z-index: 200; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-caixa { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--linha); border-radius: 18px; padding: 26px 22px 22px; }
.fechar { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg3); color: var(--txt); }
.modal h2 { font-size: 22px; margin-bottom: 6px; }
.modal p { color: var(--mut); line-height: 1.5; margin-bottom: 16px; font-size: 15px; }
label { display: block; font-size: 13px; color: var(--mut); margin: 12px 0 6px; }
input { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--linha); background: var(--bg); color: var(--txt); font-size: 17px; outline: none; }
input:focus { border-color: var(--cor); }
input.codigo { text-align: center; font-size: 30px; letter-spacing: 14px; font-weight: 800; }
.erro { color: #f87171; font-size: 14px; margin-top: 10px; min-height: 18px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 230px; height: 230px; margin: 6px auto 14px; }
.qr img, .qr svg { width: 100%; height: 100%; }
.copia { font-size: 12px; word-break: break-all; color: var(--mut); background: var(--bg); padding: 10px; border-radius: 8px; max-height: 70px; overflow: hidden; margin-bottom: 10px; }
.esperando { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mut); margin-top: 14px; font-size: 14px; }
.gira { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linha); border-top-color: var(--cor2); animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.sucesso { text-align: center; }
.sucesso .ic { font-size: 56px; }

/* instalar */
.passos { display: grid; gap: 14px; margin-top: 10px; }
.passo { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--linha); }
.passo .pnum { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 900; }
.passo b { display: block; margin-bottom: 3px; }
.passo span { color: var(--mut); line-height: 1.5; font-size: 15px; }
.abas { display: flex; gap: 8px; margin: 18px 0 6px; }
.aba { flex: 1; padding: 12px; border-radius: 10px; background: var(--bg2); color: var(--mut); font-weight: 700; border: 2px solid var(--linha); }
.aba.sel { color: var(--txt); border-color: var(--cor); }
.faixa-app { position: fixed; left: 10px; right: 10px; bottom: 78px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--linha); box-shadow: 0 10px 30px #000a; }
.faixa-app img { width: 40px; height: 40px; border-radius: 10px; }
.faixa-app div { flex: 1; font-size: 14px; line-height: 1.3; }
.faixa-app small { color: var(--mut); }
.faixa-app .x { background: none; color: var(--mut); font-size: 18px; padding: 4px; }
@media (min-width: 761px) { .faixa-app { display: none; } }

/* conta */
.caixa { background: var(--bg2); border: 1px solid var(--linha); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.caixa h3 { font-size: 16px; margin-bottom: 6px; }
.caixa p { color: var(--mut); line-height: 1.5; }
.aviso { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 300; background: var(--bg3); border: 1px solid var(--linha); padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: 90vw; box-shadow: 0 8px 30px #000a; }
.vazio { color: var(--mut); padding: 30px 0; text-align: center; line-height: 1.6; }
.rodape { color: var(--mut); font-size: 12px; text-align: center; padding: 30px 4vw 20px; line-height: 1.6; }
