.movies-hero {
  width: min(1100px, 92vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.movies-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-transform: lowercase;
}

.movies-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  max-width: 480px;
}

.movies-stats {
  display: flex;
  justify-content: flex-end;
}

.movies-controls {
  width: min(1100px, 92vw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.movies-controls .search-wrap {
  flex: 1 1 260px;
}

#search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  outline: none;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

#filter-container select {
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(12, 20, 50, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  cursor: pointer;
}

#filter-container option {
  background: #0d1634;
}

.movie-grid {
  width: min(1100px, 92vw);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 90px;
}

.movie-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-deep) 100%);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 30px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.movie-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.genre-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
}

.movie-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.action-buttons .watch-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f7f9ff;
  text-transform: lowercase;
}

.action-buttons .info-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: lowercase;
}

@media (max-width: 720px) {
  .movies-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card {
    padding: 10px;
    gap: 8px;
  }

  .movie-card img {
    height: 190px;
  }

  .movie-card h3 {
    font-size: 0.92rem;
  }

  .movie-meta {
    font-size: 0.75rem;
  }
}
