.vm-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: vm-fade 0.18s ease;
}

@keyframes vm-fade { from { opacity: 0 } to { opacity: 1 } }

.vm-wrap {
  position: relative;
  width: 100%; max-width: 900px;
}

.vm-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 28px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.12s;
}
.vm-close:hover { color: #fff; }

.vm-ratio {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: vm-scale 0.2s ease;
}

@keyframes vm-scale {
  from { transform: scale(0.96); opacity: 0 }
  to   { transform: scale(1);    opacity: 1 }
}

.vm-ratio iframe {
  width: 100%; height: 100%; border: none; display: block;
}
