/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top, 
      var(--md-sys-color-surface-dim, #170101) 0%, 
      var(--md-sys-color-surface, #100101) 100%);
    color: var(--md-sys-color-on-surface, #fff);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
    /* padding-top: var(--nav-height,74px); */
  }
  h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Top Navigation Menu */
.top-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 27, 31, 0.6); /* 60% opacity */
  box-shadow: var(--md-sys-elevation-2, 0 2px 10px rgba(0,0,0,0.5));
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height, 64px);
}

.nav-left-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-link {
  text-decoration: none;
  color: inherit;
}

.nav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #e50914, #be6d02, #d1d804dd);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: shine 5s linear infinite;
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: filter 0.3s ease;
}

.nav-title:hover {
  filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.5));
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--md-sys-color-on-surface-variant, #aaa);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link i {
  font-size: 16px;
}

.nav-link:hover {
  background: rgba(229, 9, 20, 0.15);
  color: var(--md-sys-color-on-surface, #fff);
}

.nav-link.active {
  background: rgba(229, 9, 20, 0.25);
  color: var(--md-sys-color-on-surface, #fff);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #e50914, #be6d02);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--md-sys-color-on-surface, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.nav-icon-button:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: #e50914;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.nav-icon-button:active {
  transform: scale(0.95);
}

/* Hamburger Menu Button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--md-sys-color-on-surface, #fff);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.search-button {
  display: none;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    height: var(--nav-height, 60px);
  }

  .nav-title {
    font-size: 22px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-left-section {
    gap: 12px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(
      to bottom,
      var(--md-sys-color-surface-container, #1C1B1F) 0%,
      var(--md-sys-color-surface-dim, #121212) 100%
    );
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    max-height: 400px;
    opacity: 1;
    padding: 10px 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 14px 20px;
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link.active::before {
    left: 0;
    transform: none;
    width: 4px;
    height: 100%;
    top: 0;
    border-radius: 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-icon-button {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .search-button {
    display: flex;
  }

}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
    height: var(--nav-height, 56px);
  }

  .nav-title {
    font-size: 20px;
  }
}

@keyframes shine {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.theme-toggle-button {
  margin-left: 8px;
}


@media (max-width: 700px) {
  .scroll-btn.left{
    display: none !important;
  }
  .scroll-btn.right{
    display: none !important;
  }
  
  .theme-toggle-button {
    margin-left: 4px;
    order: 1; 
  }
  
}

@media (max-width: 480px) {

  #hero-overview {
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* 3 lines at 1.5em line-height */
    line-height: 1.5em;
  }
}
  .banner {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.7);
  }
  
  .banner h1 {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
  }
  
  .row {
    margin: 40px 20px;
  }
  
  .row h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 4px solid #e50914;
    padding-left: 10px;
  }
  
  .list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
  }
  
  .list img {
    width: 160px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
  
  .list img:hover {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
  }

.movie-detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.movie-detail-content.new-style {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 30px;
  color: #fff;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.4);
  animation: slideUp 0.4s ease;
  position: relative;
}

.movie-detail-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}
.movie-detail-content .close:hover {
  color: #fff;
  text-shadow: 0 0 10px #e50914;
}

.movie-detail-body {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.poster-container {
  flex: 1;
}
.poster-container img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Info section */
.info-container {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.5);
}

.stars {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.info-container p {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 12px;
  margin-top: 15px;
}

.extra-info p {
  margin: 5px 0;
  font-size: 0.95rem;
}

/* Material 3 - Play Button (Primary Filled) */
.play-btn {
  background: #e50914;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}
.play-btn:hover {
  transform: translateY(-2px);
  background: #f40612;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
}
.play-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(229, 9, 20, 0.4);
}



/* Responsive */
@media (max-width: 768px) {
  .movie-detail-body {
    flex-direction: column;
    align-items: center;
  }
  .poster-container img {
    height: auto;
    max-height: 320px;
  }
  .info-container {
    align-items: center;
    text-align: center;
  }
  .play-btn {
    align-self: center;
  }
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 📱 Responsive fixes for Movie Detail Modal */
@media (max-width: 768px) {
  .movie-detail-modal {
    align-items: flex-start; /* 👈 allow modal to scroll */
    padding: 20px 10px;
    overflow-y: auto;
  }

  .movie-detail-content.new-style {
    width: 100%;
    max-width: 95%;
    margin-top: 40px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
  }

  .movie-detail-content .close {
    top: 10px;
    right: 15px;
    font-size: 24px;
    z-index: 10;
  }

  .movie-detail-body {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .poster-container img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
  }

  .info-container {
    align-items: center;
    text-align: center;
  }

  .movie-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .play-btn {
    align-self: center;
  }
}
  .footer {
    background: linear-gradient(to top, 
      var(--md-sys-color-surface-dim, #0f0101) 0%, 
      var(--md-sys-color-surface, #150000) 100%);
    color: var(--md-sys-color-on-surface-variant, #aaa);
    padding: 30px 10px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--md-sys-color-outline-variant, rgba(255, 255, 255, 0.1));
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  
  .footer-content p {
    color: var(--md-sys-color-on-surface-variant, #aaa);
    transition: color 0.3s ease;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: var(--md-sys-color-primary, #e50914);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    color: var(--md-sys-color-on-surface, #fff);
    text-shadow: 0 0 10px var(--md-sys-color-primary, #e50914);
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .banner {
      height: 40vh;
    }
  
    .banner h1 {
      font-size: 1.6rem;
    }
  
    .list img {
      width: 120px;
    }
  
  }
  .movie-detail {
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow-y: auto;
  }
  
  .detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .detail-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
    justify-content: center;
  }
  
  .detail-content img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
  }
  
  .detail-info {
    max-width: 600px;
  }
  


.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 15px;
  color: #ddd;
}
.info-btn-hero {
  background: #555; /* gray background */
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-btn-hero:hover {
  background: #777; /* lighter gray on hover */
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 1rem;
  color: #ccc;
  font-weight: 500;
}

.movie-meta i {
  color: #e50914; /* Netflix red accent for icons */
  margin-right: 6px;
  font-size: 1rem;
}

.movie-meta .separator {
  color: #888;
  font-weight: 400;
}

/* Merged #detail-rating-num */
#detail-rating-num {
  color: #ffd700;
  font-weight: 600;
}


.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.play-btn {
  background-color: #fff;
  color: #000;
}

.play-btn:hover {
  background-color: #e6e6e6;
}

.server-selector {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #bbb;
}

.server-selector select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
}

#detail-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  z-index: 3;
}

.player-back-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.player-back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
.hero {
  position: relative;
  height: 85vh;
  width: 100%;
  overflow: hidden;
  color: #fff;
  /* margin-top: var(--nav-height,74px); */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transition: background-image 0.6s ease;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  bottom: 0;
  padding: 60px;
  background: linear-gradient(to top, rgba(26, 4, 4, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #e50914, #ff6b6b, #ffd700);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.hero-overlay p {
  max-width: 600px;
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 25px;
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #ddd;
  font-weight: 500;
}

.hero-meta .separator {
  color: #999;
}

#hero-rating {
  color: #f5c518;
  font-weight: 500;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-buttons .btn {
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: scale(1.05);
}

/* 🎬 MOVIE LISTS */
.list {
  display: flex;
  overflow-x: auto;
  gap: 18px;
  scroll-behavior: smooth;
  padding: 10px 0 20px 0;
}

.card {
  position: relative;
  min-width: 160px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card img {
  width: 160px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

/* Hover Overlay */
.card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

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

.overlay button {
  background: #e50914;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.overlay button:hover {
  background: #f40612;
  transform: scale(1.1);
}

/* Title + Year */
.card .info {
  margin-top: 8px;
  text-align: center;
}

.card .info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  /* Force wrapping at approximately 10 characters per line */
  /* Using em units: with 0.95rem font, 10 avg characters ≈ 7.5em-8em */
  max-width: 15ch;
  margin: 0 auto;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.card .info span {
  color: #aaa;
  font-size: 0.85rem;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 40px 20px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .list {
    gap: 10px;
  }

  .card {
    position: relative;
    min-width: 160px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .rating-badge,
  .year-overlay {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
  
  .shimmer-card {
    min-width: 140px;
    width: 140px;
    height: 210px;
  }
  
}


.rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  color: #f5c518; /* IMDb gold */
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rating-badge i {
  color: #f5c518;
  font-size: 0.85rem;
}

/* Light mode - lighter rating badge */
/* [data-theme="light"] .rating-badge {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
} */

/* Year Badge - Top Right (matching search page style) */
.year-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(229, 9, 20, 0.9);
  backdrop-filter: blur(5px);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shimmer-card {
  min-width: 160px;
  width: 160px;
  height: 240px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.shimmer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmerSlide 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}
.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
}

.list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; 
}

.list::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  height: 75vh;
  color: white;
}

.hero-slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

/* Light mode - lighter gradient */
[data-theme="light"] .hero-slide::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 80%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 30%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-start;
  padding: 3rem 5%;
  box-sizing: border-box;
  z-index: 2;
}

/* Light mode - lighter overlay gradient */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to top, 
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-content {
  max-width: 700px;
  z-index: 10;
  position: relative;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* Material 3 - Enhanced meta section */
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-meta .separator {
  color: #888;
}

#hero-rating {
  color: #ffd700;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

#hero-genres {
  color: #b0b0b0;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.3px;
}

.hero-content p {
  max-width: 650px;
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Material 3 Button Styles */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Material 3 - Filled Button (Primary) */
.hero-buttons .play-btn {
  background: #e50914;
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.hero-buttons .play-btn:hover {
  background: #f40612;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
  transform: translateY(-2px);
}

.hero-buttons .play-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(229, 9, 20, 0.4);
}

/* Material 3 - Outlined Button (Secondary) */
.hero-buttons .info-btn-hero {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-buttons .info-btn-hero:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.hero-buttons .info-btn-hero:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.15);
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 24px;
  border-radius: 12px;
  background: #e50914;
  box-shadow: 0 2px 6px rgba(229, 9, 20, 0.5);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.hero-nav-btn:hover {
  background: rgba(229, 9, 20, 0.8);
  border-color: rgba(229, 9, 20, 0.9);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-prev-btn {
  left: 20px;
}

.hero-next-btn {
  right: 20px;
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }
  
  .hero-meta {
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
  }
  
  #hero-genres {
    font-size: 0.85rem;
  }
  
  #hero-overview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-buttons {
    gap: 8px;
  }
  
  .hero-buttons .btn,
  .hero-buttons .info-btn-hero,
  .hero-buttons .play-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
  }
  
  .hero-overlay {
    padding: 2rem 4%;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-prev-btn {
    left: 10px;
  }

  .hero-next-btn {
    right: 10px;
  }
}


  