/* ==================== DARK THEME HELPERS (Global) ==================== */
html {
  color-scheme: dark;
}

/* Cute glassy utility cards/buttons you can reuse */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color, rgba(173, 255, 47, 0.25));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border-radius: 14px;
}

.soft-gradient {
  background: linear-gradient(135deg, rgba(0,0,0,0.98) 0%, rgba(20,20,20,0.98) 100%);
}

.cute-accent {
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  color: #0b0b0b;
}

/* ==================== ENHANCED CONTENT SECTIONS ==================== */
.content-section {
  padding: 60px 50px;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.98) 100%);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #adff2f, transparent);
  opacity: 0.6;
}

.row-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  display: inline-block;
}

.row-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #adff2f, #9bec28);
  border-radius: 2px;
}

.content-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 70px;
  scroll-behavior: smooth;
}

.content-row::-webkit-scrollbar {
  height: 10px;
}

.content-row::-webkit-scrollbar-track {
  background: rgba(20,20,20,0.8);
  border-radius: 5px;
}

.content-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #adff2f, #9bec28);
  border-radius: 5px;
  transition: background 0.3s ease;
}

.content-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #9bec28, #adff2f);
}
.link-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.link-page a {
  text-decoration: none;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-page a:hover {
  background: linear-gradient(135deg, var(--primary-dark, #9bec28), var(--primary, #adff2f));
  color: #000;
  box-shadow: 0 10px 24px rgba(173, 255, 47, 0.35);
}
.movie-card {
  min-width: 250px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 1px rgba(173,255,47,0.1);
  backdrop-filter: blur(10px);
}
/* ==================== RESPONSIVE BANNER STYLES ==================== */
/* Tablet and small desktop */
@media (max-width: 1024px) {
  .content-section {
    padding: 40px 30px;
  }
  
  .row-title {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .content-row {
    gap: 12px;
    padding-bottom: 50px;
  }
  
  .movie-card {
    min-width: 200px;
    height: 280px;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px;
  }
  
  .row-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .content-row {
    gap: 10px;
    padding-bottom: 40px;
  }
  
  .movie-card {
    min-width: 160px;
    height: 220px;
  }
  
  .link-page {
    height: 60px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .link-page a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .content-section {
    padding: 25px 15px;
  }
  
  .row-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .content-row {
    gap: 8px;
    padding-bottom: 30px;
  }
  
  .movie-card {
    min-width: 140px;
    height: 200px;
  }
  
  .link-page {
    height: auto;
    padding: 10px 0;
  }
  
  .link-page a {
    padding: 6px 10px;
    font-size: 13px;
    margin-bottom: 5px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .content-section {
    padding: 20px 10px;
  }
  
  .row-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .content-row {
    gap: 6px;
    padding-bottom: 25px;
  }
  
  .movie-card {
    min-width: 120px;
    height: 180px;
  }
  
  .link-page a {
    padding: 5px 8px;
    font-size: 12px;
    margin-bottom: 4px;
  }
}
.movie-card:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 2px rgba(173,255,47,0.4), 0 0 30px rgba(173,255,47,0.2);
  z-index: 10;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(0.9) contrast(1.1);
}

.movie-card:hover img {
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
  transform: scale(1.05);
}

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  padding: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(173,255,47,0.2);
}

.movie-card:hover .movie-info {
  opacity: 1;
  transform: translateY(0);
}

.movie-info h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.movie-info .view-btn {
  background: linear-gradient(135deg, #adff2f, #9bec28);
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(173,255,47,0.3);
}

.movie-info .view-btn:hover {
  background: linear-gradient(135deg, #9bec28, #adff2f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(173,255,47,0.4);
}

.movie-info .rate {
  background: rgba(173,255,47,0.2);
  color: #adff2f;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  border: 1px solid rgba(173,255,47,0.3);
}

.movie-info .year {
  color: #cccccc;
  font-size: 12px;
  margin-left: 8px;
}

/* === 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 {
    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;
}
.show-more-btn, .show-more-container button {
    background: linear-gradient(135deg, #adff2f, #9bec28);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-more-btn::before, .show-more-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.show-more-btn:hover::before, .show-more-container button:hover::before {
    left: 100%;
}

.show-more-btn:hover, .show-more-container button:hover {
    background: linear-gradient(135deg, #9bec28, #adff2f);
    color: #000;
    box-shadow: 0 12px 40px rgba(173, 255, 47, 0.4);
    transform: translateY(-4px) scale(1.06);
}
.view-all-btn {
    background: linear-gradient(135deg, #adff2f, #9bec28);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 2.5rem 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #9bec28, #adff2f);
    color: #000;
    box-shadow: 0 10px 35px rgba(173, 255, 47, 0.35);
    transform: translateY(-3px) scale(1.05);
}
.slider-view-all-btn, .slider .view-all-btn, .slider .see-all-btn {
    background: linear-gradient(135deg, #ff9800, #e65100);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.2rem 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.15);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}
.slider-view-all-btn i, .slider .view-all-btn i, .slider .see-all-btn i {
    font-size: 1.2em;
    margin-right: 0.3em;
}
.slider-view-all-btn:hover, .slider .view-all-btn:hover, .slider .see-all-btn:hover {
    background: linear-gradient(135deg, #ffc947, #ff9800);
    color: #fff;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.25);
    transform: translateY(-2px) scale(1.04);
}
