
main {
  padding: 20px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-movies,
.latest-movies {
  margin-bottom: 60px;
}

.movies-slider {
  position: relative;
  padding-bottom: 20px;
}

.slider-container {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  margin: 0 -8px;
  padding: 10px 8px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.movies-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background-color: #00bfa5;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}


.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  padding: 0 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  background-color: #23272f;
  color: #f6f6f6;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.pagination-btn:hover:not(:disabled) {
  background-color: #00bfa5;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  font-size: 0.9rem;
  color: #bdbdbd;
}

.movie-card {
  background-color: #161718;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.05);
}

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 191, 165, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-button {
  opacity: 1;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #00bfa5;
}

.movie-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #00bfa5;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
  line-height: 1.2;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bdbdbd;
  font-size: 0.8rem;
}

.movie-year {
  display: flex;
  align-items: center;
  gap: 5px;
}

.movie-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.movie-rating i {
  color: #FFD700;
}


@media screen and (max-width: 992px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .movie-info {
    padding: 12px;
  }
  
  .movie-title {
    font-size: 0.9rem;
    height: 42px;
  }
}

@media screen and (max-width: 480px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
  }
}




