/* ============================================================
   Video Section
   ============================================================ */

video-section {
  display: block;
}

.video-section {
  padding: 100px 0;
  background-color: #f9f8fe;
}

.video-section > .container {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---- Title ---- */

.video-section__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.video-section__eyebrow {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background-color: rgba(255, 53, 90, 0.46);
  border: 0.7px solid #ff355a;
  font-family: 'Dotties Vanilla', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #f8f8fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-section__title {
  font-family: 'DottiesVanillaExtraBold', sans-serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: -1.8px;
  color: #fff;
  margin: 0;
  text-align: center;
  max-width: 853px;
}

/* ---- Player wrapper ---- */

.video-section__player {
  position: relative;
  width: 100%;
  max-width: 902px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

/* ---- Preview (thumbnail + play) ---- */

.video-section__preview {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-section__preview.is-hidden {
  display: none;
}

.video-section__thumbnail {
  display: block;
  width: 100%;
  height: auto;
}

.video-section__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  transition: transform 0.2s ease;
}

.video-section__preview:hover .video-section__play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Neutraliza o estilo global de button:hover/:focus do tema (theme-overrides) */
.video-section__play-btn:hover,
.video-section__play-btn:focus {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
}

/* ---- Iframe ---- */

.video-section__iframe-wrapper {
  display: none;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-section__iframe-wrapper.is-playing {
  display: block;
}

.video-section__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 992px) {
  .video-section {
    padding: 60px 0;
  }

  .video-section__title {
    font-size: 28px;
  }

  .video-section__play-btn svg {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .video-section__title {
    font-size: 22px;
  }

  .video-section__play-btn svg {
    width: 36px;
    height: 36px;
  }

  .video-section__player {
    border-radius: 10px;
  }
}

/* ============================================================
   Variante dark framed (card escuro com blob decorativo)
   ============================================================ */

.video-section--dark {
  position: relative;
  background-color: transparent;
  padding: 101px 0 95px;
  overflow: hidden;
}

.video-section__bg {
  position: absolute;
  left: 50%;
  top: 83px;
  transform: translateX(-50%);
  width: 1475px;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.video-section--dark > .container {
  position: relative;
  gap: 60px;
}

.video-section--dark .video-section__player {
  max-width: 1160px;
  aspect-ratio: 1160 / 653;
  background: #16181b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 33px;
  box-shadow: 0 36px 86px -9px rgba(0, 0, 0, 0.12);
  padding: 0;
  overflow: visible;
}

.video-section--dark .video-section__preview,
.video-section--dark .video-section__thumbnail {
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
}

.video-section--dark .video-section__thumbnail {
  object-fit: cover;
}

.video-section--dark .video-section__thumbnail {
  opacity: 0.58;
}

.video-section--dark .video-section__iframe-wrapper {
  height: 100%;
  padding-bottom: 0;
  border-radius: 33px;
  overflow: hidden;
}

.video-section--dark .video-section__play-btn svg {
  width: 111px;
  height: 123px;
}

/* Fallback para navegadores sem aspect-ratio (iOS < 15):
   sem ele o player colapsa para altura 0 ao abrir o vídeo */
@supports not (aspect-ratio: 16 / 9) {
  .video-section--dark .video-section__player {
    height: auto;
  }

  .video-section--dark .video-section__iframe-wrapper.is-playing {
    height: auto;
    padding-bottom: 56.25%;
  }
}

.video-section__stars {
  position: absolute;
  width: 213px;
  height: 52px;
  display: block;
  pointer-events: none;
  z-index: 2;
}

.video-section__stars rect {
  fill: #fff;
}

.video-section__stars polygon {
  fill: #ff355a;
}

.video-section__stars--top {
  right: -50px;
  top: -35px;
}

.video-section__stars--bottom {
  left: -95px;
  bottom: 95px;
}

@media (max-width: 992px) {
  .video-section--dark {
    padding: 72px 0 80px;
  }

  .video-section--dark > .container {
    gap: 96px;
  }

  .video-section__bg {
    top: 146px;
    width: 860px;
  }

  .video-section__title {
    font-size: 34px;
    line-height: 44px;
    letter-spacing: -1.2px;
  }

  .video-section--dark .video-section__player {
    border-radius: 20px;
    overflow: visible;
  }

  .video-section--dark .video-section__preview,
  .video-section--dark .video-section__thumbnail,
  .video-section--dark .video-section__iframe-wrapper {
    border-radius: 20px;
  }

  .video-section--dark .video-section__play-btn svg {
    width: 64px;
    height: 71px;
  }

  .video-section__stars {
    width: 142px;
    height: 35px;
  }

  .video-section__stars--top {
    right: -10px;
    top: -22px;
  }

  .video-section__stars--bottom {
    left: -10px;
    bottom: -18px;
  }
}

@media (max-width: 480px) {
  .video-section--dark {
    padding: 56px 0 64px;
  }

  .video-section--dark > .container {
    gap: 56px;
  }

  .video-section__bg {
    top: 154px;
    width: 680px;
  }

  .video-section__title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -1px;
  }

  .video-section__stars {
    width: 112px;
    height: 27px;
  }
}
