/* =========================================================
   Video Popup Overlay
   ========================================================= */

.vp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.vp-overlay.vp-active {
  display: flex;
}

.vp-container {
  position: relative;
  width: 100%;
  max-width: 900px;
}

/* 16:9 responsive wrapper */
.vp-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.vp-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Invisible click blocker over the video */
.vp-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

/* Close button */
.vp-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, transform 0.15s;
  padding: 0;
  line-height: 1;
}

.vp-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.vp-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Clicking outside the video closes it */
.vp-overlay {
  cursor: pointer;
}

.vp-container {
  cursor: default;
}
