/* === Hero === */

.movie-detail__hero {
  width: 100%;
  height: 55vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

@media (min-width: 64rem) {
  .movie-detail__hero {
    height: 70vh;
  }
}

.movie-detail__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 25%, rgba(1, 2, 4, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

@media (min-width: 40rem) {
  .movie-detail__hero-overlay {
    padding: 1.25rem 1.875rem 1.875rem 1.875rem;
  }
}

/* Bas du hero : infos à gauche, boutons à droite */
.movie-detail__hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.movie-detail__hero-bottom {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

@media (min-width: 40rem) {
  .movie-detail__hero-bottom {
    gap: 1.25rem;
  }
}

/* Vignette de l'affiche — cachée sur très petit mobile */
.movie-detail__thumb {
  display: none;
}

@media (min-width: 30rem) {
  .movie-detail__thumb {
    display: block;
    width: 3.75rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    object-fit: cover;
  }
}

@media (min-width: 40rem) {
  .movie-detail__thumb {
    width: 5rem;
  }
}

.movie-detail__hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 40rem) {
  .movie-detail__hero-info {
    gap: 0.375rem;
  }
}

.movie-detail__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mn-text-white);
  font-family: var(--ff-sans);
  margin: 0;
}

@media (min-width: 40rem) {
  .movie-detail__title {
    font-size: 1.8rem;
  }
}

.movie-detail__by {
  font-size: 0.8rem;
  color: var(--mn-text-secondary);
  font-family: var(--ff-sans);
  margin: 0;
}

@media (min-width: 40rem) {
  .movie-detail__by {
    font-size: 0.88rem;
  }
}

.movie-detail__meta {
  font-size: 0.75rem;
  color: var(--mn-text-secondary);
  text-transform: uppercase;
  font-family: var(--ff-sans);
  letter-spacing: 0.06em;
  margin: 0;
}

.movie-detail__badges {
  display: flex;
  gap: 0.375rem;
}

.movie-detail__badge {
  height: 1rem;
  width: auto;
}

/* Colonne d'actions en bas à droite */
.movie-detail__hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 40rem) {
  .movie-detail__hero-actions {
    gap: 0.875rem;
  }
}

/* Bouton play centré en absolu */
.movie-detail__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.125rem;
  height: 3.125rem;
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  padding-left: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (min-width: 40rem) {
  .movie-detail__play {
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }
}

.movie-detail__play:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Bouton "Voir la bande-annonce" */
.movie-detail__trailer-btn {
  background: transparent;
  border: 1px solid var(--mn-accent);
  color: var(--mn-text-white);
  padding: 0.375rem 0.875rem;
  border-radius: 1.875rem;
  font-size: 0.75rem;
  font-family: var(--ff-sans);
  white-space: nowrap;
  cursor: pointer;
}

@media (min-width: 40rem) {
  .movie-detail__trailer-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
}

.movie-detail__heart {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  cursor: default;
}

/* === Corps === */

.movie-detail__body {
  max-width: 53.75rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem 1rem;
}

@media (min-width: 40rem) {
  .movie-detail__body {
    padding: 2.25rem 1.875rem 3.75rem 1.875rem;
  }
}

.movie-detail__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

@media (min-width: 40rem) {
  .movie-detail__top-bar {
    margin-bottom: 1.75rem;
  }
}

.movie-detail__tab {
  font-size: 0.9rem;
  font-family: var(--ff-sans);
  padding-bottom: 0.625rem;
  cursor: default;
}

.movie-detail__tab--active {
  color: var(--mn-accent);
  border-bottom: 2px solid var(--mn-accent);
}

.movie-detail__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
}

.movie-detail__share-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mn-text-secondary);
  font-family: var(--ff-sans);
  text-transform: uppercase;
}

.movie-detail__share-icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.movie-detail__synopsis {
  color: var(--mn-text-primary);
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 2.25rem 0;
}

.movie-detail__provider {
  margin-top: 0.625rem;
}

.movie-detail__provider-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mn-text-secondary);
  font-family: var(--ff-sans);
  margin: 0 0 0.875rem 0;
}

.movie-detail__provider-logo {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
}
