/* ===== Global ===== */
* {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
body {
  background: #121212;
  color: #fff;
  line-height: 1.6;
  padding-bottom: 70px;
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 1.2rem;
  background: #1e1e1e;
  border-bottom: 2px solid #ff3c00;
}
header h1 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff3c00;
  letter-spacing: 1px;
}

/* ===== Search + Filter ===== */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 0.8rem;
}
.search-container input {
  width: 90%;
  max-width: 500px;
  padding: 12px 16px;
  border: none;
  border-radius: 25px;
  outline: none;
  font-size: 1rem;
  background: #f8f8f8;
  color: #333;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.2);
}
.search-container input:focus {
  border: 2px solid #ff3c00;
  background: #fff;
}
.search-container button {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #ff3c00, #ff6a00);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.search-container button:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #ff6a00, #ff3c00);
}
.search-container select {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: #1e1e1e;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.3);
  appearance: none;
}
.search-container select:focus {
  outline: 2px solid #ff3c00;
}

/* ===== Movies ===== */
.movies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.movie-card {
  background: #1c1c1c;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-6px);
}
.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.movie-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-content {
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.modal iframe {
  width: 100%;
  height: 500px;
  border: none;
}
.close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
.close:hover {
  color: #ff3c00;
}

/* ===== Footer ===== */
footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #1c1c1c;
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.9rem;
  border-top: 2px solid #ff3c00;
  z-index: 1001;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header h1 { font-size: 1.1rem; }
  .movie-card img { height: 200px; }
  .modal iframe { height: 300px; }
}
@media (max-width: 480px) {
  .search-container input,
  .search-container button,
  .search-container select { width: 100%; }
  .movie-card img { height: 180px; }
  .movie-card h3 { font-size: 0.85rem; }
}