/* 🌙 Dark Cinema Style */
body {
  background-color: #0a0a0a;
  color: #f8f9fa;
  font-family: "Poppins", sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #e50914; /* Netflix red */
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
}

input {
  padding: 12px 15px;
  width: 60%;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
}

button {
  padding: 12px 25px;
  border: none;
  background: #e50914;
  color: white;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #f6121d;
}

.movie-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 20px;
}

.movie-card {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  width: 220px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.movie-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.movie-card h3 {
  font-size: 1.1rem;
  text-align: center;
  margin: 10px 0 5px;
  color: #ffffff;
}

.movie-card p {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  input {
    width: 70%;
  }

  .movie-card {
    width: 180px;
  }

  .movie-card img {
    height: 260px;
  }
}
