#movie-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 film per baris */
  grid-gap: 20px;
}

@media (min-width: 768px) {
  #movie-container {
    grid-template-columns: repeat(5, 1fr); /* 5 film per baris untuk layar lebar */
  }
}

@media (min-width: 1200px) {
  #movie-container {
    grid-template-columns: repeat(7, 1fr); /* 7 film per baris untuk layar sangat lebar */
  }
}

#tv-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 film per baris */
  grid-gap: 20px;
}

@media (min-width: 768px) {
  #tv-container {
    grid-template-columns: repeat(5, 1fr); /* 5 film per baris untuk layar lebar */
  }
}

@media (min-width: 1200px) {
  #tv-container {
    grid-template-columns: repeat(7, 1fr); /* 7 film per baris untuk layar sangat lebar */
  }
}


.movie {
  float: left;
  height: 235px;
  margin: 0%;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 5px;
}










.movie a {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  
}
.movie h3 {
  bottom: 0;
  height: auto;
  left: 0;
  padding: 10px;
  position: absolute;
  width: 100%;
  border-radius: 6px;
  color: #fff;
  font-size: small;
  font-weight: 400;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,.56);
}

.movie h2 {
  background: rgba(39,59,89,.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  height: auto;
  line-height: normal;
  padding: 4px 6px;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0 0 0 -15px;
  width: auto;
}

.movie h5 {
  background: rgba(11,171,0,.58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  height: auto;
  line-height: normal;
  padding: 4px 6px;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 0 0 -15px;
  width: auto;
}

.movie img {
  height: 235px !important;
  min-height: 235px !important;
  width: 100% !important;
  border-radius: 6px;
}

#pagination {
  margin-bottom: 20px;
  text-align: center;
}

#pagination button {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  background-color: #eee;
  cursor: pointer;
}



@media (max-width: 900px) {
  .movie {
  height: 170px;
  }
  .movie img {
  height: 170px !important;
  min-height: 170px !important;
  width: 100% !important;
  border-radius: 6px;
}
}
