/* ── Hero VSL Component ─────────────────────────────────────
   Uso: <div id="hero-vsl"></div> + <script src="js/hero-vsl.js" defer>
──────────────────────────────────────────────────────────── */

.hvsl-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Player ─────────────────────────────────────────────── */
.hvsl-player {
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  padding-bottom: 56.25%; /* fallback 16:9 */
  height: 0;
}

@supports (aspect-ratio: 16/9) {
  .hvsl-player {
    padding-bottom: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

.hvsl-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hvsl-player:hover .hvsl-thumb {
  transform: scale(1.04);
}

.hvsl-player::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}

.hvsl-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
  animation: hvslPlayPulse 2.4s ease-in-out infinite;
}

.hvsl-play-btn:hover {
  animation: none;
  transform: translate(-50%, -50%) scale(1.12);
}

@keyframes hvslPlayPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.07); }
}

.hvsl-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 3;
}

/* ── Social proof strip ─────────────────────────────────── */
.hvsl-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ── Avatares: ocultos até scroll ───────────────────────── */
.hvsl-avatar,
.hvsl-avatar-more {
  opacity: 0;
}

.hvsl-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hvsl-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -14px;
  position: relative;
}

.hvsl-avatar:first-child { margin-left: 0; }

/* Animação disparada pelo IntersectionObserver (.is-visible) — uma vez só */
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(1) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0s    both;
}
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(2) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s  both;
}
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(3) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s  both;
}
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(4) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s  both;
}
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(5) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s  both;
}
.hvsl-wrapper.is-visible .hvsl-avatar:nth-child(6) {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s  both;
}
.hvsl-wrapper.is-visible .hvsl-avatar-more {
  animation: hvslAvatarIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s  both;
}

@keyframes hvslAvatarIn {
  0%   { opacity: 0; transform: scale(0.55) translateY(10px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.hvsl-avatar-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -14px;
  background: linear-gradient(135deg, #ff7502, #ffb366);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

/* ── Estrelas: ocultas até scroll ───────────────────────── */
.hvsl-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
}

.hvsl-wrapper.is-visible .hvsl-stars {
  animation: hvslStarIn 0.7s ease-out 0.72s both;
}

@keyframes hvslStarIn {
  0%   { opacity: 0; filter: drop-shadow(0 0 0   rgba(255, 183, 0, 0)); }
  60%  { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 183, 0, 0.95)); }
  100% { opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 183, 0, 0.4)); }
}

/* ── Rating text ────────────────────────────────────────── */
.hvsl-rating {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hvsl-count {
  margin: 0;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  line-height: 1.3;
}

.hvsl-count strong { color: #222; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hvsl-wrapper { margin-top: 28px; margin-bottom: 28px; }
  .hvsl-proof { gap: 10px; padding: 10px 12px; }
  .hvsl-count { font-size: 11px; }
}
