.sxp-video-modal-open {
  overflow: hidden !important;
}

.sxp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  background:
    radial-gradient(circle at 50% 42%, rgba(19, 92, 249, 0.24), transparent 36%),
    rgba(0, 0, 0, 0.94);
}

.sxp-video-modal.is-open {
  display: flex;
}

.sxp-video-modal__dialog {
  position: relative;
  width: min(94vw, 1440px);
  max-height: 86dvh;
}

.sxp-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 86dvh;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.sxp-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.sxp-video-modal__close {
  position: fixed;
  z-index: 2;
  top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px));
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.sxp-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 690px) {
  .sxp-video-modal {
    padding: 12px;
  }

  .sxp-video-modal__dialog {
    width: 100%;
    max-height: 92dvh;
  }

  .sxp-video-modal__frame {
    border-radius: 12px;
    max-height: 82dvh;
  }

  .sxp-video-modal__close {
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 10px));
  }
}
