/* Static film pages (films/<slug>/), written by scripts/generate-film-pages.mjs */
.film-page-shell {
  width: min(1024px, 100%);
  margin: 0 auto;
}
.film-page-brandbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 0.5rem;
}
.film-page-wordmark {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(72vw, 520px);
  object-fit: contain;
  object-position: left center;
}
.film-page-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.film-page-return {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}
.film-page-card {
  width: 100%;
}
.film-showtimes-heading {
  margin: 0 0 0.6rem;
  color: var(--accent-2);
  font-size: 1rem;
}
.film-page-empty {
  margin: 0.45rem 0 0;
  color: var(--muted);
}
.film-page-note {
  margin: 0;
  color: var(--muted);
}
.film-page-title {
  font-style: italic;
}
.film-page-meta {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: -0.1rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.film-page-meta span + span::before {
  content: "·";
  margin: 0 0.45rem;
}
.film-page-facts {
  margin-top: 0.15rem;
}
.film-page-facts .film-fact:first-child .film-fact-value {
  line-height: 1.5;
}
.film-page-card .group-film-summary {
  grid-template-columns: minmax(0, 1fr) 104px;
}
.film-page-card .group-film-details {
  grid-column: 1;
  grid-row: 1;
}
.film-page-card .film-page-poster-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.film-page-card .group-film-poster {
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  width: 104px;
  height: 156px;
}
.film-page-card .film-page-feature-link {
  margin-top: 0;
  text-align: center;
  justify-content: center;
}
.group-card.film-card.film-page-card:not(.film-card-collapsed) .film-favorite-stamp {
  top: auto;
  bottom: 0.45rem;
}
.group-card.film-card.film-page-card:not(.film-card-collapsed) .film-featured-stamp {
  top: auto;
  bottom: 0.45rem;
}
.group-card.film-card.film-page-card.film-card-staff-favorite.film-card-featured-playweek:not(.film-card-collapsed) .film-favorite-stamp {
  top: auto;
  bottom: 0.45rem;
}
.group-card.film-card.film-page-card.film-card-staff-favorite.film-card-featured-playweek:not(.film-card-collapsed) .film-featured-stamp {
  top: auto;
  bottom: 0.45rem;
}
.film-info-box {
  margin-bottom: 0.9rem;
}
.film-showtimes-box {
  width: 100%;
}
.film-showtimes-box .show-item {
  border: 1px solid var(--border);
  border-style: solid;
  background: var(--surface-alt);
  padding: 0.72rem 0.74rem;
  border-radius: 12px;
}
.film-showtimes-box .show-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.film-showtimes-box .show-list.show-list-masonry {
  grid-template-columns: repeat(var(--show-columns, 2), minmax(0, 1fr));
  align-items: start;
}
.film-showtimes-box .show-masonry-column {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
/* The theatre's name (and distance), with its Tickets link on the right. */
.film-showtimes-box .show-theatre-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.film-showtimes-box .show-theatre-head .show-link {
  flex-shrink: 0;
  margin-top: -0.1rem;
}
.film-showtimes-box .show-more-theatres {
  display: block;
  margin: 0.8rem auto 0;
  font-weight: 700;
}
.film-showtimes-box .show-more-theatres[hidden] {
  display: none;
}
.film-showtimes-box .film-page-festival-ribbon {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.34rem;
  border-radius: 999px;
  padding: 0.16rem 0.54rem;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--festival-ribbon-ink);
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(29, 31, 31, 0.18);
}
.film-showtimes-box .show-main-theatre {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
/* The town and distance sit on their own line under the theatre's name. */
.film-showtimes-box .show-main-city {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.film-showtimes-box .show-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
  margin-top: 0;
}
.film-showtimes-box .show-day-card {
  margin: 0;
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}
.film-showtimes-box .show-day-card-empty {
  display: grid;
  align-items: center;
}
.film-showtimes-box .show-schedule-day {
  margin: 0 0 0.38rem;
}
.film-showtimes-box .show-times-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}
.film-showtimes-box .show-room-label {
  margin: 0 0 0.34rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
}
.film-showtimes-box .show-room-group + .show-room-group {
  margin-top: 0.5rem;
}
/* A festival day among regular days carries its own ribbon, under the date. */
.film-showtimes-box .show-day-festival {
  display: flex;
  box-shadow: none;
}
.film-showtimes-box .show-more-days {
  margin-top: 0.5rem;
}
.film-showtimes-box .show-more-days-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.62rem;
}
.film-showtimes-box .show-more-days-toggle::-webkit-details-marker {
  display: none;
}
.film-showtimes-box .show-more-days-toggle:hover,
.film-showtimes-box .show-more-days-toggle:focus-visible {
  background: var(--toggle-hover-bg);
  border-color: var(--toggle-hover-border);
}
.film-showtimes-box .show-schedule-extra {
  margin-top: 0.48rem;
}
.film-showtimes-box .show-time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.12rem 0.46rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.film-showtimes-box .show-time-chip.show-time-chip-premium {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
.film-showtimes-box .show-item {
  align-self: stretch;
  width: 100%;
  margin: 0;
}
/* Where distances are measured from: one line with the location chip, or a prompt. */
.film-location {
  margin: 0 0 0.75rem;
}
.film-location-sorted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.film-location-sorted[hidden],
.film-location-prompt[hidden] {
  display: none;
}
.film-location-chip {
  min-height: 2.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.7rem;
  box-shadow: none;
  color: var(--ink);
}
.film-location-prompt {
  max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  padding: 0.85rem;
}
.film-location-prompt-copy {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
/* "More about the film" only shows on phones, where the card folds down to a few lines of
   synopsis. The "js" class (set in the page's <head>) means the button can open it again. */
.film-page-more {
  display: none;
}
@media (max-width: 640px) {
  html.js .film-page-more {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.55rem 0;
    border: 0;
    background: none;
    color: var(--accent-2);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  html.js .film-page-card:not(.is-expanded) .film-fact:not(:first-child),
  html.js .film-page-card:not(.is-expanded) .group-tmdb-link {
    display: none;
  }
  html.js .film-page-card:not(.is-expanded) .film-fact:first-child .film-fact-value {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }
}
@media (min-width: 860px) {
  .film-page-card .group-film-summary {
    grid-template-columns: minmax(0, 1fr) 124px;
  }
  .film-page-card .group-film-poster {
    width: 124px;
    height: 186px;
  }
  .film-showtimes-box .show-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
