.movie-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.movie-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20,20,20,0.9) 15%, transparent),
              linear-gradient(to top, var(--netflix-black) 10%, transparent 90%),
              url('/trolls-world-tour-backdrop.png'); /* Use the Trolls World Tour backdrop */
  background-size: cover;
  background-position: center;
}

.movie-details {
  position: relative;
  padding: 150px 4% 0;
  max-width: 600px;
}

.movie-details h1 {
  font-size: 3.5rem;
  margin: 0 0 20px;
}

.movie-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.rating {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 5px;
}

.quality {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 5px;
}

.synopsis {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.movie-actions {
  display: flex;
  gap: 15px;
}

.play-btn, .more-info-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.play-btn {
  background: white;
  color: black;
}

.play-btn:hover {
  background: rgba(255,255,255,0.8);
}

.more-info-btn {
  background: rgba(109,109,110,0.7);
  color: white;
}

.more-info-btn:hover {
  background: rgba(109,109,110,0.5);
}

.movie-content {
  padding: 40px 4%;
}

.cast-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.cast-list {
  display: flex;
  gap: 30px;
  /* Allow wrapping on smaller screens */
  flex-wrap: wrap;
  justify-content: center; /* Center items when wrapped */
}

.cast-member {
  text-align: center;
  /* Ensure consistent width even with fewer items */
  flex: 0 0 auto;
  min-width: 100px; /* Prevent shrinking too much */
}

.actor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  background-color: #333; /* Use a default background */
  /* Add a placeholder image or remove if not needed */
  background-image: url('/placeholder-avatar.png'); /* Placeholder */
  background-size: cover;
  background-position: center;
}

.cast-member span {
  display: block;
}

.character {
  color: #777;
  font-size: 0.9rem;
}

.movie-title-img {
  max-width: 500px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
  .movie-title-img {
    max-width: 300px;
  }
   .actor-avatar {
    width: 80px;
    height: 80px;
  }
}