/* Video Popup Component */
.rd-video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rd-video-popup--open {
  opacity: 1;
  visibility: visible;
}

.rd-video-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.rd-video-popup__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rd-video-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
  color: var(--color-black-txt);
  padding: 0;
}

.rd-video-popup__close:hover {
  background-color: var(--color-white);
  transform: scale(1.1);
}

.rd-video-popup__close:focus {
  outline: 2px solid var(--color-brand-orange);
  outline-offset: 2px;
}

.rd-video-popup__close svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.rd-video-popup__content {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.rd-video-popup__content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rd-video-popup__container {
    width: 95%;
    max-height: 85vh;
  }

  .rd-video-popup__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .rd-video-popup__close svg {
    width: 18px;
    height: 18px;
  }
}

