/* Dark surface tokens live in static/css/base/tokens-dark.css (linked before
   this file in the template). Do not redefine them here. */
html {
  background: var(--black);
}
body {
  background: var(--black);
  color: var(--off-white);
  font-family: "Lora", serif;
  font-size: 1.125rem;
  line-height: 1.75;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 40px 96px;
}
.crumb {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumb a {
  color: var(--cream-dim);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--red-text);
}
.crumb a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.crumb-sep {
  color: var(--cream-dim);
}

.country-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* so the pill shrink-wraps */
  gap: 12px;
  margin: 0 0 64px;
}
.eyebrow-pill {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  background: var(--red);
  color: #f5efe2; /* bright cream on crimson — the only literal, per handoff */
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.country-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.lead {
  font-family: "Lora", serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--cream-mid);
  max-width: 640px;
}
.section {
  margin-top: 64px;
  padding-top: 0;
  border-top: none;
}
.section-h {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.film-card-grid.film-card-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

/* ── Movement strip (movement cards linking to the PR3 timeline) ──────────*/
.section-lead {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 640px;
  margin: -12px 0 24px;
}
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.mv-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mv-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.mv-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.mv-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.mv-collage-cell {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  filter: saturate(0.55);
  transition: filter 0.2s ease;
  background: var(--black-soft);
}
.mv-card:hover .mv-collage-cell {
  filter: saturate(1);
}
.mv-collage-cell--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
}
.mv-collage-cell--ph span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--cream-dim);
}
.mv-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
}
.mv-hook {
  font-family: "Lora", serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cream-mid);
}
.mv-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.mv-thread {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--cream);
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .mv-card,
  .mv-collage-cell {
    transition: none;
  }
  .mv-card:hover {
    transform: none;
  }
}

/* ── Poster-card grid (Featured Films + decade blocks) ────────────────────
   The shared components/film-card.css only styles the poster/info overlay.
   The grid, card frame, placeholder, title/meta, and bookmark live per-page
   (see search.css / list_view.css); replicate them here, scoped dark. */
.film-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.film-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.film-card-link--static {
  cursor: default;
}
.film-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.2s ease;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--black-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.film-card:hover {
  border-color: var(--red);
}
.film-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: absolute;
  top: 0;
  left: 0;
}
.film-card-placeholder-text {
  font-family: "Playfair Display", serif;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--cream-dim);
  text-align: center;
  line-height: 1.4;
}
.film-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--off-white);
  line-height: 1.25;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
}
.film-card img,
.film-card-poster {
  filter: saturate(0.55);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.film-card:hover img,
.film-card:hover .film-card-poster {
  filter: saturate(1);
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .film-card img,
  .film-card-poster {
    transition: none;
  }
  .film-card:hover img,
  .film-card:hover .film-card-poster {
    transform: none;
  }
}
.film-card-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: var(--bone-dim);
  letter-spacing: 0.5px;
}
/* Empty layout slot — populated by neither drawer nor SSR; kept for parity. */
.streaming-badges {
  position: absolute;
  bottom: 8px;
  left: 10px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.film-card-bookmark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.15s;
  background: rgba(15, 15, 15, 0.65);
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.film-card:hover .film-card-bookmark,
.film-card-bookmark:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .film-card-bookmark {
    opacity: 1;
  }
}

/* ── Films-by-decade pill filter ───────────────────────────────────────────*/
.decade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.decade-pill {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.decade-pill:hover {
  border-color: var(--red);
}
.decade-pill.is-active {
  background: var(--red);
  color: #f5efe2; /* bright cream on crimson — the only literal, per handoff */
  border-color: var(--red);
}
.decade-pill:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.decade-grid[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .decade-pill {
    transition: none;
  }
}

/* ── Responsive: defining/decade grids (6→4→2 cols), movement strip (3→2→1) ─
   Single consolidated section — do not scatter new breakpoints elsewhere. */
@media (max-width: 900px) {
  .film-card-grid.film-card-grid--6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 32px 18px 64px;
  }
  .country-header {
    margin-bottom: 48px;
  }
  .country-header h1 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .section {
    margin-top: 48px;
  }
  .film-card-grid.film-card-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
}
