a{
  text-decoration: none ;
  }

h1 {
    text-align: center;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.movie {
    flex: 0 0 calc(50% - 10px); /* 2 posters per row */
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.movie img {
    width: 100%;
    max-width: 150px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.movie h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.movie p {
    margin: 0;
    font-size: 1em;
    color: #777;
}

.rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    cursor: pointer;
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 1em;
}

.pagination button:hover {
    background-color: #0056b3;
}

.pagination button.active {
    background-color: #0056b3;
}

.movie-details {
    display: none;
    margin-top: 20px;
}

.details-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.poster-container img {
    max-width: 200px;
    border-radius: 10px;
}

.info-container {
    flex: 1;
}

.screenshot-slider, .cast-slider, .related-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
  }
.screenshot-slider img {
  width:230px ;
  height: 140px ;
  border-radius: 5px ;
  }

.cast-slider img {
    height: 110px;
    width: 105px;
    border-radius: 5px;
    object-fit: cover;
}

.related-slider .movie {
    flex: 0 0 calc(25% - 10px); /* 4 related movies per row */
}

.related-slider img {
  width : 120px ;
 height: 170px ;
  }
.download-btn {
 background: #02304f;
  background-image: -webkit-linear-gradient(top, #02304f, #2980b9);
  background-image: -moz-linear-gradient(top, #02304f, #2980b9);
  background-image: -ms-linear-gradient(top, #02304f, #2980b9);
  background-image: -o-linear-gradient(top, #02304f, #2980b9);
  background-image: linear-gradient(to bottom, #02304f, #2980b9);
  -webkit-border-radius: 8;
  -moz-border-radius: 8;
  border-radius: 8px;
  font-family: Arial;
  color: #ffffff;
  font-size: 39px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}
.download-btn:hover {
 background: #3cb0fd;
  background-image: -webkit-linear-gradient(top, #3cb0fd, #203747);
  background-image: -moz-linear-gradient(top, #3cb0fd, #203747);
  background-image: -ms-linear-gradient(top, #3cb0fd, #203747);
  background-image: -o-linear-gradient(top, #3cb0fd, #203747);
  background-image: linear-gradient(to bottom, #3cb0fd, #203747);
  text-decoration: none;
}
