body {
  margin: 0;
  font-family: Arial;
  background: black;
  color: white;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
}

.logo { color: red; font-size: 24px; }

.btn {
  background: red;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: red;
  display: none;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  text-align: center;
  padding: 40px;
}

.hero input {
  width: 60%;
  padding: 10px;
}

.filters select {
  padding: 8px;
  margin: 5px;
}

/* MOVIES */
.movies {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  padding: 20px;
}

.movie-card {
  background: #111;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
  cursor: pointer;
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  width: 100%;
}

.rating { color: gold; }

/* PAGINATION */
.pagination {
  text-align: center;
  margin: 20px;
}

/* MODAL CENTER FIX */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 8px;
}

/* TRAILER CENTER */
.trailer-box {
  width: 80%;
  max-width: 700px;
}

#trailerFrame {
  width: 100%;
  height: 350px;
}

.close-btn {
  float: right;
  cursor: pointer;
}

.movies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
  justify-content: center; /* 🔥 prevents full stretch */
  gap: 20px;
  padding: 20px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: #111;
}

/* RESPONSIVE */
@media(max-width:600px){
  .hero input { width: 90%; }
}