/* Navbar styles */
.navbar-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 15;
  background: transparent;
  transition: background-color 0.3s ease;
  padding: 15px 0;
}
.navbar-container.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}
.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo-container img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 20px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 1s ease;
}

.nav-links a:hover {
  color: #DB202C;
}
.search-bar {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  outline: none;
}
.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
/* Add this to your CSS */
#stream-error-message {
  color: #ff6b6b;
  margin: 15px 0;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-left: 3px solid #ff6b6b;
  font-size: 14px;
}

#stream-error-message strong {
  color: white;
  text-decoration: underline;
}

header {
      background-color: black;
      padding: 20px;
      text-align: center;
    }
 header h1 {
      margin: 0;
      color: #DB202C;
    }

/* Add this to your CSS file */
.movie-item {
  display: flex;
  flex-direction: column;
  margin-right: 15px;
  width: 150px;
  flex-shrink: 0;
  cursor: pointer;
}

.movie-item img {
  width: 100%;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-info {
  display: flex;
  flex-direction: column;
  padding: 0 5px;
}

.movie-title {
  color: white;
  font-size: 17px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.movie-title:hover {
  overflow: visible;
}

.movie-year {
  color: #aaa;
  font-size: 17px;
}

/* Update the hover effect */
.movie-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
}
/*end of code for title*/

/*start code for search modal*/
.search-result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  width: 120px;
}

.search-result-title {
  color: white;
  margin-top: 8px;
  text-align: center;
  font-size: 17px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px;
}
/*end code for search modal*/



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Garamond, serif;
  background: #111;
  color: #fff;
}
    .center-logo {
      text-align: center;
    }
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #222;
}

.navbar img {
  height: 40px;
}


.search-bar {
  padding: 15px;
  border-radius: 20px;
  border: none;
}

.banner {
  height: 70vh;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 80px;
  margin-top: -70px; 
  padding-top: 70px;
  position: relative;
  z-index: 1;
}
.banner h1 {
  font-family: Papyrus, fantasy;
  background: rgba(0, 0, 0, 0, 1);
  padding: 10px;
}

.banner-content {

  padding: 20px;
  max-width: 600px;
  margin-left: 20px;
  border-radius: 5px;
  z-index: 2;
}
.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

#banner-description {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.row {
  margin: 20px;
}

.row h2 {
  margin-bottom: 10px;
}

.list {
  display: flex;
  overflow-x: auto;
  position: relative;
  scroll-behavior: smooth;
  padding: 50px 0;
  gap: 60px; /* This adds space between items */
}


.list img {
  width: 200px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 20px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.list img:hover {
  transform: scale(1.30);
  filter: brightness(1.40);
  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: 30px;
  right: 20px;
  cursor: pointer;
  font-size: 50px;
  z-index: 2;
}

.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: 700px;
  padding: 20px;
  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: 30px;
  cursor: pointer;
}

.search-modal .close {
  position: absolute;
  top: 90px;
  right: 70px;
  font-size: 50px;
  z-index: 2;
}

/* Genre filter styles */
select {
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #222;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #e50914;
}

.row h2 {
  display: inline-block;
  margin-right: 15px;
}

/* Adjust the row layout to accommodate the filter */
.row {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}


/* Replace this with your existing .list styles */


/* Navigation buttons */
.list-nav {
  position: relative;
}

.list-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(34, 34, 34, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.list-nav-btn:hover {
  background: #e50914;
  transform: translateY(-50%) scale(1.1);
}

.list-nav-btn.prev {
  left: 10px;
}

.list-nav-btn.next {
  right: 10px;
}

.list-nav-btn.hidden {
  display: none;
}

/* Hide default scrollbar */


/* MOBILE DISPLAY START */
@media (max-width: 768px) {
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
.list {
    gap: 15px;
  }

  
  .logo-container img {
    width: 150px;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }
  
  .search-bar {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
  }
  
  .movie-item {
    min-width: 120px;
  }
  
  .movie-title {
    font-size: 14px;
  }
  
  .movie-year {
    font-size: 12px;
  }
  
  .banner {
    height: 50vh;
    margin-top: 60px;
    padding: 10px;
  }

  .banner-content {
    margin-left: 20px;
    padding: 20px;
    max-width: 90%;
  }
  
  .banner h1 {
    font-size: 1.8rem;
  }
  
  #banner-description {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }
  
  .banner p {
    font-size: 0.9rem;
  }
  
  .modal-body {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-body img {
    width: 60%;
    margin-bottom: 15px;
  }
  
  .modal-text {
    text-align: center;
  }
  
  .server-selector {
    text-align: center;
  }
  
  iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .logo-container img {
    width: 120px;
  }

  .banner {
    height: 40vh;
    align-items: flex-end;
    padding-bottom: 20px;
  }
  
  .banner-content {
    margin: 0 auto;
    padding: 15px;
    width: 90%;
  }
  
  .banner h1 {
    font-size: 1.5rem;
  }
  
  #banner-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .list {
    gap: 10px;
  }
  
  .movie-item {
    min-width: 100px;
  }
  
  .movie-title {
    font-size: 12px;
  }
  
  .search-modal input {
    width: 90%;
    padding: 12px;
    margin-top: 20px;
  }
  
  .search-result-item {
    width: 100px;
  }
  
  .search-result-title {
    font-size: 12px;
    max-width: 100px;
  }
  
  .modal-content {
    width: 95%;
    padding: 10px;
  }
  
  .modal-body img {
    width: 80%;
  }
}
/* MOBILE DISPLAY END */
.footer {
  background: #8a1111;
  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 1s;
}

.footer-links a:hover {
  color: #fff;
}
