/* VOD Player Styles - Used for both VOD and Live Stream */
.modal {
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow: hidden;
}

.modal-content {
  background-color: white;
  color: #333;
  border: none;
  width: 90%;
  max-width: 1200px;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.modal h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
}

.modal video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: transparent !important;
  border: none;
  outline: none;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  filter: none !important;
}

#video-attribution {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 20px 20px 20px 0;
  margin: 20px;
  border-radius: 12px;
  max-height: 150px;
  overflow-y: auto;
  direction: rtl;
}

#video-attribution > * {
  direction: ltr;
}

.attribution-title {
  color: #0066cc;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.attribution-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  font-size: 1rem;
  margin-top: 15px;
}

.attribution-item {
  margin-bottom: 10px;
}

.attribution-label {
  color: #666;
  margin-right: 5px;
  font-weight: bold;
  display: block;
}

.attribution-value {
  color: #333;
  display: block;
  margin-top: 3px;
}

.close-button {
  color: #333;
  font-size: 32px;
  opacity: 0.8;
  transition: opacity 0.2s;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  z-index: 10;
}

.close-button:hover {
  opacity: 1;
}

@media (min-width: 1600px) {
  .modal-content {
    max-width: 1600px;
  }
}