.vc-creator-play-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.vc-creator-play-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vc-creator-play-popup__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.vc-creator-play-popup-wrap {
  width: 100%;
  max-width: 380px;
  height: min(92vh, 860px);
  margin: 0 auto;
}

.vc-creator-play-popup .vc-creator-play-view-section {
  display: block !important;
  width: 100%;
  height: 100%;
}

.vc-creator-play-popup .vc-creator-play-view-content {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.vc-creator-play-popup .vc-creator-play-swiper,
.vc-creator-play-popup .vc-creator-play-swiper .swiper-wrapper,
.vc-creator-play-popup .vc-creator-play-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.vc-creator-play-popup .vc-creator-play-view-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 14px 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.28) 40%,
        rgba(0, 0, 0, 0) 100%
    );
  pointer-events: none;
}

.vc-creator-play-popup .vc-creator-play-back-btn,
.vc-creator-play-popup .vc-creator-play-header-views {
  pointer-events: auto;
}

.vc-creator-play-popup .vc-creator-play-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-creator-play-popup .vc-creator-play-view-loader {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

body.vc-creator-play-popup-open {
  overflow: hidden;
}

/* =========================
   Like Hearts Burst Animation
========================= */

.vc-creator-play-popup-like-burst {
    position: absolute;
    inset: 0;
    z-index: 34;
    pointer-events: none;
    overflow: hidden;
}

.vc-creator-play-popup-like-heart {
    --x: 0px;
    --y: 0px;
    --drift: 0px;
    --scale: 1;
    --dur: 1200ms;

    position: absolute;
    left: 50%;
    top: var(--vc-heart-start-top, 58%);
    width: 26px;
    height: 26px;
    margin-left: -13px;
    margin-top: -13px;
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.6);
    animation: vcproductHeartFloat var(--dur) ease-out forwards;
    will-change: transform, opacity;
}

.vc-creator-play-popup-like-heart::before {
    content: "❤";
    display: block;
    width: 100%;
    height: 100%;
    font-size: 26px;
    line-height: 1;
    text-align: center;
    color: #ff4d7a;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transform: scale(var(--scale));
}

.vc-creator-play-popup-like-heart.is-alt::before {
    color: #ff7aa2;
}

.vc-creator-play-popup-like-heart.is-soft::before {
    color: #ff9fbd;
}

@keyframes vcproductHeartFloat {
    0% {
        opacity: 0;
        transform: translate(var(--x), 20px) scale(0.45);
    }
    12% {
        opacity: 1;
        transform: translate(calc(var(--x) + (var(--drift) * 0.15)), -10px) scale(1);
    }
    45% {
        opacity: 1;
        transform: translate(calc(var(--x) + (var(--drift) * 0.55)), -120px) scale(1.06);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--x) + var(--drift)), -230px) scale(0.8);
    }
}

@media (max-width: 767px) {
  .vc-creator-play-popup__dialog {
    padding: 0;
  }

  .vc-creator-play-popup-wrap {
    max-width: 100%;
    height: 100vh;
  }

  .vc-creator-play-popup .vc-creator-play-view-content {
    border-radius: 0;
  }

  .vc-creator-play-popup .vc-creator-play-view-header {
    padding: 12px 12px 0;
  }
}