* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1e1e2f;
  min-height: 100dvh;
  font-family: 'Segoe UI', sans-serif;
  color: #fefefe;
}

.navbar {
  width: 100%;
  padding: 20px;
  background-color: rgba(127, 90, 240, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.heading {
  font-size: 32px;
  color: #c3f3e7;
  white-space: nowrap;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input {
  height: 40px;
  width: 250px;
  padding: 0 10px;
  background-color: #2c2c3f;
  color: #fefefe;
  border: 1px solid #7f5af0;
  border-radius: 4px;
}
input::placeholder {
  color: #a0a0b2;
}
input:hover {
  border-color: #c3f3e7;
}

button {
  height: 40px;
  width: 100px;
  background-color: #7f5af0;
  color: #fefefe;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background-color: #6246ea;
}

/* Display Section */
.container {
  padding: 20px;
}

#display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.movie {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.3s ease;
}
.movie:hover {
  transform: scale(1.03);
}
.image {
  width: 100%;
  max-width: 230px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}
.title {
  color: #c3f3e7;
  text-align: center;
  margin: 10px 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .heading {
    font-size: 28px;
  }
  .search-bar {
    width: 100%;
    justify-content: flex-start;
  }
  input {
    width: 100%;
  }
  button {
    width: 100%;
  }
}
