/* Eita: o hero-slider (adaptado do "Blendy flavour slider").
   Quatro telas, uma por tipo de filme; cada uma pinta a tela inteira com uma cor da marca, a palavra gigante
   fica atrás do filme no centro e cenas dos filmes flutuam em volta, duas desfocadas nos cantos.
   Tudo dentro de um quadro de 1440 x 900 medido em --u; a interface usa --n. */

main > section.eh {
  position: relative; height: 100svh; min-height: 520px; padding: 0; display: block;
  background: var(--bg); color: var(--ui); overflow: hidden; touch-action: pan-y;
  --u: 1px; --fy: 0px;
  --n: clamp(0.5px, min(100vw / 1440, 100vh / 900), 1.3px);
}
@media (max-width: 639px) { main > section.eh { height: 100svh; min-height: 520px; display: block; } }

.eh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eh-stage { position: absolute; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.eh-slide { position: absolute; inset: 0; overflow: hidden; background: var(--bg); visibility: hidden; z-index: 0; }
.eh-slide.is-current { visibility: visible; z-index: 2; }
.eh-slide.is-next { visibility: visible; z-index: 1; }
.eh-frame {
  position: absolute; width: calc(1440 * var(--u)); height: calc(900 * var(--u));
  left: calc(50% - 720 * var(--u)); top: calc(50% - 450 * var(--u) + var(--fy));
}
.eh-layer { position: absolute; inset: 0; }

/* a palavra gigante, atrás de tudo */
.eh-w {
  position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; line-height: 1;
  font-family: "Unbounded", var(--font-display); font-weight: 800; color: var(--ink);
  font-size: calc(var(--fs, 300) * var(--u)); top: calc(var(--wt, 260) * var(--u)); letter-spacing: var(--ls, -0.035em);
}

/* sombras no chão */
.eh-shadow i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 20, 42, .24), transparent); filter: blur(calc(4 * var(--u))); }

/* o filme no centro: um quadro 9:16 que toca um trecho em loop; o clique abre o filme inteiro */
.eh-card {
  position: absolute; padding: 0; border: 0; margin: 0; cursor: pointer; overflow: hidden; background: #0d142a;
  border-radius: calc(24 * var(--u));
  box-shadow: 0 calc(34 * var(--u)) calc(60 * var(--u)) calc(-22 * var(--u)) rgba(13, 20, 42, .55);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.eh-card video, .eh-card__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-card video { opacity: 0; transition: opacity .5s ease; }
.eh-card.is-playing video { opacity: 1; }
.eh-disc {
  position: absolute; right: calc(18 * var(--u)); bottom: calc(18 * var(--u)); z-index: 2;
  width: calc(64 * var(--u)); height: calc(64 * var(--u)); min-width: 40px; min-height: 40px;
  border-radius: 50%; background: #fff; color: #0d142a; display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.eh-disc svg { width: 38%; height: 38%; margin-left: 6%; }
@media (hover: hover) and (pointer: fine) {
  .eh-card:hover { transform: translateY(calc(-6 * var(--u))); }
  .eh-card:hover .eh-disc { transform: scale(1.08); }
}
.eh-card:focus-visible { outline: 3px solid var(--ui); outline-offset: 4px; }

/* as cenas que flutuam: cada uma balança no seu tempo */
.eh-piece { position: absolute; }
.eh-bob {
  width: 100%; height: 100%; transform: rotate(var(--rot));
  animation: eh-bob var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate;
}
@keyframes eh-bob {
  from { transform: translateY(calc(-7 * var(--u))) rotate(calc(var(--rot) - 3deg)); }
  to   { transform: translateY(calc(7 * var(--u))) rotate(calc(var(--rot) + 3deg)); }
}
.eh-bob img {
  width: 100%; height: 100%; display: block; object-fit: cover; box-sizing: border-box;
  border: calc(6 * var(--u)) solid #fff; border-radius: calc(14 * var(--u)); background: #fff;
  box-shadow: 0 calc(18 * var(--u)) calc(30 * var(--u)) calc(-12 * var(--u)) rgba(13, 20, 42, .45);
}
.eh-blur { filter: blur(calc(9 * var(--u))); }

/* a interface: abas no alto, "Assistir" embaixo e as setas nos cantos */
.eh-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--ui); transition: color .5s ease; }
.eh-ui button, .eh-ui a { pointer-events: auto; background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.eh-tabs {
  position: absolute; top: calc(var(--nav, 72px) + 22 * var(--n)); left: 50%; transform: translateX(-50%);
  display: flex; gap: calc(60 * var(--n)); font: 500 calc(19 * var(--n))/1 var(--font-text); white-space: nowrap;
}
.eh-tab { padding: calc(10 * var(--n)) 0 !important; min-height: 44px; opacity: .72; transition: opacity .3s ease; }
.eh-tab[aria-current="true"], .eh-tab:hover { opacity: 1; }
.eh-line {
  position: absolute; left: 0; bottom: calc(6 * var(--n)); height: 2px; border-radius: 2px; background: currentColor;
  width: var(--lw, 0px); transform: translateX(var(--lx, 0px));
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), width .6s cubic-bezier(.65, 0, .35, 1);
}
.eh-watch {
  position: absolute; left: 50%; bottom: calc(34 * var(--n)); transform: translateX(-50%);
  font: 600 calc(15 * var(--n))/1 var(--font-text) !important; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  padding: calc(14 * var(--n)) calc(18 * var(--n)) !important; min-height: 44px; display: inline-flex; align-items: center; gap: .6em;
}
.eh-watch::after { content: ""; position: absolute; left: calc(18 * var(--n)); right: calc(18 * var(--n)); bottom: calc(8 * var(--n)); height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.eh-watch:hover::after, .eh-watch:focus-visible::after { transform: scaleX(1); }
.eh-arrow {
  position: absolute; bottom: calc(28 * var(--n)); width: max(44px, calc(52 * var(--n))); height: max(44px, calc(52 * var(--n)));
  display: grid !important; place-items: center; border-radius: 50%; transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.eh-arrow svg { width: calc(28 * var(--n)); height: calc(28 * var(--n)); min-width: 22px; min-height: 22px; }
.eh-prev { left: calc(36 * var(--n)); }
.eh-next { right: calc(36 * var(--n)); }
@media (hover: hover) and (pointer: fine) { .eh-prev:hover { transform: translateX(-3px); } .eh-next:hover { transform: translateX(3px); } }
.eh-ui :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* abertura: a interface sobe uma vez; o script tira a classe */
.eh.eh-intro .eh-tabs, .eh.eh-intro .eh-arrow, .eh.eh-intro .eh-watch { opacity: 0; }

/* celular e tablet em pé: abas numa linha só, menores; setas e "Assistir" embaixo */
.eh.is-mobile { --n: 1px; }
.eh.is-mobile .eh-tabs { top: calc(var(--nav, 56px) + 8px); gap: 18px; font-size: 14px; }
.eh.is-mobile .eh-watch { bottom: 14px; font-size: 13px !important; letter-spacing: .14em; }
.eh.is-mobile .eh-arrow { bottom: 10px; width: 48px; height: 48px; }
.eh.is-mobile .eh-arrow svg { width: 24px; height: 24px; }
.eh.is-mobile .eh-prev { left: 8px; }
.eh.is-mobile .eh-next { right: 8px; }

/* o cabeçalho do site fica transparente sobre o hero e pega a cor da tela */
html.eh-top header.nav:not(.is-open):not(.m-menu-open) { background: transparent; border-bottom-color: transparent; color: var(--eh-ui, var(--ink)); }
html.eh-top header.nav:not(.is-open):not(.m-menu-open) .nav__link,
html.eh-top header.nav:not(.is-open):not(.m-menu-open) .nav__toggle { color: var(--eh-ui, var(--ink)); }
html.eh-top header.nav:not(.is-open):not(.m-menu-open) .nav__toggle { border-color: currentColor; }
html.eh-top header.nav:not(.is-open):not(.m-menu-open) .nav__actions .btn--primary { background: var(--eh-btn, var(--action)); color: var(--eh-btn-ink, var(--action-ink)); border-color: var(--eh-btn, var(--action)); }
header.nav { transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
header.nav .nav__actions .btn--primary { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }

/* movimento reduzido: nada balança, a troca é imediata */
@media (prefers-reduced-motion: reduce) {
  .eh-bob { animation: none; }
  .eh-line, .eh-card, .eh-card video, .eh-ui { transition: none; }
}
