/* Modal Base */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hide by default */
.hidden {
  display: none;
}

/* Modal Content Box */
.modal-content {
  position: relative;
  background-color: #1c1c1c;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}

/* Close button container*/
.close-btn-container {
  display: flex;
  justify-content: space-between;
}

/* Close Button */
.close-btn {
  position: relative;
  right: 0.8rem;
  padding: 0px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  box-shadow: none;
}

button.close-btn:hover {
  transform: none;
  background: none !important;
  box-shadow: none;
}

#watch-trailer-btn {
  width: 170px;
}

/* YouTube iframe will fill modal */
#trailer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

iframe {
  height: 500px;
}

@media (max-width: 768px) {
  iframe {
    height: 300px;
  }
}