/* =========================================================
   PAGE GÉNÉRALE
   ========================================================= */

body {
  margin: 0;
  background: black;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* =========================================================
   TITRE DE LA PAGE
   ========================================================= */

.titre-oeuvre-centre {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.titre-oeuvre-centre .titre-principal,
.titre-oeuvre-centre .titre-genre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.titre-oeuvre-centre .titre-genre {
  margin-top: 40px;
  margin-bottom: 40px;
}


/* =========================================================
   ENSEMBLE DU LECTEUR
   ========================================================= */

.video-wrapper {
  position: relative;
  left: -20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  max-width: 100%;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}


/* =========================================================
   CONTRÔLES DU LECTEUR
   ========================================================= */

#controls-container {
  width: 100%;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  gap: 20px;

  margin: 20px auto;

  text-align: center;

  position: relative;
  z-index: 100;
}

#controls-container button {
  font-size: 24px;
  padding: 10px 20px;
  margin: 0;

  cursor: pointer;

  background: #444;
  color: white;

  border: none;
  border-radius: 8px;

  transition: background 0.3s;
}

#controls-container button:hover {
  background: #888;
}


/* =========================================================
   MENU DES FILMS
   ========================================================= */

.films-dropdown {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  position: relative;
  z-index: 1003 !important;
}

#video-dropdown {
  z-index: 1004 !important;
}


/* =========================================================
   TITRE DU FILM
   ========================================================= */

.film-current-title,
#current-film-title {
  margin-left: auto;
  margin-right: auto;

  text-align: center;

  z-index: 1 !important;
}


/* =========================================================
   VIDÉO — SCÈNE AGRANDIE
   ========================================================= */

video {
  display: block;

  width: 100%;
  max-width: 1650px;
  height: auto;

  margin: 0 auto 20px;
}


/* =========================================================
   TEXTE SOUS LA VIDÉO
   ========================================================= */

.info-text {
  margin: 10px auto;

  text-align: center;

  font-size: 16px;
  color: #ccc;
}


/* =========================================================
   TITRES DES FILMS
   ========================================================= */

.titles {
  width: 100%;
  max-width: 1250px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  gap: 10px;

  margin: 20px auto;

  text-align: center;
}

.title {
  cursor: pointer;

  padding: 8px 16px;

  background: #444;
  color: white;

  border-radius: 5px;

  transition: background 0.3s;
}

.title:hover {
  background: #888;
}


/* =========================================================
   MENU PRINCIPAL
   ========================================================= */

.menu-button {
  display: flex;
  justify-content: center;

  width: fit-content;

  margin: 0 auto;

  position: relative;
  z-index: 200;
}

#menu-btn {
  font-size: 20px;

  padding: 10px 20px;

  background: #444;
  color: white;

  border: none;
  border-radius: 6px;

  cursor: pointer;
}

#menu-btn:hover {
  background: #888;
}


/* =========================================================
   MENU DÉROULANT
   ========================================================= */

.menu-dropdown {
  position: absolute;

  top: 100%;
  right: 0;

  margin: 0;
  padding: 0;

  background: #222;

  list-style: none;

  border-radius: 6px;

  display: none;

  z-index: 500;
}

.menu-dropdown li {
  padding: 10px 20px;
  text-align: right;
}

.menu-dropdown li a {
  display: block;

  color: white;

  text-decoration: none;
}

.menu-dropdown li a:hover {
  background: #444;
}

.menu-dropdown.show {
  display: block;
}


/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 768px) {
  .video-wrapper {
    left: 0;
  }

  video {
    width: 100%;
    max-width: 100%;
  }

  .titles {
    max-width: 100%;
  }
}