/* ==========================================================
   TAFMAX — folha de estilo
   Preto cinematográfico + vermelho escuro. Sem dependências.
   ========================================================== */

@font-face { font-family: 'Syne'; font-weight: 700; font-display: swap; src: url('/assets/fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 800; font-display: swap; src: url('/assets/fonts/syne-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('/assets/fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #070707;
  --bg-1: #0d0d0e;
  --surface: #141415;
  --surface-2: #1c1c1e;
  --surface-3: #262628;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f3f1ee;
  --muted: #a9a59f;
  --dim: #8a867f;
  --red: #b3121f;
  --red-hi: #d4202e;
  --red-deep: #6f0b13;
  --red-glow: rgba(179, 18, 31, .38);
  --ok: #6fbf8a;
  --radius: 6px;
  --nav-h: 68px;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
body.is-watching .nav, body.is-watching .footer { display: none; }
body.is-watching { overflow: hidden; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: .86rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 28px -10px var(--red-glow); }
.btn--primary:hover { background: var(--red-hi); box-shadow: 0 12px 34px -8px var(--red-glow); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--line { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--line:hover { border-color: #fff; }
.btn--danger { background: transparent; border-color: rgba(212, 32, 46, .5); color: #ff8a92; }
.btn--danger:hover { background: rgba(212, 32, 46, .15); border-color: var(--red-hi); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .74rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); transition: background .4s, box-shadow .4s; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.nav.is-solid { background: rgba(7, 7, 7, .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 0 var(--pad); }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 44px; width: auto; transition: transform .3s var(--ease), filter .3s; }
.nav__logo:hover img { transform: scale(1.05); filter: drop-shadow(0 0 14px var(--red-glow)); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav__links a { position: relative; font-size: .92rem; font-weight: 600; color: var(--muted); padding: 8px 0; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.search { display: flex; align-items: center; border: 1px solid transparent; border-radius: 999px; transition: border-color .3s, background .3s; }
.search input { width: 0; opacity: 0; padding: 0; border: 0; background: transparent; outline: none; transition: width .35s var(--ease), opacity .25s, padding .35s var(--ease); }
.search.is-open { border-color: var(--line-strong); background: rgba(0, 0, 0, .7); }
.search.is-open input { width: min(260px, 42vw); opacity: 1; padding: 0 0 0 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.nav__admin { color: var(--dim); }
.nav__admin:hover { color: #fff; }

@media (max-width: 760px) {
  :root { --nav-h: 104px; }
  .nav__inner { flex-wrap: wrap; align-content: center; row-gap: 0; padding-top: 8px; }
  .nav__logo img { height: 36px; }
  .nav__tools { order: 2; }
  .nav__links { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 18px; padding-bottom: 2px; }
  .nav__links a { font-size: .86rem; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
}

/* ---------- animação de página ---------- */
.view { animation: viewIn .55s var(--ease) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- herói ---------- */
.hero { position: relative; min-height: min(86vh, 880px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; z-index: 0; display: flex; align-items: flex-end; pointer-events: none; }
.hero__slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.06); transition: transform 9s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__bg--poster img { filter: blur(34px) brightness(.55); transform: scale(1.3); }
.hero__bg--none { background: radial-gradient(120% 90% at 78% 20%, #2a0a0d 0%, #0d0d0e 55%, #070707 100%); }
.hero__side-poster { position: absolute; right: var(--pad); bottom: 18%; width: min(24vw, 300px); aspect-ratio: 2/3; border-radius: var(--radius); object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); z-index: -1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 7, 7, .92) 0%, rgba(7, 7, 7, .55) 38%, rgba(7, 7, 7, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 7, 0) 38%), linear-gradient(180deg, rgba(7, 7, 7, .7) 0%, rgba(7, 7, 7, 0) 22%); }
.hero__body { position: relative; z-index: 3; width: 100%; padding: calc(var(--nav-h) + 40px) var(--pad) clamp(110px, 16vh, 170px); max-width: 900px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #ff9aa1; margin-bottom: 18px; }
.hero__kicker::before { content: ''; width: 34px; height: 3px; background: var(--red-hi); border-radius: 2px; }
.hero__title { font-size: clamp(2.1rem, 5.2vw, 4.7rem); text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 16px; font-weight: 600; font-size: .95rem; color: #d8d4cf; }
.hero__syn { max-width: 56ch; color: #dcd8d3; font-size: clamp(.95rem, 1.2vw, 1.08rem); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__dots { position: absolute; z-index: 4; right: var(--pad); bottom: clamp(30px, 6vh, 64px); display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .28); position: relative; overflow: hidden; }
.hero__dots button::after { content: ''; position: absolute; inset: 0; background: var(--red-hi); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { transform: scaleX(1); transition: transform 9s linear; }
.hero__hit { position: relative; }
.hero--empty { min-height: 100vh; align-items: center; justify-content: center; text-align: center; }
@media (max-width: 760px) {
  .hero { min-height: 82vh; }
  .hero__side-poster { display: none; }
  .hero__body { padding-top: calc(var(--nav-h) + 20px); }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(7, 7, 7, .55) 55%, rgba(7, 7, 7, .35) 100%), linear-gradient(180deg, rgba(7, 7, 7, .7) 0%, rgba(7, 7, 7, 0) 22%); }
}
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #e8e4df; background: rgba(0, 0, 0, .35); }
.pill--red { background: var(--red); border-color: var(--red); color: #fff; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.sep::before { content: '•'; margin-right: 16px; color: var(--red-hi); }

/* ---------- filas ---------- */
.rows { position: relative; z-index: 5; margin-top: clamp(-90px, -8vh, -30px); padding-bottom: 40px; }
.row { margin-bottom: clamp(8px, 2vw, 22px); position: relative; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--pad); margin-bottom: 4px; }
.row__title { font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -.01em; }
.row__more { white-space: nowrap; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .25s, color .2s; }
.row:hover .row__more, .row__more:focus-visible { opacity: 1; }
.row__more:hover { color: #fff; }
@media (hover: none) { .row__more { opacity: 1; } }
.row__scroller { display: flex; gap: clamp(8px, 1vw, 14px); overflow-x: auto; padding: 30px var(--pad); margin: -8px 0 -8px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.row__scroller::-webkit-scrollbar { display: none; }
.row__scroller > .card { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.row__arrow { position: absolute; top: 34px; bottom: 34px; width: var(--pad); min-width: 44px; z-index: 6; display: grid; place-items: center; border: 0; color: #fff; background: linear-gradient(90deg, rgba(7, 7, 7, .85), rgba(7, 7, 7, 0)); opacity: 0; transition: opacity .25s; }
.row__arrow--next { right: 0; background: linear-gradient(270deg, rgba(7, 7, 7, .85), rgba(7, 7, 7, 0)); }
.row__arrow--prev { left: 0; }
.row__arrow .ico { width: 34px; height: 34px; transition: transform .25s var(--ease); }
.row__arrow:hover .ico { transform: scale(1.25); }
.row:hover .row__arrow:not([disabled]) { opacity: 1; }
.row__arrow[disabled] { pointer-events: none; }
@media (hover: none) { .row__arrow { display: none; } }

:root { --card-w: clamp(128px, 14.2vw, 214px); }

/* ---------- cartazes ---------- */
.card { position: relative; display: block; transition: transform .35s var(--ease), z-index 0s .35s; }
.card__art { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8); transition: box-shadow .35s var(--ease), outline-color .35s; outline: 2px solid transparent; }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card:hover, .card:focus-within { transform: scale(1.09) translateY(-4px); z-index: 20; transition: transform .35s var(--ease), z-index 0s 0s; }
.card:hover .card__art, .card:focus-within .card__art { box-shadow: 0 26px 50px -12px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .2); }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card__shade { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, 0) 75%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .card__shade, .card:focus-within .card__shade { opacity: 1; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.15; }
.card__sub { font-size: .72rem; color: #cfcac4; font-weight: 600; }
.card__play { position: absolute; z-index: 3; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease), background .2s; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.card__play .ico { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card__play, .card:focus-within .card__play { opacity: 1; transform: none; }
.card__play:hover { background: var(--red-hi); transform: scale(1.1) !important; }
.card__tag { position: absolute; z-index: 1; left: 8px; top: 8px; }
.card__progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.card__progress i { display: block; height: 100%; background: var(--red-hi); }
.card__cap { display: none; margin-top: 8px; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.card__cap.is-show { display: block; }
.card__cap small { display: block; color: var(--muted); font-weight: 600; }
@media (hover: none) { .card__cap { display: block; } .card:hover { transform: none; } .card__play { opacity: 1; transform: none; } }
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; background: linear-gradient(160deg, #221012 0%, #141415 55%, #0b0b0c 100%); }
.ph::before { content: ''; position: absolute; left: 14px; top: 14px; width: 28px; height: 3px; background: var(--red-hi); border-radius: 2px; }
.ph span { font-family: var(--font-display); font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.3rem); line-height: 1.1; color: #e9e5e0; text-wrap: balance; }

/* ---------- páginas gerais ---------- */
.page { padding: calc(var(--nav-h) + 36px) var(--pad) 60px; max-width: 1760px; margin: 0 auto; width: 100%; }
.page__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page__title { font-size: clamp(1.8rem, 4vw, 3rem); }
.page__sub { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { position: relative; padding: 12px 18px; background: none; border: 0; font-weight: 700; font-size: .92rem; color: var(--muted); transition: color .2s; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; }
.tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--red-hi); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleY(1); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; font-size: .84rem; color: var(--muted); transition: all .2s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.field-select { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
select, .input, textarea { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); min-height: 44px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
select { width: auto; padding-right: 8px; }
textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px var(--red-glow); }
select option { background: #1c1c1e; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 200px), 1fr)); gap: clamp(18px, 2vw, 28px) clamp(10px, 1.2vw, 18px); padding: 10px 0 20px; }
.count { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 10px; }
.empty h2 { color: var(--text); font-size: 1.5rem; margin-bottom: 10px; }
.empty p { max-width: 52ch; margin: 0 auto; }
.empty .btn { margin-top: 22px; }

/* ---------- vazio (início) ---------- */
.welcome { display: grid; place-items: center; gap: 22px; padding: 0 var(--pad); position: relative; z-index: 3; }
.welcome img { width: min(360px, 70vw); filter: drop-shadow(0 0 40px var(--red-glow)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.welcome h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.welcome p { color: var(--muted); max-width: 52ch; }
.notice { max-width: 60ch; padding: 14px 18px; border-radius: var(--radius); border: 1px solid rgba(212, 32, 46, .45); background: rgba(179, 18, 31, .12); color: #ffd3d6; font-size: .92rem; text-align: left; }
.notice--ok { border-color: rgba(111, 191, 138, .45); background: rgba(111, 191, 138, .1); color: #cfeedb; }
.notice--info { border-color: var(--line-strong); background: var(--surface); color: var(--muted); }

/* ---------- página do título ---------- */
.detail { position: relative; isolation: isolate; }
.detail__bg { position: absolute; inset: 0 0 auto 0; height: min(78vh, 720px); z-index: -1; overflow: hidden; }
.detail__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.detail__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgba(7, 7, 7, .72) 55%, rgba(7, 7, 7, .5) 100%), linear-gradient(90deg, rgba(7, 7, 7, .8), rgba(7, 7, 7, 0) 60%); }
.detail__bg--none { background: radial-gradient(110% 90% at 80% 10%, #2a0a0d 0%, #0d0d0e 60%, #070707 100%); }
.detail__main { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(24px, 4vw, 60px); padding: calc(var(--nav-h) + clamp(30px, 8vh, 90px)) var(--pad) 40px; max-width: 1400px; margin: 0 auto; }
.detail__poster { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); background: var(--surface); align-self: start; }
.detail__poster img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { font-size: clamp(2rem, 4.8vw, 4rem); text-wrap: balance; }
.detail__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0; font-weight: 600; color: #d8d4cf; }
.detail__genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail__genres a { padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .82rem; font-weight: 600; transition: background .2s; }
.detail__genres a:hover { background: var(--red); }
.detail__syn { max-width: 68ch; font-size: 1.06rem; color: #e0dcd7; white-space: pre-line; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 44px; max-width: 900px; }
.credits h2 { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #ff9aa1; font-family: var(--font); font-weight: 700; margin-bottom: 14px; }
.credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.credits li strong { display: block; font-weight: 700; }
.credits li span { color: var(--muted); font-size: .88rem; }
.detail__more { padding: 10px 0 0; }
@media (max-width: 760px) {
  .detail__main { grid-template-columns: 1fr; }
  .detail__poster { width: min(60vw, 260px); }
  .credits { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- merch ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.product:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9); }
.product__img { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.product__price { color: #ff9aa1; font-weight: 700; }
.product__desc { color: var(--muted); font-size: .9rem; flex: 1; white-space: pre-line; }
.product .btn { margin-top: 10px; }

/* ---------- leitor ---------- */
.watch { position: fixed; inset: 0; z-index: 300; background: #000; animation: fadeIn .4s ease backwards; }
.player { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; font-size: 15px; }
.player.is-idle { cursor: none; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__top, .player__bottom { position: absolute; left: 0; right: 0; z-index: 3; transition: opacity .35s, transform .35s var(--ease); }
.player__top { top: 0; display: flex; align-items: center; gap: 14px; padding: 18px clamp(14px, 3vw, 34px) 60px; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.player__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bottom { bottom: 0; padding: 70px clamp(14px, 3vw, 34px) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0)); }
.player.is-idle .player__top { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.player.is-idle .player__bottom { opacity: 0; transform: translateY(10px); pointer-events: none; }
.player__center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.player__bigplay { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(179, 18, 31, .92); color: #fff; box-shadow: 0 0 0 0 var(--red-glow), 0 20px 50px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease); }
.player__bigplay .ico { width: 36px; height: 36px; margin-left: 4px; }
.player.is-paused .player__bigplay { opacity: 1; transform: none; }
.player.is-waiting .player__bigplay, .player.is-error .player__bigplay, .player.is-ended .player__bigplay { opacity: 0; }
.player__spinner { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--red-hi); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.player.is-waiting .player__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.seek { position: relative; height: 22px; display: flex; align-items: center; margin-bottom: 4px; touch-action: none; }
.seek__track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: height .15s; overflow: hidden; }
.seek:hover .seek__track, .seek.is-drag .seek__track { height: 7px; }
.seek__buf { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .28); width: 0; }
.seek__fill { position: absolute; inset: 0 auto 0 0; background: var(--red-hi); width: 0; }
.seek__thumb { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--red-glow); transform: scale(0); transition: transform .15s; pointer-events: none; }
.seek:hover .seek__thumb, .seek.is-drag .seek__thumb, .seek:focus-within .seek__thumb { transform: scale(1); }
.seek__input { position: absolute; inset: -6px 0; width: 100%; height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer; }
.seek__tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 3px 9px; border-radius: 4px; background: rgba(0, 0, 0, .85); font-size: .78rem; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.seek:hover .seek__tip { opacity: 1; }
.bar { display: flex; align-items: center; gap: 4px; }
.bar .icon-btn { color: #fff; width: 46px; height: 46px; }
.bar .icon-btn:hover { background: rgba(255, 255, 255, .16); }
.bar__time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .86rem; margin-left: 8px; color: #e6e2dd; white-space: nowrap; }
.bar__spacer { flex: 1; }
.vol { display: flex; align-items: center; }
.vol__input { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .2s; accent-color: var(--red-hi); height: 4px; cursor: pointer; }
.vol:hover .vol__input, .vol:focus-within .vol__input { width: 92px; opacity: 1; margin: 0 8px 0 2px; }
.bar__speed { font-weight: 700; font-size: .82rem; width: auto !important; border-radius: 6px !important; padding: 0 12px; }
.player__toast { position: absolute; z-index: 4; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 18px; border-radius: 999px; background: rgba(20, 20, 21, .94); border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 600; animation: toastIn .35s var(--ease) backwards; }
.player__toast button { border: 0; background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.player__overlay { position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 30px; background: rgba(0, 0, 0, .82); }
.player.is-error .player__overlay--error, .player.is-ended .player__overlay--end { display: flex; }
.player__overlay h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.player__overlay p { color: var(--muted); max-width: 52ch; }
.player__overlay .row-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.player--inline { aspect-ratio: 16/9; height: auto; border-radius: 10px; }

/* ---------- janela (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal__box { width: min(960px, 100%); max-height: 100%; overflow: auto; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 12px; animation: viewIn .35s var(--ease) backwards; position: relative; }
.modal__box--sm { width: min(460px, 100%); padding: 28px; }
.modal__close { position: absolute; right: 8px; top: 8px; z-index: 10; background: rgba(0, 0, 0, .6); }
.modal h2 { font-size: 1.4rem; margin-bottom: 10px; }
.modal p { color: var(--muted); }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 500; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--red-hi); font-weight: 600; font-size: .92rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: viewIn .35s var(--ease) backwards; }
.toast--ok { border-left-color: var(--ok); }

/* ---------- administração ---------- */
.admin { max-width: 1180px; }
.login { max-width: 440px; margin: 6vh auto 0; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 18px; }
.login img { width: 150px; margin: 0 auto 6px; }
.login h1 { font-size: 1.6rem; text-align: center; }
.label { display: grid; gap: 7px; font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.label small { font-weight: 500; color: var(--dim); font-size: .78rem; letter-spacing: 0; }
.error { color: #ff9aa1; font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s; }
.item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.item__thumb { width: 52px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; background: var(--surface-3); position: relative; }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.item__thumb .ph span { font-size: .55rem; }
.item__thumb .ph::before { display: none; }
.item__title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item__meta { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.item__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.star { color: var(--dim); }
.star[aria-pressed="true"] { color: #ffb14a; }
.star[aria-pressed="true"] .ico { fill: currentColor; }
@media (max-width: 640px) { .item { grid-template-columns: 52px 1fr; } .item__actions { grid-column: 1 / -1; justify-content: flex-start; } }
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
@media (max-width: 760px) { .col-6, .col-4, .col-3 { grid-column: span 12; } }
@media (min-width: 761px) and (max-width: 1000px) { .col-3 { grid-column: span 6; } }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--bg-1); }
.fieldset > h2 { font-size: 1.05rem; margin-bottom: 4px; }
.fieldset > .hint { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 18px; font-weight: 700; font-size: .86rem; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--red); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: -2px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.drop { position: relative; display: grid; gap: 10px; place-items: center; text-align: center; padding: 22px 16px; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color .2s, background .2s; min-height: 150px; }
.drop.is-over { border-color: var(--red-hi); background: rgba(179, 18, 31, .1); }
.drop__name { font-weight: 700; word-break: break-all; }
.drop__info { color: var(--muted); font-size: .84rem; }
.drop__preview { width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; }
.drop__preview--poster { max-width: 120px; aspect-ratio: 2/3; object-fit: cover; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.progress { display: grid; gap: 14px; }
.prog { display: grid; gap: 6px; }
.prog__top { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; font-weight: 600; }
.prog__top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red-hi)); border-radius: 4px; transition: width .25s linear; }
.bar-track.is-done i { background: var(--ok); }
.form__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg) 70%, rgba(7, 7, 7, 0)); z-index: 5; }
.checklist { display: grid; gap: 12px; }
.check-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.check-item .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.check-item.is-ok .dot { background: var(--ok); color: #06140b; }
.check-item.is-bad .dot { background: var(--red); color: #fff; }
.check-item .dot .ico { width: 15px; height: 15px; stroke-width: 3; }
.check-item h3 { font-size: 1rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.check-item p { color: var(--muted); font-size: .9rem; }
.check-item code, .notice code, .modal code { background: var(--surface-3); padding: 1px 7px; border-radius: 4px; font-size: .85em; color: #ffd3d6; }
.meter { margin-top: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .86rem; margin-bottom: 14px; background: none; border: 0; padding: 0; }
.back-link:hover { color: #fff; }

/* ---------- rodapé ---------- */
.footer { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 60px var(--pad) 50px; border-top: 1px solid var(--line); margin-top: 30px; color: var(--dim); font-size: .88rem; }
.footer img { height: 64px; width: auto; opacity: .9; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.footer nav a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }
