/* ========================================================
   ESTILOS GERAIS & RESET
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-text-light: #9ca3af;
  --color-red-alert: #e50914;
  --color-red-bright: #ff1f1f;
  --color-black-bar: #000000;
  --color-placeholder-bg: #f9fafb;
  --color-placeholder-border: #e5e7eb;
  
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================
   BARRA DE AVISO SUPERIOR (TOP NOTICE BAR)
   Fiel à imagem de referência, calibrada para no MÁXIMO 2 linhas no mobile
   ======================================================== */
.top-notice-bar {
  background-color: var(--color-black-bar);
  color: #ffffff;
  width: 100%;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-notice-container {
  max-width: 900px;
  margin: 0 auto;
}

.top-notice-text {
  font-family: var(--font-heading);
  font-size: 0.95rem; /* ~15px no desktop */
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-block;
  line-height: 1.35;
}

.highlight-alert {
  color: var(--color-red-bright);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.05em;
  letter-spacing: 0.02em;
  margin-right: 5px;
}

.notice-location {
  color: #ffffff;
  display: inline;
}

#notice-date {
  color: #ffffff;
  font-weight: 700;
}

.notice-suffix {
  color: #ffffff;
  font-weight: 600;
}

/* ========================================================
   CONTAINER DA VSL
   ======================================================== */
.vsl-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

.vsl-container {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================================
   VTURB SMARTPLAYER (VÍDEO NA CAIXA & BOTÃO FORA DELA)
   O player como um todo é transparente para não prender
   o botão de compra dentro da mesma moldura do vídeo.
   ======================================================== */
.vsl-media-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

vturb-smartplayer {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  overflow: visible !important;
}

/* Moldura, cantos arredondados e sombra EXCLUSIVAMENTE na caixa do vídeo */
.vturb-player-placeholder,
vturb-smartplayer video,
vturb-smartplayer iframe,
vturb-smartplayer > div:first-of-type {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  background-color: #000000 !important;
}

/* Garante que o contêiner do botão da VTURB não crie uma caixa unificada */
vturb-smartplayer [class*="call-to-action"],
vturb-smartplayer [class*="cta"],
vturb-smartplayer [class*="smartplayer-button"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 18px !important;
}

/* O botão de compras fica solto na página com espaçamento e destaque */
vturb-smartplayer a,
vturb-smartplayer button,
vturb-smartplayer [class*="button"],
vturb-smartplayer [class*="call-to-action"] a {
  margin-top: 16px !important;
  display: block !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 184, 0, 0.35) !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

vturb-smartplayer a:hover,
vturb-smartplayer button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}

/* ========================================================
   CONTADOR ANIMADO: PESSOAS ASSISTINDO (IMAGEM 2)
   ======================================================== */
.live-viewers-wrapper {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.live-viewers-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-body);
  user-select: none;
}

/* Ponto pulsante ao vivo (Ping sonar effect) */
.live-dot-ping {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  align-items: center;
  justify-content: center;
}

.dot-core {
  width: 9px;
  height: 9px;
  background-color: var(--color-red-bright);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 6px rgba(255, 31, 31, 0.8);
}

.dot-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 31, 31, 0.6);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Número com estilo tabular para atualização fluida sem tremer a tela */
.live-count-number {
  font-size: 0.95rem; /* ~15px */
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.live-count-number.updated-up {
  color: #16a34a; /* Pisca verde sutil ao subir */
}

.live-count-number.updated-down {
  color: #ea580c; /* Pisca laranja sutil ao descer */
}

.live-count-label {
  font-size: 0.93rem;
  color: #4b5563;
  font-weight: 400;
}

/* ========================================================
   RODAPÉ (COMPATIBILIDADE NETLIFY & POLÍTICAS DE ANÚNCIOS)
   ======================================================== */
.vsl-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding: 36px 16px 28px;
  background-color: #ffffff;
  color: #64748b;
  text-align: center;
  font-size: 0.78rem;
}

.footer-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #111827;
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ========================================================
   RESPONSIVIDADE (MOBILE-FIRST PARA TRÁFEGO DIRETO NO BRASIL)
   Prioridade absoluta para telas de smartphone (360px a 430px)
   ======================================================== */
@media (max-width: 640px) {
  .top-notice-bar {
    padding: 8px 10px;
  }
  
  /* Diminui a fonte e calibra para ficar em NO MÁXIMO 2 linhas no celular */
  .top-notice-text {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.32;
    letter-spacing: -0.015em;
    max-width: 360px;
    margin: 0 auto;
    display: block;
  }
  
  .highlight-alert {
    font-size: 1.02em;
    margin-right: 3px;
  }
  
  .vsl-wrapper {
    padding: 16px 12px 36px;
  }

  vturb-smartplayer {
    max-width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .vturb-player-placeholder,
  vturb-smartplayer video,
  vturb-smartplayer iframe,
  vturb-smartplayer > div:first-of-type {
    border-radius: 12px !important;
  }
  
  .live-viewers-wrapper {
    margin-top: 14px;
  }

  .live-viewers-card {
    padding: 6px 10px;
    gap: 7px;
  }

  .live-count-number {
    font-size: 1.05rem; /* Destaque nítido no celular */
    font-weight: 800;
  }

  .live-count-label {
    font-size: 0.95rem;
  }
}

/* Telas menores (ex: iPhone SE, Galaxy A antigos ~360px a 375px) */
@media (max-width: 380px) {
  .top-notice-bar {
    padding: 7px 8px;
  }

  .top-notice-text {
    font-size: 0.75rem; /* 12px para garantir 2 linhas nos menores aparelhos */
    line-height: 1.28;
    max-width: 320px;
  }

  .live-count-number,
  .live-count-label {
    font-size: 0.9rem;
  }
}
