/* ROBAT TV - Lightbox Styles */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: #292929;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 97, 124, 0.8);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background-color: rgba(0, 97, 124, 1);
  transform: scale(1.1);
}

.lightbox-video {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  background-color: #000000;
}

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

/* Loading state */
.lightbox-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #666666;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    margin: 20px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
  }
  
  .lightbox-video {
    height: 100%;
    padding-bottom: 0;
  }
}

/* Animation keyframes */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxScaleIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}