/* Pop-up Trailer Modal Styles */

.popup-trailer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.popup-trailer-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  animation: scaleIn 0.3s ease-out forwards;
}

.exit-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.2s ease;
}

.exit-modal-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

@keyframes scaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#popup-trailer-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

#popup-trailer-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Close button */
.popup-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
}

.popup-close-btn:hover {
  transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 768px) {
  .popup-trailer-content {
    width: 95%;
  }
}

/* Overlay click area */
.popup-overlay-click {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
