.hello-child-product-video-modal[hidden] {
  display: none;
}

.hello-child-product-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2vw, 32px);
}

.hello-child-product-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.86);
  backdrop-filter: blur(3px);
}

.hello-child-product-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
}

.hello-child-product-video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hello-child-product-video-modal.is-portrait .hello-child-product-video-modal__dialog {
  width: min(92vw, 540px);
}

.hello-child-product-video-modal.is-portrait .hello-child-product-video-modal__frame-wrap {
  aspect-ratio: 9 / 16;
  max-height: 88vh;
}

.hello-child-product-video-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hello-child-product-video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hello-child-product-video-modal__close:hover,
.hello-child-product-video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.04);
}

body.hello-child-product-video-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .hello-child-product-video-modal {
    padding: 12px;
  }

  .hello-child-product-video-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .hello-child-product-video-modal__frame-wrap {
    border-radius: 14px;
  }
}
