@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;700&display=swap");

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  background-color: #141414;
  color: #ffffff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(20, 20, 20, 0.9);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #e50914;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.nav a:hover {
  color: #e50914;
  transition: color 0.3s ease;
}

.profile {
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  height: 100vh;
  background: linear-gradient(
      to bottom,
      rgba(20, 20, 20, 0.5),
      rgba(20, 20, 20, 0.8)
    ),
    url("https://via.placeholder.com/1920x1080?text=Hero+Background") no-repeat
      center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.play-btn,
.info-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-btn {
  background-color: #e50914;
  color: #ffffff;
}

.play-btn:hover {
  background-color: #b20710;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.info-btn {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.info-btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.row {
  padding: 2rem;
  background-color: #141414;
}

.row h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.row-posters {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

/* Poster styles */
.poster {
  position: relative;
  display: inline-block;
  margin: 0 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.poster:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.poster img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 8px 8px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #141414;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: none;
}

.close-btn:hover {
  color: #e50914;
}

.modal img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal h2 {
  font-family: "Bebas Neue", sans-serif;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal p {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
}

.modal .play-btn,
.modal .info-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav ul {
    gap: 1rem;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .row {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
    width: 95%;
  }

  .poster img {
    width: 150px;
    height: 225px;
  }
}

@media (max-width: 480px) {
  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 0.5rem;
  }

  .poster img {
    width: 120px;
    height: 180px;
  }
}
