/* ═══════════════════ AXIVORFLIX — design premium ═══════════════════ */

:root {
  --bg: #090910;
  --bg-2: #10101a;
  --bg-3: #181824;
  --fg: #f4f4f6;
  --fg-dim: #a8a8b8;
  --fg-mute: #66667a;
  --accent: #e5091f;
  --accent-2: #ff2e43;
  --grad: linear-gradient(135deg, #e5091f, #ff5b3d);
  --radius: 10px;
  --topbar-h: 68px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 0; }
::-webkit-scrollbar-thumb { background: #2c2c3c; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ─────────────────────────── botões ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--fg); color: #000; }
.btn.primary:hover { background: #d6d6de; }
.btn.glass {
  background: rgba(255, 255, 255, .14); color: var(--fg);
  backdrop-filter: blur(12px);
}
.btn.glass:hover { background: rgba(255, 255, 255, .24); }
.btn.ghost {
  background: transparent; color: var(--fg-dim);
  border: 1px solid #33334a; font-weight: 600;
}
.btn.ghost:hover { color: var(--fg); border-color: #55556e; }
.btn.danger { background: #3a0d13; color: #ff8a94; font-weight: 600; }
.btn.danger:hover { background: #55121b; }
.btn svg { width: 22px; height: 22px; }

/* ─────────────────────── seleção de perfil ─────────────────────── */

.gate {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 34px;
  padding: calc(40px + env(safe-area-inset-top, 0px)) 20px
           calc(40px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(229, 9, 31, .14), transparent 60%),
    var(--bg);
  animation: fadeIn .5s ease;
}
.logo { display: flex; align-items: center; }
.gate h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 500; }
.gate-grid {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; max-width: 900px;
}
.gate-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 130px; transition: transform .18s;
}
.gate-card:hover { transform: scale(1.06); }
.gate-card .pfp { width: 116px; height: 116px; font-size: 52px; border-radius: 14px; }
.gate-card:hover .pfp { outline: 3px solid var(--fg); }
.gate-card b { font-weight: 500; color: var(--fg-dim); font-size: 15px; }
.gate-card:hover b { color: var(--fg); }
.gate-card.add .pfp {
  background: var(--bg-3); display: grid; place-items: center; color: var(--fg-mute);
}
.gate-card .edit-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border-radius: 14px; opacity: 0;
  transition: opacity .15s;
}
.gate-card.editing .edit-badge { opacity: 1; }
.gate-card .pfp-wrap { position: relative; }
.gate-card .kids-tag {
  position: absolute; bottom: 6px; left: 50%; translate: -50% 0;
  background: #ffd12e; color: #000; font-size: 10px; font-weight: 800;
  border-radius: 4px; padding: 2px 7px; letter-spacing: .08em;
}

.pfp {
  display: grid; place-items: center;
  border-radius: 10px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35); user-select: none;
}

/* ───────────────────────── overlays / sheets ───────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 5, 10, .78); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn .22s ease;
  overflow-y: auto;
}
/* ── convite do grupo ──
   A arte já vem diagramada com título, texto e botão. Qualquer cartão atrás
   competiria com ela, então a peça aparece solta: só o escurecido do overlay,
   a imagem e o X. O clique é na arte inteira — o "Participar agora" está
   desenhado nela, e exigir mira num ponto específico só perderia gente. */
/* acima das outras overlays: é convite de entrada, não pode ficar atrás */
.grupo-overlay { z-index: 95; padding: 20px; background: rgba(4, 4, 9, .82); }
.grupo-wrap {
  position: relative;
  animation: grupo-entra .42s cubic-bezier(.2, 1.15, .35, 1);
}
.grupo-arte { display: block; line-height: 0; cursor: pointer; }
.grupo-arte img {
  display: block;
  width: auto; height: auto;
  /* A arte carrega texto corrido ("acompanhe novidades…"), então largura é
     legibilidade: a 430px o corpo do texto ficava com ~11px na tela. */
  max-width: min(500px, 92vw);
  max-height: 86vh;
  /* sombra na SILHUETA, não numa caixa: a arte tem fundo transparente e um
     box-shadow revelaria o retângulo que ela não tem */
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, .65));
  transition: transform .22s cubic-bezier(.2, 1.15, .35, 1), filter .22s;
}
.grupo-arte:hover img {
  transform: translateY(-3px) scale(1.012);
  filter: drop-shadow(0 32px 70px rgba(37, 211, 102, .28))
          drop-shadow(0 18px 44px rgba(0, 0, 0, .6));
}
.grupo-arte:active img { transform: scale(.995); }

.grupo-x {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1; color: #fff;
  background: rgba(18, 18, 26, .92); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  transition: background .16s, transform .16s;
}
.grupo-x:hover { background: rgba(40, 40, 54, .96); transform: scale(1.07); }

@keyframes grupo-entra {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .grupo-arte img { max-width: 94vw; max-height: 82vh; }
  .grupo-x { top: -4px; right: -4px; width: 34px; height: 34px; }
}
/* quem prefere menos movimento não precisa da entrada saltitante */
@media (prefers-reduced-motion: reduce) {
  .grupo-wrap { animation: none; }
  .grupo-arte img, .grupo-arte:hover img { transition: none; transform: none; }
}

.sheet {
  background: var(--bg-2); border: 1px solid #23233a; border-radius: 16px;
  padding: 30px; width: min(480px, 94vw); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
  animation: pop .25s cubic-bezier(.2, 1.2, .4, 1);
}
.sheet.slim { width: min(340px, 94vw); align-items: center; text-align: center; }
.sheet h2 { font-size: 22px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; color: var(--fg-dim); font-weight: 600; }
.field input {
  background: var(--bg-3); border: 1px solid #2a2a42; color: var(--fg);
  border-radius: 8px; padding: 12px 14px; outline: none;
}
.field input:focus { border-color: var(--accent); }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-pick .pfp {
  width: 52px; height: 52px; font-size: 24px; cursor: pointer;
  opacity: .55; transition: opacity .15s, transform .15s;
}
.avatar-pick .pfp:hover { opacity: 1; transform: scale(1.08); }
.avatar-pick .pfp.on { opacity: 1; outline: 3px solid var(--fg); }
.switch-row {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--bg-3); padding: 13px 16px; border-radius: 10px;
}
.switch-row small { color: var(--fg-mute); display: block; margin-top: 2px; }
.switch-row input { display: none; }
.switch-row i {
  flex: 0 0 44px; height: 24px; border-radius: 20px; background: #33334a;
  position: relative; transition: background .2s;
}
.switch-row i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: translate .2s;
}
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { translate: 20px 0; }
.sheet-actions { display: flex; gap: 10px; align-items: center; }
.sheet-actions .spacer { flex: 1; }
.pin-input {
  width: 160px; text-align: center; font-size: 34px; letter-spacing: .35em;
  background: var(--bg-3); border: 1px solid #2a2a42; color: var(--fg);
  border-radius: 10px; padding: 12px 0 12px .35em; outline: none;
}
.pin-input:focus { border-color: var(--accent); }
.pin-error { color: var(--accent-2); font-size: 14px; }

/* ── Caixas de dígito (PIN e código) ──
   Um campo de senha comum não diz quantos números faltam e some o progresso
   atrás dos pontinhos. Aqui cada dígito tem sua caixa: a pessoa vê o que já
   digitou, quanto falta, e o teclado numérico abre sozinho no celular. */
.pin-field { display: flex; flex-direction: column; gap: 10px; }
.pin-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 145, 155, .55);
}

.pin-boxes { display: flex; gap: 10px; justify-content: center; }

.pin-boxes input {
  width: 100%; max-width: 62px; aspect-ratio: 1 / 1.15;
  text-align: center; font-size: 26px; font-weight: 700;
  color: var(--fg); caret-color: var(--accent);
  background: var(--bg-3); border: 1.5px solid #2a2a42; border-radius: 12px;
  outline: none;
  transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
  /* o número não deve pular ao trocar de caixa */
  font-variant-numeric: tabular-nums;
}
.pin-boxes input::placeholder { color: #3a3a56; font-weight: 400; }

/* caixa já preenchida: some o ar de "vazio esperando" */
.pin-boxes input.cheio { background: #191932; border-color: #3a3a5c; }

.pin-boxes input:focus {
  border-color: var(--accent);
  background: #1b1b30;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(229, 9, 31, .14), 0 6px 18px rgba(0, 0, 0, .35);
}

/* erro: a caixa treme uma vez e volta. Diz "errou" sem precisar de texto,
   e o texto continua lá embaixo para quem precisa dele. */
.pin-boxes.erro input {
  border-color: var(--accent-2, #ff6b6b);
  animation: pin-treme .38s cubic-bezier(.36, .07, .19, .97);
}
@keyframes pin-treme {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* enquanto valida, as caixas pulsam de leve em vez de congelar */
.pin-boxes.enviando input { opacity: .55; pointer-events: none; }

@media (max-width: 400px) {
  .pin-boxes { gap: 7px; }
  .pin-boxes input { font-size: 22px; border-radius: 10px; }
  /* 6 caixas num celular estreito só cabem com folga menor */
  .auth-card .pin-boxes { gap: 8px; }
}

/* dica abaixo de um campo (ex.: regra da senha) */
.field-dica { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.45;
  color: var(--fg-mute); }

/* reenvio do código de login (WhatsApp) */
.auth-resend {
  font-size: 13px; font-weight: 600; color: var(--fg-dim);
  padding: 4px 0; text-align: center; transition: color .15s;
}
.auth-resend:hover:not(:disabled) { color: var(--fg); text-decoration: underline; }
.auth-resend:disabled { color: var(--fg-mute); cursor: default; }

/* ─────────────── sino de notificações ─────────────── */

.notif-wrap { position: relative; display: flex; align-items: center; }
.notif-btn { position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; color: var(--fg-dim); transition: color .15s; }
.notif-btn:hover { color: var(--fg); }
.notif-btn svg { width: 24px; height: 24px; }
.notif-btn i {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px;
  background: var(--accent); color: #fff; font-style: normal;
  font-size: 11px; font-weight: 800; border-radius: 9px; padding: 0 5px;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.notif-panel {
  position: absolute; top: calc(100% + 12px); right: -8px; z-index: 60;
  width: min(400px, calc(100vw - 24px));
  max-height: min(560px, 72vh); overflow-y: auto;
  background: rgba(12, 12, 20, .98); border: 1px solid #23233a;
  border-radius: 12px; box-shadow: var(--shadow);
  animation: pop .2s cubic-bezier(.2, 1.1, .4, 1);
  scrollbar-width: thin;
}
.notif-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  border-bottom: 1px solid #191930; position: relative;
  transition: background .15s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(255, 255, 255, .05); }
.notif-item img, .notif-ph {
  width: 108px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 6px; background: var(--bg-3); display: block;
}
.notif-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-txt b { font-size: 14px; font-weight: 800; }
.notif-txt > span {
  font-size: 13px; color: var(--fg-dim); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-txt small { font-size: 11.5px; color: var(--fg-mute); margin-top: 2px; }
/* bolinha vermelha das não lidas, na borda esquerda como na Netflix */
.notif-item.nova::before {
  content: ''; position: absolute; left: 4px; top: 50%; translate: 0 -50%;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
}
.notif-vazio { padding: 26px; text-align: center; color: var(--fg-mute); font-size: 13.5px; }

@media (max-width: 720px) {
  .notif-panel { position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    right: 12px; left: 12px; width: auto; }
}

/* ─────────────────────────── topbar ─────────────────────────── */

/* No PWA do iPhone o status bar é translúcido e o conteúdo começa em y=0,
   atrás do notch — por isso a barra aparecia cortada só no app instalado.
   `env(safe-area-inset-*)` (habilitado pelo viewport-fit=cover) devolve o
   espaço ocupado pelo sistema; no navegador vale 0 e nada muda. */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 34px;
  padding-left: max(4vw, env(safe-area-inset-left, 0px));
  padding-right: max(4vw, env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, rgba(5, 5, 12, .92), rgba(5, 5, 12, 0));
  transition: background .3s;
}
#topbar.solid { background: rgba(7, 7, 14, .96); box-shadow: 0 1px 0 #1c1c2e; }
.logo { font-size: 22px; }
#nav { display: flex; gap: 22px; }
#nav a {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--fg-dim);
  transition: color .15s;
}
#nav a:hover { color: var(--fg); }
#nav a.on { color: var(--fg); font-weight: 700; }
#nav svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
#nav a.on svg { stroke-width: 2; }
/* no desktop o texto já basta; o ícone entra no celular */
@media (min-width: 641px) { #nav svg { display: none; } }
/* "Minha Lista" não cabe em 375px com 5 itens: no celular vira "Lista" */
.lbl-curto { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; padding: 7px 10px;
  transition: background .2s, border-color .2s;
}
.searchbox svg { width: 20px; height: 20px; color: var(--fg-dim); flex: none; cursor: pointer; }
.searchbox input {
  width: 0; opacity: 0; background: none; border: 0; outline: none; color: var(--fg);
  transition: width .28s ease, opacity .2s;
}
.searchbox.open, .searchbox:focus-within {
  background: rgba(9, 9, 16, .9); border-color: #33334a;
}
.searchbox.open input, .searchbox:focus-within input { width: min(240px, 40vw); opacity: 1; }
.search-cancel { display: none; flex: none; font-size: 14px; font-weight: 600;
  color: var(--fg-dim); padding: 6px 2px 6px 10px; }
.search-cancel:active { color: var(--fg); }

/* No celular não há largura para a busca conviver com sino e avatar: aberta,
   ela vira uma barra fixa de ponta a ponta POR CIMA do topo — nada é
   empurrado — com "Cancelar" para sair. */
@media (max-width: 720px) {
  .searchbox.open, .searchbox:focus-within {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 4vw 0;
    border-radius: 0; border: 0; border-bottom: 1px solid #23233a;
    background: rgba(7, 7, 14, .98);
  }
  .searchbox.open input, .searchbox:focus-within input {
    width: auto; flex: 1; opacity: 1; font-size: 16px;  /* 16px: iOS não dá zoom */
  }
  .searchbox.open .search-cancel, .searchbox:focus-within .search-cancel { display: block; }
}
.avatar-btn { border-radius: 8px; overflow: hidden; width: 36px; height: 36px; }
.avatar-btn .pfp { width: 36px; height: 36px; font-size: 17px; border-radius: 8px; }
.avatar-btn:hover { outline: 2px solid var(--fg); }

/* ─────────────────────────── view / hero ─────────────────────────── */

#view { min-height: 100vh; animation: fadeIn .3s ease; }
.page { padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px) 4vw 80px; }

.hero {
  position: relative; height: min(82vh, 780px); min-height: 480px;
  display: flex; align-items: flex-end;
  margin-top: env(safe-area-inset-top, 0px);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  animation: heroIn 1.1s ease;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 16, .25) 0%, transparent 35%, rgba(9, 9, 16, .96) 92%),
    linear-gradient(90deg, rgba(9, 9, 16, .92) 0%, rgba(9, 9, 16, .25) 55%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 4vw 8vh; max-width: 640px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font-weight: 800; font-size: 13px; letter-spacing: .22em;
}
.hero-title { font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.04; }
.hero-meta { display: flex; gap: 14px; align-items: center; color: var(--fg-dim); font-size: 14px; flex-wrap: wrap; }
.hero-meta .vote { color: #46d369; font-weight: 800; }
.hero-overview {
  color: #d8d8e2; font-size: 15.5px; line-height: 1.55; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; margin-top: 6px; }
.hero-dots { position: absolute; right: 4vw; bottom: 5vh; z-index: 3; display: flex; gap: 7px; }
.hero-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: #ffffff44; cursor: pointer;
  transition: background .2s, width .2s;
}
.hero-dots i.on { background: var(--accent); width: 22px; border-radius: 6px; }

/* ─────────────────────────── trilhos ─────────────────────────── */

.rails { display: flex; flex-direction: column; gap: 38px; padding: 0 0 80px; margin-top: -40px; position: relative; z-index: 3; }
.page .rails { margin-top: 0; }
.rail { display: flex; flex-direction: column; gap: 12px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 0 4vw; }
.rail-head h2 { font-size: 19px; font-weight: 800; }
.rail-head a { font-size: 13px; color: var(--fg-mute); font-weight: 600; transition: color .15s; }
.rail-head a:hover { color: var(--fg); }
.rail-body { position: relative; }
/* O padding vertical de 20px absorve o zoom do hover (card de 231px em
   scale(1.13) cresce ~15px para cada lado); a margem negativa devolve o ritmo
   visual entre os trilhos. Sem isso o zoom estourava a faixa e o overflow-y
   automático criava uma rolagem vertical de alguns pixels durante o hover. */
.rail-track {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 20px 4vw; margin: -14px 0; scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-arrow {
  position: absolute; top: 0; bottom: 0; width: 4vw; z-index: 5;
  display: grid; place-items: center;
  background: linear-gradient(90deg, rgba(9, 9, 16, .85), transparent);
  opacity: 0; transition: opacity .2s; font-size: 26px; color: #fff;
}
.rail-arrow.right { right: 0; background: linear-gradient(270deg, rgba(9, 9, 16, .85), transparent); }
.rail-arrow.left { left: 0; }
.rail-body:hover .rail-arrow { opacity: 1; }

/* selo de novidade sobre o pôster */
.badge-novo {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* ── trilho Top 10: algarismo vazado atrás do pôster ── */
/* overflow-y precisa ser hidden: o corpo de 240px do algarismo estoura a
   altura da faixa e, com overflow-x auto, o navegador criava uma rolagem
   VERTICAL de alguns pixels dentro do trilho. */
.rail-track.rank { gap: 4px; align-items: flex-end; overflow-y: hidden; }
/* O algarismo é irmão do card, não fundo dele: assim o pôster monta por cima
   sem cobrir clique nem hover. Alinhado pela base, na altura do cartaz. */
.rank-item { display: flex; align-items: flex-end; flex: none; }
.rank-num {
  flex: none; font-size: 240px; line-height: .73; font-weight: 900;
  letter-spacing: -.07em; font-family: 'Inter', system-ui, sans-serif;
  color: transparent; -webkit-text-stroke: 4px #34344a;
  margin-right: -28px; user-select: none; pointer-events: none;
  transition: -webkit-text-stroke-color .22s;
}
.rank-item:hover .rank-num { -webkit-text-stroke-color: #5c5c7a; }
/* o "10" tem dois algarismos: no mesmo corpo ele sozinho ocuparia meia tela */
.rank-item:last-child .rank-num { font-size: 200px; letter-spacing: -.11em; margin-right: -32px; }
.rank-item .card { z-index: 1; }
@media (max-width: 720px) {
  .rank-num { font-size: 150px; -webkit-text-stroke-width: 3px; margin-right: -20px; }
  .rank-item:last-child .rank-num { font-size: 126px; margin-right: -24px; }
}

/* ─────────────────────────── cards ─────────────────────────── */

.card {
  flex: 0 0 154px; width: 154px; cursor: pointer; position: relative;
  transition: transform .22s ease, z-index 0s .22s;
}
.card .poster {
  width: 100%; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden;
  background: var(--bg-3); position: relative;
}
.card .poster img { width: 100%; height: 100%; object-fit: cover; }
.card .poster .noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--fg-mute); font-size: 12px; font-weight: 700; text-align: center; padding: 10px;
}
.card:hover { transform: scale(1.13); z-index: 10; }
.card .shade {
  position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .92));
  opacity: 0; transition: opacity .2s; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px; gap: 3px;
}
.card:hover .shade { opacity: 1; }
.card .shade b { font-size: 13px; line-height: 1.25; }
.card .shade small { color: var(--fg-dim); font-size: 11px; display: flex; gap: 8px; }
.card .shade .vote { color: #46d369; font-weight: 800; }
.card .progress {
  position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px;
  background: #ffffff2e; border-radius: 3px; overflow: hidden;
}
.card .progress i { display: block; height: 100%; background: var(--accent); }
.card .ep-tag {
  position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .75);
  font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* canais ao vivo */
.card.live { flex-basis: 200px; width: 200px; }
.card.live .poster {
  aspect-ratio: 16/10; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(120% 120% at 50% 0%, #1c1c2c, #101018);
  border: 1px solid #22223a;
}
.card.live .poster img { object-fit: contain; max-height: 70px; width: auto; max-width: 80%; }
.card.live .live-name { font-size: 12.5px; font-weight: 600; color: var(--fg-dim); margin-top: 8px; text-align: center; }
.card.live:hover { transform: scale(1.06); }

/* ─────────────────────────── grid pages ─────────────────────────── */

.page-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 18px; }
/* Sem `scroll-behavior: smooth` aqui de propósito: ele passa a valer para
   TODA rolagem programática, inclusive a do arrasto, que precisa acompanhar o
   cursor quadro a quadro. As setas pedem a animação explicitamente no
   scrollBy({behavior:'smooth'}). */
.pills { display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: var(--pills-pb, 14px);
  scrollbar-width: none; overscroll-behavior-x: contain; }
.pills::-webkit-scrollbar { display: none; }
.pills.arrastando { cursor: grabbing; user-select: none; }
.pills.arrastando .pill { pointer-events: none; }

/* setas da faixa de filtros — o degradê nelas é o próprio aviso de que a
   lista continua para aquele lado */
.pills-wrap { position: relative; }
.pills-arrow { position: absolute; top: 0; bottom: var(--pills-pb, 14px); width: 58px; z-index: 3;
  display: flex; align-items: center; color: var(--fg); border: 0; padding: 0;
  transition: opacity .15s; }
.pills-arrow[hidden] { display: none; }
.pills-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pills-arrow.esq { left: 0; justify-content: flex-start;
  background: linear-gradient(90deg, var(--bg) 46%, transparent); }
.pills-arrow.esq svg { transform: rotate(180deg); }
.pills-arrow.dir { right: 0; justify-content: flex-end;
  background: linear-gradient(270deg, var(--bg) 46%, transparent); }
.pills-arrow:hover { color: #fff; }
.pills-arrow:active { transform: none; }
/* no toque o arrasto nativo já resolve; as setas só roubariam espaço */
@media (hover: none) { .pills-arrow { display: none; } }
.pill {
  flex: none; padding: 8px 16px; border-radius: 20px; font-size: 13.5px; font-weight: 600;
  background: var(--bg-3); color: var(--fg-dim); border: 1px solid #23233a;
  transition: all .15s; white-space: nowrap;
}
.pill:hover { color: var(--fg); border-color: #3c3c5a; }
/* Um único estado ativo para gênero, plataforma e coleção: o que diferencia
   as linhas é o rótulo à esquerda, não a cor. Três estilos distintos faziam
   a barra parecer três controles soltos em vez de um só. */
.pill.on {
  background: var(--grad); color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 16px rgba(229, 9, 31, .28);
}
.pill.on:hover { color: #fff; }

/* ─────────────── preferências do perfil ─────────────── */

.prefs-gate { position: fixed; inset: 0; z-index: 85; overflow-y: auto; }
.prefs-card {
  width: min(820px, 94vw); display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 18px;
  animation: pop .3s cubic-bezier(.2, 1.1, .4, 1);
}
.prefs-card h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.prefs-titulos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px; width: min(780px, 92vw); max-height: 54vh; overflow-y: auto;
  padding: 4px; border-radius: 12px;
}
.pref-titulo {
  position: relative; border-radius: 8px; overflow: hidden; padding: 0;
  aspect-ratio: 2/3; background: var(--bg-3);
  outline: 3px solid transparent; outline-offset: -3px;
  transition: transform .15s, outline-color .15s, opacity .2s;
}
.pref-titulo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pref-titulo:hover { transform: scale(1.04); }
.pref-titulo .ok-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(9, 9, 16, .55); opacity: 0; transition: opacity .15s;
}
.pref-titulo .ok-badge svg {
  width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  background: var(--grad); border-radius: 50%; padding: 10px;
  box-shadow: 0 6px 22px rgba(229, 9, 31, .45);
}
.pref-titulo.on { outline-color: var(--accent-2); transform: scale(1.02); }
.pref-titulo.on .ok-badge { opacity: 1; }
.prefs-foot { display: flex; gap: 12px; margin-top: 10px; }
.prefs-foot .btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 720px) {
  .prefs-titulos { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); max-height: 50vh; }
}

/* ─────────────────── barra de filtros ─────────────────── */

.filtros {
  --pills-pb: 9px;
  display: flex; flex-direction: column; gap: 2px;
  margin: 4px 0 24px; padding: 14px 0 6px;
  border-top: 1px solid #16162a; border-bottom: 1px solid #16162a;
}

/* Barra da seção +18: "Mostrar" à esquerda, busca ocupando o centro e o botão
   de filtros à direita. A busca é `flex: 1` para que os dois extremos fiquem
   ancorados e o campo cresça com a tela, em vez de os três se espremerem. */
.ad-barra {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 22px;
}
.ad-barra .head-busca { flex: 1; min-width: 0; }
.ad-mostrar .pills { padding-bottom: 0; flex-wrap: nowrap; }
.ad-mostrar .pill { white-space: nowrap; }

/* Abaixo de 720px não cabem os três lado a lado: a busca desce para a segunda
   linha e "Mostrar" divide a primeira com o botão de filtros. */
@media (max-width: 720px) {
  .ad-barra { flex-wrap: wrap; }
  .ad-mostrar { order: 1; flex: 1; }
  .ad-barra .btn-filtros { order: 2; }
  .ad-barra .head-busca { order: 3; flex-basis: 100%; }
}
.filtro-linha {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center;
  column-gap: 4px;
}
.filtro-rotulo {
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-mute); user-select: none;
}
.filtro-limpar { display: flex; justify-content: flex-end; padding: 2px 0 6px; }
.chip-limpar {
  font-size: 12px; font-weight: 700; color: var(--fg-dim);
  padding: 6px 14px; border-radius: 999px; border: 1px dashed #33334a;
  transition: color .15s, border-color .15s;
}
.chip-limpar:hover { color: var(--fg); border-color: var(--accent); }

/* Cabeçalho da listagem: título à esquerda, busca da página + filtros à direita. */
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head .page-title { margin-right: auto; }
.head-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.head-busca {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid #23233a; border-radius: 999px;
  padding: 8px 14px; transition: border-color .15s, box-shadow .15s;
}
.head-busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229,9,31,.14); }
.head-busca svg { width: 17px; height: 17px; color: var(--fg-mute); flex: none; }
.head-busca input {
  width: min(240px, 34vw); background: none; border: 0; outline: none;
  color: var(--fg); font-size: 14px;
}
.head-busca input::placeholder { color: var(--fg-mute); }
.head-busca input::-webkit-search-cancel-button { display: none; }
.head-busca-x { flex: none; color: var(--fg-mute); font-size: 13px; padding: 2px 4px; }
.head-busca-x:hover { color: var(--fg); }

/* botão de filtros: só o ícone, redondo, com contador de filtros ativos */
.btn-filtros {
  display: grid; place-items: center; position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--fg-dim); background: var(--bg-3); border: 1px solid #23233a;
  transition: color .15s, border-color .15s;
}
.btn-filtros:hover { color: var(--fg); border-color: #33334a; }
.btn-filtros svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; }
.btn-filtros.ativo { color: #fff; background: var(--grad); border-color: transparent; }
.btn-filtros .n {
  position: absolute; top: -4px; right: -4px;
  font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; padding: 0 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Drawer de filtros em QUALQUER largura: sobe de baixo no celular e vira
   folha central no desktop. */
.filtros-wrap {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(4, 4, 9, .74);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  display: flex; align-items: flex-end; justify-content: center;
}
.filtros-wrap.aberto { opacity: 1; pointer-events: auto; }
.filtros-sheet {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-height: 84vh;
  background: var(--bg-2); border-top: 1px solid #23233a;
  border-radius: 20px 20px 0 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .6);
  padding: 0 18px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(40px);
  transition: transform .26s cubic-bezier(.2, .9, .3, 1);
}
.filtros-wrap.aberto .filtros-sheet { transform: translateY(0); }
.filtros-sheet::before {
  content: ''; position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 40px; height: 4px; border-radius: 3px; background: #33334a;
}
@media (min-width: 721px) {
  .filtros-wrap { align-items: center; padding: 4vh 4vw; }
  .filtros-sheet {
    max-width: 760px; border-radius: 20px; border: 1px solid #23233a;
    padding: 0 26px 18px; max-height: 82vh;
  }
  .filtros-sheet::before { display: none; }
}
.filtros-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 8px; font-size: 17px; font-weight: 800;
}
.filtros-fechar { font-size: 17px; color: var(--fg-mute); padding: 4px 6px; }
.filtros-fechar:hover { color: var(--fg); }
.filtros-sheet .filtros { border: 0; margin: 0; padding: 4px 0 0; flex: 1; min-height: 0; overflow-y: auto; }
.filtros-sheet .filtro-linha { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.filtros-sheet .filtro-rotulo { padding-left: 2px; }
/* dentro do drawer sobra largura: as pills quebram linha em vez de rolar */
.filtros-sheet .pills { flex-wrap: wrap; overflow: visible; padding-bottom: 14px; }
.filtros-sheet .pills-arrow { display: none; }
.filtros-sheet .filtro-limpar { display: none; }   /* o rodapé já tem Limpar */
.filtros-rodape { display: flex; gap: 10px; padding: 12px 0 4px; border-top: 1px solid #1c1c2e; }
.filtros-rodape .btn { flex: 1; justify-content: center; padding: 13px 18px; }
.filtros-rodape .btn:disabled { opacity: .45; }

@media (max-width: 720px) {
  .page-head { flex-wrap: wrap; }
  .page-head .page-title { flex-basis: 100%; }
  .head-tools { flex: 1; }
  .head-busca { flex: 1; }
  .head-busca input { width: 100%; min-width: 0; flex: 1; font-size: 16px; } /* 16px: iOS não dá zoom */
}

body.sem-scroll { overflow: hidden; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px 10px; padding-top: 10px;
}
.grid .card { width: auto; flex: none; }
.grid .card:hover { transform: scale(1.06); }
.grid-live { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sentinel { height: 10px; }

/* rodapé de paginação das grades */
.more { display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 0 46px; }
/* .btn é inline-flex: sem justify-content o texto encostaria à esquerda
   dentro do min-width. */
.more-btn { min-width: 220px; padding: 13px 30px; border-radius: 999px;
  justify-content: center; text-align: center;
  font-weight: 700; letter-spacing: .2px; }
.more-btn:disabled { opacity: .55; cursor: default; }
.more-count { font-size: 13px; color: var(--muted); letter-spacing: .3px; }
.empty {
  padding: 80px 20px; text-align: center; color: var(--fg-mute); font-size: 15px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.empty b { font-size: 20px; color: var(--fg-dim); }

/* ─────────────────────────── busca ─────────────────────────── */

.search-section { margin-bottom: 34px; }
.search-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: var(--fg-dim); }

/* ─────────────────────────── detalhes ─────────────────────────── */

.overlay.wide { padding: 4vh 20px; align-items: start; }
.detail {
  width: min(880px, 96vw); background: var(--bg-2); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid #23233a;
  animation: pop .3s cubic-bezier(.2, 1.2, .4, 1); margin: auto;
  position: relative;
}
.detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(9, 9, 16, .8); display: grid; place-items: center; font-size: 17px;
}
.detail-close:hover { background: var(--accent); }
.detail-hero { position: relative; aspect-ratio: 16/8; background: var(--bg-3); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-2) 98%);
}
.detail-hero .dh-title {
  position: absolute; left: 34px; bottom: 22px; right: 34px; z-index: 2;
  font-size: clamp(24px, 3.6vw, 42px); font-weight: 900; line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}
.detail-body { padding: 22px 34px 36px; display: flex; flex-direction: column; gap: 18px; }
.detail-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--fg-dim); font-size: 14px; }
.detail-meta .vote { color: #46d369; font-weight: 800; }
.detail-meta .tag {
  border: 1px solid #33334a; font-size: 11px; padding: 2px 8px; border-radius: 4px;
  color: var(--fg-mute); font-weight: 700;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* onde o filme parou, logo abaixo de Continuar/Reiniciar */
.detail-retomar { display: flex; flex-direction: column; gap: 7px; max-width: 340px; }
.detail-retomar span { color: var(--fg-mute); font-size: 12.5px; }
.retomar-barra {
  height: 4px; border-radius: 3px; background: #2a2a3c; overflow: hidden;
}
.retomar-barra i { display: block; height: 100%; background: var(--accent); }
.detail-overview { color: #d8d8e2; line-height: 1.6; font-size: 15px; }
.detail-facts { color: var(--fg-mute); font-size: 13.5px; line-height: 1.7; }
.detail-facts b { color: var(--fg-dim); font-weight: 600; }
/* nome de ator/diretor vira link — discreto no repouso, para a lista de oito
   nomes não virar um bloco sublinhado; o hover diz que é clicável */
.pessoa-link {
  color: var(--fg-dim); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.pessoa-link:hover { color: var(--fg); border-bottom-color: var(--accent); }
.page-sub { color: var(--fg-mute); font-size: 14px; margin: -10px 0 18px; }

/* ── cabeçalho da página de pessoa ──
   Foto em 2:3 (o mesmo recorte dos pôsteres do TMDB), nome, uma linha de
   contexto e a biografia recortada. O brilho radial atrás é o mesmo recurso
   das outras telas "premium" do site — dá profundidade sem competir. */
.pessoa-cab {
  position: relative; display: flex; gap: 28px; align-items: flex-start;
  padding: 26px 28px; margin: 0 0 22px; border-radius: 18px;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(229, 9, 31, .10), transparent 60%),
    linear-gradient(180deg, rgba(20, 20, 32, .85), rgba(14, 14, 22, .85));
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
.pessoa-cab.so-nome { padding: 0; margin: 0 0 8px; background: none; border: 0; box-shadow: none; }
.pessoa-cab.so-nome .pessoa-foto-wrap, .pessoa-cab.so-nome .pessoa-meta,
.pessoa-cab.so-nome .pessoa-bio { display: none; }

.pessoa-foto-wrap { flex: 0 0 168px; }
.pessoa-foto {
  /* height: auto é obrigatório: a <img> chega com height="513" no HTML e,
     sem isso, a altura fixa vence a proporção e a foto vira uma coluna
     recortada de 168×513. */
  display: block; width: 168px; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 14px; background: #191926;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pessoa-inicial {
  display: grid; place-items: center; font-size: 56px; font-weight: 900;
  color: rgba(255, 255, 255, .22); background: linear-gradient(160deg, #1c1c2c, #12121c);
}
.pessoa-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pessoa-info .page-title { margin: 2px 0 0; }
.pessoa-meta { color: var(--fg-dim); font-size: 14px; line-height: 1.5; }
.pessoa-meta i { font-style: normal; color: var(--fg-mute); }
.pessoa-meta .dot { margin: 0 9px; color: var(--fg-mute); }
.pessoa-bio p {
  color: #cfcfda; font-size: 14.5px; line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pessoa-bio.aberta p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.pessoa-mais {
  margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--fg);
  border-bottom: 1px solid var(--accent); padding: 0 0 1px;
}
.pessoa-mais:hover { color: var(--accent-2); }

/* esqueleto enquanto o TMDB responde: a página nasce com o tamanho final */
@keyframes sk-pulsa { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.pessoa-cab.carregando .sk { animation: sk-pulsa 1.4s ease-in-out infinite; }
.pessoa-cab.carregando .sk-txt {
  width: 46%; height: 14px; border-radius: 6px; background: #1d1d2c;
  animation: sk-pulsa 1.4s ease-in-out infinite;
}
.pessoa-cab.carregando .sk-bio span {
  display: block; height: 12px; border-radius: 6px; background: #1a1a28; margin: 0 0 9px;
  animation: sk-pulsa 1.4s ease-in-out infinite;
}
.pessoa-cab.carregando .sk-bio span:nth-child(2) { width: 92%; }
.pessoa-cab.carregando .sk-bio span:nth-child(3) { width: 61%; }

@media (max-width: 640px) {
  .pessoa-cab { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
  .pessoa-foto-wrap { flex: none; }
  .pessoa-foto { width: 132px; }
  .pessoa-info { align-items: center; }
  .pessoa-meta .dot { margin: 0 6px; }
}

/* ─────────────────────── custom select ─────────────────────── */

.cselect { position: relative; width: max-content; min-width: 210px; user-select: none; }
.cselect-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 11px 14px 11px 16px;
  background: var(--bg-3); border: 1px solid #2a2a42; border-radius: 10px;
  font-weight: 700; font-size: 15px; color: var(--fg);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cselect-btn:hover { border-color: #3d3d5e; background: #1d1d2e; }
.cselect.open .cselect-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 31, .18);
}
.cselect-arrow {
  width: 18px; height: 18px; color: var(--fg-dim); flex: none;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.cselect.open .cselect-arrow { transform: rotate(180deg); color: var(--accent-2); }

.cselect-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 100%; max-height: 290px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(16, 16, 27, .92); backdrop-filter: blur(18px);
  border: 1px solid #2c2c46; border-radius: 12px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top left;
  pointer-events: none;
  transition: opacity .18s ease, transform .24s cubic-bezier(.34, 1.4, .64, 1);
}
.cselect.open .cselect-menu { opacity: 1; transform: none; pointer-events: auto; }
.cselect-menu::-webkit-scrollbar { width: 8px; }

.cselect-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14.5px; color: var(--fg-dim);
  opacity: 0; translate: 0 -6px;
  transition: background .12s, color .12s;
}
.cselect.open .cselect-opt {
  animation: cselIn .28s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i) * 26ms);
}
.cselect-opt:hover, .cselect-opt:focus-visible {
  background: #ffffff10; color: var(--fg); outline: none;
}
.cselect-opt svg { width: 16px; height: 16px; flex: none; opacity: 0; scale: .5; transition: opacity .18s, scale .25s cubic-bezier(.34, 1.56, .64, 1); }
.cselect-opt.on { color: var(--fg); }
.cselect-opt.on svg { opacity: 1; scale: 1; color: var(--accent-2); }
.cselect-opt.on span { font-weight: 800; }

@keyframes cselIn { to { opacity: 1; translate: 0 0; } }
.ep-list { display: flex; flex-direction: column; }
.ep-row {
  display: grid; grid-template-columns: 34px 150px 1fr; gap: 16px; align-items: center;
  padding: 14px 10px; border-radius: 10px; cursor: pointer; transition: background .15s;
}
.ep-row:hover { background: var(--bg-3); }
.ep-row + .ep-row { border-top: 1px solid #1c1c2e; }
.ep-num { color: var(--fg-mute); font-size: 20px; font-weight: 700; text-align: center; }
.ep-thumb {
  aspect-ratio: 16/9; border-radius: 6px; background: var(--bg-3);
  overflow: hidden; position: relative;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .progress {
  position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px;
  background: #ffffff2e; border-radius: 3px; overflow: hidden;
}
.ep-thumb .progress i { display: block; height: 100%; background: var(--accent); }
.ep-thumb .ep-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; font-size: 26px;
}
.ep-row:hover .ep-play { opacity: 1; }
.ep-info b { font-size: 14.5px; display: block; margin-bottom: 4px; }
.ep-info small { color: var(--fg-mute); font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-info .dur { color: var(--fg-dim); font-weight: 600; margin-left: 8px; }

/* ─────────────────────────── skeleton / toast ─────────────────────────── */

.skel { position: relative; overflow: hidden; background: var(--bg-3); border-radius: 8px; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff0d, transparent);
  animation: shimmer 1.4s infinite;
}
.skel-rail { display: flex; gap: 10px; padding: 6px 4vw; }
.skel-card { flex: 0 0 154px; aspect-ratio: 2/3; }
.skel-hero { height: min(82vh, 780px); min-height: 480px; border-radius: 0; }

#toast-root { position: fixed; bottom: 26px; left: 50%; translate: -50% 0; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-3); border: 1px solid #2c2c46; border-radius: 10px;
  padding: 12px 20px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
.toast.err { border-color: #5c1a22; color: #ff9aa4; }
.toast.ok { border-color: #1c4a2a; color: #7ce69a; }

.sync-note {
  margin: 0 4vw 20px; padding: 14px 18px; border-radius: 10px;
  background: #161626; border: 1px solid #26263e; color: var(--fg-dim); font-size: 14px;
  display: flex; align-items: center; gap: 12px;
}
.sync-note .spin {
  width: 16px; height: 16px; border: 2px solid #33334a; border-top-color: var(--accent);
  border-radius: 50%; animation: rot 1s linear infinite; flex: none;
}

/* ─────────────────────────── animações ─────────────────────────── */

@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes heroIn { from { opacity: .2; transform: scale(1.04); } }
@keyframes rot { to { transform: rotate(360deg); } }

/* ─────────────────────────── responsivo ─────────────────────────── */

@media (max-width: 900px) {
  #nav { gap: 14px; }
  #nav a { font-size: 13px; }
  #topbar { gap: 18px; }
}
@media (max-width: 640px) {
  .logo { font-size: 17px; }
  #nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(7, 7, 14, .97); backdrop-filter: blur(14px);
    display: flex; justify-content: space-around; gap: 0;
    padding: 9px 4px max(9px, env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 #1c1c2e;
  }
  #nav a {
    flex-direction: column; gap: 4px; flex: 1; min-width: 0;
    padding: 4px 2px; border-radius: 10px;
    font-size: 10.5px; font-weight: 600; text-align: center;
    transition: color .16s, transform .16s;
  }
  #nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
  .lbl-full { display: none; }
  .lbl-curto { display: inline; }
  #nav a svg { width: 23px; height: 23px; }
  #nav a:active { transform: scale(.92); }
  /* o item ativo ganha a cor da marca e um ponto discreto */
  #nav a.on { color: var(--fg); font-weight: 700; }
  #nav a.on svg { stroke: var(--accent-2); }
  /* a cor do ícone já sinaliza o item ativo; um ponto extra só polui */
  .card { flex-basis: 118px; width: 118px; }
  .hero { height: 68vh; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ep-row { grid-template-columns: 26px 110px 1fr; gap: 10px; }
  .page { padding-bottom: 120px; }
  .rails { padding-bottom: 120px; }
}

/* ─────────────────────── login / conta ─────────────────────── */

.auth-sub { color: var(--fg-dim); font-size: 14.5px; line-height: 1.5; margin-top: -8px; }
.gate-actions { display: flex; gap: 12px; }

/* ── tela de entrada ──
   Primeira coisa que um cliente novo vê, então ela carrega sozinha o peso de
   parecer um serviço pago. Vidro sobre fundo escuro, um só caminho na tela e
   nenhum login social: aqui a identidade é o número de celular. */

.auth-gate { position: relative; overflow: hidden; background: #06060c; }

/* Anéis concêntricos ao fundo — dão profundidade sem competir com o cartão.
   É um `repeating-radial-gradient`: uma declaração no lugar de dezenas de
   divs ou de um canvas animado, e sem custo de pintura por quadro. */
.auth-aura {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 46%,
      rgba(255, 190, 195, .075) 0 1.5px, transparent 1.5px 58px),
    radial-gradient(58% 42% at 50% 26%, rgba(229, 9, 31, .22), transparent 70%),
    radial-gradient(75% 55% at 50% 108%, rgba(255, 91, 61, .10), transparent 70%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 25%, transparent 100%);
}

.auth-card {
  position: relative; z-index: 1;
  width: min(400px, 94vw);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 46px 34px 34px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(58, 26, 34, .60), rgba(8, 6, 14, .74));
  border: 1px solid rgba(255, 72, 86, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 160, 165, .10),
    0 48px 96px -24px rgba(0, 0, 0, .85);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  animation: pop .35s cubic-bezier(.2, 1.2, .4, 1);
}
.auth-logo { height: 36px; width: auto; margin-bottom: 28px; }
.auth-card h1 {
  font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px;
  background: linear-gradient(160deg, #ffffff 25%, #ffb3b9);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.auth-kicker {
  font-size: 12.5px; line-height: 1.55; color: var(--fg-mute);
  max-width: 32ch; margin-bottom: 26px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; width: 100%; }

/* campo com etiqueta flutuante */
.textbox { position: relative; display: block; }
.textbox > span {
  position: absolute; top: 50%; left: 16px; translate: 0 -50%;
  transform-origin: 0 50%; pointer-events: none;
  font-size: 15px; color: rgba(255, 150, 158, .42);
  transition: top .25s cubic-bezier(.16, 1, .3, 1),
              scale .25s cubic-bezier(.16, 1, .3, 1),
              translate .25s cubic-bezier(.16, 1, .3, 1), color .25s;
}
.textbox input {
  width: 100%; height: 56px; padding: 20px 16px 0;
  font-size: 15px; color: #fff; caret-color: var(--accent-2);
  background: rgba(255, 60, 80, .05);
  border: 1px solid rgba(255, 60, 80, .13);
  border-radius: 12px; outline: none;
  box-shadow: 0 0 0 4px transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.textbox input:focus {
  border-color: rgba(255, 60, 80, .45);
  background: rgba(255, 60, 80, .09);
  box-shadow: 0 0 0 4px rgba(229, 9, 31, .12);
}
.textbox input:focus + span,
.textbox input:not(:placeholder-shown) + span {
  top: 9px; translate: 0 0; scale: .76; color: rgba(255, 130, 142, .8);
}
.textbox input:disabled { opacity: .55; }

.auth-btn {
  width: 100%; height: 54px; margin-top: 4px; border-radius: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--grad);
  box-shadow: 0 12px 30px -10px rgba(229, 9, 31, .65);
  transition: filter .2s, transform .12s, box-shadow .2s, opacity .2s;
}
.auth-btn:hover:not(:disabled) {
  filter: brightness(1.09);
  box-shadow: 0 16px 38px -10px rgba(229, 9, 31, .8);
}
.auth-btn:active:not(:disabled) { transform: scale(.985); }
.auth-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }

.auth-link {
  display: block; width: 100%; margin-top: 18px; padding: 4px 0;
  font-size: 13px; font-weight: 500; text-align: center;
  color: rgba(255, 145, 155, .62); transition: color .18s;
}
.auth-link:hover:not(:disabled) { color: #ff9aa4; }
.auth-link:disabled { color: var(--fg-mute); cursor: default; }
.auth-link + .auth-link { margin-top: 10px; }
.auth-card .pin-error { margin-top: 16px; font-size: 13.5px; }

/* as caixas de dígito herdam o vidro do cartão em vez do cinza sólido do app,
   senão ficam com cara de recorte colado por cima */
.auth-card .pin-field { align-items: center; margin-top: 2px; }

/* As caixas ocupam a mesma largura e altura do campo Celular, dividida em
   partes iguais — com 4 ou com 6. Sem isso a linha do PIN ficava mais estreita
   que o campo de cima e o cartão parecia desalinhado. */
.auth-card .pin-boxes { width: 100%; gap: 12px; }
.auth-card .pin-boxes input {
  flex: 1 1 0; max-width: none; aspect-ratio: auto; height: 56px;
  border-radius: 12px; font-size: 22px;
  background: rgba(255, 60, 80, .05); border-color: rgba(255, 60, 80, .14);
}
.auth-card .pin-boxes input.cheio {
  background: rgba(255, 60, 80, .11); border-color: rgba(255, 60, 80, .32);
}
.auth-card .pin-boxes input:focus {
  background: rgba(255, 60, 80, .14); border-color: rgba(255, 60, 80, .55);
}

/* avatar com foto */
.pfp.has-photo { overflow: hidden; background: var(--bg-3); }
.pfp.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick .photo-pick {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; cursor: pointer; opacity: .8;
  background: var(--bg-3); border: 1px dashed #3d3d5e; color: var(--fg-dim);
  transition: opacity .15s, transform .15s, border-color .15s;
}
.avatar-pick .photo-pick:hover { opacity: 1; transform: scale(1.08); border-color: var(--accent); color: var(--fg); }
.avatar-pick .photo-pick svg { width: 24px; height: 24px; }
.avatar-pick .photo-pick.has { border-style: solid; opacity: 1; outline: 3px solid var(--fg); }
.avatar-pick .photo-pick img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────── menu do perfil (topbar) ─────────────────── */

.profile-wrap { position: relative; }
.pmenu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 60;
  width: 318px; padding: 8px;
  background: rgba(16, 16, 27, .95); backdrop-filter: blur(20px);
  border: 1px solid #2c2c46; border-radius: 14px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .66);
  animation: pmenuIn .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pmenuIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

.pmenu-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 12px; border-bottom: 1px solid #23233a; margin-bottom: 6px;
}
.pmenu-head .pfp { width: 42px; height: 42px; font-size: 20px; border-radius: 9px; flex: none; }
.pmenu-head-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pmenu-head-txt b { font-size: 14.5px; font-weight: 700; }
.pmenu-head-txt small { color: var(--fg-mute); font-size: 12px; }
.kids-chip {
  margin-left: auto; background: #ffd12e; color: #000; font-size: 9.5px;
  font-weight: 800; border-radius: 4px; padding: 3px 6px; letter-spacing: .08em;
}

.pmenu-label {
  padding: 8px 12px 5px; font-size: 11px; font-weight: 800;
  color: var(--fg-mute); letter-spacing: .1em; text-transform: uppercase;
}
.pmenu-sep { height: 1px; background: #23233a; margin: 6px 4px; }

/* O rótulo é a informação; a dica é acessório. Antes os dois disputavam a
   mesma linha e ambos quebravam em duas — agora o rótulo fica numa linha só
   e a dica encolhe (com reticências) até caber. */
.pmenu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border-radius: 9px; text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--fg-dim);
  transition: background .13s, color .13s;
}
.pmenu-item > span {
  flex: none; white-space: nowrap;
}
.pmenu-item:hover { background: #ffffff10; color: var(--fg); }
.pmenu-item .pmenu-ico { width: 19px; height: 19px; flex: none; opacity: .85; }
.pmenu-item .pfp.mini { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; flex: none; }
.pmenu-item .pmenu-hint {
  margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--fg-mute);
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 0; flex: 1; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pmenu-item .pmenu-hint svg { width: 14px; height: 14px; }
.pmenu-item.danger-item { color: #ff8a94; }
.pmenu-item.danger-item:hover { background: #3a0d1355; color: #ffa8b0; }

/* dispositivos conectados */
.sessions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.session-row {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--bg-3); border: 1px solid #23233a; border-radius: 8px; padding: 9px 12px;
}
.session-row b { font-size: 13.5px; font-weight: 600; }
.session-row small { margin-left: auto; color: var(--fg-mute); font-size: 11.5px; }
.session-row.current { border-color: #2c5c3a; }
.session-row.current small { color: #7ce69a; }
.muted { color: var(--fg-mute); font-size: 12.5px; }

@media (max-width: 640px) {
  .pmenu { width: min(300px, calc(100vw - 24px)); right: -4px; }
}

/* ─────────────────────────── splash ─────────────────────────── */

.splash {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(900px 520px at 50% 45%, rgba(229, 9, 31, .13), transparent 65%),
    #0B0B0F;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 34px;
  transition: opacity .55s ease, visibility .55s;
}
.splash img {
  width: min(440px, 66vw);
  animation: splashLogo 1s cubic-bezier(.2, .9, .25, 1) both;
  filter: drop-shadow(0 10px 40px rgba(229, 9, 31, .25));
}
/* barrinha de carregamento, no lugar de um spinner genérico */
.splash-bar {
  width: min(180px, 40vw); height: 3px; border-radius: 3px;
  background: #ffffff14; overflow: hidden; position: relative;
  animation: fadeIn .5s .5s both;
}
.splash-bar::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  border-radius: 3px; background: var(--grad);
  animation: splashBar 1.1s ease-in-out infinite;
}
.splash.done { opacity: 0; visibility: hidden; }

@keyframes splashLogo {
  from { opacity: 0; transform: scale(.9); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes splashBar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* logo como imagem */
.gate-logo { height: 42px; width: auto; }
.logo img { height: 26px; width: auto; display: block; }
@media (max-width: 640px) {
  .gate-logo { height: 32px; }
  .logo img { height: 20px; }
}

/* ─────────── shorts (vídeo vertical) ─────────── */
.page-lead { color: var(--fg-dim); font-size: 14.5px; margin: -10px 0 20px; }
.grid-shorts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.card.short .poster { aspect-ratio: 9/16; }
.card.short .shade { opacity: 1; background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.92)); }

.sec-head {
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--fg-mute); margin: 22px 0 12px;
}
.ep-grid { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ep-chip {
  min-width: 52px; padding: 10px 8px; border-radius: 9px; text-align: center;
  background: var(--bg-3); border: 1px solid #23233a; color: var(--fg-dim);
  transition: all .14s;
}
.ep-chip:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.ep-chip b { display: block; font-size: 14px; font-weight: 700; }
.ep-chip small { font-size: 10.5px; color: var(--fg-mute); }
.ep-chip.watching { border-color: var(--accent); color: var(--fg); }
.ep-chip.done { opacity: .5; }
.ep-chip.done b::after { content: ' ✓'; color: #46d369; }

/* ─────────────── assinatura ─────────────── */

.assinatura { max-width: 860px; margin-inline: auto; }
.sub-status {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2); border: 1px solid #23233a; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 28px;
}
.sub-status b { font-size: 18px; font-weight: 800; }
.sub-status.ativa { border-color: rgba(62, 207, 110, .35); }
.sub-status.ativa b { color: #3ecf6e; }
.sub-status span { color: var(--fg-dim); font-size: 14.5px; }
.sub-status small { color: var(--fg-mute); font-size: 12.5px; margin-top: 4px; }

.sec-h { font-size: 18px; font-weight: 800; margin: 6px 0 14px; }
.planos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.plano {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; text-align: left;
  background: var(--bg-2); border: 1px solid #23233a; border-radius: 14px;
  padding: 20px; transition: transform .15s, border-color .15s;
}
.plano:hover { transform: translateY(-3px); border-color: #3c3c5a; }
.plano.destaque { border-color: var(--accent); }
.plano.destaque::after {
  content: 'melhor preço'; position: absolute; top: -9px; right: 14px;
  background: var(--grad); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.plano .off {
  font-style: normal; font-size: 11.5px; font-weight: 800;
  background: rgba(62, 207, 110, .14); color: #3ecf6e;
  padding: 2px 8px; border-radius: 999px;
}
.plano b { font-size: 15px; font-weight: 700; color: var(--fg-dim); }
.plano .preco { font-size: 26px; font-weight: 900; }
.plano small { color: var(--fg-mute); font-size: 12px; }
.plano .btn { margin-top: 10px; width: 100%; justify-content: center; padding: 10px; }
.plano.carregando { opacity: .6; pointer-events: none; }
.sub-nota { color: var(--fg-mute); font-size: 12.5px; margin: 4px 0 26px; }

.cupom-row { display: flex; gap: 10px; margin-bottom: 30px; }
.cupom-row input {
  flex: 1; max-width: 340px; background: var(--bg-3); border: 1px solid #2a2a42;
  color: var(--fg); border-radius: 8px; padding: 12px 14px; outline: none;
  text-transform: uppercase; letter-spacing: .06em;
}
.cupom-row input:focus { border-color: var(--accent); }

.extrato { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.extrato-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid #1c1c2e; border-radius: 10px;
  padding: 13px 16px;
}
.ex-info { flex: 1; min-width: 140px; }
.ex-info b { font-size: 14px; }
.ex-info small { display: block; color: var(--fg-mute); font-size: 12px; margin-top: 2px; }
.ex-valor { font-weight: 800; }
.ex-tag {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #23233a; color: var(--fg-dim);
}
.ex-tag.ok { background: rgba(62, 207, 110, .14); color: #3ecf6e; }
.ex-tag.warn { background: rgba(255, 190, 60, .14); color: #ffbe3c; }
.ex-tag.err { background: rgba(255, 46, 67, .14); color: #ff8a94; }
.ex-reemb {
  font-size: 12px; font-weight: 600; color: var(--fg-mute);
  text-decoration: underline; padding: 4px;
}
.ex-reemb:hover { color: var(--fg); }
.ex-reemb-st { font-size: 12px; color: var(--fg-mute); }

.paywall { align-items: center; text-align: center; }
.paywall-ico { font-size: 44px; }
.paywall h2 { font-size: 20px; }

/* ─────────────── painel do revendedor ─────────────── */

.revenda { max-width: 980px; margin-inline: auto; }
.rev-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 26px 28px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(229,9,31,.16), rgba(255,91,61,.06)), var(--bg-2);
  border: 1px solid #2a2a44;
}
.rev-saldo { display: flex; flex-direction: column; gap: 2px; }
.rev-saldo span { font-size: 12.5px; color: var(--fg-dim); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.rev-saldo b { font-size: 40px; font-weight: 900; line-height: 1.1; }
.rev-saldo small { color: var(--fg-mute); font-size: 12.5px; }
.rev-hero .btn:disabled { opacity: .45; cursor: default; }

.rev-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: var(--bg-2); border: 1px solid #23233a;
  border-radius: 14px; padding: 18px 22px; margin-bottom: 26px;
}
.rev-link-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rev-link-txt span { font-size: 12px; color: var(--fg-mute); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; }
.rev-link code {
  font-size: 16px; font-weight: 700; color: var(--fg); user-select: all;
  word-break: break-all;
}
.rev-link-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.rev-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 30px;
}
.rev-card {
  background: var(--bg-2); border: 1px solid #1e1e32; border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
}
.rev-card span { font-size: 11.5px; color: var(--fg-mute); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; }
.rev-card b { font-size: 24px; font-weight: 800; }
.rev-card small { font-size: 11.5px; color: var(--fg-mute); }

.rev-tabela { display: flex; flex-direction: column; gap: 8px; margin-bottom: 34px; }
.rev-row {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
  gap: 14px; align-items: center;
  background: var(--bg-2); border: 1px solid #1c1c2e; border-radius: 10px;
  padding: 13px 18px;
}
.rev-quem { min-width: 0; }
.rev-quem b { font-size: 14px; display: block; }
.rev-quem small { display: block; color: var(--fg-mute); font-size: 12px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; }
.rev-st { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rev-st small { color: var(--fg-mute); font-size: 11.5px; }
.rev-num { text-align: right; }
.rev-num b { font-size: 15px; font-weight: 800; }
.rev-num b.mais { color: #3ecf6e; }
.rev-num b.menos { color: #ff8a94; }
.rev-num small { display: block; color: var(--fg-mute); font-size: 11.5px; margin-top: 2px; }
.rev-comp { font-size: 12.5px; color: var(--accent-2); font-weight: 600; text-decoration: underline; }

.tag-ok, .tag-off, .tag-warn, .tag-err {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.tag-ok { background: rgba(62,207,110,.14); color: #3ecf6e; }
.tag-warn { background: rgba(255,190,60,.14); color: #ffbe3c; }
.tag-err { background: rgba(255,46,67,.14); color: #ff8a94; }
.tag-off { background: #23233a; color: var(--fg-mute); }

@media (max-width: 720px) {
  .rev-saldo b { font-size: 32px; }
  .rev-hero .btn { width: 100%; justify-content: center; }
  .rev-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .rev-st { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; }
}

/* ─────────────── contato ─────────────── */

.contato { max-width: 720px; margin-inline: auto; }
.contato-zap {
  display: flex; align-items: center; gap: 18px; margin: 6px 0 34px;
  padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,211,102,.14), rgba(37,211,102,.04)), var(--bg-2);
  border: 1px solid rgba(37,211,102,.32);
  transition: transform .15s, border-color .15s;
}
.contato-zap:hover { transform: translateY(-2px); border-color: rgba(37,211,102,.6); }
.contato-zap svg { width: 42px; height: 42px; flex: none; color: #25d366; }
.contato-zap div { flex: 1; min-width: 0; }
.contato-zap b { display: block; font-size: 15px; font-weight: 800; }
.contato-zap span { display: block; font-size: 20px; font-weight: 700; color: #25d366; margin: 2px 0; }
.contato-zap small { color: var(--fg-mute); font-size: 12.5px; }
.contato-zap i { font-style: normal; font-size: 26px; color: var(--fg-mute); }

.contato-form { display: flex; flex-direction: column; gap: 18px; }
.contato-form select, .contato-form textarea {
  background: var(--bg-3); border: 1px solid #2a2a42; color: var(--fg);
  border-radius: 8px; padding: 12px 14px; outline: none; font: inherit; resize: vertical;
}
.contato-form select:focus, .contato-form textarea:focus { border-color: var(--accent); }
.ct-conta { color: var(--fg-mute); font-size: 12px; text-align: right; }
.contato-form .btn { align-self: flex-start; }

.contato-ok {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 40px 24px;
  background: var(--bg-2); border: 1px solid rgba(62,207,110,.3); border-radius: 14px;
}
.contato-ok .ok-ico {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(62,207,110,.16); color: #3ecf6e; font-size: 28px; font-weight: 800;
}
.contato-ok b { font-size: 18px; }
.contato-ok span { color: var(--fg-dim); font-size: 14px; max-width: 380px; line-height: 1.55; }

/* ─────────────── reportar erro (discreto) ─────────────── */
.report-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 22px 0 4px; padding: 6px 2px;
  font-size: 12.5px; font-weight: 500; color: var(--fg-mute);
  transition: color .15s;
}
.report-link:hover { color: var(--fg-dim); text-decoration: underline; }
.report-link svg { width: 15px; height: 15px; }
#report-modal select, #report-modal textarea {
  background: var(--bg-3); border: 1px solid #2a2a42; color: var(--fg);
  border-radius: 8px; padding: 12px 14px; outline: none; font: inherit; resize: vertical;
}
#report-modal select:focus, #report-modal textarea:focus { border-color: var(--accent); }

/* ─────────────── página de busca ─────────────── */
.busca-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-3); border: 1px solid #23233a; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 22px;
}
.busca-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229,9,31,.14); }
.busca-box svg { width: 22px; height: 22px; color: var(--fg-mute); flex: none; }
.busca-box input {
  flex: 1; background: none; border: 0; outline: none; color: var(--fg);
  font-size: 17px; min-width: 0;
}
.busca-box input::-webkit-search-cancel-button { display: none; }
.busca-hist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.busca-hist-head b { font-size: 15px; color: var(--fg-dim); }
.busca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.busca-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid #23233a; border-radius: 999px;
  padding: 8px 8px 8px 14px; font-size: 13.5px; color: var(--fg-dim);
  transition: color .15s, border-color .15s;
}
.busca-chip:hover { color: var(--fg); border-color: #33334a; }
.busca-chip i { font-style: normal; font-size: 11px; color: var(--fg-mute);
  padding: 3px 7px; border-radius: 50%; }
.busca-chip i:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ── descoberta na tela de busca (enquanto ninguém digitou nada) ── */
.busca-descoberta { animation: fadeIn .3s ease; }
.desc-sec { margin-bottom: 34px; }
.desc-h {
  font-size: 17px; font-weight: 800; margin-bottom: 14px; color: var(--fg);
  display: flex; align-items: center; gap: 9px;
}
.desc-h::before {
  content: ''; width: 3px; height: 17px; border-radius: 2px; background: var(--grad);
}
.desc-generos { display: flex; flex-wrap: wrap; gap: 9px; }
.desc-genero {
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--fg-dim); background: var(--bg-3); border: 1px solid #23233a;
  transition: color .16s, border-color .16s, transform .16s, background .16s;
}
.desc-genero:hover {
  color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px);
}
.desc-plats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 128px;
  gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin;
}
.desc-plats::-webkit-scrollbar { height: 6px; }
@media (max-width: 720px) {
  .desc-plats { grid-auto-columns: 104px; }
  .desc-sec { margin-bottom: 26px; }
}

/* ─────────────── página de notificações ─────────────── */
.notifs-page .notif-lista {
  max-width: 760px; display: flex; flex-direction: column;
  border: 1px solid #1c1c2e; border-radius: 14px; overflow: hidden;
  background: rgba(12,12,20,.5);
}
.notif-todas {
  display: block; width: 100%; padding: 13px; text-align: center;
  font-size: 13.5px; font-weight: 700; color: var(--fg-dim);
  border-top: 1px solid #1c1c2e; position: sticky; bottom: 0;
  background: rgba(12, 12, 20, .98); transition: color .15s;
}
.notif-todas:hover { color: var(--fg); }

/* ─────────────── canais ao vivo ─────────────── */
.canais-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 0 12px; scroll-behavior: smooth;
}
.canais-chips::-webkit-scrollbar { display: none; }
.canais-sec { margin: 24px 0 4px; scroll-margin-top: calc(var(--topbar-h) + 14px); }
.canais-sec h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.canais-sec h2 small { font-size: 12.5px; color: var(--fg-mute); font-weight: 700; margin-left: 8px; }
.canais-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px;
  gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin;
}
.canal-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #14142a, #0e0e1c);
  border: 1px solid #1e1e34; border-radius: 14px; padding: 18px 12px 14px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.canal-card:hover {
  transform: translateY(-4px); border-color: #33334a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.canal-logo {
  width: 74px; height: 74px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 255, 255, .06); overflow: hidden;
}
.canal-logo img { max-width: 84%; max-height: 84%; object-fit: contain; }
.canal-semlogo { font-size: 24px; font-weight: 900; color: var(--fg-mute); }
.canal-card b {
  font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.canal-live { font-style: normal; font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em; color: #ff4d5e; }

/* ─────────────── entrada +18 no menu ─────────────── */
#nav-adult { color: #ff8a94; }
#nav-adult.on, #nav-adult:hover { color: #ff4d5e; }

/* ═══════════════ Programa de revenda: convite e landing ═══════════════ */

/* mosaico de pôsteres reais do catálogo — a "imagem" da página é o produto */
.rv-mosaico {
  position: absolute; inset: 0; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  opacity: .3; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.rv-mosaico img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  animation: rvFade .7s ease both; animation-delay: var(--d, 0s);
}
@keyframes rvFade { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; } }

/* ── modal de convite ── */
.sheet.rv-convite {
  max-width: 940px; width: min(940px, 94vw); padding: 0; overflow: hidden;
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid #26263c;
}
.rv-convite-arte {
  position: relative; background: linear-gradient(160deg, #1a0c14, #0c0c16);
  min-height: 100%; overflow: hidden; display: grid; place-items: end start;
}
.rv-convite-arte .rv-mosaico {
  grid-template-columns: repeat(2, 1fr); opacity: .42;
  mask-image: linear-gradient(200deg, #000, rgba(0,0,0,.15));
  -webkit-mask-image: linear-gradient(200deg, #000, rgba(0,0,0,.15));
}
.rv-convite-selo {
  position: relative; z-index: 1; margin: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(9,9,16,.82); border: 1px solid #33334a;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-dim); backdrop-filter: blur(6px);
}
.rv-convite-selo svg { width: 15px; height: 15px; color: #ffc857; }
.rv-convite-txt { padding: 32px 34px 26px; }
.rv-convite-txt h2 { font-size: 27px; line-height: 1.2; font-weight: 900; letter-spacing: -.5px; }
.rv-convite-txt h2 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv-convite-txt .auth-sub { margin: 12px 0 0; }
.rv-convite-lista { list-style: none; margin: 20px 0 24px; display: grid; gap: 12px; }
.rv-convite-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--fg-dim); }
.rv-convite-lista i {
  font-style: normal; font-size: 17px; line-height: 1.3; flex: none;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--bg-3); border: 1px solid #26263c;
}
.rv-convite-lista b { color: var(--fg); }

@media (max-width: 760px) {
  .sheet.rv-convite { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .rv-convite-arte { min-height: 148px; }
  .rv-convite-txt { padding: 22px 20px 20px; }
  .rv-convite-txt h2 { font-size: 22px; }
}

/* ── página /revender ── */
.page.revender { max-width: 1120px; margin: 0 auto; }
.revender .rv-h2 { font-size: 27px; font-weight: 900; letter-spacing: -.4px; margin-bottom: 8px; }
.revender .rv-sub { color: var(--fg-dim); font-size: 15px; margin-bottom: 20px; }

.rv-hero-top {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid #23233a; background: radial-gradient(120% 130% at 15% 0%, #23101a 0%, #0c0c16 60%);
  padding: clamp(28px, 5vw, 60px); margin-bottom: 26px;
}
.rv-hero-conteudo { position: relative; z-index: 1; max-width: 720px; }
.rv-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  color: #ffb3bb; background: rgba(229,9,31,.14); border: 1px solid rgba(229,9,31,.4);
  padding: 7px 13px; border-radius: 999px; margin-bottom: 18px;
}
.rv-hero-top h1 {
  font-size: clamp(30px, 5.2vw, 52px); line-height: 1.06; font-weight: 900; letter-spacing: -1.4px;
}
.rv-hero-top h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv-hero-conteudo > p {
  margin: 16px 0 26px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: var(--fg-dim);
  max-width: 620px;
}
.rv-hero-top b { color: var(--fg); }
.rv-hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.grande { padding: 15px 30px; font-size: 15.5px; border-radius: 999px; font-weight: 800; }
.rv-selos { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px;
  font-size: 13px; color: var(--fg-mute); font-weight: 600; }

.rv-numeros {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 46px;
}
.rv-num {
  background: linear-gradient(165deg, #15152a, #0e0e1a);
  border: 1px solid #23233a; border-radius: 16px; padding: 22px 20px;
}
.rv-num b {
  display: block; font-size: 32px; font-weight: 900; letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv-num span { display: block; font-size: 14px; font-weight: 700; margin: 4px 0 6px; }
.rv-num small { font-size: 12.5px; color: var(--fg-mute); line-height: 1.45; display: block; }

.rv-passos { margin-bottom: 46px; }
.rv-passos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
}
.rv-passo {
  position: relative; background: var(--bg-2); border: 1px solid #1e1e30;
  border-radius: 16px; padding: 24px 20px 20px; transition: border-color .2s, transform .2s;
}
.rv-passo:hover { border-color: #33334a; transform: translateY(-3px); }
.rv-passo-n {
  position: absolute; top: 16px; right: 18px; font-size: 40px; font-weight: 900;
  color: #ffffff0d; line-height: 1;
}
.rv-passo-ico { width: 30px; height: 30px; color: var(--accent-2); margin-bottom: 14px; }
.rv-passo b { display: block; font-size: 16px; margin-bottom: 6px; }
.rv-passo span { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }

/* simulador de ganhos */
.rv-sim { margin-bottom: 46px; }
.rv-sim-box {
  background: linear-gradient(160deg, #16162c, #0d0d18);
  border: 1px solid #23233a; border-radius: 20px; padding: clamp(22px, 3vw, 32px);
}
.rv-sim-topo { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  align-items: flex-end; margin-bottom: 20px; }
.rv-sim-topo span { display: block; font-size: 13px; color: var(--fg-mute); font-weight: 600; }
.rv-sim-topo b { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; letter-spacing: -1px;
  font-variant-numeric: tabular-nums; }
.rv-sim-ganho { text-align: right; min-width: 0; }
.rv-sim-ganho b {
  /* "R$ 45.000,00" é bem mais largo que "R$ 45,00": o tamanho acompanha */
  font-size: clamp(28px, 4.6vw, 42px); white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#rv-sim-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 10%), #26263c var(--pct, 10%));
  outline: none; cursor: pointer;
}
#rv-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 5px solid var(--accent); cursor: grab;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
#rv-sim-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 5px solid var(--accent); cursor: grab;
}
.rv-sim-escala { display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 11.5px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.rv-sim-nota { margin-top: 16px; font-size: 14px; color: var(--fg-dim); }
.rv-sim-nota b { color: var(--fg); }

/* FAQ */
.rv-faq { margin-bottom: 46px; scroll-margin-top: calc(var(--topbar-h) + 20px); }
.rv-faq-lista { display: grid; gap: 10px; }
.rv-faq-item {
  background: var(--bg-2); border: 1px solid #1e1e30; border-radius: 14px;
  overflow: hidden; transition: border-color .2s;
}
.rv-faq-item[open] { border-color: #33334a; }
.rv-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 15.5px; font-weight: 700; cursor: pointer;
  list-style: none; transition: color .15s;
}
.rv-faq-item summary::-webkit-details-marker { display: none; }
.rv-faq-item summary:hover { color: var(--accent-2); }
.rv-faq-item summary i {
  flex: none; width: 20px; height: 20px; position: relative; transition: transform .22s;
}
.rv-faq-item summary i::before, .rv-faq-item summary i::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
  left: 50%; top: 50%; translate: -50% -50%;
}
.rv-faq-item summary i::before { width: 13px; height: 2px; }
.rv-faq-item summary i::after { width: 2px; height: 13px; transition: opacity .22s; }
.rv-faq-item[open] summary i::after { opacity: 0; }
.rv-faq-resp {
  padding: 0 20px 20px; font-size: 14.5px; line-height: 1.65; color: var(--fg-dim);
  max-width: 780px;
}
.rv-faq-resp b { color: var(--fg); }
.rv-faq-resp code {
  background: var(--bg-3); border: 1px solid #26263c; border-radius: 6px;
  padding: 2px 7px; font-size: 13px; color: var(--fg);
}

/* chamada final */
.rv-final {
  text-align: center; padding: clamp(34px, 6vw, 60px) 24px;
  background: radial-gradient(90% 140% at 50% 0%, #26101a 0%, #0d0d18 62%);
  border: 1px solid #23233a; border-radius: 22px;
}
.rv-final h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; letter-spacing: -.8px; }
.rv-final p { margin: 12px auto 24px; max-width: 520px; color: var(--fg-dim); font-size: 15.5px; line-height: 1.55; }
.rv-final small { display: block; margin-top: 18px; font-size: 12px; color: var(--fg-mute);
  max-width: 460px; margin-inline: auto; line-height: 1.5; }

/* item de destaque no menu do perfil */
.pmenu-item.destaque-item { color: #ffd9a0; }
.pmenu-item.destaque-item:hover { color: #ffc857; }

/* ═══════════ carrossel de streamings (topo da home) ═══════════ */

.rail-plats { margin-bottom: 8px; }
.plats-track { gap: 14px; align-items: stretch; }
.plat-card {
  flex: none; width: 156px; aspect-ratio: 1; border-radius: 16px;
  overflow: hidden; position: relative; isolation: isolate;
  border: 1px solid #23233a; background: var(--bg-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s, border-color .22s;
}
.plat-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1);
}
/* brilho que corre pela arte no hover — o toque "premium" sem poluir a marca */
.plat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.plat-card:hover {
  transform: translateY(-6px); border-color: #40405e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .58);
}
.plat-card:hover img { transform: scale(1.06); }
.plat-card:hover::after { transform: translateX(120%); }
.plat-card:active { transform: translateY(-2px) scale(.98); }

@media (max-width: 720px) {
  .plats-track { gap: 10px; }
  .plat-card { width: 112px; border-radius: 13px; }
}

/* ═══════════ faixa de parceiros (entre os trilhos da home) ═══════════ */

.faixa-parceiros {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 44px 4vw 30px; padding: clamp(26px, 3.6vw, 44px) clamp(22px, 3.4vw, 48px);
  border-radius: 22px; border: 1px solid #2a1a24;
  background:
    radial-gradient(90% 150% at 88% 12%, rgba(229, 9, 31, .26) 0%, transparent 62%),
    linear-gradient(115deg, #18101d 0%, #0c0c15 58%);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px;
}
/* brilho diagonal sutil: dá o acabamento "premium" sem pesar a home */
.fp-brilho {
  position: absolute; inset: -40% -10%; pointer-events: none; z-index: -1;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .05) 50%, transparent 58%);
}
.fp-txt { position: relative; min-width: 0; max-width: 640px; }
.fp-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em;
  color: #ffb3bb; background: rgba(229, 9, 31, .16); border: 1px solid rgba(229, 9, 31, .38);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 15px;
}
.faixa-parceiros h2 {
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; letter-spacing: -.7px; line-height: 1.16;
}
.faixa-parceiros h2 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.faixa-parceiros p {
  margin: 13px 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--fg-dim); max-width: 560px;
}
.fp-itens {
  display: flex; flex-wrap: wrap; gap: 9px 10px; margin-bottom: 22px;
}
.fp-itens span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--fg-dim);
  background: rgba(255, 255, 255, .045); border: 1px solid #2a2a40;
  padding: 7px 13px; border-radius: 999px;
}
.fp-itens i { font-style: normal; font-size: 13px; line-height: 1; }
.fp-acao { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fp-acao small { font-size: 12px; color: var(--fg-mute); }

/* ── bloco visual: pôsteres em leque + cartão de comissão ── */
.fp-arte {
  position: relative; width: 330px; height: 208px; flex: none;
  pointer-events: none; user-select: none;
}
.fp-leque { position: absolute; inset: 0; }
.fp-leque img {
  position: absolute; width: 118px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 10px; border: 1px solid #ffffff1a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1);
}
.fp-leque .fpp0 { left: 6px;   top: 26px; rotate: -9deg;  z-index: 1; filter: brightness(.72); }
.fp-leque .fpp1 { left: 88px;  top: 6px;  rotate: 0deg;   z-index: 3; }
.fp-leque .fpp2 { left: 170px; top: 26px; rotate: 9deg;   z-index: 2; filter: brightness(.72); }
.faixa-parceiros:hover .fp-leque .fpp0 { transform: translate(-8px, -4px) rotate(-3deg); }
.faixa-parceiros:hover .fp-leque .fpp2 { transform: translate(8px, -4px) rotate(3deg); }

.fp-cartao {
  position: absolute; right: -6px; bottom: -6px; z-index: 4; width: 226px;
  background: rgba(14, 14, 24, .92); border: 1px solid #33334a; border-radius: 14px;
  padding: 13px 15px; box-shadow: 0 20px 44px rgba(0, 0, 0, .66);
  backdrop-filter: blur(10px);
}
.fp-cartao-topo {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; color: var(--fg-mute);
}
.fp-pulso {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); animation: fpPulso 2s ease-out infinite;
}
@keyframes fpPulso {
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.fp-cartao b {
  display: block; font-size: 26px; font-weight: 900; letter-spacing: -.6px;
  background: linear-gradient(135deg, #7ce69a, #4ade80);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fp-cartao small { display: block; margin-top: 3px; font-size: 11px; color: var(--fg-mute);
  line-height: 1.4; }

@media (max-width: 1080px) {
  .faixa-parceiros { grid-template-columns: minmax(0, 1fr); }
  .fp-arte { display: none; }     /* sem espaço para o leque sem espremer o texto */
}
@media (max-width: 720px) {
  .faixa-parceiros { margin: 30px 4vw 24px; }
  .fp-acao { flex-direction: column; align-items: stretch; gap: 10px; }
  .fp-acao .btn { justify-content: center; }
  .fp-acao small { text-align: center; }
}

/* ═══════════ confirmação de pagamento e boas-vindas ═══════════ */

.pw-japaguei {
  display: block; width: 100%; margin: 4px 0 14px; padding: 10px;
  font-size: 13px; font-weight: 700; color: var(--fg-dim);
  border: 1px dashed #33334a; border-radius: 10px; transition: color .15s, border-color .15s;
}
.pw-japaguei:hover:not(:disabled) { color: var(--fg); border-color: var(--accent); }
.pw-japaguei:disabled { opacity: .6; cursor: default; }

/* ── pagamento por Pix ── */
.sheet.pix-sheet { max-width: 470px; text-align: center; padding: 30px 28px 24px; }
.sheet.pix-sheet h2 { font-size: 22px; font-weight: 900; letter-spacing: -.4px; }
.sheet.pix-sheet .auth-sub { margin: 8px 0 20px; }
.pix-qr {
  display: grid; place-items: center; padding: 14px; margin: 0 auto 18px;
  width: fit-content; background: #fff; border-radius: 14px;
}
.pix-qr svg { display: block; width: 190px; height: 190px; }
.pix-semqr { color: #333; font-size: 13px; max-width: 180px; }
.pix-codigo { display: flex; gap: 8px; align-items: stretch; margin-bottom: 18px; }
.pix-codigo code {
  flex: 1; min-width: 0; text-align: left; font-size: 11px; line-height: 1.4;
  color: var(--fg-dim); background: var(--bg-3); border: 1px solid #23233a;
  border-radius: 10px; padding: 10px 12px; max-height: 62px; overflow: hidden;
  word-break: break-all;
}
.pix-codigo .btn { flex: none; white-space: nowrap; }
.pix-passos {
  text-align: left; margin: 0 0 18px 18px; display: grid; gap: 7px;
  font-size: 13.5px; color: var(--fg-dim); line-height: 1.45;
}
.pix-passos b { color: var(--fg); }
.pix-espera {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid #23233a;
  border-radius: 10px; padding: 12px; margin-bottom: 12px;
}
.pix-pulso {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: fpPulso 1.8s ease-out infinite;
}
.sheet.pix-sheet .btn.ghost { width: 100%; justify-content: center; }

@media (max-width: 480px) {
  .pix-codigo { flex-direction: column; }
  .pix-codigo .btn { justify-content: center; }
}

.sheet.conf-pgto { text-align: center; padding: 34px 30px; }
.conf-spin {
  width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid #ffffff18; border-top-color: var(--accent);
  animation: rot .8s linear infinite;
}
.sheet.conf-pgto h2 { font-size: 20px; font-weight: 800; }

.sheet.bemvindo {
  text-align: center; max-width: 470px; padding: 34px 32px 30px;
  background: radial-gradient(120% 100% at 50% 0%, #23101a 0%, var(--bg-2) 62%);
  border: 1px solid #33334a;
}
.bv-ico {
  font-size: 46px; line-height: 1; margin-bottom: 12px;
  animation: pop .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.sheet.bemvindo h2 {
  font-size: 28px; font-weight: 900; letter-spacing: -.6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet.bemvindo .auth-sub { margin: 10px 0 0; }
.sheet.bemvindo b { color: var(--fg); }
.bv-lista {
  list-style: none; display: grid; gap: 10px; margin: 22px 0 24px; text-align: left;
}
.bv-lista li {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid #26263c;
  border-radius: 12px; padding: 11px 14px;
}
.bv-lista i { font-style: normal; font-size: 17px; line-height: 1; }
.sheet.bemvindo .btn { width: 100%; justify-content: center; }

/* ═══════════════════ voltar ao topo ═══════════════════ */

.btn-topo {
  position: fixed; right: max(22px, env(safe-area-inset-right, 0px)); bottom: 26px;
  z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 15px; border-radius: 999px;
  background: rgba(16, 16, 26, .92); border: 1px solid #2c2c46;
  color: var(--fg-dim); font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55); backdrop-filter: blur(10px);
  animation: pop .22s ease;
  transition: color .16s, border-color .16s, transform .16s, background .16s;
}
.btn-topo:hover {
  color: #fff; border-color: transparent; background: var(--grad);
  transform: translateY(-2px);
}
.btn-topo:active { transform: translateY(0) scale(.96); }
.btn-topo svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* no celular o menu vira barra inferior: o botão sobe para não cobri-la,
   e vira só o ícone — largura ali é artigo de luxo */
@media (max-width: 640px) {
  .btn-topo {
    right: 14px; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    padding: 0; width: 46px; height: 46px; justify-content: center;
  }
  .btn-topo span { display: none; }
  .btn-topo svg { width: 20px; height: 20px; }
}

/* ═══════════════════════════ rodapé ═══════════════════════════ */

#rodape {
  margin-top: 40px;
  padding: 52px max(4vw, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #16162a;
  background: linear-gradient(180deg, rgba(11,11,20,0), #0b0b14 45%);
}
/* Sem max-width: o resto do site não tem teto de largura, só o padding de 4vw
   do #rodape. Com 1280px centralizado o rodapé encolhia no meio enquanto as
   trilhas e o banner acima iam até a borda — dois containers diferentes. */
.rp-topo {
  display: flex; flex-wrap: wrap; gap: 44px 60px; justify-content: space-between;
  margin: 0 0 38px;
}
.rp-marca { max-width: 330px; min-width: 240px; }
.rp-marca img { width: 168px; height: auto; margin-bottom: 16px; }
.rp-marca p { font-size: 13.5px; line-height: 1.6; color: var(--fg-mute); }
/* convite para o grupo: o verde do WhatsApp identifica na hora, sem legenda */
.rp-grupo {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 18px;
  padding: 11px 16px 11px 13px; border-radius: 12px;
  background: rgba(37, 211, 102, .09); border: 1px solid rgba(37, 211, 102, .3);
  transition: background .16s, border-color .16s, transform .16s;
}
.rp-grupo:hover {
  background: rgba(37, 211, 102, .16); border-color: rgba(37, 211, 102, .55);
  transform: translateY(-1px);
}
.rp-grupo svg { width: 24px; height: 24px; color: #25d366; flex: none; }
.rp-grupo span { display: flex; flex-direction: column; gap: 2px; }
.rp-grupo b { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.rp-grupo small { font-size: 11.5px; color: var(--fg-mute); }
.rp-cols { display: flex; flex-wrap: wrap; gap: 44px 64px; }
.rp-col { display: flex; flex-direction: column; gap: 11px; min-width: 132px; }
.rp-col b {
  font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 3px;
}
.rp-col a {
  font-size: 14px; color: var(--fg-mute); transition: color .15s;
  width: fit-content;
}
.rp-col a:hover { color: var(--fg); }
/* "Seja revendedor" é o único link que a gente quer que salte aos olhos */
.rp-col a.rp-destaque { color: #ffd9a0; font-weight: 700; }
.rp-col a.rp-destaque::after {
  content: '›'; margin-left: 6px; transition: margin-left .18s;
  display: inline-block;
}
.rp-col a.rp-destaque:hover { color: #ffc857; }
.rp-col a.rp-destaque:hover::after { margin-left: 10px; }
.rp-base {
  padding-top: 22px;   /* mesma largura do .rp-topo acima: sem teto próprio */
  border-top: 1px solid #14142440;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--fg-mute);
}
.rp-base i { font-style: normal; }
.rp-selo { opacity: .8; }

@media (max-width: 720px) {
  #rodape { margin-top: 24px; padding-top: 40px; }
  .rp-topo { gap: 32px; margin-bottom: 28px; }
  .rp-marca { max-width: 100%; }
  .rp-marca img { width: 140px; }
  .rp-cols { gap: 28px 44px; width: 100%; }
  .rp-col { min-width: 118px; }
  .rp-base { justify-content: flex-start; }
}
