/* Reset */
* {
  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: #000;
}

.navbar img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

.jf a {
  color: #ff0000;
  text-decoration: none;
}

.search-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 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;
}

.filter {
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  transition: all 0.3s ease;
}

.list img {
  width: 150px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.list img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  z-index: 2;
}

.list.expanded {
  flex-wrap: wrap;
  overflow-x: hidden;
  justify-content: flex-start;
}

.list.expanded img {
  width: calc(12.5% - 10px);
  margin-bottom: 10px;
}

.see-more-btn {
  margin: 10px auto 30px auto;
  display: block;
  background: #e50914;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.see-more-btn:hover {
  background: #b00610;
}

.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;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.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;
}

.floating-download {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background-color: #e50914;
  color: white;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-download:hover {
  background-color: #b00610;
  transform: scale(1.1);
}

.floating-download svg {
  display: block;
}

.footer {
  background: #000;
  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 Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }

  .list img {
    width: 120px;
  }

  .list.expanded img {
    width: calc(50% - 10px);
  }

  .modal-body img {
    width: 40%;
  }

  .search-modal input {
    width: 90%;
    margin-top: 50px;
  }

  .floating-download {
    display: none;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 20px;
    padding: 5px;
  }

  .row h2 {
    font-size: 18px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .search-modal .close {
    font-size: 24px;
    top: 10px;
    right: 20px;
  }
}

#vivamax-section {
  display: none;
}




.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #222;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  color: white;
  border-radius: 10px;
  text-align: center;
}

.close-button {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

#watchlist-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: gold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}



.cast-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cast-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  font-size: 12px;
  color: #ccc;
}

.cast-member img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #555;
  margin-bottom: 5px;
}


