/* ===== FILM DETAIL PAGE ===== */
.film-backdrop {
  height: 380px;
  background-size: cover;
  background-position: center 20%;
  position: relative;
}

.backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,15,.3) 0%, var(--bg) 100%);
}

.film-detail-page {
  padding-top: 1.5rem;
}

.breadcrumb-nav { margin-bottom: 1.5rem; }

/* ===== FILM HERO ===== */
.film-hero {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.film-poster {
  width: 280px;
  aspect-ratio: 2/3;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  margin-top: -120px;
  position: relative;
  z-index: 2;
  display: block;
}

.film-poster-placeholder {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 14px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-top: -120px;
}

.film-main-info { flex: 1; min-width: 0; padding-top: 0.5rem; }

.film-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.film-original-title {
  color: var(--text3);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.film-tagline {
  color: var(--text2);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.film-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.film-chips .chip {
  text-decoration: none;
  transition: all .2s;
}

.film-chips .chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Stats */
.film-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.stat-item { display: flex; flex-direction: column; gap: .15rem; }
.stat-label { font-size: .7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.stat-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.stat-value.gold { color: #fbbf24; }
.stat-sub { font-size: .75rem; color: var(--text3); margin-left: 2px; }

.stars {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #fbbf24;
  margin-right: 4px;
}

.film-director {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.film-director strong { color: var(--text); }

/* Synopsis */
.film-synopsis { margin-top: 0.5rem; }

.section-sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .8rem;
}

.film-synopsis p {
  color: var(--text2);
  line-height: 1.8;
  font-size: .95rem;
}

/* ===== SECTIONS ===== */
.film-section {
  margin-bottom: 2.5rem;
}

/* Cast — horizontal scroll */
.cast-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scroll-snap-type: x mandatory;
}

.cast-card {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  scroll-snap-align: start;
}

.cast-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: .4rem;
  display: block;
}

.cast-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: .4rem;
}

.cast-name { font-size: .75rem; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.cast-char { font-size: .68rem; color: var(--text3); }

/* Similar grid */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.similar-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: transform .2s, border-color .2s;
}

.similar-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.similar-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}

.similar-title {
  padding: .45rem .55rem;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .film-backdrop { height: 200px; }
  .film-hero { flex-direction: column; gap: 1rem; }
  .film-poster { width: 140px; margin-top: -70px; border-radius: 10px; }
  .film-poster-placeholder { width: 140px; margin-top: -70px; }
  .film-title { font-size: 1.3rem; }
  .film-stats { gap: .75rem; padding: .75rem 1rem; }
  .similar-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .65rem; }
}

@media (max-width: 480px) {
  .film-backdrop { height: 160px; }
  .film-poster { width: 120px; margin-top: -60px; }
  .film-poster-placeholder { width: 120px; margin-top: -60px; }
  .film-title { font-size: 1.15rem; }
  .film-stats { flex-wrap: wrap; gap: .6rem; }
  .cast-card { width: 72px; }
  .cast-photo, .cast-photo-placeholder { width: 72px; height: 72px; }
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
}
