body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #181818;
  color: #fff;
}
.container {
  max-width: 820px;
  margin: 2rem auto;
  padding: 2rem;
  background: #232323;
  border-radius: 1rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
h1 {
  text-align: center;
  margin-bottom: 2rem;
}
#search-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
#search-input, #genre-select, #sort-select, #search-form button {
  padding: 0.7rem;
  border-radius: 6px;
  border: none;
}
#movies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.movie-card {
  background: #292929;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s;
}
.movie-card:hover {
  transform: translateY(-6px) scale(1.04);
}
.movie-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.movie-info {
  padding: 1rem;
}
.movie-title {
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.movie-meta {
  font-size: 0.93rem;
  color: #bbb;
}
.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.82);
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #232323;
  padding: 2rem;
  border-radius: 10px;
  width: 90vw;
  max-width: 500px;
  color: #fff;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.7rem; right: 1.1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
@media (max-width: 600px) {
  .container { padding: 0.5rem; }
  .modal-content { padding: 1rem; }
}