/* Content Sections */
.content-section {
  padding: 40px 50px;
  position: relative;
}

@media (max-width: 768px) {
  .content-section {
    padding: 25px 20px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.05), transparent);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.section-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}

.see-all-btn {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
}

.see-all-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.row-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.content-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0 60px 0;
  scroll-behavior: smooth;
}

.content-row::-webkit-scrollbar {
  height: 8px;
}

.content-row::-webkit-scrollbar-track {
  background: #141414;
}

.content-row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.content-row::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.link-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.link-page a {
  text-decoration: none;
  color: #000;
  background-color: var(--primary);
  padding: 8px 18px;
  border-radius: 8px;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.link-page a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.link-page a:hover {
  background-color: rgba(172, 255, 47, 0.786);
  color: bisque;
}

.movie-card {
  min-width: 250px;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .movie-card {
    min-width: 150px;
    height: 200px;
  }
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.movie-card:hover .movie-info {
  opacity: 1;
}

/* === Animations for Cards and UI Elements === */
@keyframes cardCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardWaveOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.92) translateY(40px);
  }
}

@keyframes filterBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonBounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes buttonFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }

  80% {
    opacity: 1;
    transform: scale(1.05) translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Card animation classes */
.filtering-in {
  animation: cardCascadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.filtering-out {
  animation: cardWaveOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.filter-bounce-in {
  animation: filterBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Modal pop-in effect */
.modal-pop-in {
  animation: modalPopIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animated button styles */
.animated-btn {
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.animated-btn:hover,
.animated-btn:focus {
  background: #e50914;
  color: #fff;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.18);
}

/* Show more button animation */
#showMoreBtn {
  animation: buttonBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Button styles */
.btn,
.btn-primary,
.show-more-btn,
.view-all-btn,
.slider-view-all-btn,
.show-more-container button {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn:hover,
.btn-primary:hover,
.show-more-btn:hover,
.view-all-btn:hover,
.slider-view-all-btn:hover,
.show-more-container button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
  color: #000;
}

.btn-secondary {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--primary-light);
}

.view-all-btn i,
.slider-view-all-btn i {
  font-size: 1.1em;
}