.genres-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-block: 20px;
}

.genres-section .genre-item {
  all: unset;
  position: relative;
  /* padding: 10px; */
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.genres-section .genre-item:hover {
  transform: scale(1.03);
}

.genres-section .genre-item .genre-poster {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -2;
}

.genres-section .genre-item .genre-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genres-section .genre-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.genres-section .genre-item h2 {
  color: white;
  font-size: xx-large;
}

@media only screen and (max-width: 1076px) {
  .genres-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 576px) {
  .genres-section {
    grid-template-columns: 1fr;
  }
}
