/* Films page (30 Oct 2026, Sabin Rusu's ask): every film screened at Scandinavia House, one under the other, in the order of
   the screenings. The poster on the left; on the right the evening, the title, the credits (Directed by, Screenplay by …),
   a short synopsis and the way in. A film without a poster yet gets a typeset one (.fm__ph), never a stock picture.
   Scoped to body.p-films; tokens and type from fot.css. */

body.p-films .fm-head { padding-bottom: 0; }
body.p-films #films { padding-top: clamp(56px, 6vw, 96px); }
body.p-films .fm-head .h1 { text-wrap: balance; }
body.p-films .fm-head .sb--side { gap: 14px; }
body.p-films .fm-head .sb--side .body { font-size: 19px; line-height: 1.5; }

/* the evenings at a glance: day → film(s), each a jump to its entry */
body.p-films .fm-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
body.p-films .fm-days li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 18px 20px 0; border-bottom: 1px solid var(--hair); }
body.p-films .fm-days li + li { padding-left: 18px; border-left: 1px solid var(--hair); }
body.p-films .fm-days .d { font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); display: block; margin-bottom: 6px; }
body.p-films .fm-days a { display: block; font: 700 18px/1.25 var(--sans); letter-spacing: -.01em; }
body.p-films .fm-days a + a { margin-top: 4px; }
body.p-films .fm-days a:hover, body.p-films .fm-days a:focus-visible { color: var(--accent-t); }

/* one film */
body.p-films .fm-list { display: grid; gap: clamp(80px, 10vw, 160px); margin-top: clamp(64px, 8vw, 128px); }
body.p-films .fm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; scroll-margin-top: 110px; }
body.p-films .fm__p { grid-column: 1 / 6; margin: 0; position: sticky; top: 110px; }
body.p-films .fm__p img { width: 100%; height: auto; background: var(--soft); box-shadow: 0 0 0 1px var(--hair); }
body.p-films .fm__t { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 26px; min-width: 0; }

body.p-films .fm__when { display: flex; align-items: center; gap: 14px; }
body.p-films .fm__when span:last-child { display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
body.p-films .fm__when b { font: 700 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg); }
body.p-films .fm__when i { font-style: normal; color: var(--fg); }
body.p-films .fm__n { font: 700 clamp(40px, 4.6vw, 76px)/.92 var(--sans); letter-spacing: -.028em; text-transform: uppercase; text-wrap: balance; }
body.p-films .fm__k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
body.p-films .fm__k .wip { margin-left: 0; }
body.p-films .fm__k i { font-style: normal; color: var(--fg); }

/* the credits, as they read on a poster's billing block: role small, name large */
body.p-films .fm__cr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
body.p-films .fm__cr div { padding: 16px 16px 18px 0; border-bottom: 1px solid var(--hair); min-width: 0; }
body.p-films .fm__cr div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--hair); }
body.p-films .fm__cr dt { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
body.p-films .fm__cr dd { font: 700 19px/1.3 var(--sans); letter-spacing: -.005em; }
body.p-films .fm__cr dd span { display: block; font: 400 15px/1.45 var(--sans); color: var(--fg-2); margin-top: 2px; }

body.p-films .fm__s { font-size: 19px; line-height: 1.6; max-width: 58ch; }
body.p-films .fm__qa { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.5; color: var(--fg-2); max-width: 58ch; }
body.p-films .fm__qa::before { content: ""; inline-size: 10px; block-size: 10px; margin-top: 7px; background: var(--accent); }
body.p-films .fm__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* a typeset poster, until the film's own arrives */
body.p-films .fm__ph { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.2vw, 32px); background: var(--soft); box-shadow: 0 0 0 1px var(--hair); overflow: hidden; position: relative; }
body.p-films .fm__ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 15% 100%, rgba(156,107,255,.22), rgba(156,107,255,0) 70%); pointer-events: none; }
body.p-films .fm__ph-k { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); display: flex; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
body.p-films .fm__ph-t { font: 700 clamp(38px, 4.4vw, 74px)/.88 var(--sans); letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: anywhere; position: relative; z-index: 1; }
body.p-films .fm__ph-b { font: 500 12px/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; position: relative; z-index: 1; }
body.p-films .fm__ph-b span { display: block; color: var(--fg-2); }

body.p-films .fm-note { margin-top: clamp(80px, 10vw, 160px); padding-top: 22px; border-top: 1px solid var(--hair); }

@media (max-width: 1080px) {
  body.p-films .fm-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p-films .fm-days li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  body.p-films .fm { grid-template-columns: minmax(0, 1fr); }
  body.p-films .fm__p { grid-column: auto; position: static; max-width: 420px; }
  body.p-films .fm__t { grid-column: auto; margin-top: 32px; }
}
@media (max-width: 560px) {
  body.p-films .fm-days { grid-template-columns: minmax(0, 1fr); }
  body.p-films .fm-days li + li { padding-left: 0; border-left: 0; }
  body.p-films .fm__cr { grid-template-columns: minmax(0, 1fr); }
  body.p-films .fm__cr div:nth-child(2n) { padding-left: 0; border-left: 0; }
}
