/**
 * FilmMerge — film-single.css
 * Template: single-fm_film.php
 * CSS classes extracted from filmmerge-page-generator.html output + catalog design system.
 * All class names prefixed with .fm-film__ to avoid collision with other pages.
 */

/* ── Hero ──────────────────────────────────────────────────── */
.fm-film__hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.fm-film__hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(200,151,58,.06) 0%, transparent 65%),
              linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%);
}
.fm-film__hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.fm-film__hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
  grid-column: 1 / -1;
}
.fm-film__hero-breadcrumb a { color: var(--muted); transition: color var(--transition); }
.fm-film__hero-breadcrumb a:hover { color: var(--gold); }

/* Poster */
.fm-film__poster {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(200,151,58,.1);
  aspect-ratio: 2/3;
  background: var(--panel);
  position: sticky;
  top: 88px;
}
.fm-film__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-film__poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,151,58,.12);
  font-size: 3.5rem;
}

/* Info column */
.fm-film__info { min-width: 0; }

.fm-film__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.fm-film__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Meta grid */
.fm-film__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fm-film__meta-item {
  padding: 12px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fm-film__meta-item:last-child { border-right: none; }
.fm-film__meta-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.fm-film__meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
}

/* Short synopsis */
.fm-film__short-synopsis {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
}

/* Hero actions */
.fm-film__hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Company credit */
.fm-film__company {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.fm-film__company span { color: var(--gold); }


/* ── Sections ──────────────────────────────────────────────── */
.fm-film__section { padding: 80px 0; }
.fm-film__section--alt { background: var(--deep); padding: 80px 0; }
.fm-film__wrap { max-width: var(--max-width, 1200px); margin: 0 auto; padding: 0 28px; }

.fm-film__section-header { margin-bottom: 48px; }
.fm-film__section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 8px;
}


/* ── Trailer ──────────────────────────────────────────────── */
.fm-film__trailer-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.fm-film__trailer-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ── Synopsis ─────────────────────────────────────────────── */
.fm-film__synopsis { max-width: 820px; }
.fm-film__synopsis-para {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.fm-film__synopsis-para:last-child { margin-bottom: 0; }


/* ── Cast ─────────────────────────────────────────────────── */
.fm-cast__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.fm-cast__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.fm-cast__card:hover { border-color: rgba(200,151,58,.2); transform: translateY(-3px); }
.fm-cast__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200,151,58,.18), rgba(200,151,58,.04));
  border: 1px solid rgba(200,151,58,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.fm-cast__name { font-size: 0.84rem; font-weight: 600; color: var(--cream); margin-bottom: 3px; }
.fm-cast__role { font-size: 0.73rem; color: var(--muted); font-style: italic; }

/* Crew */
.fm-crew__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.fm-crew__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fm-crew__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fm-crew__value { font-size: 0.86rem; font-weight: 500; color: var(--cream); text-align: right; max-width: 55%; }


/* ── Awards ────────────────────────────────────────────────── */
.fm-awards__grid { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-award__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(200,151,58,.07);
  border: 1px solid rgba(200,151,58,.2);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cream);
}
.fm-award__badge i { color: var(--gold); font-size: 0.9rem; }


/* ── CTA Sections ──────────────────────────────────────────── */
.fm-film__cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fm-film__cta-box {
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}
.fm-film__cta-box--license {
  background: linear-gradient(135deg, rgba(200,151,58,.1), rgba(200,151,58,.03));
  border: 1px solid rgba(200,151,58,.2);
}
.fm-film__cta-box--screen {
  background: var(--panel);
  border: 1px solid var(--border);
}
.fm-film__cta-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.fm-film__cta-box h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.fm-film__cta-box p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Related Films ─────────────────────────────────────────── */
.fm-film__related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fm-film__hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .fm-film__poster { max-width: 220px; margin: 0 auto; position: static; aspect-ratio: 2/3; }
  .fm-film__section { padding: 56px 0; }
  .fm-film__section--alt { padding: 56px 0; }
  .fm-film__cta-grid { grid-template-columns: 1fr; }
  .fm-film__related-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-film__meta { flex-direction: column; }
  .fm-film__meta-item { border-right: none; }
}
@media (max-width: 600px) {
  .fm-cast__grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .fm-crew__grid { grid-template-columns: 1fr; }
  .fm-film__related-grid { grid-template-columns: repeat(2, 1fr); }
}
