/* flieks.co.za -- pages: per-route layouts (landing, schedule, film, cinema, errors) */

/* --- Landing page (zine-style city picker; see CityZine mock) --- */
.landing-zine { padding: 0; }
.zine-band { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.75rem; margin: 0 -1rem; background: var(--flk-accent); color: var(--flk-ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }
.back-to-city { display: block; margin: 1rem 0 0.75rem; padding: 0.6rem 0.85rem; background: var(--bg-card); border: 1.5px solid var(--flk-accent); color: var(--flk-ink); font-weight: 600; font-size: 0.95rem; }
.back-to-city:hover { background: var(--flk-accent); color: var(--flk-ink); text-decoration: none; }
.city-zine-list { list-style: none; margin: 0 -1rem; padding: 0; }
/* Two-column list on wider viewports when cities.length > 12 (#629).
   Template sets data-long; stacking stays cinema-count-descending. */
@media (min-width: 720px) {
  .city-zine-list[data-long="true"] { columns: 2; column-gap: 2rem; }
  .city-zine-list[data-long="true"] .city-zine-item { break-inside: avoid; }
}
.city-zine-item { border-bottom: 0.5px solid rgba(0, 0, 0, 0.2); }
.city-zine-item.city-top { background: color-mix(in srgb, var(--flk-accent) 12%, transparent); }
.city-zine-link { display: grid; grid-template-columns: 1.75rem 1fr auto; column-gap: 0.5rem; align-items: baseline; padding: 0.65rem 1rem; color: var(--flk-ink); }
.city-zine-link:hover { color: var(--flk-ink); background: rgba(0, 0, 0, 0.03); text-decoration: none; }
.city-zine-index { font-size: 0.65rem; opacity: 0.5; font-variant-numeric: tabular-nums; }
.city-zine-label { min-width: 0; display: inline-flex; align-items: baseline; gap: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-zine-name { font-family: var(--font-stack); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
.city-top .city-zine-name { color: var(--flk-hot); }
.city-zine-province { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); line-height: 1; }
.city-zine-count { text-align: right; font-size: 0.65rem; opacity: 0.75; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- City schedule notes & filter header --- */
.schedule-note { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.schedule-stale-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; padding: 0.4rem 0.6rem; border-left: 3px solid var(--text-muted); }
/* #776: heading-sized for the film-name variant on /{city}/movie/{slug};
   .filter-header-cinema drops back to the original footnote sizing. */
.filter-header { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.75rem; }
.filter-header a { font-weight: 700; color: var(--flk-ink); }
.filter-header-cinema { font-size: 0.95rem; margin-bottom: 0.5rem; }
.filter-header-cinema a { font-weight: 600; color: var(--accent); }
.schedule-empty { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; }

/* --- About page --- */
.about { margin-top: 2rem; }
.about > h1 { margin-bottom: 2rem; }
.about > section { margin-bottom: 2.5rem; }
.about > section > h2 { margin-bottom: 0.75rem; }
.about > section > h3 { margin-bottom: 0.5rem; margin-top: 1rem; }
.about > section > p { line-height: 1.6; margin-bottom: 0.75rem; }
.about > section > ul { margin: 0.75rem 0 0 1.25rem; }
.about > section > ul > li { margin-bottom: 0.4rem; line-height: 1.55; }

/* --- Error pages --- */
.error-page { margin-top: 2rem; }
.error-page h1 { margin-bottom: 0.5rem; }
.error-page p { margin-bottom: 1rem; }

/* --- Films list (poster grid; HomeByFilm mock for the films tab #771).
   Structurally the same as the city-scoped by-film grouping
   (see ``.by-film-*`` in components.css), so the films index reuses
   those classes and only adds the page-local filter input + a
   light hover on the title link. */
.films-filter { margin-bottom: 1rem; }
.films-search { width: 100%; padding: 0.5rem 0.75rem; font-size: 0.95rem; font-family: var(--font-stack); color: var(--text); background: var(--bg-card); border: 1px solid var(--border-subtle); }
.films-search:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.films-list { list-style: none; padding: 0; margin: 0; }
.films-list .by-film-title:hover { color: var(--accent); text-decoration: none; }

/* --- Movie detail --- */
.film-article { margin-top: 0.75rem; }
.film-back { display: inline-block; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.film-back:hover { color: var(--accent); }
.film-article > h2 { margin-top: 1rem; margin-bottom: 0.5rem; }
.film-header { display: flex; gap: 1.5rem; margin-bottom: 1rem; margin-top: 0.5rem; }
.film-poster { max-width: 300px; width: 40%; height: auto; flex-shrink: 0; }
.film-header-info { flex: 1; min-width: 0; }
.film-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0; }
.film-meta span:not(:last-child)::after { content: "\00b7"; margin-left: 0.5rem; }
.film-credit { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0; }
.film-synopsis { margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.6; }
.film-trailer { margin-bottom: 1.5rem; }
.film-trailer iframe { width: 100%; aspect-ratio: 16 / 9; border: none; }
.film-city-section { margin-bottom: 1.25rem; }
/* Snag B11: collapses screenings in cities other than the visitor's
   current one. Closed by default; the summary chip is the only thing
   the visitor sees until they ask for more. */
.film-other-cities { margin-bottom: 1.25rem; }
.film-other-cities > summary { display: inline-block; padding: 0.4rem 0.75rem; font-size: 0.9rem; background: var(--bg-card); border: 1px solid var(--border-subtle); cursor: pointer; list-style: none; user-select: none; }
.film-other-cities > summary::-webkit-details-marker { display: none; }
.film-other-cities[open] > summary { margin-bottom: 1rem; }
@media (pointer: coarse) { .film-other-cities > summary { min-height: 44px; padding: 0.6rem 0.9rem; } }
.film-cinema-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; padding: 0.5rem; background: var(--bg-card); margin-bottom: 1px; }
.film-cinema-name { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.film-cinema-day { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; flex-basis: 100%; }
.film-cinema-day-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; min-width: 4rem; }
.film-showtimes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.film-showtime-link { display: inline-block; padding: 0.2rem 0.5rem; font-size: 0.85rem; background: var(--accent); color: var(--bg-card); white-space: nowrap; }
.film-showtime-link:hover { background: var(--accent-hover); color: var(--bg-card); text-decoration: none; }
@media (max-width: 480px) {
  .film-header { flex-direction: column; }
  .film-poster { width: 60%; max-width: none; }
}

/* --- Cinemas index --- */
.cinemas-sort-toggle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.cinemas-set-location { background: var(--bg-card); border: 1px dashed var(--border-subtle); color: var(--text-muted); padding: 0.25rem 0.6rem; cursor: pointer; font-family: var(--font-stack); font-size: 0.85rem; }
.cinemas-list { list-style: none; }
.cinemas-list-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding: 0.5rem; background: var(--bg-card); margin-bottom: 1px; }
.cinemas-list-name { font-weight: 600; color: var(--text); }
.cinemas-list-where { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--text-muted); }
.cinemas-list-distance { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* --- Cinema detail --- */
.cinema-header { margin-bottom: 1.5rem; }
.cinema-chain-badge { display: inline-block; font-size: 0.8rem; color: var(--bg-card); background: var(--accent); padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.75rem; }
.cinema-meta { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0; }
.cinema-meta p { margin: 0.25rem 0; }
.cinema-description { font-size: 0.95rem; line-height: 1.6; margin: 0.75rem 0; }
