:root {
  --bg: #0b0710;
  --bg-2: #120c1a;
  --surface: #181022;
  --surface-2: #21172e;
  --border: #2d2140;
  --text: #f4f0fa;
  --muted: #a99bbd;
  --accent: #ff2d6f;
  --accent-2: #ff9a3d;
  --gold: #f5c453;
  --ok: #38d996;
  --warn: #ffb547;
  --bad: #ff5b6e;
  --radius: 14px;
  --grad: linear-gradient(135deg, #ff2d6f, #ff9a3d);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .faq a, .small a, .muted a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(255, 45, 111, .35); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); border-color: rgba(255, 255, 255, .12); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-outline:hover { background: rgba(255, 45, 111, .12); }
.btn-sm { padding: .45em 1em; font-size: .875rem; }
.btn-lg { padding: .85em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 7, 16, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: .45em .9em; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.search { margin-left: auto; }
.search input {
  width: 230px; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; transition: width .25s, border-color .2s;
}
.search input:focus { width: 300px; border-color: var(--accent); outline: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.user-menu .menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-head { padding: 10px 12px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.user-menu .menu a { display: block; padding: 9px 12px; border-radius: 8px; }
.user-menu .menu a:hover { background: var(--surface-2); }
.user-menu .menu a.highlight { color: var(--accent-2); font-weight: 600; }

/* ---------- Chips / Badges / Alerts ---------- */
.chip { display: inline-block; padding: .2em .75em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .12); color: var(--text); }
.chip-plan { background: rgba(255, 45, 111, .18); color: #ff7aa2; }
.chip-gold { background: rgba(245, 196, 83, .18); color: var(--gold); }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge { padding: .15em .55em; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-vip { background: linear-gradient(135deg, #f5c453, #e08a1e); color: #2b1a00; }
.badge-premium { background: #7b3cff; color: #fff; }
.badge-new { background: var(--accent); color: #fff; }
.flashes { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; }
.alert-success { background: rgba(56, 217, 150, .1); border-color: rgba(56, 217, 150, .4); color: #8cf0c3; }
.alert-error { background: rgba(255, 91, 110, .1); border-color: rgba(255, 91, 110, .4); color: #ff9aa6; }
.alert-info { background: rgba(120, 140, 255, .1); border-color: rgba(120, 140, 255, .35); color: #b5c0ff; }
.alert a { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(420px, 68vh, 640px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg, .series-bg { position: absolute; inset: 0; }
.hero-bg img, .series-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(11, 7, 16, .55) 45%, rgba(11, 7, 16, .25)), linear-gradient(90deg, rgba(11, 7, 16, .8), transparent 70%); }
.hero-content { position: relative; padding-bottom: 70px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 620px; }
.hero-poster { order: 2; flex: 0 0 250px; transform: rotate(3deg); margin-bottom: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.hero-poster:hover { transform: rotate(0); }
@media (max-width: 900px) { .hero-poster { display: none; } }
.hero-text p, .synopsis { color: #d8cfe6; font-size: 1.05rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots button { position: relative; overflow: hidden; width: 38px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.hero-dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: dotfill 7s linear forwards; }
.hero:hover .hero-dots button.is-active::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.promo { margin-top: -10px; position: relative; z-index: 3; }
.promo-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px;
  border-radius: 20px; background: linear-gradient(120deg, #2a0f3d, #4a1238 55%, #5a1c20); border: 1px solid rgba(255, 255, 255, .08);
}
.promo-card h2 { margin-bottom: .3em; }
.promo-card p { margin: 0; color: #d0c2e2; }

/* ---------- Rows & Posters ---------- */
.row { margin: 34px auto; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.row-head h2 { margin: 0; }
.row-head a { color: var(--muted); font-size: .9rem; }
.row-head a:hover { color: var(--text); }
.row-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.row-scroll .poster-card { flex: 0 0 168px; scroll-snap-align: start; }
.grid-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; }
.poster-card { display: block; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster { container-type: inline-size; }
.poster-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 7cqw; overflow: hidden; }
.pf-pattern { position: absolute; inset: 0; background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .38), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
    linear-gradient(0deg, rgba(8, 3, 14, .88) 4%, rgba(8, 3, 14, .15) 62%, transparent); }
.pf-initial { position: absolute; right: -4cqw; top: 2cqw; font: 900 62cqw/1 Georgia, "Times New Roman", serif; color: rgba(255, 255, 255, .13); letter-spacing: -.05em; pointer-events: none; }
.pf-text { position: relative; display: flex; flex-direction: column; gap: 1.5cqw; max-width: 100%; }
.pf-cat { font-style: normal; font-size: max(.58rem, 5.2cqw); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.pf-title { font: 800 clamp(.95rem, 10.5cqw, 2.1rem)/1.05 Georgia, "Times New Roman", serif; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.poster-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.poster-progress i { display: block; height: 100%; background: var(--accent); }
.poster-meta { padding: 10px 2px 0; display: flex; flex-direction: column; }
.poster-meta strong { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-meta small { color: var(--muted); }

/* ---------- Páginas / Filtros ---------- */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head.center { text-align: center; }
.filters { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px auto 24px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: .4em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.pill:hover { color: var(--text); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.sorts { display: flex; gap: 14px; font-size: .9rem; color: var(--muted); }
.sorts a.active { color: var(--text); font-weight: 700; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.pagination a.active { background: var(--grad); border-color: transparent; font-weight: 700; }
.empty { text-align: center; padding: 70px 20px; }
.empty .btn { margin-top: 10px; }

/* ---------- Série ---------- */
.series-hero { position: relative; overflow: hidden; }
.series-hero-inner { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: end; padding-top: 60px; padding-bottom: 40px; }
.series-bg { filter: blur(2px) saturate(1.1); transform: scale(1.05); }
.series-poster .poster { box-shadow: var(--shadow); }
.series-info h1 { margin-bottom: .3em; }
.series-info .synopsis { max-width: 720px; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ep-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: background .2s, border-color .2s; }
.ep-item:hover { background: var(--surface-2); border-color: #44305f; }
.ep-num { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.ep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ep-body strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-body small { color: var(--muted); }
.ep-bar { display: block; height: 3px; margin-top: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.ep-bar i { display: block; height: 100%; background: var(--accent); }
.ep-state { color: var(--muted); font-size: .85rem; }
.ep-item.is-locked { opacity: .7; }
.ep-item.is-done .ep-num { background: rgba(56, 217, 150, .18); color: var(--ok); }
.ep-item.is-current { border-color: var(--accent); background: rgba(255, 45, 111, .08); }
.ep-item.is-current .ep-num { background: var(--grad); }
[data-fav] .fav-on { display: none; }
[data-fav][aria-pressed="true"] .fav-on { display: inline; }
[data-fav][aria-pressed="true"] .fav-off { display: none; }

/* ---------- Player ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 22px; padding-bottom: 50px; align-items: start; }
.watch-crumbs { margin-bottom: 12px; color: var(--muted); }
.watch-crumbs a:hover { color: var(--text); }
.player-wrap { display: flex; justify-content: center; }
.player {
  position: relative; background: #000; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
  height: min(78vh, 760px); aspect-ratio: 9 / 16; max-width: 100%;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 4, 14, .88); padding: 20px; text-align: center; }
.ov-box h3 { margin-bottom: .3em; }
.ov-box .hero-cta { justify-content: center; }
.lock { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, rgba(255, 45, 111, .28), rgba(255, 154, 61, .18)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(255, 45, 111, .22); }
.lock .ico { width: 30px; height: 30px; }
.ico { flex: none; vertical-align: middle; }
.ico-inline { display: inline-flex; vertical-align: -3px; margin-right: 4px; }
.ep-state .ico { opacity: .8; }
.paywall { display: grid; place-items: center; text-align: center; }
.paywall::before { content: ""; position: absolute; inset: 0; background: rgba(8, 4, 14, .78); backdrop-filter: blur(6px); }
.paywall-inner { position: relative; padding: 24px; max-width: 360px; }
.paywall-inner .hero-cta { justify-content: center; flex-direction: column; }
.watch-info { margin-top: 20px; text-align: center; }
.watch-info h1 { font-size: 1.5rem; margin-bottom: .2em; }
.watch.watch-single { grid-template-columns: minmax(0, 1fr); }
.watch-synopsis { max-width: 620px; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
.watch-nav { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.watch-side { position: sticky; top: 86px; }
.watch-side h3 { margin-bottom: 12px; }
.ep-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.ep-item.compact { padding: 9px 12px; }
.ep-item.compact .ep-num { flex-basis: 32px; height: 32px; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1040px; margin: 30px auto 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.plan h2 { margin: 0; font-size: 1.5rem; }
.plan-featured { border: 1.5px solid var(--accent); background: linear-gradient(180deg, #25102f, var(--surface)); box-shadow: 0 20px 60px rgba(255, 45, 111, .18); transform: translateY(-8px); }
.plan-vip { border-color: rgba(245, 196, 83, .55); background: linear-gradient(180deg, #2a2010, var(--surface)); }
.plan-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); padding: .2em 1em; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 6px; }
.price .currency { font-size: 1.1rem; color: var(--muted); }
.price .amount { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .per { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.features li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.features li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 19px; height: 19px; border-radius: 50%; background: rgba(56, 217, 150, .18); color: var(--ok); font-size: .72rem; display: grid; place-items: center; font-weight: 800; }
.faq { max-width: 780px; margin: 50px auto 30px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Cards / Formulários ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, textarea.input {
  width: 100%; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font: inherit; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input:disabled { opacity: .55; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.err { display: block; color: var(--bad); font-size: .83rem; margin-top: 5px; font-style: normal; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; color: var(--muted); font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.auth { display: grid; place-items: center; padding-top: 50px; padding-bottom: 60px; }
.auth-card { width: 100%; max-width: 440px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.checkout-summary .features { margin-bottom: 10px; }

/* ---------- Pagamento ---------- */
.pay { padding-top: 40px; padding-bottom: 60px; max-width: 880px; }
.pay-head { text-align: center; margin-bottom: 20px; }
.pay-body { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.qr { background: #fff; padding: 10px; border-radius: 16px; width: 260px; height: 260px; }
.qr svg { width: 100%; height: 100%; display: block; }
.pay-code label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .88rem; }
.pay-code textarea { width: 100%; resize: none; padding: .7em; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: .78rem/1.4 ui-monospace, Consolas, monospace; margin-bottom: 12px; word-break: break-all; }
.pay-status { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: var(--warn); font-weight: 600; font-size: .92rem; }
.pay-status.ok { color: var(--ok); }
.spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin: 26px 0 0; padding-left: 1.3em; color: var(--muted); }
.steps li { margin-bottom: 4px; }

/* ---------- Conta ---------- */
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 60px; align-items: start; }
.account .wide { grid-column: 1 / -1; }
.card h3 { margin-top: 1.5em; font-size: 1rem; }
.account .card .btn + .btn { margin-left: 6px; }
.sub-status { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.plain { list-style: none; padding: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tag { padding: .15em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-ok { background: rgba(56, 217, 150, .15); color: var(--ok); }
.tag-warn { background: rgba(255, 181, 71, .15); color: var(--warn); }
.tag-bad { background: rgba(255, 91, 110, .15); color: var(--bad); }
.tag-muted { background: rgba(255, 255, 255, .08); color: var(--muted); }
.prose { max-width: 780px; padding-top: 40px; padding-bottom: 60px; }
.prose h2 { margin-top: 1.6em; font-size: 1.15rem; }
.prose p { color: #d3c8e3; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-grid a:not(.brand) { display: block; padding: 3px 0; color: #d3c8e3; }
.footer-grid a:not(.brand):hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; margin-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side { position: static; }
  .ep-list { max-height: none; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .series-hero-inner { grid-template-columns: 180px 1fr; gap: 22px; }
  .plan-featured { transform: none; }
}
@media (max-width: 760px) {
  .header-inner { gap: 10px; height: 60px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 20px 16px; }
  .main-nav.open { display: flex; }
  .search { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .promo-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .series-hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
  .series-poster { max-width: 170px; }
  .pay-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pay-code { width: 100%; }
  .account, .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .row-scroll .poster-card { flex-basis: 140px; }
  .grid-posters { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
  .hero { min-height: 480px; }
  .player { height: auto; width: 100%; max-height: 82vh; }
  body.page-watch .watch { padding-left: 0; padding-right: 0; }
  body.page-watch .watch > * { padding: 0 16px; }
  body.page-watch .player-wrap { padding: 0; }
  body.page-watch .player { border-radius: 0; }
}
/* =====================================================================
   Refinamentos visuais (v2)
   ===================================================================== */
::selection { background: rgba(255, 45, 111, .45); color: #fff; }
html { scrollbar-color: #3a2a52 var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #34264a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4a3568; }

body {
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(255, 45, 111, .14), transparent 60%),
    radial-gradient(900px 520px at 100% 4%, rgba(123, 60, 255, .14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* Header: ganha sombra/solidez ao rolar */
.site-header { transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled { background: rgba(11, 7, 16, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .1); }
.brand span { background: linear-gradient(90deg, #fff, #ffd6e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav a { position: relative; }
.main-nav a.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Botões: brilho ao passar o mouse */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255, 45, 111, .5); }
.btn-ghost { backdrop-filter: blur(8px); }

/* Chips em vidro */
.hero-tags .chip { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hero-tags .chip-gold { background: rgba(245, 196, 83, .16); border-color: rgba(245, 196, 83, .4); }

/* Hero cinematográfico */
.hero { isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: 3; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; mix-blend-mode: screen; }
.hero-dots { z-index: 4; }
.hero::before { width: 460px; height: 460px; right: -80px; top: -120px; background: rgba(255, 45, 111, .28); animation: float 14s ease-in-out infinite alternate; }
.hero::after { width: 380px; height: 380px; left: 20%; bottom: -160px; background: rgba(123, 60, 255, .26); animation: float 18s ease-in-out infinite alternate-reverse; }
.hero-slide { z-index: 2; }
.hero-shade { z-index: 0; }
.hero-bg { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(-50px, 40px); } }
.hero-text h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); letter-spacing: -.03em; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.hero-slide.is-active .hero-text > * { animation: rise .8s both; }
.hero-slide.is-active .hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-poster { animation: posterIn 1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes posterIn { from { opacity: 0; transform: translateY(30px) rotate(8deg) scale(.92); } to { opacity: 1; transform: rotate(3deg); } }
.hero-poster { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 80px rgba(0, 0, 0, .65), 0 0 90px rgba(255, 45, 111, .22); }
.hero-poster:hover { box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 110px rgba(255, 45, 111, .4); }

/* Títulos de seção com marcador */
.row-head h2 { display: flex; align-items: center; gap: 12px; }
.row-head h2::before { content: ""; width: 5px; height: 1.15em; border-radius: 4px; background: var(--grad); }

/* Cards: elevação, brilho e botão play */
.poster-card .poster, .top-card .poster { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.poster-card:hover .poster, .top-card:hover .poster { transform: translateY(-6px) scale(1.04); box-shadow: 0 22px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .16), 0 0 40px rgba(255, 45, 111, .25); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 3, 14, .75), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.poster-card:hover .poster::after, .top-card:hover .poster::after { opacity: 1; }
.poster-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--grad); box-shadow: 0 8px 28px rgba(255, 45, 111, .55); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.poster-play svg { margin-left: 2px; }
.poster-card:hover .poster-play, .top-card:hover .poster-play { opacity: 1; transform: scale(1); }
.poster-card:hover .poster-meta strong { color: #ff9ab8; }
.badges { z-index: 3; }
.poster-progress { z-index: 3; }
.series-poster .poster-play, .hero-poster .poster-play { display: none; }

/* Fileiras: sem barra de rolagem visível (há setas no desktop e swipe no celular) */
.row-scroll { scrollbar-width: none; -ms-overflow-style: none; padding-top: 10px; margin-top: -6px; }
.row-scroll::-webkit-scrollbar { display: none; }

/* Top 10 numerado */
.top-row { gap: 14px; }
.top-card { position: relative; flex: 0 0 auto; display: flex; align-items: flex-end; scroll-snap-align: start; padding-left: 4px; }
.top-num { font: 900 clamp(7rem, 12vw, 9.5rem)/.78 Georgia, "Times New Roman", serif; letter-spacing: -.08em; color: #0b0710; -webkit-text-stroke: 3px rgba(255, 255, 255, .42); margin-right: -.06em; z-index: 1; min-width: .55em; text-align: right; padding-bottom: 4px; transition: -webkit-text-stroke-color .3s; }
.top-card:hover .top-num { -webkit-text-stroke-color: var(--accent); }
.top-card .poster { width: 150px; flex: none; z-index: 2; }

/* Setas das fileiras (desktop) */
.row { position: relative; }
.row-arrow { position: absolute; z-index: 5; top: calc(50% - 6px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(11, 7, 16, .85); color: #fff;
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .2s, transform .2s; backdrop-filter: blur(8px); }
.row-arrow.prev { left: 6px; }
.row-arrow.next { right: 6px; }
.row:hover .row-arrow:not([hidden]) { opacity: 1; }
.row-arrow:hover { background: var(--accent); transform: scale(1.08); }
@media (hover: none) { .row-arrow { display: none; } }

/* Promo */
.promo-card { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(255, 45, 111, .12); }
.promo-card::before { content: ""; position: absolute; width: 300px; height: 300px; right: -60px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 154, 61, .35), transparent 65%); }
.promo-card > * { position: relative; }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Episódios */
.ep-item { overflow: hidden; }
.ep-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transition: transform .25s; }
.ep-item:hover::before, .ep-item.is-current::before { transform: scaleY(1); }
.ep-item:hover .ep-num { background: var(--grad); }
.ep-item:hover .ep-state { color: var(--text); }

/* Página da série */
.series-hero-inner .series-poster .poster { border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 45, 111, .2); }
.series-info h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; }

/* Planos */
.plan { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.plan:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); }
.plan-featured:hover { transform: translateY(-14px); }
.plan-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 10px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.plan:not(.plan-featured) .plan-icon { color: #ffd166; }
.plan-featured .plan-icon { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(255, 45, 111, .4); }
.plan-vip { border: 1.5px solid transparent; background: linear-gradient(180deg, #2a2010, var(--surface)) padding-box, linear-gradient(135deg, #f5c453, #b8741a 50%, #f5c453) border-box; box-shadow: 0 20px 60px rgba(245, 196, 83, .1); }
.plan-vip .plan-icon { background: linear-gradient(135deg, #f5c453, #e08a1e); color: #2b1a00; border-color: transparent; box-shadow: 0 8px 24px rgba(245, 196, 83, .35); }
.plan-vip .price .amount { background: linear-gradient(180deg, #fff, #f5d78a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-featured .price .amount { background: linear-gradient(180deg, #fff, #ffb3c8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cards de formulário em vidro + brilho nas telas de autenticação */
.card { background: linear-gradient(180deg, rgba(36, 24, 52, .85), rgba(24, 16, 34, .92)); backdrop-filter: blur(10px); box-shadow: 0 16px 50px rgba(0, 0, 0, .3); }
.auth-card { border-color: rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 100px rgba(255, 45, 111, .12); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(255, 45, 111, .15); }

/* Pagamento */
.qr { box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .5); }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--bg-2), #07040b); }

@media (max-width: 760px) {
  .top-num { font-size: 6.5rem; }
  .top-card .poster { width: 118px; }
  .hero::before, .hero::after { display: none; }
  .plan:hover, .plan-featured:hover { transform: none; }
}
/* =====================================================================
   Mobile de verdade (v3): toque, barra de abas, áreas seguras, PWA
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button, summary, .btn, .pill, [role="button"] { touch-action: manipulation; }
.container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.site-header { padding-top: env(safe-area-inset-top); }

/* Pontos do carrossel: área de toque de 44x32, barra visual continua fina */
.hero-dots { gap: 0; bottom: 10px; }
.hero-dots button { overflow: visible; width: 44px; height: 32px; border-radius: 0; background: transparent; }
.hero-dots button::before { content: ""; position: absolute; left: 3px; right: 3px; top: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.hero-dots button.is-active::after { inset: auto; left: 3px; right: 3px; top: 14px; height: 4px; border-radius: 4px; }

/* Cupom no checkout */
.price-old { color: var(--muted); font-size: .9rem; margin: 6px 0 -4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coupon-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.coupon-form .field { margin-bottom: 0; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.field em.ok { display: block; margin-top: 6px; font-style: normal; font-size: .85rem; color: var(--ok); }

.m-search-wrap { display: none; }
.tabbar { display: none; }
.qr-note { text-align: center; margin: 10px 0 0; }

/* Mouse: efeitos de hover só onde existe hover (no toque eles "grudam" depois do toque) */
@media (hover: none) {
  .poster-card:hover .poster, .top-card:hover .poster { transform: none; box-shadow: none; }
  .poster-card:hover .poster::after, .top-card:hover .poster::after, .poster-card:hover .poster-play, .top-card:hover .poster-play { opacity: 0; }
  .poster-card:hover .poster-meta strong { color: inherit; }
  .btn:hover, .plan:hover, .plan-featured:hover, .hero-poster:hover { transform: none; }
  .btn-primary:hover { box-shadow: none; }
  .ep-item:hover::before { transform: scaleY(0); }
  .ep-item:hover .ep-num { background: none; }
  .hero:hover .hero-dots button.is-active::after { animation-play-state: running; }
  /* feedback ao tocar */
  .btn:active { transform: scale(.97); }
  .poster-card:active .poster, .top-card:active .poster { transform: scale(.96); }
  .ep-item:active { background: var(--surface-2); }
}

/* Alvos de toque confortáveis (≥ 44px) em telas pequenas ou de toque */
@media (max-width: 760px), (pointer: coarse) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 40px; }
  .btn-block { display: flex; }
  .pill { min-height: 44px; display: inline-flex; align-items: center; padding: .4em 1.15em; }
  .sorts a, .row-head a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
  .brand { min-height: 44px; }
  .user-menu summary { min-height: 44px; }
  .user-menu .menu a { padding: 13px 12px; }
  .pagination a { width: 44px; height: 44px; }
  .footer-grid a:not(.brand) { padding: 9px 0; }
  .faq summary { padding: 6px 0; min-height: 32px; }
  .check input { width: 20px; height: 20px; }
  .field input, .field select, .field textarea, .search input { font-size: 16px; } /* 16px evita o zoom automático do iOS */
  .field input, .field select { min-height: 48px; }
  /* links de texto soltos ganham área de toque sem mudar o visual */
  .watch-crumbs a, .checkout-summary a.small, .login-extra a, .auth-card .small a { display: inline-block; padding: 12px 0; }
  .faq summary { padding: 10px 0; }
}

@media (max-width: 760px) {
  /* Navegação: a barra de abas substitui o menu hambúrguer */
  .nav-toggle, .main-nav { display: none !important; }
  .header-inner { gap: 8px; }
  .header-actions .btn-sm { min-height: 40px; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
    background: rgba(14, 9, 20, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--muted); font-size: .68rem; font-weight: 600; transition: color .2s; }
  .tabbar a.active { color: #fff; }
  .tabbar a.active svg { color: var(--accent); }
  .tabbar a.active::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
  .tabbar a:active { background: rgba(255, 255, 255, .08); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.page-watch, body.no-tabbar { padding-bottom: 0; }
  body.page-watch .tabbar, body.no-tabbar .tabbar { display: none; }
  .site-footer { margin-top: 36px; }

  /* Busca: a lupa da barra de abas leva a este campo grande, com teclado já aberto */
  .m-search-wrap { display: block; }
  .m-search { position: relative; display: block; margin: 6px 0 4px; }
  .m-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .m-search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
  .m-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 45, 111, .15); }

  /* Filtros em uma única linha rolável, em vez de várias linhas de botões */
  .filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; margin-bottom: 16px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; scroll-padding: 0 20px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; white-space: nowrap; }
  .sorts { gap: 8px; }

  /* Fileiras de pôsteres sangram até a borda da tela (sensação de app) */
  .row-scroll { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .row-scroll .poster-card:last-child { margin-right: 20px; }

  /* Player: cabe inteiro na altura útil da tela (dvh acompanha a barra do navegador) */
  .player-wrap { background: #000; }
  .player {
    width: min(100%, calc((100vh - 130px) * 9 / 16)); width: min(100%, calc((100dvh - 130px) * 9 / 16));
    height: auto; max-height: none; margin-inline: auto; aspect-ratio: 9 / 16; border: 0;
  }

  /* Checkout: resumo e cupom primeiro, formulário depois */
  .checkout { padding-top: 22px; gap: 18px; }
  .checkout-summary { order: -1; }
  .checkout-form, .checkout-summary { padding: 20px; }

  /* Pix: quem paga pelo próprio celular usa o copia e cola, não o QR */
  .pay { padding-top: 22px; }
  .pay-body { gap: 20px; justify-items: stretch; }
  .pay-code { order: 1; }
  .qr-wrap { order: 2; justify-self: center; }
  .qr { width: 220px; height: 220px; }
  .pay-code textarea { font-size: 12px; }
  #copy-pix { min-height: 52px; font-size: 1.05rem; }
  .steps { font-size: .92rem; }

  .page-head { padding-top: 24px; }
  .prose { padding-top: 24px; }
  h1 { word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-bg, .hero::before, .hero::after { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
