/* Main Layout */
section {
  padding: 100px 30px 0px;
}

.content-section h2 {
  padding-top: 80px;
}

.row-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #9acd32;
  font-weight: 600;
}

/* Grid Layout */
.content-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* Scrollbar Styling */
.content-row::-webkit-scrollbar {
  height: 8px;
}

.content-row::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.content-row::-webkit-scrollbar-thumb {
  background: #9acd32;
  border-radius: 10px;
}

.content-row::-webkit-scrollbar-thumb:hover {
  background: #7cb342;
}

/* Movie Card */
.movie-card {
  height: 320px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #1a1a1a;
}

.movie-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(154, 205, 50, 0.3);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover img {
  transform: scale(1.05);
}

/* Movie Info Overlay */
.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    transparent 100%
  );
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  color: white;
}

.movie-card:hover .movie-info {
  transform: translateY(0);
}

.movie-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #9acd32;
}

.movie-info p {
  font-size: 12px;
  line-height: 1.4;
  color: #e0e0e0;
  margin-bottom: 8px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rating */
.rate {
  display: inline-flex;
  align-items: center;
  background: #9acd32;
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

.rate:before {
  content: "⭐";
  margin-right: 4px;
}

/* Content Type Badge */
.content-type {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  padding: 6px 10px;
  border-radius: 15px;
  background: linear-gradient(
    35deg,
    #16e30b99 0%,
    rgba(0, 191, 255, 0.592) 50%,
    #16213e8b 100%
  );
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
}

/* Header Row */
.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(154, 205, 50, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(154, 205, 50, 0.2);
}

/* Filter Styles */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #9acd32;
  background: #1a1a1a;
  color: #9acd32;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-select:hover,
.filter-select:focus {
  background: #9acd32;
  color: #000;
}

.filter-label {
  font-weight: 600;
  color: #9acd32;
}

/* ==================== LOAD MORE BUTTON ==================== */
.show-more-container {
  text-align: center;
  margin: 60px 0;
}

.show-more-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.show-more-btn:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

/* Movie Card States */
.movie-card {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.movie-card.hidden {
  opacity: 0;
  transform: scale(0.9);
}

/* Loading State */
.rate.loading {
  background: linear-gradient(90deg, #333 25%, #555 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .head-row {
    flex-direction: column-reverse;
    margin: 25px auto;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 20px;
  }

  .content-row {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .movie-card {
    height: 280px;
  }

  .row-title {
    font-size: 24px;
  }

  .filter-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .filter-group {
    justify-content: center;
  }
}

/* Button Styles */
.btn,
.btn-primary {
  background: linear-gradient(135deg, #ff9800, #e65100);
  color: #fff;
  box-shadow: var(--shadow-md);
  border: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #ffc947, #ff9800);
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 152, 0, 0.1);
  color: #fff;
  border: 1px solid #ff9800;
}

.btn-secondary:hover {
  background: rgba(255, 152, 0, 0.15);
  border-color: #ffc947;
}

/* Responsive - Show movie info on small screens */
@media (max-width: 768px) {
  .movie-info {
    transform: translateY(0);
    opacity: 1;
  }
  
  .movie-card:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .movie-info {
    transform: translateY(0);
    opacity: 1;
  }
  
  .movie-card:hover {
    transform: none;
  }
}

/* Touch devices */
@media (hover: none) {
  .movie-info {
    transform: translateY(0);
    opacity: 1;
  }
  
  .movie-card:hover {
    transform: none;
  }
}
