/* PureLustHub — estilos globais */

:root {
  --bg: #0b0a0f;
  --bg-elev: #15131c;
  --bg-elev-2: #1e1b28;
  --line: #2a2636;
  --text: #f4f1f8;
  --text-muted: #a8a1b5;
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --accent-soft: rgba(225, 29, 72, 0.14);
  --gold: #f5b84a;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --max: 1120px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Bloqueio por idade ---------- */

/* O conteúdo fica oculto até a confirmação de idade (classe definida por age-gate.js). */
html:not(.age-ok) .site-content { visibility: hidden; }
html:not(.age-ok) body { overflow: hidden; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(5, 4, 8, 0.96);
}
html.age-ok .age-gate { display: none; }

.age-gate__panel {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  text-align: center;
}
.age-gate__badge {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
}
.age-gate__title { font-size: 1.5rem; }
.age-gate__text { color: var(--text-muted); font-size: 0.95rem; }
.age-gate__actions { display: grid; gap: 10px; margin-top: 24px; }
.age-gate__legal { margin: 16px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.age-gate__legal a { color: var(--text-muted); }

.noscript-notice {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--bg);
  text-align: center;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-muted); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn__icon { width: 20px; height: 20px; flex: none; }

/* ---------- Cabeçalho e rodapé ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 15, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand__logo { width: 32px; height: 32px; }
.brand__accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a:not(.btn) {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .btn { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

.site-footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer__notice { flex-basis: 100%; margin: 0; font-size: 0.8rem; }

/* ---------- Landing ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: 48px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 15, 0.1) 0%, rgba(11, 10, 15, 0.55) 55%, var(--bg) 100%);
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__title { font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 800; }
.hero__lead { max-width: 52ch; color: var(--text-muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding-top: 64px; }
.section__title { font-size: clamp(1.5rem, 4vw, 2rem); }
.section__lead { color: var(--text-muted); max-width: 60ch; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.feature__icon { width: 28px; height: 28px; margin-bottom: 12px; color: var(--accent); }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Grade de episódios ---------- */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.episode-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.episode-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.episode-card[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.episode-card__thumb { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; background: var(--bg-elev-2); }
.episode-card__body { display: block; padding: 10px 12px 12px; }
.episode-card__title { display: block; font-weight: 700; font-size: 0.95rem; }
.episode-card__meta { display: block; color: var(--text-muted); font-size: 0.8rem; }
.episode-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 10, 15, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.episode-card__tag--free { color: #4ade80; }
.episode-card__tag--locked { color: var(--gold); }

/* ---------- Página de episódios ---------- */

.watch {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}
@media (min-width: 900px) {
  .watch { grid-template-columns: minmax(320px, 420px) 1fr; align-items: start; gap: 40px; padding-top: 40px; }
  .watch__player { position: sticky; top: calc(var(--header-h) + 24px); }
}

.player {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - var(--header-h) - 48px);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}
.player__video,
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}
.player__title { margin: 0; font-size: 1.1rem; }
.player__status { margin: 4px 0 0; color: var(--text-muted); font-size: 0.85rem; }

.watch__header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.watch__header p { color: var(--text-muted); }

/* ---------- Paywall e planos ---------- */

.paywall {
  width: calc(100% - 2 * var(--gutter));
  max-width: 480px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
}
.paywall::backdrop { background: rgba(5, 4, 8, 0.8); }
.paywall__inner { padding: 48px 24px 24px; text-align: center; }
.paywall__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.paywall__close:hover { color: var(--text); background: var(--bg-elev-2); }
.paywall p { color: var(--text-muted); }
.paywall__later { margin-top: 12px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan__badge { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.plan__name { font-size: 1.2rem; }
.plan__price { margin: 4px 0 16px; font-size: 2rem; font-weight: 800; }
.plan__price small { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.plan__list { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.95rem; }
.plan__list li { padding: 6px 0 6px 26px; position: relative; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.checkout-note {
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.checkout-note[hidden] { display: none; }

/* ---------- Páginas de texto (legais) ---------- */

.prose { max-width: 720px; padding-top: 40px; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.prose h2 { margin-top: 1.6em; font-size: 1.25rem; }
.prose p,
.prose li { color: var(--text-muted); }
.draft-banner {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: rgba(245, 184, 74, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
}

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

@media (max-width: 560px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { padding: 32px 0; }
  .hero__actions .btn { width: 100%; }
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
