/* =====================================================
   PARTE 4 · TRAILER, FINAL E RODAPÉ
   ===================================================== */

/* ---------- TRAILER ---------- */
.trailer { position: relative; }
.trailer__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0d0717; isolation: isolate; }
.trailer__title {
  position: absolute; inset: 0; z-index: 1; margin: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px); pointer-events: none;
  font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase; line-height: .85;
  font-size: clamp(40px, min(7.2vw, 15vh), 150px);
}
.trailer__w { display: block; will-change: transform; }
.trailer__w--r { background: var(--grad-vi); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: right; }

.trailer__screen {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  clip-path: inset(24% 30% 24% 30% round 18px);
  will-change: clip-path;
}
.trailer__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.trailer__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,4,22,.8) 0%, rgba(10,4,22,0) 45%), radial-gradient(60% 60% at 50% 50%, rgba(10,4,22,0) 40%, rgba(10,4,22,.45) 100%); }

.trailer__play {
  all: unset; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  width: clamp(110px, min(12vw, 22vh), 170px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.4); transition: background .4s, transform .5s var(--ease-out);
}
.trailer__play:hover, .trailer__play:focus-visible { background: rgba(255,79,163,.85); }
.trailer__play svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 14s linear infinite; overflow: visible; }
.trailer__play text { fill: #fff; font: 700 10.5px var(--fonte-texto); letter-spacing: .24em; text-transform: uppercase; }
.trailer__tri { width: 0; height: 0; margin-left: 6px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.trailer__meta { position: absolute; z-index: 3; left: clamp(20px, 5vw, 80px); bottom: clamp(24px, 7vh, 70px); max-width: 420px; }
.trailer__cap { margin-top: 12px; font-size: clamp(14px, 1.1vw, 17px); color: rgba(255,244,236,.85); }

/* ---------- PLAYER ---------- */
.player { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.player[hidden] { display: none; }
.player__bg { position: absolute; inset: 0; background: rgba(7,3,13,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.player__box {
  position: relative; width: min(92vw, 1100px, (100vh - 120px) * 16 / 9); aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1);
}
.player__box video { width: 100%; height: 100%; display: block; }
.player__close {
  all: unset; position: absolute; top: clamp(14px, 3vh, 30px); right: clamp(14px, 3vw, 40px); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: background .3s, transform .5s var(--ease-out);
}
.player__close:hover, .player__close:focus-visible { background: #fff; transform: rotate(90deg); }
.player__close span { grid-area: 1 / 1; width: 20px; height: 2px; background: #fff; transition: background .3s; }
.player__close span:first-child { rotate: 45deg; }
.player__close span:last-child { rotate: -45deg; }
.player__close:hover span { background: #140a24; }
body.is-player { overflow: hidden; }
body.is-player .cursor { display: none; }
body.is-player, body.is-player a, body.is-player button { cursor: auto; }

/* ---------- FINAL ---------- */
.final { position: relative; }
.final__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; display: grid; place-items: center; }
.final__sky {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 55% at 50% 118%, #ffb062 0%, #ff4fa3 30%, rgba(155,71,224,.85) 55%, transparent 78%),
    linear-gradient(180deg, #0d0717 0%, #1d0b3c 45%, #4a1868 75%, #a8357f 100%);
}
.final__logo {
  position: absolute; z-index: 2; left: 50%; top: 44%;
  width: min(54vw, 58vh * 883 / 684); aspect-ratio: 883 / 684;
  translate: -50% -50%;
}
/* o vídeo fica do tamanho da tela (nunca é ampliado); só a máscara "VI" encolhe */
.final__vi {
  position: absolute; inset: 0; z-index: 1; background: #2a1052;
  -webkit-mask-image: url("../assets/img/logo_vi_c.webp"); mask-image: url("../assets/img/logo_vi_c.webp");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.final__vi video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.06); }
.final__vi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}
.final__gta { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 30px rgba(0,0,0,.45)); }
.final__copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(26px, 7vh, 80px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.6vh, 26px); text-align: center; padding: 0 20px;
}
.final__line { font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, min(4vw, 7vh), 72px); line-height: .95; }
.final__line { text-shadow: 0 4px 30px rgba(20,10,36,.55); }
.final__line .grad { background: none; color: #140a24; -webkit-text-fill-color: #140a24; text-shadow: 0 0 40px rgba(255,255,255,.35); }

/* ---------- RODAPÉ ---------- */
.rodape { background: #07030d; padding: clamp(40px, 8vh, 80px) clamp(20px, 6vw, 110px) 36px; border-top: 1px solid rgba(255,255,255,.08); }
.rodape__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rodape__logo { height: 60px; width: auto; }
.rodape__nav { display: flex; gap: clamp(16px, 2.4vw, 36px); flex-wrap: wrap; }
.rodape__nav a { font: 700 12px/1 var(--fonte-texto); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); transition: color .3s; }
.rodape__nav a:hover { color: var(--vi-rosa); }
.rodape__aviso { margin-top: 36px; max-width: 80ch; font-size: 13px; line-height: 1.6; color: rgba(255,244,236,.5); }
.rodape__credito { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: rgba(255,244,236,.5); }
.rodape__credito b { color: #fff; }

@media (max-width: 820px) {
  .trailer__title { flex-direction: column; justify-content: space-between; padding: 14vh 20px 10vh; align-items: flex-start; font-size: clamp(44px, 14vw, 110px); }
  .trailer__w--r { align-self: flex-end; }
  .trailer__screen { clip-path: inset(30% 8% 30% 8% round 14px); }
  .final__logo { width: 80vw; top: 42%; }
}
@media (prefers-reduced-motion: reduce) { .trailer__play svg { animation: none; } }
