* {
  margin: 0;
  padding: 0;
}
.container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  position: relative;
  height: auto;
  margin: 0 auto;
  background-color: #333;
  padding: 40px 0;
}
.logo {
  width: 100%;
}
.logo, img {
  display: inline-block;
  width: 100%;
}
.container-favorites {
  background-color: #333;
}
.title {
  width: 100%;
}
.film-card__img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}
.film-card__rating {
  background-color: #e0d700;
  border-radius: 1rem;
  position: absolute;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #ffffff;
  margin: 25px;
  margin-left: -50%;
  width: 103px;
  height: 40px;
  font-size: 18px;
}
.film-card__name {
  position: absolute;
  margin-top: 0px;
  margin-left: -50%;
  color: #f31717;
  text-align: center;
  width: 40%;
  height: auto;
  font-size: 1.5em;
} */
.icons__icon {
  color: #ffffff;
}

.set-category {
  padding: 30px;
}
.title-category {
  font-size: 25px;
  margin-bottom: 20px;
  color: rgb(212, 140, 6);
}

/* Стили для страницы "Избранное" */
.favorites-container {
  width: 90%;
  min-height: 140px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.movie-card {
  width: 30%;
  min-height: 190px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  /* padding: 10px; */
  box-sizing: border-box;
  margin: 5px;
  transition: 0.3s;
}
.movie-card:hover {
  transform: scale(0.95);
}

.film-card__info {
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
}

/* Стили для иконки в карточке */
.shop-cart-button {
  color: #ffffff;
  transition: 0.6s;
  transform: scale(1.35);
}

.shop-cart-button.active {
  color: #f31717;
  /* transform: scale(1.5); */
}

/* Карточка с фильмом на странице "Избранное" */
.movie-card {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 20px;
  overflow: hidden;
  background-color: #000000;
  border-radius: 15px;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card .close-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  transform: scale(2);
  transition: 0.3s;
  color: rgb(255, 255, 255);
  cursor: pointer;
}
.close-icon:hover {
  color: #ff0000;
}

.movie-card .movie-name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: rgb(255, 255, 255);
  font-size: 20px;
  font-weight: bold;
}

.card-img {
  object-fit: contain;
  width: auto;
  height: 100%;
}
.heart {
  margin: 0 auto;
  transition: 0.3s;
  transform: scale(1.4);
}
.heart:hover {
  color: rgb(255, 0, 0);
}

.allFilms {
  width: 100%;
  font-size: 25px;
}

/* Стили к иконке роутинга: избранное */
header {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: white;
  border-top: 1px solid #ccc;
  z-index: 100;
}

header a {
  color: #ff0000;
}


/* MovieCard.module.css */
.movieCard {
  margin: 20px;
  position: relative;
  width: 350px; /* ширина карточки */
  height: 500px; /* высота карточки */
  overflow: hidden; /* чтобы изображение не выходило за рамки блока */
  border-radius: 10px; /* радиус скругления углов */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* тень */
  transition: 0.3s;
}
.movieCard:hover {
  transform: scale(1.06);
}

.poster {
  width: 100%; /* ширина изображения равна ширине блока */
  height: 83%; /* высота изображения равна высоте блока */
  object-fit: cover; /* чтобы изображение заполняло весь блок */
  border-radius: 15px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.imdbRating {
  position: absolute;
  background-color: #e0d700;
  width: 80px;
  padding: 5px;
  text-align: center;
  border-radius: 8px;
  font-size: 18px;
  margin-top: 20px; /* чтобы IMDB rating был в 20% от верхней границы */
}

.movieInfo {
  width: 95%;
  margin: 140px 0 25px 0; /* чтобы название фильма и дата выпуска были в 70% от верхней границы */
}

.movieInfo h2 {
  font-size: 24px;
  margin: 0;
}

.movieInfo span {
  font-size: 18px;
  color: #ccc;
}



@media (min-width: 1200px) {
  .container{
    width: 1140px;
  }
}
@media (min-width: 992px) {
  .container{
    width: 720px;
  }
}
@media (min-width: 768px) {
  .container{
    width: 540px;
  }
}
@media (min-width: 540px) {
  .container{
    width: 100%;
  }
}

