/* =========================================================================
   MFLIX — interface limpa (painel, catálogo, início e admin)

   Carregado depois de mflix.css e mflix-pages.css. Tudo aqui parte de três
   peças que se repetem pelo site inteiro: o carrossel de destaque, a fileira
   com "Ver todos" e o cartão (evento, canal ou pôster). Quem aprende uma
   tela já sabe usar as outras.
   ========================================================================= */

/* -------------------------------- Cabeçalho ------------------------------- */

.site-header {
  height: 62px;
  background: rgba(18, 18, 20, .9);
  border-bottom: 1px solid var(--line);
}
.brand-mark { box-shadow: none; border-radius: 8px; width: 30px; height: 30px; }
.brand { font-size: 18px; }
.brand img { height: 38px; }

/* Na TV a logo pode respirar: a pessoa está longe da tela. */
html.tv .brand img { height: 50px; }
.nav a { font-weight: 500; color: var(--muted); position: relative; background: none !important; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: -14px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
@media (max-width: 760px) {
  .nav a.active::after { display: none; }
  .nav a.active { background: rgba(255, 255, 255, .06) !important; }
}

.btn-primary { background: var(--red); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #ff6d71; box-shadow: none; transform: none; }
.btn-glow { box-shadow: none !important; animation: none !important; }
.site-footer { margin-top: 60px; }

/* ---------------------------------- Casca --------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 22px 24px 40px;
}

/* ---------------------------- Carrossel (hero) ---------------------------- */

.hero {
  position: relative;
  height: clamp(380px, 42vw, 490px);
  border-radius: 20px;
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid var(--line);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.hero-slide.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }

/* O fundo é o próprio pôster ampliado: a fonte não manda imagem de cena. */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero-slide.on .hero-bg { transform: scale(1.12); }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .94) 0%, rgba(10, 10, 12, .72) 38%, rgba(10, 10, 12, .18) 100%),
    linear-gradient(0deg, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0) 42%);
}

.hero-body {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 6vw, 72px);
  right: 80px;
  top: 50%;
  transform: translateY(-56%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-poster {
  width: 150px;
  aspect-ratio: 2 / 3;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .85);
}

.hero-info { min-width: 0; max-width: 540px; }

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.hero-tag svg { color: var(--red-2); }

.hero-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-desc {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-play {
  min-height: 42px;
  padding: 0 30px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.btn-play:hover { background: #ff6d71; }

.btn-dim {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.btn-dim:hover { background: rgba(255, 255, 255, .17); }

.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s;
}
.hero-nav:hover { background: rgba(0, 0, 0, .75); }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots button.on { background: #fff; transform: scale(1.15); }

.hero-skeleton { position: absolute; inset: 0; }

/* --------------------------------- Abas ----------------------------------- */

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); }
.tab.on::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.tab .n {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tab .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, .22);
}

/* -------------------------------- Fileiras -------------------------------- */

.row { margin-top: 30px; }

.row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.row-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: var(--red);
}

.row-more { margin-left: auto; display: inline-flex; align-items: center; min-height: 36px; padding-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.row-more:hover { color: var(--text); }

.row-arrows { display: flex; gap: 6px; }
.row-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.row-arrow:hover { background: var(--surface-3); color: #fff; }

.track {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track.t-event   { grid-auto-columns: 214px; }
.track.t-channel { grid-auto-columns: 180px; }
.track.t-poster  { grid-auto-columns: 146px; }

/* Grade: páginas de "Ver todos" e a aba escolhida no painel. */
.grid { display: grid; gap: 14px; }
.g-event   { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.g-channel { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.g-poster  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }

/* Com uma aba escolhida, só a fileira dela fica, e vira grade. */
.shell[data-view]:not([data-view="inicio"]) .hero,
.shell[data-view]:not([data-view="inicio"]) .row:not(.focus) { display: none; }
.row.focus .row-arrows { display: none; }
.row.focus .track {
  grid-auto-flow: row;
  overflow: visible;
  scroll-snap-type: none;
}
.row.focus .track.t-event   { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); grid-auto-columns: auto; }
.row.focus .track.t-channel { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-columns: auto; }
.row.focus .track.t-poster  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-columns: auto; gap: 18px 14px; }
.row-foot { display: none; margin-top: 18px; text-align: center; }
.row.focus .row-foot { display: block; }

.row-empty {
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------ Cartão: evento ---------------------------- */

.ev {
  display: flex;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.ev:hover { border-color: var(--line-2); background: var(--surface-2); }
.ev.is-live { border-color: rgba(255, 90, 95, .28); }

.ev-when {
  width: 78px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
}

.ev-pill {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ev-pill.live { border-color: rgba(255, 90, 95, .55); background: rgba(255, 90, 95, .12); color: var(--red-2); }

.ev-time { font-size: 11.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

.ev-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
}

.ev-league {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-teams { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ev-vs { font-size: 10px; font-weight: 800; color: var(--muted); }

.crest {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-2);
}
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest.sem { background: var(--surface-3); }

/* Na grade das páginas cheias, o nome dos times aparece. */
.ev-names {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev.full { height: 104px; }
.ev.full .ev-names { display: block; }

/* ------------------------------ Cartão: canal ----------------------------- */

.ch {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
}
.ch img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.ch:hover img { transform: scale(1.05); }
.ch:hover { border-color: var(--line-2); }

.ch-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 10px 7px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .15s;
}
.ch:hover .ch-name, .ch:focus-visible .ch-name { opacity: 1; }

.ch.sem-img { display: grid; place-items: center; }
.ch.sem-img img { display: none; }
.ch.sem-img .ch-name {
  position: static;
  padding: 0 12px;
  background: none;
  font-size: 13.5px;
  text-align: center;
  white-space: normal;
  opacity: 1;
}

/* ------------------------------ Cartão: pôster ---------------------------- */

.pc {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pc-img {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.pc:hover .pc-img img { transform: scale(1.04); }
.pc:hover .pc-img { border-color: var(--line-2); }
.pc-img.sem-img img { display: none; }
.pc-img.sem-img::after {
  content: attr(data-nome);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

.pc-rate {
  position: absolute;
  top: 6px; left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .72);
  font-size: 10.5px;
  font-weight: 700;
  color: #ffd166;
}

.pc-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-sub { display: block; font-size: 11.5px; color: var(--muted); }

/* Esqueletos das fileiras */
.sk { border-radius: 8px; }
.sk-event { height: 84px; }
.sk-channel { aspect-ratio: 16 / 9; }
.sk-poster { aspect-ratio: 2 / 3; }

/* ------------------------------ Aviso do plano ---------------------------- */

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 90, 95, .28);
  border-radius: 12px;
  background: rgba(255, 90, 95, .07);
  font-size: 13.5px;
}
.notice svg { color: var(--red-2); flex: none; }
.notice .btn { margin-left: auto; min-height: 34px; }

/* Faixa do aplicativo, discreta, no fim do painel. */
.app-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.app-strip .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(61, 220, 132, .12);
  color: #3ddc84;
  flex: none;
}
.app-strip strong { display: block; font-size: 14.5px; }
.app-strip span { font-size: 12.5px; color: var(--muted); }
.app-strip .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------ Páginas de "Ver todos" -------------------------- */

.page-top {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 6px 0 18px;
}
.page-top h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.page-top p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.page-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-bottom: 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }

.searchbar { position: relative; display: flex; align-items: center; }
.searchbar svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.searchbar .input {
  width: min(320px, 78vw);
  min-height: 40px;
  height: 40px;
  padding-left: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { color: #fff; border-color: var(--line-2); }

.chips {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip.on { background: #fff; border-color: #fff; color: #111; }
.chip .n { font-weight: 500; opacity: .55; }
.chip .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.day-label {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-label:first-child { margin-top: 0; }

/* Paginação do catálogo, no mesmo tom. */
.paginacao { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pg {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pg:hover:not(:disabled) { color: #fff; border-color: var(--line-2); }
.pg.atual { background: #fff; border-color: #fff; color: #111; }
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { align-self: center; color: var(--muted); padding: 0 2px; }

/* ------------------------------ Página inicial ---------------------------- */

.lp-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.lp-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.lp-perk .ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 90, 95, .1);
  color: var(--red-2);
}
.lp-perk strong { display: block; font-size: 14px; line-height: 1.3; }
.lp-perk span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Quem não assina vê a vitrine com um cadeado: o clique leva para os planos. */
.locked { position: relative; }
.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 10, 12, .55) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='10.5' width='16' height='10.5' rx='2.4'/><path d='M8 10.5V7.6a4 4 0 0 1 8 0v2.9'/></svg>") center / 22px no-repeat;
  opacity: 0;
  transition: opacity .15s;
}
.locked:hover::after, .locked:focus-visible::after { opacity: 1; }
.pc.locked::after { display: none; }
.pc.locked .pc-img::after { content: none; }
.pc.locked:hover .pc-img { box-shadow: inset 0 0 0 999px rgba(10, 10, 12, .5); }

.lp-section { margin-top: 70px; }
.lp-title { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.lp-title .eyebrow { color: var(--red-2); }
.lp-title h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.lp-title p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.lp-band {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.lp-band h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.lp-band p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.lp-band .acoes { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-step { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lp-step b {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}
.lp-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lp-step p { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------- Admin --------------------------------- */

.adm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-top h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.adm-top p { font-size: 13px; color: var(--muted); }
.adm-status { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.adm-actions .btn { min-height: 36px; font-size: 12.5px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.kpis .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.kpis .stat .ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--red-2);
}
.kpis .stat strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.kpis .stat span { font-size: 12px; color: var(--muted); }

/* Seções do grupo aberto: quebram de linha no celular, nada fica escondido. */
.adm-subtabs { flex-wrap: wrap; margin: 14px 0 0; overflow: visible; }
.adm-subtabs + .adm-pane, .adm-pane { margin-top: 18px; }
@media (max-width: 560px) {
  #tabs { margin-top: 18px; }
  #tabs .tab { flex: 1; justify-content: center; padding: 12px 6px; font-size: 13.5px; }
}

.adm-pane[hidden], .adm-pane [hidden], .drawer [hidden] { display: none !important; }

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.panel + .panel { margin-top: 16px; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 15px; font-weight: 700; }
.panel-head .muted { font-size: 12.5px; }
.panel-head .push { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel-body { padding: 16px; }

.panel .table-card { border: 0; border-radius: 0; background: none; }

/* Peças pequenas do admin: no lugar dos estilos soltos dentro do HTML. */
.adm-vazio { padding: 24px; text-align: center; font-size: 13.5px; color: var(--muted); }
.adm-vazio.erro { color: var(--red-2); }
.adm-vazio .mini-btn { margin-left: 10px; }
.adm-sub { font-size: 12.5px; color: var(--muted); }
.adm-ref { font-size: 12px; color: var(--text-2); user-select: all; word-break: break-all; }
.adm-linha { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-linha.sub { gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.adm-par { display: flex; gap: 8px; align-items: center; }
.adm-par .input { flex: 1; min-width: 0; }
.adm-par.solto { flex-wrap: wrap; gap: 10px; }
.adm-box { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.adm-box > strong { display: block; margin-bottom: 6px; font-size: 13px; }
.adm-grupo { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.adm-grupo > strong { font-size: 13px; }
.adm-perigo { color: var(--red-2); }
.adm-perigo:hover:not(:disabled) { border-color: rgba(255, 90, 95, .45); background: rgba(255, 90, 95, .1); }
.adm-mais { opacity: .45; min-height: 38px; padding: 0 10px; letter-spacing: 2px; }
.adm-mais:hover { opacity: 1; }
.adm-estreito { max-width: 680px; }
.adm-apos-kpis { margin-top: 16px; }
.kpis.sem-topo { margin-top: 0; }
.adm-form-linha { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.adm-form-linha .field { margin: 0; flex: 1; min-width: 200px; }
.adm-form-linha .field.largo { flex: 2; min-width: 220px; }
.adm-negado { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 90px 0; text-align: center; }
.adm-negado h1 { font-size: 26px; }
.adm-pane .mini-btn { display: inline-flex; align-items: center; gap: 6px; }
.adm-pane .table .mini-btn { margin-top: 4px; }
.sm-bar .searchbar { flex: 1; min-width: 220px; }

/* Relatórios: barras simples, na cor do site */
.rel-barras {
  display: grid;
  grid-template-columns: repeat(var(--n, 30), minmax(0, 1fr));
  gap: clamp(1px, .4vw, 5px);
  height: 190px;
  align-items: end;
}
.rel-dia { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; cursor: default; outline: none; }
.rel-dia i { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--red); opacity: .8; transition: opacity .15s var(--ease); }
.rel-dia:hover i, .rel-dia:focus i { opacity: 1; }
.rel-dia small { height: 18px; margin-top: 6px; font-size: 10px; line-height: 18px; color: var(--muted); white-space: nowrap; text-align: center; overflow: visible; }
.rel-legenda { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rel-dupla { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.rel-dupla .panel + .panel { margin-top: 0; }
.rel-tabela { min-width: 0; }

/* Fatura aberta pela busca */
.fatura { padding: 16px; border: 1px solid rgba(255, 176, 32, .35); border-radius: 12px; background: var(--surface-2); }
.fatura.paga { border-color: rgba(52, 209, 127, .35); }
.fatura-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fatura-topo h3 { margin: 8px 0 2px; font-size: 20px; }
.fatura-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fatura-dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 14px; border-radius: 10px; background: var(--surface); font-size: 13px; line-height: 1.7; }
.fatura-dados strong { display: block; margin-bottom: 2px; }
.fatura-dados span { color: var(--muted); margin-right: 4px; }
.fatura-dados a { margin-left: 6px; color: var(--green); font-size: 12px; }
.fatura-pix { margin: 14px 0 0; }
.fatura-pix .input { font-size: 12px; }

/* Gerenciador de streams */
.sm-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sm-bar .chips { margin: 0; }

.sm-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.sm-item:last-child { border-bottom: 0; }
.sm-item:hover { background: rgba(255, 255, 255, .02); }
.sm-item.is-off { opacity: .55; }

.sm-thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-thumb.crests { display: flex; gap: 4px; padding: 0 6px; }
.sm-thumb.crests img { width: 26px; height: 26px; object-fit: contain; }

.sm-name { min-width: 0; }
.sm-name strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-name span { font-size: 12px; color: var(--muted); }
.sm-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }

.tag {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}
.tag.ed   { background: rgba(255, 176, 32, .14); color: var(--amber); }
.tag.man  { background: rgba(90, 160, 255, .15); color: #8dbbff; }
.tag.off  { background: rgba(255, 90, 95, .13); color: var(--red-2); }
.tag.live { background: rgba(255, 90, 95, .13); color: var(--red-2); }
.tag.ok   { background: rgba(52, 209, 127, .13); color: var(--green); }

.sm-url { min-width: 0; }
.sm-url code {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-url small { font-size: 11px; color: var(--muted); }
.sm-url .sem { font-size: 12px; color: var(--red-2); }

.sm-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.sm-more { padding: 14px; text-align: center; }

/* Gaveta lateral de edição */
.drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s;
}
.drawer-bg.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 901;
  width: min(540px, 100vw);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-2);
  background: var(--bg-soft);
  transform: translateX(100%);
  transition: transform .25s var(--ease);
}
.drawer.open { transform: none; }
/* No celular o menu de baixo fica por cima: a gaveta termina antes dele. */
@media (max-width: 768px) {
  body:has(.mobile-bottom-nav) .drawer { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 16px; font-weight: 700; }
.drawer-head small { display: block; font-size: 12px; color: var(--muted); }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-tabs { display: flex; gap: 4px; padding: 8px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-tab { background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; gap: 6px; }
.drawer-tab:hover { color: var(--text); background: var(--surface-2); }
.drawer-tab.on { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.drawer-foot .push { margin-left: auto; display: flex; gap: 8px; }
.drawer .field label { font-size: 12px; }
.drawer .input { min-height: 42px; font-size: 14px; }
.drawer .hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.drawer .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.orig-box {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.orig-box b { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.orig-box code {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-2);
  word-break: break-all;
}
.orig-box code + code { margin-top: 6px; }

.link-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.link-row .input { flex: 1; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; }
.link-row .mini-btn { flex: none; }
.link-res { display: block; margin: -4px 0 10px; font-size: 11.5px; color: var(--muted); }
.link-res.ok { color: var(--green); }
.link-res.bad { color: var(--red-2); }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--red); }

/* Janela simples (plano do usuário etc.) */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-head .icon-btn { margin-left: auto; width: 34px; height: 34px; }
.plan-opts { display: grid; gap: 8px; margin: 14px 0 16px; }
.plan-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.plan-opt:hover { border-color: var(--red); }
.plan-opt small { display: block; font-size: 12px; color: var(--muted); }

/* ------------------------- Início: a compra no topo ----------------------- */

.buy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0c0c0e;
  scroll-margin-top: 80px;
}

/* Pôsteres do catálogo ao fundo: mostra o que se compra sem roubar a cena. */
.buy-bg {
  position: absolute;
  inset: -60px;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  transform: rotate(-8deg) scale(1.1);
  opacity: .3;
}
.buy-bg img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }

.buy::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, .97) 0%, rgba(12, 12, 14, .86) 48%, rgba(12, 12, 14, .55) 100%),
    linear-gradient(0deg, rgba(12, 12, 14, .9) 0%, transparent 55%);
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.buy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 95, .12);
  color: var(--red-2);
  font-size: 12px;
  font-weight: 700;
}

.buy-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.buy-copy h1 em { font-style: normal; color: var(--red-2); }
.buy-copy > p { max-width: 54ch; font-size: 16px; color: var(--text-2); }
.buy-copy > p strong { color: #fff; }

.buy-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}
.buy-trust li { display: flex; align-items: center; gap: 9px; }
.buy-trust svg { flex: none; color: var(--green); }

.buy-proof { margin-top: 24px; font-size: 13px; color: var(--muted); }
.buy-proof strong { color: var(--text); }

.buy-card {
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(25, 25, 28, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.buy-card-head strong { display: block; font-size: 17px; font-weight: 800; }
.buy-card-head span { font-size: 12.5px; color: var(--muted); }

.buy-plans { display: grid; gap: 9px; margin: 16px 0; }

.buy-plan {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.buy-plan:hover { border-color: rgba(255, 255, 255, .26); }
.buy-plan .radio {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-2);
  border-radius: 50%;
}
.buy-plan.on { border-color: var(--red); background: rgba(255, 90, 95, .07); }
.buy-plan.on .radio { border-color: var(--red); }
.buy-plan.on .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.buy-plan b { display: block; font-size: 14px; }
.buy-plan small { display: block; font-size: 12px; color: var(--muted); }
.buy-plan .preco { text-align: right; }
.buy-plan .preco strong { display: block; font-size: 15px; }
.buy-plan .off {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #06301a;
  font-size: 10px;
  font-weight: 800;
}

.buy-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 2px 16px;
  border-top: 1px dashed var(--line-2);
}
.buy-total span { font-size: 13px; color: var(--muted); }
.buy-total strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

.buy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------- Login e cadastro --------------------------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.auth-form { display: flex; flex-direction: column; padding: 26px clamp(20px, 5vw, 64px); }
.auth-card { width: 100%; max-width: 420px; margin: 44px auto; }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .sub { margin: 6px 0 24px; font-size: 14.5px; color: var(--muted); }
.auth-card .input { min-height: 48px; border-radius: 10px; background: var(--surface); }
.auth-card .field label { font-size: 12.5px; }
.auth-card .btn-lg { border-radius: 10px; }

.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 13px; }
.auth-row a { color: var(--muted); }
.auth-row a:hover { color: var(--text); }

.auth-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--red-2); font-weight: 600; }
.auth-help { margin-top: auto; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-help a { text-decoration: underline; }

.auth-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 90, 95, .3);
  border-radius: 12px;
  background: rgba(255, 90, 95, .06);
  font-size: 13px;
}
.auth-plan[hidden] { display: none; }
.auth-plan svg { flex: none; color: var(--red-2); }
.auth-plan strong { font-size: 14px; }
.auth-plan .preco { margin-left: auto; font-size: 17px; font-weight: 800; }

.auth .checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); }
.auth .checkbox input { margin-top: 3px; accent-color: var(--red); }
.auth .input-wrap > svg:first-child { color: var(--muted); }
.auth .input-toggle {
  position: absolute;
  right: 6px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.auth .input-toggle:hover { color: var(--text); }

/* Verificação da Cloudflare (Turnstile). No modo discreto o widget não ocupa
   espaço nenhum até precisar de um clique. */
.auth-humano { margin: 4px 0 16px; }
.auth-humano:empty { margin: 0; }
.auth-humano.erro::after {
  content: 'A verificação de segurança não carregou. Desative bloqueadores de anúncio e recarregue a página.';
  display: block;
  font-size: 12.5px;
  color: var(--amber);
}

.auth-hint { display: none; margin-top: 6px; font-size: 12.5px; color: var(--amber); }
.auth-hint.on { display: block; }
.strength-label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.strength-label:empty { display: none; }

.auth-show { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: #0b0b0d; }
.auth-mosaic {
  position: absolute;
  inset: -70px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  transform: rotate(-10deg);
  opacity: .55;
}
.auth-mosaic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.auth-show::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 11, 13, .98) 14%, rgba(11, 11, 13, .6) 55%, rgba(11, 11, 13, .35) 100%);
}
.auth-show-text {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(28px, 7vh, 70px);
}
.auth-show-text h2 { margin: 10px 0 18px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.auth-perks { display: grid; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.auth-perks div { display: flex; align-items: center; gap: 10px; }
.auth-perks svg { color: var(--green); }

/* O widget da Cloudflare tem 300px de largura mínima. */
@media (max-width: 339px) {
  .auth-humano > div { transform: scale(.9); transform-origin: left top; }
}

/* -------------------------------- Responsivo ------------------------------ */

@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; }
  .buy-bg { grid-template-columns: repeat(5, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-show { display: none; }
  .lp-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: 1fr; }
  .sm-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .sm-url { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  .shell { padding: 14px 14px 30px; }
  .hero { height: 440px; border-radius: 16px; }
  .hero-body { left: 20px; right: 20px; top: auto; bottom: 52px; transform: none; }
  .hero-poster { display: none; }
  .hero-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 28px; }
  .hero-desc { -webkit-line-clamp: 3; font-size: 14px; margin-bottom: 18px; }
  .hero-nav { display: none; }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(10, 10, 12, 1) 12%, rgba(10, 10, 12, .55) 55%, rgba(10, 10, 12, .15) 100%);
  }
  .track.t-event   { grid-auto-columns: 200px; }
  .track.t-channel { grid-auto-columns: 150px; }
  .track.t-poster  { grid-auto-columns: 118px; }
  .g-poster { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .g-channel { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .row.focus .track.t-poster  { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .row.focus .track.t-channel { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .row-arrows { display: none; }
  .page-tools { margin-left: 0; width: 100%; }
  .searchbar, .searchbar .input { width: 100%; flex: 1; }
  .lp-perks { grid-template-columns: 1fr; }
  .lp-band { padding: 22px; }
  .lp-band .acoes { margin-left: 0; width: 100%; }
  .drawer .grid-2 { grid-template-columns: 1fr; }
  .sm-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Ajustes da compra no topo (depois dos blocos responsivos gerais). */
.buy-eyebrow .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, .25);
  animation: pulse 1.8s infinite;
}
.buy-bg { opacity: .42; }
.buy::before {
  background:
    linear-gradient(90deg, rgba(12, 12, 14, .96) 0%, rgba(12, 12, 14, .8) 45%, rgba(12, 12, 14, .42) 100%),
    linear-gradient(0deg, rgba(12, 12, 14, .85) 0%, transparent 55%);
}

/* ------------------------- Login do aplicativo (TV) ----------------------- */

.tvl {
  min-height: 100vh;
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 32px clamp(20px, 5vw, 48px);
}
.tvl[hidden] { display: none; }
.tvl .brand { margin-bottom: 26px; }
.tvl h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.tvl-sem h1 { margin-top: 14px; font-size: 30px; }
.tvl-sub { margin: 8px 0 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tvl-sub strong { color: var(--text); }
.tvl .field label { font-size: 13px; }
.tvl .input { min-height: 54px; border-radius: 12px; background: var(--surface); font-size: 18px; }
.tvl .btn-lg { min-height: 56px; border-radius: 12px; font-size: 17px; }
.tvl form .btn-lg { margin-top: 6px; }
.tvl .input-toggle {
  position: absolute;
  right: 8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.tvl-help { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.tvl-help b { color: var(--text-2); }
.tvl-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

.tvl-qr {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}
.tvl-qr img {
  width: min(220px, 60vw);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.tvl-qr strong { display: block; margin-bottom: 6px; font-size: 18px; }
.tvl-qr p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tvl-url { display: block; margin: 12px 0 4px; font-size: 20px; font-weight: 800; color: var(--red-2); }
.tvl-qr .btn { margin-top: 14px; }

/* Login rápido: o código é o destaque da tela, legível do sofá. */
.tvl-modos { margin: 16px 0 20px; }
.tvl-passos { margin: 0 0 16px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.tvl-passos b { color: #fff; }
.tvl-codigo {
  padding: 18px 12px;
  border: 2px dashed var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}
.tvl-estado { display: flex; align-items: center; gap: 8px; margin: 14px 0 16px; font-size: 14px; color: var(--muted); }
.tvl-estado .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
.tvl-estado.ok { color: var(--green); }
.tvl-qrimg {
  width: min(230px, 60vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.tvl-qrimg svg { width: 100%; height: 100%; }

/* Conectar TV (no site) */
.ctv {
  max-width: 480px;
  margin: 30px auto 0;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}
.ctv-ic {
  width: 60px; height: 60px;
  display: inline-grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 90, 95, .12);
  color: var(--red-2);
}
.ctv h1 { margin: 14px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ctv-sub { margin-bottom: 22px; font-size: 14.5px; color: var(--muted); }
.ctv-label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: left; }
.ctv-input {
  min-height: 62px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}
.ctv-conta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ctv-ok h2 { margin: 10px 0 6px; font-size: 22px; font-weight: 800; }
.ctv-ok p { margin-bottom: 18px; color: var(--text-2); }
.ctv-ok .notice { text-align: left; }
.ctv-check { color: var(--green); }
.ctv-check svg { width: 54px; height: 54px; }
.ctv-passos { margin: 24px 0 0; padding: 18px 18px 18px 36px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--muted); text-align: left; }
.ctv-passos b { color: var(--text); }

@media (max-width: 760px) {
  .tvl { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .tvl-qr img { width: 150px; }
  .tvl-acoes .btn { width: 100%; }
}

/* ---------------------- Cadastro rápido (janela do início) ---------------- */

.cad-bg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 6, 8, .74);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s linear .2s;
}
.cad-bg.open { opacity: 1; visibility: visible; transition: opacity .2s; }

.cad {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-soft);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  transform: translateY(14px) scale(.98);
  transition: transform .25s var(--ease);
}
.cad-bg.open .cad { transform: none; }

.cad-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; }

.cad-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #0b0b0d;
}
.cad-side-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  transform: rotate(-8deg);
  opacity: .3;
}
.cad-side-bg img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.cad-side::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 13, .7) 0%, rgba(11, 11, 13, .92) 45%, rgba(11, 11, 13, .98) 100%);
}
.cad-side .buy-eyebrow { align-self: flex-start; }
.cad-side h2 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.cad-lead { font-size: 13.5px; color: var(--text-2); }

.cad-price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.cad-price strong { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.cad-price span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.cad-dias { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.cad-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 22px; }
.cad-plan {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cad-plan:hover { border-color: rgba(255, 255, 255, .26); }
.cad-plan.on { border-color: var(--red); background: rgba(255, 90, 95, .09); }
.cad-plan b { display: block; font-size: 13px; }
.cad-plan span { font-size: 12px; color: var(--muted); }
.cad-plan i {
  position: absolute;
  top: -8px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--green);
  color: #06301a;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
}

.cad-perks { display: grid; gap: 9px; margin: auto 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.cad-perks li { display: flex; align-items: center; gap: 9px; }
.cad-perks svg { flex: none; color: var(--green); }

.cad-main { padding: 28px 28px 22px; }
.cad-main h3 { padding-right: 40px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.cad-main .sub { margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); }
.cad-main .field { margin-bottom: 12px; }
.cad-main .field label { font-size: 12px; }
.cad-main .input { min-height: 46px; border-radius: 10px; background: var(--surface); }
.cad-main .field-error { min-height: 0; }
.cad-main .input-toggle {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.cad-main .input-toggle:hover { color: var(--text); }
.cad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cad-captcha { display: flex; align-items: center; gap: 8px; }
.cad-q {
  flex: none;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
  letter-spacing: .03em;
  user-select: none;
}
.cad-q button { display: grid; place-items: center; padding: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cad-q button:hover { color: var(--text); }
.cad-captcha .input { max-width: 130px; text-align: center; font-weight: 700; }

.cad-turnstile { display: flex; justify-content: center; margin: 4px 0 10px; }
.cad-turnstile:empty, .cad-turnstile .cf-turnstile:empty { margin: 0; }

.cad-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cad-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.cad-foot a { color: var(--red-2); font-weight: 600; }

@media (max-width: 760px) {
  .cad-bg { place-items: end center; padding: 0; }
  .cad { grid-template-columns: 1fr; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .cad-side { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cad-side h2, .cad-lead, .cad-perks, .cad-side .buy-eyebrow { display: none; }
  .cad-price { margin-top: 12px; }
  .cad-price strong { font-size: 32px; }
  .cad-plans { margin: 14px 0 0; }
  .cad-main { padding: 20px; }
  .cad-grid2 { grid-template-columns: 1fr; gap: 0; }
}

/* No celular a compra vem logo depois do título: vantagens ficam para depois. */
@media (max-width: 900px) {
  .buy-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .buy-copy { display: contents; }
  .buy-eyebrow { order: 1; align-self: flex-start; }
  .buy-copy h1 { order: 2; margin: 0; }
  .buy-copy > p:not(.buy-proof) { order: 3; }
  .buy-card { order: 4; }
  .buy-trust { order: 5; margin: 0; }
  .buy-proof { order: 6; margin: 0; }
}

/* ------------------------ Disparador de recuperação ----------------------- */

.disp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.disp-zap,
.disp-liga {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02);
}

.disp-zap strong,
.disp-liga strong { display: block; font-size: 13.5px; }
.disp-zap span,
.disp-liga span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disp-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.disp-zap.ok .disp-ponto { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 209, 127, .14); }
.disp-zap.aviso .disp-ponto { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, .14); }
.disp-zap.off .disp-ponto { background: var(--red-2); box-shadow: 0 0 0 4px rgba(255, 90, 95, .12); }

.disp-zap-acoes { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.disp-liga { cursor: pointer; }
.disp-liga input { width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.disp-liga em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.disp-liga.on { border-color: rgba(52, 209, 127, .35); background: rgba(52, 209, 127, .06); }

/* Quem ainda não recebeu nada fica marcado de vermelho na lista. */
.disp-tabela tr.disp-nao td { background: rgba(255, 90, 95, .045); }
.disp-tabela tr.disp-nao td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.disp-tabela code { font-size: 12.5px; color: #cfd2d8; }
.disp-tabela .sm-actions { justify-content: flex-end; }

.disp-pareia {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.disp-codigo span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.disp-codigo strong {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .18em;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
}

.disp-qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: var(--r-md);
  background: #fff;
  padding: 8px;
}

.disp-qr svg { display: block; width: 100%; height: 100%; }

.disp-pareia .ctv-passos { text-align: left; margin-top: 12px; }

.disp-previa {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(52, 209, 127, .05);
  color: #d8dbe2;
  margin-bottom: 14px;
}

.disp-log {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: #0f0f11;
  font-size: 12.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.disp-log p { margin: 0 0 4px; color: var(--muted); }
.disp-log p.ok { color: var(--green); }
.disp-log p.erro { color: var(--red-2); }
.disp-log p.aviso { color: var(--amber); }

@media (max-width: 860px) {
  .disp-grid { grid-template-columns: 1fr; }
  .disp-zap-acoes { width: 100%; justify-content: flex-start; }
}

/* --------------------------- Painel do revendedor ------------------------- */

.rev-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 16px;
  border-color: rgba(255, 90, 95, .3);
  background: linear-gradient(180deg, rgba(255, 90, 95, .07), rgba(255, 255, 255, .02));
}

.rev-link-txt { min-width: 0; flex: 1; }
.rev-link-txt span { display: block; font-size: 12px; color: var(--muted); }
.rev-link-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0;
  word-break: break-all;
}

.rev-link-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

.rev-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }

.rev-saldo { text-align: center; padding: 18px 0 6px; }
.rev-saldo span { display: block; font-size: 12.5px; color: var(--muted); }
.rev-saldo strong { display: block; font-size: 34px; font-weight: 800; margin: 6px 0; }

.rev-saque {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rev-saque:last-child { border-bottom: 0; }
.rev-saque strong { display: block; font-size: 14px; }
.rev-saque span { font-size: 12px; color: var(--muted); }
.rev-saque .tag { margin-left: auto; }

.rev-tabela td { vertical-align: middle; }

@media (max-width: 900px) {
  .rev-grid { grid-template-columns: 1fr; }
  .rev-link-acoes { width: 100%; }
  .rev-link-acoes .btn { flex: 1; }
}

/* ---------------------------------- Aviso ---------------------------------- */
/**
 * Faixa fixa embaixo da tela. Some com um clique, reaparece só depois de 24h ou
 * quando o admin muda o conteúdo. As margens de segurança (env(safe-area)) e o
 * tamanho generoso do botão de fechar são para funcionar bem em TV e no celular.
 */

.aviso-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 995;
  padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom))
           max(14px, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(130%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2, .9, .25, 1), opacity .3s ease;
}

.aviso-banner.on { transform: translateY(0); opacity: 1; }

.aviso-inner {
  pointer-events: auto;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.aviso-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  color: var(--red-2);
}
.aviso-banner[data-tipo="aviso"] .aviso-ic { background: rgba(255, 176, 32, .14); color: var(--amber); }
.aviso-banner[data-tipo="promo"] .aviso-ic { background: rgba(52, 209, 127, .14); color: var(--green); }
.aviso-banner[data-tipo="info"]  .aviso-ic { background: rgba(255, 90, 95, .14); color: var(--red-2); }

.aviso-txt { min-width: 0; flex: 1; }
.aviso-txt strong { display: block; font-size: 14.5px; font-weight: 700; }
.aviso-txt span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.aviso-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.aviso-banner[data-tipo="promo"] .aviso-btn { background: var(--green); color: #06210f; }
.aviso-banner[data-tipo="aviso"] .aviso-btn { background: var(--amber); color: #241900; }

.aviso-fechar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
}
.aviso-fechar:hover { background: rgba(255, 255, 255, .07); color: #fff; }

@media (max-width: 640px) {
  .aviso-banner { padding: 10px; }
  .aviso-inner { align-items: flex-start; padding: 14px; border-radius: 16px; }
  .aviso-txt strong { font-size: 14px; }
  .aviso-btn { padding: 8px 12px; font-size: 12.5px; }
}

/* Acima da barra de navegação do celular, em vez de por baixo dela. */
body:has(.mobile-bottom-nav) .aviso-banner {
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

/* TV: faixa mais alta do chão (evita corte por overscan) e foco bem visível. */
html.tv .aviso-banner { padding-bottom: 46px; }
html.tv .aviso-inner { padding: 18px 20px; }
html.tv .aviso-fechar:focus-visible,
html.tv .aviso-btn:focus-visible {
  outline: 3px solid var(--red-2);
  outline-offset: 2px;
}

/* Pré-visualização no admin: mesma faixa, mas encaixada no painel, sem fixar. */
.aviso-banner.preview {
  position: static;
  transform: none;
  opacity: 1;
  padding: 0;
  justify-content: flex-start;
}
.aviso-banner.preview .aviso-inner { width: 100%; box-shadow: none; }
