body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

body.netflix-theme {
    background-color: #141414;
    color: #e50914;
}

body.imdb-theme {
    background-color: #000;
    color: #f5c518;
}

body.google-theme {
    background-color: #fff;
    color: #4285f4;
}

body.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.light-theme {
    background-color: #ffffff;
    color: #000000;
}


header {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 1rem;
  background-color: #1c1c1c;
}

#controls input,
#controls select,
#controls button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  outline: none;
  transition: background-color 0.3s, color 0.3s;
}

#controls input,
#controls select {
  background-color: #2e2e2e;
  color: #ffffff;
}

#controls button {
  background-color: #ff4b2b;
  color: white;
  cursor: pointer;
}

#controls button:hover {
  background-color: #ff416c;
}

.movie-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 2rem;
}

.movie {
  background-color: #2a2a2a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.movie:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.movie img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.movie h3 {
  font-size: 1.1rem;
  margin: 0.5rem;
  text-align: center;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f39c12;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.favorite-btn:hover {
  background-color: #e67e22;
}

footer {
  background-color: #1c1c1c;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  background-color: #ffffff;
  color: #000000;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .movie img {
    height: 250px;
  }

  .modal-content {
    padding: 1rem;
  }

  #controls {
    flex-direction: column;
    align-items: stretch;
  }

  #controls input,
  #controls select,
  #controls button {
    width: 100%;
  }
}