/* === Mobile Version === */

.movie-list,
.featured-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: 12px;
  scrollbar-width: none;
}

.featured-title {
    color: #7ac9e0;
}

.movie-card {
  display: flex;
  flex-direction: column;
  width: 10rem;
}

.movie-poster {
  position: relative;
  width: 10rem;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e2124;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-info h2 {
  color: white;
  font-size: 18px;
  margin-top: 8px;
  font-weight: 600;
}

.btn-fav {
  position: absolute;
  bottom: 5px;
  right: 0.3rem;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  filter: brightness(1);
}

.btn-fav:hover img {
  filter: brightness(0);
  transition: filter 0.3s ease;
}

/* === Desktop === */
@media (min-width: 1024px) {
  .movie-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    justify-content: flex-start;
  }

  .featured-list {
    display: flex;
    flex-wrap: wrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 10px 20px;
    justify-content: flex-start;
  }

  .featured-title {
    color: #7ac9e0;
    font-size: 29px;
    font-weight: bold;
    padding-left: 0;
    padding-left: 20px;
    margin-bottom: 0px;
  }

  .movie-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    width: 320px;
    height: auto;
    font-family: sans-serif;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .movie-card:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease box-shadow 0.5s ease;
  }

  .movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
  }

  .btn-fav {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    filter: brightness(1);
  }

  .btn-fav:hover img {
    filter: brightness(0);
    transition: filter 0.3s ease;
  }

  .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .movie-info h2 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
  }
}
