* { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Poppins', sans-serif; background: #111; color: #fff; }

    .navbar {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px; background: #222;
    }

    .website-logo {
      background-color: #222222;
      border-radius: 8px;
      padding: 5px;
      transition: background-color 0.3s ease;
      cursor: pointer;
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .website-logo:hover {
      background-color: #39f; /* light glow effect */
    }

    .left-side-navbar{
      display: flex;
      align-items: center;
      gap: 15px;

    }

    .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 base */
    .banner {
      position: relative;
      height: 70vh;
      width: 100%;
      overflow: hidden;
      color: white;
      display: flex;
      align-items: flex-end;
      padding: 40px 60px;
      background-size: cover;
      background-position: center center;
      transition: background-image 1s ease-in-out;
      cursor: pointer;
    }

    /* Dark gradient overlay to mimic Netflix */
    .banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(17,17,17,0.85) 10%, rgba(17,17,17,0) 60%);
      z-index: 1;
    }

    /* Content on top */
    .banner-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
    }

    /* Title style */
    #banner-title {
      font-size: 3rem;
      font-weight: 900;
      margin-bottom: 15px;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }

    /* Description */
    #banner-description {
      font-size: 1.2rem;
      line-height: 1.4;
      margin-bottom: 20px;
      max-height: 4.2em;
      overflow: hidden;
      text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    }

    /* Navigation arrows */
    .banner-controls {
      display: flex;
      gap: 20px;
    }

    .banner-controls button {
      background: rgba(51,51,51,0.5);
      border: none;
      color: white;
      font-size: 2.5rem;
      padding: 5px 15px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      user-select: none;
    }

    .banner-controls button:hover {
      background: rgba(51,51,51,0.8);
    }

    /* Dots container */
    #banner-dots {
      margin-top: 25px;
      display: flex;
      gap: 12px;
    }

    #banner-dots span {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: background 0.3s ease;
    }

    #banner-dots span.active {
      background: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .banner {
        height: 50vh;
        padding: 20px 30px;
      }
      #banner-title {
        font-size: 2rem;
      }
      #banner-description {
        font-size: 1rem;
      }
      .banner-controls button {
        font-size: 2rem;
        padding: 4px 10px;
      }
    }

    .row {
      margin: 20px 0;
      padding: 0 20px;
    }

    .row h2 {
      margin-bottom: 10px;
      color: gold;
    }

    .list {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
      scroll-behavior: smooth;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      scroll-padding: 0;
      padding-left: 10px;
      padding-right: 10px;
      scroll-padding: 10px;
    }

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

    .list img {
      width: 150px;
      margin-right: 10px;
      cursor: pointer;
      border-radius: 5px;
      transition: transform 0.3s ease, filter 0.3s ease;
      scroll-snap-align: start;
    }

    .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;
  }
}

.back-button {
  display: inline-block;
  background-color: #0af;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: bold;
  transition: background 0.2s;
}
.back-button:hover {
  background-color: #08c;
}

.nav-links a.active {
  color: #ff6347; /* Highlight color */
  font-weight: bold;  
}

.list-wrapper {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: auto;
  background: transparent;
  pointer-events: auto;
}


.scroll-btn {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 100%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Slightly visible for testing */
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn.prev {
  display: none;
  left: 0;
}

.scroll-btn.next {
  right: 0;
  display: block;
}

.list-wrapper:hover .scroll-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.scroll-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Optional: Always show buttons on mobile */
@media (max-width: 768px) {
  .scroll-btn {
    opacity: 1;
  }
}

body {
  overflow-x: hidden;  /* Prevent horizontal page scroll */
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
  width: 150px;
  text-align: center;
}

.item-title {
  margin-top: 5px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  word-wrap: break-word;
}

a:link,
a:visited,
a:hover,
a:active {
  color: #fff;
  text-decoration: none; /* optional: removes underline */
}

a:hover {
  color: #e50914; /* Netflix red */
}

.netflix-search {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 5px 10px;
  max-width: 500px;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

.netflix-search:focus-within {
  box-shadow: 0 0 8px #e50914;
}

.netflix-search input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  font-size: 1rem;
  flex: 1;
  padding: 8px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 24px;
  height: 24px;
  fill: #e50914;
  transition: transform 0.2s ease;
}

.search-btn:hover .search-icon {
  transform: scale(1.1);
}

#loading-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  transition: opacity 0.5s ease;
  pointer-events: all;
}

#loading-screen .spinner {
  border: 5px solid #444;
  border-top: 5px solid red;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
