.category-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0.25rem;
}

.category-section__overlay {
  background-color: rgba(1, 2, 4, 0.78);
  padding: 1.875rem 1rem 1.5rem 1rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .category-section__overlay {
    padding: 3.125rem 2.5rem 2.5rem 2.5rem;
  }
}

.category-section__header {
  max-width: 42.5rem;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 40rem) {
  .category-section__header {
    margin-bottom: 2.25rem;
  }
}

.category-section__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mn-text-secondary);
  font-family: var(--ff-sans);
  margin: 0 0 0.5rem 0;
}

@media (min-width: 40rem) {
  .category-section__label {
    font-size: 0.75rem;
    margin: 0 0 0.625rem 0;
  }
}

.category-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mn-accent);
  font-family: var(--ff-sans);
  margin: 0 0 0.75rem 0;
}

@media (min-width: 40rem) {
  .category-section__title {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
  }
}

.category-section__description {
  font-size: 0.88rem;
  color: var(--mn-text-secondary);
  line-height: 1.65;
  font-family: var(--ff-sans);
  margin: 0;
}

/* Rangée de cartes — scroll horizontal sur mobile */
.category-section__movies {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.625rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

@media (min-width: 40rem) {
  .category-section__movies {
    justify-content: center;
    gap: 1rem;
  }
}

.category-section__movies .movie-card {
  flex: 0 0 7.5rem;
  width: 7.5rem;
}

@media (min-width: 40rem) {
  .category-section__movies .movie-card {
    flex: 0 0 9.375rem;
    width: 9.375rem;
  }
}

/* Carte "N programmes disponibles" */
.movie-card--more {
  cursor: pointer;
}

.movie-card__poster--more {
  background-color: var(--mn-bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  aspect-ratio: 2/3;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .movie-card--more:hover .movie-card__poster--more {
    background-color: var(--mn-accent);
  }

  .movie-card--more:hover .movie-card__more-count,
  .movie-card--more:hover .movie-card__more-label {
    color: var(--mn-bg-dark);
  }
}

.movie-card__more-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mn-accent);
  font-family: var(--ff-sans);
  transition: color 0.2s ease;
}

@media (min-width: 40rem) {
  .movie-card__more-count {
    font-size: 2rem;
  }
}

.movie-card__more-label {
  font-size: 0.75rem;
  color: var(--mn-text-secondary);
  font-family: var(--ff-sans);
  text-align: center;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* Bouton "Voir toute la sélection" */
.category-section__footer {
  margin-top: 1.25rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .category-section__footer {
    margin-top: 1.875rem;
  }
}

.category-section__btn {
  background: var(--mn-accent);
  color: var(--mn-bg-dark);
  border: none;
  border-radius: 1.875rem;
  padding: 0.5rem 1.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ff-sans);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
  width: 100%;
}

@media (min-width: 30rem) {
  .category-section__btn {
    width: auto;
    padding: 0.625rem 1.75rem;
    font-size: 0.9rem;
  }
}

.category-section__btn:hover {
  opacity: 0.8;
}
