/* ─── Hero ───────────────────────────────────────────────────────────────── */
.page-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
}

.hero-content { display: grid; gap: 10px; }
.hero-title { margin-bottom: 0; }
.hero-subtitle { margin: 0; max-width: 72ch; color: var(--muted); }

/* ─── Featured banner ────────────────────────────────────────────────────── */
.featured-banner {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hard);
  border-radius: var(--radius-md);
  background-color: var(--bg-elev-1);
}

.featured-content {
  max-width: 520px;
  display: grid;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.featured-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.featured-overview {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(232, 234, 240, 0.8);
}

.btn-featured {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  background: var(--accent);
  color: #1a1000;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: var(--transition-interactive);
}

.btn-featured:hover {
  background: color-mix(in srgb, var(--accent) 85%, #fff 15%);
  box-shadow: var(--accent-glow);
}

/* ─── Home section ───────────────────────────────────────────────────────── */
.home-section { display: grid; gap: var(--space-4); }

.section-heading {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Genre filter bar ───────────────────────────────────────────────────── */
.genre-bar { display: flex; flex-wrap: wrap; gap: 6px; }

.genre-chip {
  background: transparent;
  border: 1px solid var(--border-hard);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-interactive);
}

.genre-chip:hover {
  background: var(--panel);
  color: var(--text);
  border-color: color-mix(in srgb, var(--border-hard) 70%, var(--accent) 30%);
}

.genre-chip--active {
  background: var(--accent-soft);
  border-color: rgba(232, 164, 40, 0.4);
  color: var(--accent);
  font-weight: 600;
}

.genre-chip--active:hover { opacity: 0.85; }

.featured-genre-chip {
  background: rgba(14, 16, 20, 0.6);
  border-color: rgba(232, 164, 40, 0.25);
  color: rgba(232, 234, 240, 0.85);
  font-size: var(--text-xs);
  backdrop-filter: blur(4px);
}

.featured-genre-chip:hover {
  background: var(--accent-soft);
  border-color: rgba(232, 164, 40, 0.4);
  color: var(--accent);
}

/* ─── Film detail page ───────────────────────────────────────────────────── */
.film-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.film-detail-poster {
  width: min(100%, 260px);
  min-height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hard);
  box-shadow: var(--shadow-2);
  display: flex;
}

.film-detail-poster .poster-image,
.film-detail-poster .poster { width: 100%; height: 100%; object-fit: cover; display: block; }

.film-meta { display: grid; gap: var(--space-3); }

.film-page-hero { background-position: center; background-size: cover; overflow: hidden; }

.film-meta-rich {
  align-content: start;
  background: rgba(20, 23, 32, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
}

.film-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}

.film-title { margin-bottom: 0; }
.film-stat-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.film-overview {
  margin: 0;
  max-width: 70ch;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 85%, var(--muted) 15%);
}

.film-actions { margin-top: var(--space-2); }

.film-director-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: var(--text-sm);
}

.person-link {
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition-interactive);
}

.person-link:hover { opacity: 0.8; text-decoration: underline; text-underline-offset: 2px; }

.film-info-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ─── Cast / crew ────────────────────────────────────────────────────────── */
.cast-crew-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.compact-info-card { margin-top: 0; padding: var(--space-3); gap: var(--space-3); }
.compact-detail-list { gap: var(--space-2); }
.compact-detail-row { padding: 6px 10px; font-size: var(--text-sm); }

/* ─── Where to watch ─────────────────────────────────────────────────────── */
.where-to-watch-content { display: grid; gap: var(--space-4); }
.where-to-watch-chips { row-gap: 10px; }
.where-to-watch-link { margin: 0; }

/* ─── Discover ───────────────────────────────────────────────────────────── */
.discover-search-card { margin-bottom: var(--space-5); }

/* ─── Profile ────────────────────────────────────────────────────────────── */
.two-col { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.timeline-item h3 { margin: var(--space-1) 0 var(--space-2); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .film-layout { grid-template-columns: 1fr; }
  .poster { width: 100%; max-width: 240px; }
  .film-detail-poster { justify-self: center; min-height: auto; }
  .film-detail-poster .poster-image,
  .film-detail-poster .poster { height: auto; aspect-ratio: 2/3; }
  .hero { padding: var(--space-4); }
  .featured-banner { min-height: 220px; padding: var(--space-4); }
  .toolbar-form { flex-wrap: wrap; align-items: stretch; }
  .toolbar-form label { flex: 1 1 100%; }
  .toolbar-form button { width: 100%; }
  .cast-crew-layout { grid-template-columns: 1fr; }
  .genre-chip { font-size: var(--text-xs); padding: 4px 10px; }
}
