/* IFF Core – base styles. Tokens come from the wireframes; swap values when the final visual design lands. */
:root {
	--iff-ink: #1c1c22;
	--iff-muted: #55555f;
	--iff-line: #d5d5db;
	--iff-fill: #e6e6ea;
	--iff-bg: #ffffff;
	--iff-accent: #1c1c22;      /* replace with brand accent */
	--iff-accent-ink: #ffffff;
	--iff-font: 'IBM Plex Sans', system-ui, sans-serif;
	--iff-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--iff-gutter: clamp(16px, 4.5vw, 64px);
	--iff-max: 1440px;
}

.iff-wrap { max-width: var(--iff-max); margin: 0 auto; padding: 0 var(--iff-gutter); box-sizing: border-box; }
[class^="iff-"], [class*=" iff-"] { font-family: var(--iff-font); color: var(--iff-ink); box-sizing: border-box; }
.iff-muted { color: var(--iff-muted); font-size: 14px; margin: 0; }
.iff-eyebrow { font-family: var(--iff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--iff-muted); }
.iff-badge { display: inline-block; background: var(--iff-fill); padding: 4px 10px; font-size: 12px; font-weight: 600; }

/* Buttons */
.iff-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; background: var(--iff-accent); color: var(--iff-accent-ink) !important; font-weight: 600; text-decoration: none; border: 1.5px solid var(--iff-accent); }
.iff-btn:hover { filter: brightness(1.15); }
.iff-btn--light { background: #fff; color: var(--iff-ink) !important; border-color: #fff; }
.iff-btn--ghost { background: transparent; color: #fff !important; border-color: #fff; }

/* Hero */
.iff-hero { position: relative; min-height: min(680px, 90vh); display: grid; place-items: center; text-align: center; color: #fff; background: #3f3f47; overflow: hidden; }
.iff-hero__slides, .iff-hero__slide { position: absolute; inset: 0; }
.iff-hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.iff-hero__slide.is-on { opacity: 1; }
.iff-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.iff-hero__inner { position: relative; z-index: 1; padding: 48px var(--iff-gutter); max-width: 900px; }
.iff-hero__inner * { color: #fff; }
.iff-hero__logo { max-height: 72px; margin-bottom: 16px; animation: iff-logo-in 1.4s ease both; }
.iff-hero__title { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 16px; }
.iff-hero__dates { font-size: 22px; font-weight: 600; margin: 0; }
.iff-hero__venues { margin: 8px 0 0; opacity: .85; }
.iff-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@keyframes iff-logo-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .iff-hero__logo { animation: none; } .iff-hero__slide { transition: none; } }

/* Rows & cards */
.iff-row { margin: 48px 0; }
.iff-row__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.iff-row__head h2 { margin: 0; font-size: 22px; }
.iff-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.iff-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iff-card { display: flex; flex-direction: column; gap: 6px; }
.iff-card__img img, .iff-ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--iff-fill); }
.iff-card__title { font-size: 15px; margin: 4px 0 0; }
.iff-card__title a { text-decoration: none; }
.iff-card__meta { font-size: 13px; color: var(--iff-muted); margin: 0; }
.iff-card__buy { font-size: 13px; font-weight: 600; }
.iff-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0; }
.iff-highlight { display: flex; flex-direction: column; gap: 8px; }
.iff-highlight .iff-card__title { font-size: 20px; }

/* Passes */
.iff-passes { border: 1px solid var(--iff-line); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 48px 0; }
.iff-passes h2 { margin: 0; font-size: 20px; }
.iff-passes__list { display: flex; flex-wrap: wrap; gap: 12px; }
.iff-pass { border: 1px solid var(--iff-line); padding: 14px 20px; text-decoration: none; font-size: 14px; }
.iff-pass:hover { border-color: var(--iff-ink); }
.iff-passes__note { width: 100%; margin: 0; font-size: 13px; color: var(--iff-muted); }

/* Film page */
.iff-crumbs { margin: 40px 0 10px; }
.iff-film-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.iff-he { font-weight: 400; color: var(--iff-muted); }
.iff-presented { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; }
.iff-presented img { max-height: 36px; width: auto; }
.iff-film__cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin-top: 32px; }
.iff-film__main { display: flex; flex-direction: column; gap: 28px; }
.iff-trailer iframe, .iff-trailer img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.iff-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.iff-tags li { border: 1px solid var(--iff-line); padding: 6px 12px; font-size: 13px; }
.iff-credits { border-top: 1px solid var(--iff-line); border-bottom: 1px solid var(--iff-line); padding: 16px 0; }
.iff-credits summary { display: flex; justify-content: space-between; font-weight: 600; cursor: pointer; list-style: none; }
.iff-credits[open] summary span { display: none; }
.iff-partners ul { display: flex; gap: 12px; list-style: none; padding: 0; flex-wrap: wrap; }
.iff-partners img { max-height: 44px; }
.iff-share { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.iff-share .iff-copy { all: unset; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--iff-ink); min-height: 44px; display: inline-flex; align-items: center; }
.iff-share .iff-copy:focus-visible { outline: 2px solid var(--iff-ink); outline-offset: 2px; }
.iff-film__side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.iff-screenings { border: 1.5px solid var(--iff-ink); padding: 22px; }
.iff-screenings h2 { margin: 0 0 6px; font-size: 20px; }
.iff-screening { border-top: 1px solid var(--iff-line); padding-top: 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.iff-screening__when { font-weight: 700; margin: 0; }
.iff-screening .iff-badge { align-self: flex-start; }
.iff-box { border: 1px solid var(--iff-line); padding: 18px; }
.iff-box p { margin: 4px 0 8px; }
.iff-buybar { display: none; }

/* Schedule */
.iff-days { position: sticky; top: 0; z-index: 5; background: var(--iff-bg); display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--iff-line); }
.iff-days button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; padding: 12px 18px; font-family: var(--iff-font); font-size: 14px; color: var(--iff-ink); cursor: pointer; white-space: nowrap; min-height: 44px; }
.iff-days button:focus-visible { outline: 2px solid var(--iff-ink); outline-offset: -2px; }
/* !important: many themes style every <button> with very specific selectors. */
.iff-days button[role="tab"] { background: transparent !important; color: var(--iff-ink) !important; border: 0 !important; }
.iff-days button[role="tab"][aria-selected="true"] { background: var(--iff-ink) !important; color: #fff !important; font-weight: 600; }
.iff-slot__time { white-space: nowrap; }
.iff-slot__film small { display: block; line-height: 1.4; }
.iff-venue { margin-top: 30px; }
.iff-venue__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding-bottom: 10px; }
.iff-venue__head h2 { margin: 0; font-size: 20px; }
.iff-slot { display: grid; grid-template-columns: 120px minmax(0, 1fr) 180px 160px; gap: 20px; align-items: center; border-top: 1px solid var(--iff-line); padding: 16px 0; }
.iff-slot__time { font-size: 22px; font-weight: 700; }
.iff-slot__film a { font-size: 17px; font-weight: 600; display: block; }
.iff-slot__film small { font-size: 13px; color: var(--iff-muted); }

/* Tablet & phone */
@media (max-width: 1024px) {
	.iff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.iff-film__cols { grid-template-columns: 1fr; }
	.iff-film__side { position: static; }
}
@media (max-width: 640px) {
	.iff-grid, .iff-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iff-highlights { grid-template-columns: 1fr; }
	.iff-slot { grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; }
	.iff-slot__time { font-size: 18px; }
	.iff-slot > span:nth-child(3) { grid-column: 2; }
	.iff-slot > span:nth-child(3):empty { display: none; }
	.iff-slot .iff-btn { grid-column: 1 / -1; }
	.iff-buybar { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; justify-content: center; min-height: 52px; align-items: center; background: var(--iff-accent); color: var(--iff-accent-ink) !important; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
}
