body {  
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: black;
  color: white;
  margin: 0;
}

h1 {
  text-align: center;
}

#search {
  width: 100%;
  max-width: 700px;
  padding: 10px;
  margin: 0 auto 15px auto;
  display: block; 
  background-color: black;
  color: white;
  border: 1px solid red;
  box-sizing: border-box;
}

#suggested-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 15px;
}

#suggested, #watchlist-list, #skip-list, #movie-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
  padding-top: 2px;
  padding-bottom: 25px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.filters button {
  padding: 8px 12px;
  cursor: pointer;
  background-color: black;
  color: white;
  border: 1px solid red;
}

.filters a {
  color: white;
  text-decoration: none;
}

.movie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: black;
  color: white;
  padding: 10px;
  width: 100%;
  max-width: 200px;
  height: auto;
  min-height: 380px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  box-sizing: border-box;
  border: 1px solid red;
}

.movie-card h3 {
  margin: 0 0 10px;
  min-height: 45px;
}

.movie-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  cursor: pointer;
  margin-bottom: 10px;
}

.movie-card button {
  color: white;
  background-color: black;
  margin-top: 5px;
  padding: 6px;
  width: 100%;
  border: 1px solid white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0;
}

.modal-content {
  position: relative;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid red;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  background: none;
  font-size: 24px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

footer {
  display: flex;
  color: red;
  justify-content: center;
  align-items: center;
  height: auto;
  background-color: black;
  padding: 10px 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: red;
  margin: 0 15px;
  transition: color 0.3s;
}

@media (max-width: 600px) {
  #search {
    width: 90%;
  }

  .movie-card {
    max-width: 100%;
    width: 90%;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .filters button {
    width: 90%;
    max-width: 300px;
  }

  footer {
    flex-direction: column;
  }

  footer a {
    margin: 10px 0;
  }
}
