.video-wrapper {
  position: relative;
  z-index: 1;
}

.video-ad-zone {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;              /* Responsive: scales to viewport */
  max-width: 300px;         /* Desktop: fixed max size */
  aspect-ratio: 6 / 5;      /* Maintain shape */
  z-index: 9999 !important;
  padding: 16px;
  border-radius: 8px;
  pointer-events: auto;
 
}

/* Mobile-specific tweaks */
@media (max-width: 768px) {
  .video-ad-zone {
    width: 95vw;
    max-width: none;
    aspect-ratio: 4 / 3;      /* Slightly taller shape on small screens */
    padding: 12px;
    font-size: 14px;          /* Slightly smaller content */
  }

  .close-ad-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
    top: 6px;
    right: 6px;
  }
}

@media (max-width: 480px) {
  .video-ad-zone {
    width: 98vw;
    padding: 10px;
    border-radius: 6px;
  }

  .close-ad-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* Close button styling */
.close-ad-btn {
  position: absolute;
  top: 24px;
  right: 3px;
  background-color: rgba(255, 0, 0, 0.8);
  border: none;
  color: white;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 10000;
}

.close-ad-btn:hover {
  background-color: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}
