/* --- FICHE DÉTAILLÉE DU FILM (Mobile-First en REM) --- */

.movieDetail {
  max-width: 60rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fcfcfc;
  border-radius: 0.5rem;
  font-family: sans-serif;
}

.movieDetail__header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
}

.movieDetail__title {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.movieDetail__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.movieDetail__poster img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

.movieDetail__info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.movieDetail__synopsis {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.25rem;
  border-left: 4px solid #000; 
}

/* --- LECTEUR VIDÉO RESPONSIVE (Ratio 16:9) --- */
.movieDetail__trailer {
  margin-top: 2rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* C'est le ratio exact de 16/9 */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

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

/* --- VERSION DESKTOP (Affiche à gauche, Texte à droite) --- */
@media (min-width: 48rem) {
  .movieDetail__content {
    flex-direction: row; /* Aligne les éléments horizontalement */
    align-items: flex-start;
  }
  
  .movieDetail__poster {
    flex: 0 0 35%; /* L'affiche prend 35% de la largeur */
  }
  
  .movieDetail__info {
    flex: 1; /* Le texte prend tout le reste de l'espace */
  }
}