/* ==========================================================================
   STREAMPIX BROADCAST MICRO-COMMERCIAL BUMPER (10s a cada 5 min)
   Saída suave do QR Code → Gradiente brilhante no canto inferior direito →
   Ícone → "STREAMPIX EM BREVE!" saindo de trás do ícone →
   "APENAS X DIAS, X HORAS, X MINUTOS E X SEGUNDOS PARA COMEÇAR A RESENHA. 🔥"
   ========================================================================== */

/* Transições do QR Code (saindo caindo suavemente / voltando) */
.sp-qr-dropping-out {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(56px) scale(0.9) rotate(-1.8deg) !important;
  filter: blur(3px) !important;
  transition: transform 560ms cubic-bezier(0.4, 0, 0.2, 1), opacity 460ms ease, filter 460ms ease !important;
  pointer-events: none !important;
}

.sp-qr-returning-in {
  animation: spQrReturnRise 580ms cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

@keyframes spQrReturnRise {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.93);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Container do Microcomercial (sobreposto no mesmo palco do QR ou no canto inferior direito) */
.sp-promo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 30;
  padding: 10px;
}

.sp-promo-wrap[hidden] {
  display: none !important;
}

.sp-promo-wrap.is-corner-mode {
  place-items: end;
  padding: 28px 30px;
}

/* Card Broadcast Microcomercial */
.sp-promo-card {
  position: relative;
  width: min(100%, 348px);
  min-height: 222px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(6, 13, 30, 0.96) 0%, rgba(10, 22, 50, 0.95) 55%, rgba(12, 34, 78, 0.96) 100%);
  border: 1.5px solid rgba(86, 246, 255, 0.42);
  box-shadow:
    0 24px 54px rgba(2, 6, 23, 0.65),
    0 0 32px rgba(20, 211, 224, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  opacity: 0;
  transform: translateY(42px) scale(0.92);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
  -webkit-font-smoothing: antialiased;
}

/* Compacto para prévia menor dentro do painel do app */
.sp-promo-wrap.is-compact .sp-promo-card {
  width: min(100%, 312px);
  min-height: 206px;
  padding: 14px 15px 12px;
  border-radius: 17px;
}

/* Fase entrada de baixo para cima */
.sp-promo-card.phase-glow-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Fase saída suave após 10s */
.sp-promo-card.phase-exit {
  opacity: 0 !important;
  transform: translateY(34px) scale(0.93) !important;
  filter: blur(2px);
  transition: transform 560ms cubic-bezier(0.4, 0, 0.2, 1), opacity 480ms ease, filter 480ms ease !important;
}

/* ==========================================================================
   GRADIENTE BRILHANTE NO CANTO INFERIOR DIREITO + ARCOS DA ARTE STREAMPIX
   ========================================================================== */
.sp-promo-corner-glow {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 68% 68%,
    rgba(86, 246, 255, 0.92) 0%,
    rgba(59, 130, 246, 0.56) 36%,
    rgba(20, 211, 224, 0.18) 62%,
    transparent 76%
  );
  filter: blur(16px);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 720ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.sp-promo-card.phase-glow-in .sp-promo-corner-glow {
  opacity: 1;
  transform: scale(1);
  animation: spCornerGlowPulse 2.6s ease-in-out 0.6s infinite;
}

@keyframes spCornerGlowPulse {
  0%, 100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

/* Arcos geométricos inspirados diretamente na arte oficial anexada */
.sp-promo-arc-outer,
.sp-promo-arc-inner {
  position: absolute;
  right: -46px;
  bottom: -46px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: scale(0.55) rotate(-18deg);
  transition: opacity 700ms ease 140ms, transform 850ms cubic-bezier(0.22, 1, 0.36, 1) 140ms;
}

.sp-promo-arc-outer {
  width: 144px;
  height: 144px;
  border: 14px solid rgba(90, 155, 255, 0.38);
}

.sp-promo-arc-inner {
  width: 108px;
  height: 108px;
  right: -34px;
  bottom: -34px;
  border: 12px solid rgba(86, 246, 255, 0.58);
  box-shadow: 0 0 22px rgba(86, 246, 255, 0.45);
}

.sp-promo-card.phase-glow-in .sp-promo-arc-outer,
.sp-promo-card.phase-glow-in .sp-promo-arc-inner {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Marca d'água gigante sutil no fundo (estilo arte anexada) */
.sp-promo-bg-watermark {
  position: absolute;
  left: -18px;
  bottom: -20px;
  width: 138px;
  height: 138px;
  opacity: 0.08;
  filter: saturate(1.4) brightness(1.3);
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}

/* Varredura de brilho diagonal (sheen cinematográfico) */
.sp-promo-sheen {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 2;
}

.sp-promo-card.phase-title-reveal .sp-promo-sheen {
  animation: spPromoSheen 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes spPromoSheen {
  0% { transform: translateX(-85%); }
  100% { transform: translateX(95%); }
}

/* ==========================================================================
   TOPO: SELO DE AVISO / MICROCOMERCIAL
   ========================================================================== */
.sp-promo-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 400ms ease 180ms, transform 420ms ease 180ms;
}

.sp-promo-card.phase-glow-in .sp-promo-top {
  opacity: 1;
  transform: translateY(0);
}

.sp-promo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(86, 246, 255, 0.14);
  border: 1px solid rgba(86, 246, 255, 0.36);
  color: #7df9ff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-promo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56f6ff;
  box-shadow: 0 0 8px #56f6ff;
  animation: spPromoDotBlink 1.1s ease-in-out infinite;
}

@keyframes spPromoDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.sp-promo-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.78);
}

/* ==========================================================================
   PALCO CENTRAL: ÍCONE BRILHANDO → "STREAMPIX EM BREVE!" SAINDO DE TRÁS DELE
   ========================================================================== */
.sp-promo-hero {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
}

.sp-promo-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/* Ícone aparece primeiro no centro, brilha, depois abre espaço deslizando */
.sp-promo-icon-badge {
  position: relative;
  z-index: 6;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(16, 40, 84, 0.96), rgba(7, 17, 40, 0.98));
  border: 1.5px solid rgba(86, 246, 255, 0.65);
  box-shadow:
    0 0 0 0 rgba(86, 246, 255, 0.55),
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(86, 246, 255, 0.42);
  opacity: 0;
  transform: scale(0.35) rotate(-14deg);
  transition:
    opacity 460ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 500ms ease;
}

.sp-promo-icon-badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(86, 246, 255, 0.85));
}

.sp-promo-icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px solid rgba(86, 246, 255, 0.72);
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
}

.sp-promo-card.phase-icon-in .sp-promo-icon-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.sp-promo-card.phase-icon-in .sp-promo-icon-ring {
  animation: spIconShockwave 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spIconShockwave {
  0% { opacity: 0.95; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1.52); }
}

/* Texto "STREAMPIX EM BREVE!" emerge literalmente de trás do ícone */
.sp-promo-title-mask {
  position: relative;
  z-index: 4;
  overflow: hidden;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transition:
    max-width 680ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease 100ms;
}

.sp-promo-card.phase-title-reveal .sp-promo-title-mask {
  max-width: 245px;
  margin-left: 12px;
  opacity: 1;
}

.sp-promo-title-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  white-space: nowrap;
  transform: translateX(-108%);
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-promo-card.phase-title-reveal .sp-promo-title-inner {
  transform: translateX(0);
}

.sp-promo-headline {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #ffffff 0%, #8ff8ff 52%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(86, 246, 255, 0.32));
}

.sp-promo-wrap.is-compact .sp-promo-headline {
  font-size: 16.5px;
}

.sp-promo-kicker {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

/* ==========================================================================
   CONTAGEM REGRESSIVA DINÂMICA ("APENAS X DIAS, X HORAS... RESENHA. 🔥")
   ========================================================================== */
.sp-promo-countdown-box {
  position: relative;
  z-index: 4;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(6, 14, 32, 0.68);
  border: 1px solid rgba(90, 155, 255, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 520ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-promo-card.phase-countdown-in .sp-promo-countdown-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sp-promo-copy {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.sp-promo-wrap.is-compact .sp-promo-copy {
  font-size: 11px;
}

.sp-promo-num {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(86, 246, 255, 0.22), rgba(59, 130, 246, 0.28));
  border: 1px solid rgba(86, 246, 255, 0.38);
  color: #7df9ff;
  font-weight: 900;
}

.sp-promo-fire {
  display: inline-block;
  margin-left: 2px;
  filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.85));
  animation: spFireFlicker 0.9s ease-in-out infinite alternate;
}

@keyframes spFireFlicker {
  0% { transform: scale(1) rotate(-4deg); }
  100% { transform: scale(1.16) rotate(4deg); }
}

/* ==========================================================================
   RODAPÉ DO MICROCOMERCIAL: BARRA DE PROGRESSO 10s + ASSINATURA
   ========================================================================== */
.sp-promo-foot {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 420ms ease 240ms;
}

.sp-promo-card.phase-glow-in .sp-promo-foot {
  opacity: 1;
}

.sp-promo-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.85);
}

.sp-promo-foot-row strong {
  color: #56f6ff;
  font-weight: 800;
}

.sp-promo-progress-track {
  width: 100%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.sp-promo-progress-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #56f6ff 0%, #3b82f6 65%, #a855f7 100%);
  box-shadow: 0 0 10px rgba(86, 246, 255, 0.7);
  transform-origin: left center;
  transform: scaleX(0);
}

.sp-promo-card.phase-glow-in .sp-promo-progress-fill {
  animation: spPromoBarFill var(--sp-promo-duration, 10s) linear forwards;
}

@keyframes spPromoBarFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
