/**
 * GIGANTES DO BRASIL - PRELOADER CINEMATOGRÁFICO DE LUXO
 * Efeitos de luz, brilho dourado metálico, vídeo transparecido ao fundo,
 * foto tratada da dupla (Géssica e Eduardo) e logo oficial dourada.
 */

/* ==========================================================================
   1. CONTAINER PRINCIPAL DO PRELOADER
   ========================================================================== */
#gigantesPreloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #070709;
  overflow: hidden;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.85s ease;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

#gigantesPreloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

/* ==========================================================================
   2. CAMADA DE VÍDEO TRANSPARECIDO AO FUNDO
   ========================================================================== */
.preloader-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.preloader-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(0.95) saturate(1.2);
  transition: opacity 1.2s ease;
}

/* Vinheta e Gradiente Radial Escuro de Cinema sobre o Vídeo */
.preloader-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(7, 7, 9, 0.42) 0%,
    rgba(7, 7, 9, 0.78) 55%,
    #070709 95%
  );
  z-index: 2;
}

/* Grid de Linhas Finas Estilo Stage Show */
.preloader-ambient-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(229, 178, 93, 0.12) 1px, transparent 1px),
    radial-gradient(rgba(249, 226, 157, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.45;
  z-index: 3;
}

/* ==========================================================================
   3. SISTEMA DE ILUMINAÇÃO, RAIOS E BRILHOS (LIGHT & GLOW FX)
   ========================================================================== */
.preloader-light-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

/* Raios de Luz Dourados Giratórios (Volumetric Godrays) */
.preloader-godrays {
  position: absolute;
  width: min(1000px, 130vw);
  height: min(1000px, 130vw);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(229, 178, 93, 0.16) 0deg 12deg,
    transparent 12deg 24deg,
    rgba(249, 226, 157, 0.14) 24deg 36deg,
    transparent 36deg 48deg
  );
  mask-image: radial-gradient(circle at center, black 0%, rgba(0,0,0,0.7) 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, rgba(0,0,0,0.7) 35%, transparent 70%);
  filter: blur(20px);
  animation: preloaderSpinRays 32s linear infinite;
}

/* Aura Central de Ouro Nobre Pulsante (Radial Suave Sem Recortes) */
.preloader-center-glow {
  position: absolute;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(249, 226, 157, 0.42) 0%,
    rgba(229, 178, 93, 0.25) 40%,
    rgba(194, 142, 58, 0.08) 60%,
    transparent 75%
  );
  filter: blur(45px);
  animation: preloaderPulseGlow 3.6s ease-in-out infinite alternate;
}

/* Feixes Anamórficos Horizontais de Luz (Flare Lens) */
.preloader-horizontal-flare {
  position: absolute;
  width: min(900px, 100vw);
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(229, 178, 93, 0.3) 25%,
    #ffffff 50%,
    rgba(229, 178, 93, 0.3) 75%,
    transparent 100%
  );
  box-shadow: 0 0 25px 4px rgba(249, 226, 157, 0.7);
  opacity: 0.8;
  animation: preloaderFlareBreathe 3s ease-in-out infinite alternate;
}

/* Estrelas de Brilho Cintilante (Flares de 4 Pontas) */
.preloader-sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.preloader-sparkle::before,
.preloader-sparkle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 0 10px #F9E29D, 0 0 22px #E5B25D;
}

.preloader-sparkle::before {
  width: 2px;
  height: 28px;
}

.preloader-sparkle::after {
  width: 28px;
  height: 2px;
}

.sparkle-top-left {
  top: 24%;
  left: 28%;
  animation: preloaderSparkleGlint 2.8s ease-in-out infinite 0.2s;
}

.sparkle-top-right {
  top: 20%;
  right: 26%;
  animation: preloaderSparkleGlint 3.1s ease-in-out infinite 1.1s;
}

.sparkle-logo-corner {
  bottom: 27%;
  right: 32%;
  animation: preloaderSparkleGlint 2.4s ease-in-out infinite 0.6s;
}

/* ==========================================================================
   4. CONTEÚDO CENTRAL: LOGO DA BANDA (CENTRO DO PRELOADER)
   ========================================================================== */
.preloader-content-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 650px;
  padding: 0 1.5rem;
  text-align: center;
}

/* Logo Oficial de Gigantes do Brasil */
.preloader-logo-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  padding: 0.5rem 1rem;
}

.preloader-logo-img {
  width: clamp(260px, 72vw, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(229, 178, 93, 0.65))
          drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
  animation: preloaderLogoPulse 3s ease-in-out infinite alternate;
}

/* ==========================================================================
   5. TIPOGRAFIA, EQUALIZADOR E BARRA DE PROGRESSO
   ========================================================================== */
.preloader-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F9E29D;
  text-shadow: 0 0 16px rgba(229, 178, 93, 0.5);
  margin-bottom: 1.15rem;
}

.preloader-kicker .bullet-spark {
  color: #fff;
  filter: drop-shadow(0 0 6px #F9E29D);
}

/* Equalizador de Som em Barras Douradas */
.preloader-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 18px;
  margin-bottom: 0.95rem;
}

.preloader-equalizer span {
  width: 3.5px;
  background: var(--gold-gradient, linear-gradient(135deg, #FBEBB5 0%, #E5B25D 100%));
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(229, 178, 93, 0.6);
  animation: preloaderEqBounce 1.1s ease-in-out infinite alternate;
}

.preloader-equalizer span:nth-child(1) { height: 7px; animation-delay: 0.1s; }
.preloader-equalizer span:nth-child(2) { height: 16px; animation-delay: 0.35s; }
.preloader-equalizer span:nth-child(3) { height: 11px; animation-delay: 0.2s; }
.preloader-equalizer span:nth-child(4) { height: 18px; animation-delay: 0.5s; }
.preloader-equalizer span:nth-child(5) { height: 8px; animation-delay: 0.25s; }

/* Barra de Progresso Dourada de Alta Precisão */
.preloader-progress-track {
  position: relative;
  width: clamp(200px, 50vw, 290px);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: visible;
  border: 1px solid rgba(229, 178, 93, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.preloader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C28E3A 0%, #E5B25D 50%, #FFF3CA 100%);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(249, 226, 157, 0.8), 0 0 24px rgba(229, 178, 93, 0.5);
  transition: width 0.15s ease-out;
}

/* Ponto Brilhante no Avanço da Barra */
.preloader-progress-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #FFF, 0 0 18px #E5B25D;
}

/* Indicador de Status e Porcentagem */
.preloader-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(200px, 50vw, 290px);
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #A0A0AA;
}

.preloader-status-text {
  text-transform: uppercase;
}

.preloader-percent-num {
  font-family: monospace;
  font-weight: 700;
  color: #F9E29D;
  text-shadow: 0 0 8px rgba(229, 178, 93, 0.4);
}



/* ==========================================================================
   7. KEYFRAMES & ANIMAÇÕES
   ========================================================================== */
@keyframes preloaderSpinRays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderPulseGlow {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
    filter: blur(35px);
  }
  100% {
    transform: scale(1.12);
    opacity: 1;
    filter: blur(48px);
  }
}

@keyframes preloaderFlareBreathe {
  0% { opacity: 0.45; transform: scaleX(0.85); }
  100% { opacity: 0.95; transform: scaleX(1.08); }
}

@keyframes preloaderSparkleGlint {
  0%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  40%, 60% {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
  }
}

@keyframes preloaderLogoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(229, 178, 93, 0.55)) drop-shadow(0 8px 24px rgba(0,0,0,0.85));
  }
  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 38px rgba(249, 226, 157, 0.85)) drop-shadow(0 12px 28px rgba(0,0,0,0.95));
  }
}

@keyframes preloaderEqBounce {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1.15); opacity: 1; }
}

/* ==========================================================================
   8. RESPONSIVIDADE MOBILE (360px - 768px)
   ========================================================================== */
@media (max-width: 640px) {
  .preloader-logo-img {
    width: clamp(230px, 78vw, 340px);
  }
}

