* { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: Arial, sans-serif; background: #111; color: #fff; }

    .navbar {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px; background: #222;
    }

    .navbar img { height: 40px; }
    .nav-links { display: flex; align-items: center; gap: 10px; }
    .nav-links a { color: white; text-decoration: none; margin: 0 5px; }

    .search-bar {
      padding: 5px; border-radius: 5px; border: none;
    }

    .banner {
      height: 50vh;
      background-size: cover;
      display: flex;
      align-items: center;
      padding: 20px;
    }

    .banner h1 {
      background: rgba(0,0,0,0.7);
      padding: 10px;
    }

    .row {
      margin: 20px;
    }

    .row h2 {
      margin-bottom: 10px;
    }

    .list {
      display: flex;
      overflow-x: auto;
    }

    .list img {
      width: 150px;
      margin-right: 10px;
      cursor: pointer;
      border-radius: 5px;
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    .list img:hover {
      transform: scale(1.05);
      filter: brightness(1.2);
      z-index: 2;
    }

    .modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10;
    }

    .modal-content {
      background: #222;
      padding: 20px;
      width: 100%;
      max-width: 800px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      text-align: center;
      border-radius: 10px;
    }

    .modal-body {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 20px;
    }

    .modal-body img {
      width: 30%;
      border-radius: 5px;
    }

    .modal-text {
      flex: 1;
      text-align: left;
    }

    .modal img {
      width: 25%;
      border-radius: 5px;
    }

    .stars { color: gold; }
    .close {
      position: absolute;
      top: 10px; right: 20px;
      cursor: pointer;
      font-size: 24px;
    }

    .server-selector {
      margin: 15px 0;
      text-align: left;
    }


    .search-modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 15;
    }

    .search-modal input {
      width: 300px;
      padding: 10px;
      border-radius: 5px;
      border: none;
      margin-bottom: 20px;
    }

    .search-modal .results {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .search-modal img {
      width: 120px;
      border-radius: 5px;
      cursor: pointer;
    }

    .search-modal .close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 30px;
    }

/* MOBILE DISPLAY START */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-links a, .search-bar {
    width: 100%;
  }

  .search-bar {
    margin-top: 10px;
  }

  .banner {
      height: 30vh;
  }
    
  .modal-body {
    align-items: center;
  }

  .modal-body img {
    width: 40%;
  }

  .modal-text {
    text-align: center;
  }

  .list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .list img {
    width: 120px;
  }

  .search-modal input {
    margin-top: 50px;
    width: 90%;
  }

  .search-modal .results {
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 20px;
    padding: 5px;
  }

  .row h2 {
    font-size: 18px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-body img {
    width: 40%;
  }

  .search-modal .close {
    font-size: 24px;
    top: 10px;
    right: 20px;
  }
}
/* MOBILE DISPLAY END */

.footer {
  background: #222;
  color: #ccc;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: red;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .footer-content {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: row;
    gap: 8px;
  }
.poster-item {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeIn 0.6s forwards ease;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.poster-item:hover {
  transform: scale(1.08);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#banner {
  transition: opacity 0.6s ease, background-image 0.6s ease;
}
}
.row {
  position: relative;
}

.row-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 40px;
}

.row-list::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  font-size: 32px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }
:root[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #ffffff;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
}

body {
  background: var(--bg);
  color: var(--text);
}
.skeleton {
  width: 160px;
  height: 240px;
  background: linear-gradient(
    90deg,
    #222 25%,
    #333 37%,
    #222 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.hover-trailer {
  position: absolute;
  width: 320px;
  height: 180px;
  z-index: 20;
  border-radius: 10px;
  pointer-events: none;
}
.logo {
  font-size: 26px;
  font-weight: bold;
  color: red;
  letter-spacing: 1px;
  cursor: pointer;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: red;
  text-transform: uppercase;
}
.logo {
  display: flex;
  gap: 2px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: red;
  cursor: pointer;
}

.logo span {
  opacity: 0;
  transform: translateY(20px);
  animation: netflixReveal 0.6s ease forwards;
}

/* staggered animation */
.logo span:nth-child(1) { animation-delay: 0.05s; }
.logo span:nth-child(2) { animation-delay: 0.10s; }
.logo span:nth-child(3) { animation-delay: 0.15s; }
.logo span:nth-child(4) { animation-delay: 0.20s; }
.logo span:nth-child(5) { animation-delay: 0.25s; }
.logo span:nth-child(6) { animation-delay: 0.30s; }
.logo span:nth-child(7) { animation-delay: 0.35s; }
.logo span:nth-child(8) { animation-delay: 0.40s; }

@keyframes netflixReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* subtle Netflix glow pulse */
.logo:hover {
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}
.season-selector {
  text-align: left;
  margin: 15px 0;
}

.season-selector select {
  background: #111;
  color: white;
  border: 1px solid #333;
  padding: 8px 12px;
  border-radius: 6px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.episode-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.episode-card:hover {
  background: #222;
  transform: scale(1.05);
}

.episode-card h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.episode-card p {
  font-size: 12px;
  color: #aaa;
}

.episode-card.active {
  border: 2px solid red;
}






