.exit-video-popup[hidden] {
  display: none !important;
}

.exit-video-popup {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  position: fixed;
  z-index: 9990;
}

.exit-video-popup__backdrop {
  backdrop-filter: blur(10px);
  background: rgba(7, 8, 15, .82);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.exit-video-popup__dialog {
  background: radial-gradient(circle at 88% 8%, rgba(255, 101, 132, .17), transparent 32%), linear-gradient(135deg, #12101a 0%, #211420 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .62), 0 0 42px rgba(255, 101, 132, .14);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  max-height: min(760px, calc(100svh - 32px));
  max-width: 900px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.exit-video-popup__close {
  align-items: center;
  background: rgba(7, 8, 15, .72);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 25px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: background .2s ease, transform .2s ease;
  width: 40px;
  z-index: 4;
}

.exit-video-popup__close:hover {
  background: #b3134f;
  transform: rotate(6deg);
}

.exit-video-popup__media {
  background: #090b12;
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.exit-video-popup__video-link {
  color: #fff;
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.exit-video-popup__video-link::after {
  background: linear-gradient(90deg, transparent 62%, rgba(18, 16, 26, .9) 100%), linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 40%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.exit-video-popup__video {
  filter: blur(3px) brightness(.78) saturate(.9);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.035);
  width: 100%;
}

.exit-video-popup__play {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  display: flex;
  height: 66px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .2s ease, transform .2s ease;
  width: 66px;
  z-index: 2;
}

.exit-video-popup__play svg {
  fill: currentColor;
  height: 28px;
  margin-left: 4px;
  width: 28px;
}

.exit-video-popup__video-link:hover .exit-video-popup__play,
.exit-video-popup__video-link:focus-visible .exit-video-popup__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.exit-video-popup__preview-label {
  background: rgba(7, 8, 15, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  left: 18px;
  letter-spacing: .08em;
  padding: 7px 11px;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.exit-video-popup__content {
  align-self: center;
  padding: clamp(38px, 5vw, 62px) clamp(26px, 4vw, 48px);
  position: relative;
}

.exit-video-popup__eyebrow {
  align-items: center;
  color: #ff8ba5;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.exit-video-popup__eyebrow span {
  background: #ff6584;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff6584;
  height: 7px;
  width: 7px;
}

.exit-video-popup__content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0 0 20px;
  text-wrap: balance;
}

.exit-video-popup__content > p:not(.exit-video-popup__eyebrow, .exit-video-popup__note) {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.58;
  margin: 0 0 28px;
}

.exit-video-popup__cta {
  align-items: center;
  background: linear-gradient(135deg, #ff6584, #ec3f70);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(236, 63, 112, .3);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  letter-spacing: .045em;
  min-height: 50px;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: box-shadow .2s ease, transform .2s ease;
  width: 100%;
}

.exit-video-popup__cta:hover {
  box-shadow: 0 14px 34px rgba(236, 63, 112, .46);
  color: #fff;
  transform: translateY(-2px);
}

.exit-video-popup__cta svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.exit-video-popup__note {
  align-items: center;
  color: rgba(255, 255, 255, .52);
  display: flex;
  font-size: 11px;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 0;
  text-align: center;
}

.exit-video-popup__note span {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 5px;
  color: rgba(255, 255, 255, .8);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 4px;
}

body.exit-video-popup-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .exit-video-popup {
    align-items: flex-end;
    padding: 10px;
  }

  .exit-video-popup__dialog {
    border-radius: 20px;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .exit-video-popup__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .exit-video-popup__video-link::after {
    background: linear-gradient(0deg, rgba(18, 16, 26, .95), transparent 45%);
  }

  .exit-video-popup__content {
    padding: 24px 22px 22px;
    text-align: center;
  }

  .exit-video-popup__eyebrow {
    justify-content: center;
  }

  .exit-video-popup__content h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .exit-video-popup__content > p:not(.exit-video-popup__eyebrow, .exit-video-popup__note) {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .exit-video-popup__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit-video-popup__close,
  .exit-video-popup__cta,
  .exit-video-popup__play {
    transition: none;
  }
}
