.attribution {
  position: fixed;
  right: 10px;
  bottom: 10px;
  color: #f5e0dc;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1000;
}
.movies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.movie-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.movie-card {
  position: relative;
  overflow: hidden;
  margin: 10px;
  transition: 0.2s;
  cursor: pointer;
  flex: 0 0 auto;
}

.movie-card img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 20px;
}

.movie-card:hover {
  scale: 110%;
  z-index: 2;
}

.movie-card:after {
  position: absolute;
  content: '';
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--bs-body-color);
  left: 0;
  transform: scale(0);
  transition: all 0.3s;
}

.movie-card:hover:after {
  transform: scale(1);
}

.movie-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  border-bottom-left-radius: 19px;
  border-bottom-right-radius: 19px;
  pointer-events: none;
}

.movie-card:hover .movie-title-overlay {
  opacity: 1;
}

.movie-title-overlay span {
  display: block;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.movie-card .movie-rating {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 12px;
}
.movie-card .release-date {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 576px) {
  .movie-card img {
    width: 130px;
  }
}
