  body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin-top: 0;
    margin-bottom: 0;
  }

  .movie-info {
    position: fixed;
    bottom: 120px; /* juste au-dessus de la barre de miniatures */
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 800px); /* max 600px sinon 90% */
    background-color: rgba(0, 0, 0, 0.7); /* fond noir semi-transparent */
    padding: 8px 15px;
    max-width: 90%;
    color: white;
    text-align: center;
    border-radius: 8px;
    z-index: 25;
  }

  .movie-info h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
  }

  .main-image-container {
    overflow-x: hidden; /* empêche scroll horizontal sur la grande image */
    overflow-y: visible; /* conserve scroll vertical si besoin */
    /* touch-action: pan-y;*/ /* autorise uniquement scroll vertical par défaut */
  }

  .container-image {
    max-width: 600px;
    margin: 10px auto;
    position: relative;
    text-align: center;
    padding-bottom: 70px;
  }

  .main-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    /* max-height: 80vh;*/
    max-height: calc(100vh - 185px);
    overflow: hidden;
  }

  .main-image-container img {
    max-width: 100%;
    /* max-height: 80vh;*/
    max-height: calc(100vh - 185px);
    width: auto;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* Flèches */
  .arrow-image {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px; /* Plus petit */
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    cursor: pointer;
    z-index: 20;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    border: 1px solid #FFFFFF; /* Bordure fine rouge */
  }

  .arrow-image.left {
    left: 10px;
  }
  .arrow-image.right {
    right: 10px;
  }


  /* Lien retour au film */
  .back-link {
    position: fixed;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    background-color: rgba(0,0,0,0.6);
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 30;
    font-weight: bold;
  }
  .back-link:hover {
    background-color: rgba(255,0,0,0.8);
  }

  .close-button {
    position: fixed;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0,0,0,0.6);
    border-radius: 8px; 
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    user-select: none;
    z-index: 30;
    transition: background-color 0.3s ease;
  }

  .close-button:hover {
    background-color: rgba(255,0,0,0.8);
  }
  .arrow-image.hover-effect:hover {
    background-color: rgba(255,0,0,0.8);
    border-color: rgba(255, 0, 0, 0.8);
  }

  .arrow-image.active-touch {
    background-color: rgba(255,0,0,0.8) !important;
    border-color: rgba(255, 0, 0, 0.8) !important;
  }
  .thumbnails {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 0 0 5px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    z-index: 40;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.7);
    justify-content: center; /* centrage par défaut */
  }

  .thumbnails a {
    border: 2px solid transparent;
    display: inline-block;
    border-radius: 4px;
  }
  .thumbnails a.active, .thumbnails a:hover {
    border-color: #e00000;
  }
  .thumbnails img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    display: block;
  }
