body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #141e30, #243b55);
  margin: 0;
  padding: 20px;
  color: #fff;
}
h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
#app {
  max-width: 1000px;
  margin: 0 auto;
}
#searchBar {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}
input[type="text"] {
  flex: 1;
  padding: 12px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}
input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.2);
}
button {
  padding: 12px 18px;
  border: none;
  border-radius: 25px;
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}
button:hover {
  background: #ffaa00;
  transform: scale(1.05);
}
#movieList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.movie-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}
.movie-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s ease;
}
.movie-card img:hover {
  transform: scale(1.05);
}
.movie-card h3 {
  margin: 12px 0 5px;
  font-size: 20px;
  color: #ffcc00;
}
.movie-card span {
  display: block;
  color: #ddd;
  font-size: 14px;
  margin: 2px 0;
}

/* Modal styling */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#modalContent {
  background: #141e30;
  padding: 20px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #fff;
  overflow-y: auto;
  max-height: 90%;
}
#modalContent img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}
#closeModal {
  background: #ffcc00;
  color: #000;
  padding: 8px 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
}
#trailerBtn {
  background: #00ccff;
  color: #000;
  margin-top: 10px;
}
#trailerBtn:hover {
  background: #00aaff;
}
