/* Ad Spotlight & High-Conversion CRO Layer (SoftGM Theme) */

/* Top / Hero Spotlight Ribbon */
.sgm-ad-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--text-main);
  font-size: 0.9rem;
}
.sgm-ad-ribbon-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.sgm-ad-ribbon-cta {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--saffron);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 0.84rem;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

/* Homepage Compact Interactive Karaoke Demo Card (visible in Ad Spotlight mode) */
.sgm-home-ad-demo {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.12);
}
.sgm-home-ad-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sgm-home-ad-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--saffron-deep);
  background: var(--saffron-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.sgm-home-ad-demo .studio-karaoke-box {
  font-size: 0.96rem;
  line-height: 2;
  color: var(--text-main);
}

/* Friction Reducers below CTA on Landing */
.lp-friction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.lp-friction-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Attention Badge inside Live Demo Card */
.lp-demo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  font-size: 0.78rem;
  font-weight: 900;
}
html:not([data-theme="light"]) .lp-demo-live-pill {
  color: #34d399;
}

/* Ad Spotlight Glow Decorations (when body.sgm-ad-spotlight or .pulse-ad-mode is active) */
body.sgm-ad-spotlight .lp-demo.sandbox-card,
body.pulse-ad-mode .lp-demo.sandbox-card {
  border-color: var(--saffron) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 18px 42px rgba(11, 26, 63, 0.14) !important;
}

body.sgm-ad-spotlight #ai-audio-fab-btn,
body.pulse-ad-mode #ai-audio-fab-btn {
  animation: sgmAdPulseRing 2.1s infinite;
}

@keyframes sgmAdPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Pulsing Unmute / Start Sound Banner inside Floating Audio Player */
.sgm-ad-unmute-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 0 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0b1a3f;
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  animation: sgmAdPulseRing 2s infinite;
  transition: transform 0.15s ease;
}
.sgm-ad-unmute-btn:hover {
  transform: translateY(-1px);
}

/* Sticky Mobile CRO Bar */
.sgm-ad-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: color-mix(in srgb, var(--bg-dark) 95%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-hover);
  padding: 10px 14px;
  display: none;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(6, 14, 36, 0.14);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sgm-ad-sticky-bar.is-visible {
  transform: translateY(0);
}
.sgm-ad-sticky-bar .btn {
  flex: 1;
  padding: 10px 10px;
  font-size: 0.86rem;
  justify-content: center;
}

@media (max-width: 860px) {
  .sgm-ad-sticky-bar {
    display: flex;
  }
  body.has-sgm-sticky-bar .ai-audio-floating-player {
    bottom: 72px !important;
  }
}

