* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.8rem;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 10px;
  flex-wrap: wrap;
}

#searchInput {
  padding: 16px 20px;
  font-size: 1.1rem;
  width: 420px;
  max-width: 100%;
  border: none;
  border-radius: 50px;
  outline: none;
}

#searchBtn {
  padding: 16px 32px;
  font-size: 1.1rem;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

#searchBtn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

.quick-buttons {
  text-align: center;
  margin: 20px 0 30px;
}

.quick-buttons button {
  margin: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.quick-buttons button:hover {
  background: #ff6b6b;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.movie-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.movie-card img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #111;
  padding: 5px;
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.type {
  display: inline-block;
  padding: 4px 12px;
  background: #4ecdc4;
  border-radius: 20px;
  font-size: 0.85rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

.modal-content {
  background: #1e3c72;
  margin: 5% auto;
  padding: 25px;
  width: 90%;
  max-width: 700px;
  border-radius: 15px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  cursor: pointer;
}

.loading {
  text-align: center;
  font-size: 1.4rem;
  padding: 60px;
  grid-column: 1 / -1;
}

.error {
  text-align: center;
  font-size: 1.4rem;
  padding: 60px;
  grid-column: 1 / -1;
}