.recommandations {
  position: relative;
  margin: 4rem 0;
  padding: 2rem 4rem;
}

.recommandations__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
}

.recommandations__title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.recommandations__show-all {
  color: white;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
}

.recommandations__show-all:hover {
  border-color: #9f9fec;
  color: #9f9fec;
}

.carousel--recommandations {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 3.5rem;
}

.carousel--recommandations::-webkit-scrollbar {
  display: none;
}

.carousel__slide--movie {
  flex: 0 0 250px;
  min-height: 350px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid #36383b;
  transition: all 0.3s ease;
}

.carousel__slide--movie:hover {
  box-shadow: 0 0 20px rgba(159, 159, 236, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: #9f9fec;
}

.movie-card {
  display: none;
}

.carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #9f9fec;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel__button:hover {
  background: #b5b5f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel__button--prev {
  left: 0;
}

.carousel__button--next {
  right: 0;
}

@media (max-width: 768px) {
  .carousel__slide--movie {
    flex: 0 0 200px;
    min-height: 280px;
  }

  .recommandations__title {
    font-size: 1.5rem;
  }

  .carousel--recommandations {
    margin: 0 2rem;
  }
}
