.movie-detail-page-container {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  padding: 0 60px;
  width: 100%;
  color: white;
  /* height: calc(100 * var(--vh, 1vh)); */
  animation: fadeInOut 1s ease-in-out;
  /* overflow: hidden; */
}

.movie-detail-page-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.movie-detail-page-content-container {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
  z-index: 2;
}

/* L'intestazione della scheda e' quella unica delle sezioni
   (components/IntestazioneSezione.js, css/intestazione.css): titolo del
   film al posto del nome di sezione, senza ricerca. Le regole del logo e
   del titolo di prima non servono piu'. */
.movie-detail-content-container {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.movie-detail-content {
  width: 100%;
  display: flex;
}

.movie-detail-content .first-content {
  width: 65%;
  display: flex;
  flex-direction: column;
}

.movie-detail-content .second-item {
  width: 35%;
  display: flex;
  justify-content: flex-end;
}

.movie-detail-content .second-item .inner-card {
  display: flex;
  width: 300px;
  flex-direction: column;
}

.movie-detail-content .second-item .card-rating {
  margin-top: 10px;
}

.first-item {
  display: flex;
  margin-bottom: 30px;
  width: 100%;
  justify-content: space-between;
}

.first-item .first {
  font-size: 35px;
  width: 45%;
  font-weight: 600;
}

.first-item .second {
  font-size: 35px;
  width: 100%;
  color: rgba(213, 213, 213, 1);

  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.movie-card-start-icon {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.movie-detail-buttons {
  display: flex;
  width: 100%;
}

.movie-detail-play-button {
  margin-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 28px;
  border: 2.46px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  outline: none;
  text-wrap: nowrap;
  font-size: 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);

  padding-right: 28px;
}

.movie-detail-from-start-button {
  margin-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 28px;
  border: 2.46px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  outline: none;
  white-space: nowrap;
  font-size: 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);

  padding-right: 28px;
}
.movie-detail-more-info-button {
  margin-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: nowrap;
  /* text-wrap: nowrap; */
  padding-left: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  outline: none;
  font-size: 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);

  padding-right: 28px;
}
.movie-detail-button-focused {
  box-shadow: 0 0 0 3px rgba(231, 161, 1, 1) !important;
}

.movie-detail-card-poster {
  height: 400px;
  border-radius: 5px;
  width: 100%;
  background-color: transparent;
}

/* La trama INTEGRALE (23 settembre 2026): sotto la riga dei tasti, prima delle
   foto degli attori; nessun limite di righe, la scheda scorre verso il basso
   (il fuoco porta in vista con scrollIntoView). */
.movie-detail-description {
  color: rgba(213, 213, 213, 1);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 30px;
  white-space: pre-line;
}

.movie-detail-cast {
  padding-top: 50px;

  overflow-x: auto;
  padding-bottom: 50px;

  display: flex;
}

.movie-detail-cast::-webkit-scrollbar {
  display: none;
}

.movie-cast-item {
  display: flex;
  align-items: center;
  margin-right: 30px;
  border: 3px solid transparent;
  flex-direction: column;
  justify-content: center;
}

.movie-cast-item-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.movie-cast-item-name {
  padding-top: 10px;
  white-space: nowrap;
  color: white !important;
  font-size: 32px;
  text-align: center;
}

.card-rating {
  display: grid;
  padding-left: 10px;
  grid-template-columns: repeat(5, 1fr);
}

.movie-no-cast-text {
  color: rgba(213, 213, 213, 1);
  font-size: 35px;
  font-weight: 400;
}

.movie-detail-fav-button {
  margin-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 28px;
  border: 2.46px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  outline: none;
  white-space: nowrap;
  /* text-wrap: nowrap; */
  font-size: 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);

  padding-right: 28px;
}
/* Il cuore (23 settembre 2026): solo l'icona, bianca vuota (fa-regular) o
   rossa piena (fa-solid) nei preferiti; il testo vive nell'aria-label.
   Il pulsante e' quasi quadrato e l'anello del fuoco e' lo stesso degli altri. */
.movie-detail-fav-button {
  padding-left: 20px;
  padding-right: 20px;
}
.movie-detail-fav-button .heart-icon {
  font-size: 18px;
  line-height: 1;
}

.heart-icon .fa-solid {
  color: #e0245e;
}
.heart-icon .fa-regular {
  color: white;
}

.heart-icon i {
  font-size: 28px;
}

.sidebar-container-movie-detail {
  /* Ancorato ai tre puntini dell'intestazione unica, come nelle sezioni
     (.sidebar-container-movie): stesse misure. */
  position: absolute;
  top: 80px;
  right: 0;
  z-index: 9999;
}

/* IL FORMATO DETTO PRIMA (9 ottobre 2026): al posto di Riproduci, nel browser, quando il browser non decodifica il film. Non e' un
   tasto: niente fuoco, niente bordo oro. */
.film-formato-web {
  margin: 0 30px 0 0;
  padding: 12px 24px;
  border: 2.46px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #f0b4a8;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

/* L'AVVISO DELL'AUDIO (9 ottobre 2026, notte): sotto i tasti, nel browser, quando l'audio del film non si sente in questo browser
   (AC3/E-AC3/PCM: su Safari si'; DTS, MP2...). I tasti restano. Non e' un tasto: niente fuoco. */
.film-avviso-audio {
  margin: 14px 0 0 0;
  color: #f3d58a;
  font-size: 20px;
  font-weight: 600;
}

/* LA RIGA "VERSIONE" (decisione 110, D4 a; components/Versioni.js): per prima, come gli altri tasti; il nome della copia non va a capo */
.movie-detail-version-button {
  margin-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 28px;
  padding-right: 28px;
  border: 2.46px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  outline: none;
  white-space: nowrap;
  font-size: 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
}
