/* Prevent background scroll while overlay open */
html.vdv-lock-scroll,
body.vdv-lock-scroll { overflow: hidden; touch-action: none; }

/* Thumbnail */
.vdv-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;              /* keeps a nice card size */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Flat play icon styling */
.vdv-play {
  display: inline-grid;
  place-items: center;
  width: 88px; height: 88px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.vdv-thumb:hover .vdv-play { transform: scale(1.06); }

/* Overlay */
.vdv-overlay {
  position: fixed;
  inset: 0;
  display: none;             /* JS toggles to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  /* iOS-safe height via --dvh from JS */
  min-height: var(--dvh, 100vh);
}

.vdv-frame {
  position: relative;
  width: min(960px, 100vw);
  margin: 0 12px;
}

.vdv-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #000;
}

/* Close button */
.vdv-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0,0,0,.35);
}