/* ==========================================================================
   Fine Line Film Fest
   ========================================================================== */

/* Fontovi su na sajtu (assets/fonts), ne na Google-u: brže i bez slanja podataka posetilaca trećoj strani */
@font-face {
    font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("../fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 600; font-display: swap;
    src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 600; font-display: swap;
    src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #000;
    --text: #f5f5f5;
    --muted: rgba(245, 245, 245, .6);
    --line: rgba(255, 255, 255, .12);
    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-accent: "Cormorant Garamond", Georgia, serif;   /* elegantni detalji */
    --pad: clamp(20px, 3.5vw, 56px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* Sopstveni skrol: jedan potez = jedan ekran (vidi main.js) */
html.fp, html.fp body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.fp main { transition: transform 1.2s cubic-bezier(.77, 0, .18, 1); will-change: transform; }

/* Telefon/tablet: običan skrol; dok je meni otvoren, stranica stoji */
html.menu-lock { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    display: flex; align-items: center; gap: 40px;
    padding: 26px var(--pad);
}
.brand { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.brand img { height: 40px; width: auto; }
.site-header.show-brand .brand { opacity: 1; transform: none; pointer-events: auto; }
.site-header.is-solid { background: rgba(0,0,0,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.main-nav { display: flex; gap: 36px; margin-left: auto; }
.main-nav a { position: relative; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.lang-switch button { color: var(--muted); transition: color .3s; }
.lang-switch button.is-active, .lang-switch button:hover { color: var(--text); }

.menu-toggle { display: none; position: relative; width: 32px; height: 32px; }
.menu-toggle span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 12px; }
.menu-toggle span:last-child { top: 20px; }
.menu-open .menu-toggle span:first-child { top: 16px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; display: grid; place-items: center; background: #050505; }
/* Karusel: slika stoji mirno; smena ide mekim zamućenjem i blagim zumom */
.hero-slides { position: absolute; inset: 0; }
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center 60%;
    opacity: 0; transform: scale(1.08); filter: blur(16px);
    transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease);
    will-change: transform, opacity, filter;
}
.hero-bg.is-on { opacity: 1; transform: scale(1); filter: blur(0); }
.hero-bg.is-off { opacity: 0; transform: scale(1.04); filter: blur(12px); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 45% 50%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.7) 75%),
        linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.75) 100%);
}

.hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: clamp(24px, 3.5vw, 60px);
    transform: translateX(-4vw);       /* logo malo levlje od centra */
}
.hero-logo { width: clamp(200px, 26vw, 460px); height: auto; opacity: 0; animation: fade-up 1.4s .3s var(--ease) forwards; }
.hero-line { width: 1px; align-self: stretch; margin-block: 4%; background: rgba(255,255,255,.7); transform: scaleY(0); animation: grow-y 1.2s .8s var(--ease) forwards; }
.hero-info { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 36px); opacity: 0; animation: fade-left 1.4s 1.1s var(--ease) forwards; }
.hero-tagline { white-space: pre-line; font-size: clamp(22px, 2.6vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }

.hero-event { display: flex; align-items: center; gap: 20px; }
.hero-date { font-size: clamp(14px, 1.2vw, 18px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-venue { height: clamp(28px, 2.6vw, 42px); width: auto; max-width: 180px; object-fit: contain; }
.hero-date:not(:empty) + .hero-venue:not([hidden]) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); box-sizing: content-box; }

.submit-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 1.1em 2em;
    border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
    font-size: clamp(13px, 1vw, 15px); font-weight: 700; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
    transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.submit-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.submit-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.submit-btn:hover svg { transform: translateX(4px); }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-left { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { to { transform: scaleY(1); } }
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Linija skrola ---------- */
.scrollbar { position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; z-index: 40; width: 12px; height: clamp(120px, 26vh, 240px); transform: translateY(-50%); cursor: pointer; }
.scrollbar::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.2); }
.scrollbar-thumb { position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1px; background: var(--text); transition: transform .25s linear, height .4s; }
.fp .scrollbar-thumb { transition: transform 1.2s cubic-bezier(.77, 0, .18, 1), height .4s; }

/* ---------- Dosadašnja selekcija ---------- */
.selection {
    position: relative; height: 100vh; height: 100dvh; min-height: 600px;
    display: grid; grid-template-rows: auto 1fr auto; gap: clamp(24px, 4vh, 48px);
    padding: calc(90px + 2vh) calc(var(--pad) + 30px) clamp(28px, 5vh, 56px) var(--pad);
    background: var(--bg);
}
.selection-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.selection-title { margin: 0; font-size: clamp(32px, 4.2vw, 68px); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.year-filter { display: flex; gap: 8px; }
.year-filter button { padding: .35em 1em .45em; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-accent); font-style: italic; font-variant-numeric: lining-nums; font-size: 20px; font-weight: 500; letter-spacing: .02em; color: var(--muted); transition: all .4s var(--ease); }
.year-filter button:hover { color: var(--text); border-color: rgba(255,255,255,.4); }
.year-filter button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Kategorije u okviru godine: poseban red ispod godina, tekst sa linijom ispod izabrane */
.cat-filter { flex-basis: 100%; display: flex; justify-content: flex-end; gap: 28px; margin-top: -8px; }
.cat-filter button { position: relative; padding: 4px 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color .4s var(--ease); }
.cat-filter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.cat-filter button:hover { color: var(--text); }
.cat-filter button[aria-selected="true"] { color: var(--text); }
.cat-filter button[aria-selected="true"]::after { transform: scaleX(1); transform-origin: left; }

.film { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; min-height: 0; }
.film-media img, .film-body { transition: opacity .3s ease; will-change: opacity; }
.film.is-swapping .film-media img, .film.is-swapping .film-body { opacity: 0; }
.film-media { position: relative; width: 100%; max-height: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #111; cursor: default; }
.film-media.has-trailer { cursor: pointer; }
.film-media img { width: 100%; height: 100%; object-fit: cover; }
.film-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); transition: background .6s; pointer-events: none; }
.film-media.has-trailer:hover::after { background: rgba(0,0,0,0); }

.film-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.3); backdrop-filter: blur(4px); transition: transform .5s var(--ease), background .5s; }
.film-play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--text); }
.film-media:hover .film-play { transform: scale(1.1); background: rgba(0,0,0,.5); }

.film-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.film-meta { font-family: var(--font-accent); font-style: italic; font-variant-numeric: lining-nums; font-size: 20px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.film-name { margin: 0; font-size: clamp(30px, 3.6vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.film-director { font-size: 15px; color: var(--muted); }
.film-director strong { color: var(--text); font-weight: 600; }
.film-synopsis { max-width: 52ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: rgba(245,245,245,.85); }
.film-trailer { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.film-trailer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.film-trailer:hover svg { transform: translateX(4px); }

.film-nav { display: flex; align-items: center; gap: 20px; }
.film-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: all .4s var(--ease); }
.film-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.film-arrow:hover:not(:disabled) { background: var(--text); color: var(--bg); border-color: var(--text); }
.film-arrow:disabled { opacity: .3; cursor: default; }
.film-count { font-family: var(--font-accent); font-style: italic; font-variant-numeric: lining-nums; font-size: 22px; font-weight: 500; letter-spacing: .04em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Galerija: traka koja se sama vrti (vidi main.js) ---------- */
.gallery {
    position: relative; height: 100vh; height: 100dvh; min-height: 560px;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(20px, 3.5vh, 44px);
    padding: calc(90px + 2vh) 0 0;
    background: var(--bg);
}
.gallery-title { margin: 0; padding: 0 calc(var(--pad) + 30px) 0 var(--pad); font-size: clamp(32px, 4.2vw, 68px); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.gallery-strip { align-self: center; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery-strip.is-dragging { cursor: grabbing; }
.gallery-track { display: flex; gap: clamp(10px, 1.2vw, 20px); width: max-content; will-change: transform; }
.gallery-item { flex: none; height: clamp(200px, 46vh, 520px); aspect-ratio: 3 / 2; overflow: hidden; background: #111; cursor: inherit; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease), opacity .6s; opacity: .85; }
.gallery-item:hover img { transform: scale(1.04); opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px clamp(16px, 6vw, 110px); background: rgba(0,0,0,.95); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 1px solid var(--line); border-radius: 50%; background: rgba(0,0,0,.4); transition: all .4s var(--ease); }
.lightbox-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox-arrow:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.lightbox-arrow.is-prev { left: clamp(10px, 2vw, 40px); }
.lightbox-arrow.is-next { right: clamp(10px, 2vw, 40px); }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--font-accent); font-style: italic; font-size: 20px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Futer: ispod galerije na početnoj i na dnu podstranica ---------- */
.site-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
    padding: clamp(18px, 3vh, 28px) calc(var(--pad) + 30px) calc(clamp(18px, 3vh, 28px) + env(safe-area-inset-bottom)) var(--pad);
    border-top: 1px solid var(--line);
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--text); }
.footer-links a[href^="mailto:"] { text-transform: none; letter-spacing: .04em; font-size: 13px; }
/* podstranice: futer je uvek na dnu ekrana, i kad je sadržaj kratak */
body:not([data-page="home"]) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not([data-page="home"]) .page { flex: 1; min-height: 0; }

/* ---------- Podstranice: About, Contact, 404 ---------- */
.page { min-height: 100vh; min-height: 100dvh; padding: calc(120px + 4vh) var(--pad) clamp(60px, 10vh, 120px); }
.page-inner { max-width: 1100px; }
.page-center { display: grid; align-items: center; }
.page-title { margin: 0 0 clamp(28px, 5vh, 56px); font-size: clamp(34px, 5vw, 80px); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.page-text { max-width: 64ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; color: rgba(245,245,245,.85); }
.page-text p + p { margin-top: 1.2em; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 22px clamp(24px, 4vw, 64px); margin: 0; }
.contact-list dt { font-family: var(--font-accent); font-style: italic; font-size: 20px; font-weight: 500; color: var(--muted); }
.contact-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: clamp(20px, 2.4vw, 36px); font-weight: 700; line-height: 1.2; }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }

/* ---------- Trejler ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px var(--pad); background: rgba(0,0,0,.92); }
.modal-frame { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: 16px; right: 24px; font-size: 40px; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--text); }

/* ---------- Mobilno ---------- */
@media (max-width: 860px) {
    .site-header { gap: 20px; }
    .brand { margin-right: auto; }
    .lang-switch { margin-left: auto; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 0; z-index: -1;
        flex-direction: column; justify-content: center; justify-content: safe center; gap: 14px; padding: 90px var(--pad) 40px; overflow-y: auto;
        background: #000; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
    }
    .main-nav a { font-size: clamp(28px, 8.4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
    .main-nav a::after { display: none; }
    .menu-open .main-nav { opacity: 1; visibility: visible; }
    /* zamućena pozadina zaglavlja bi „zarobila“ meni u visini zaglavlja – dok je meni otvoren, isključena je */
    .menu-open .site-header { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

    /* telefon: slika preko celog ekrana, samo ravnomerno zatamnjena (bez crnih ivica gore i dole) */
    .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.4) 100%); }
    .hero { min-height: 0; }
    .hero-inner { flex-direction: column; gap: 24px; transform: none; text-align: center; padding-inline: var(--pad); }
    .hero-logo { width: min(60vw, 300px); }
    .hero-line { width: 60px; height: 1px; align-self: center; margin: 0; transform: scaleX(0); animation-name: grow-x; }
    .hero-info { align-items: center; }
    .hero-event { flex-direction: column; gap: 14px; }
    .hero-date:not(:empty) + .hero-venue:not([hidden]) { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

@media (max-width: 860px) {
    .scrollbar { right: 8px; }
    /* niže zaglavlje (68px), a selekcija kreće ispod njega – naslov se ne podvlači pod zaglavlje */
    .site-header { padding-block: 14px; }
    /* selekcija staje u jedan ekran telefona */
    .selection { grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 84px var(--pad) 20px; }
    .selection-head { gap: 10px; align-items: center; }
    .selection-title { font-size: clamp(26px, 8vw, 36px); }
    .year-filter button { font-size: 17px; padding: .25em .8em .3em; }
    /* godine i kategorije: jedan red koji se po potrebi prevlači prstom */
    .year-filter, .cat-filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .year-filter::-webkit-scrollbar, .cat-filter::-webkit-scrollbar { display: none; }
    .year-filter button { flex-shrink: 0; }
    .cat-filter { justify-content: flex-start; gap: 20px; margin-top: -2px; }
    .cat-filter button { font-size: 12px; }
    .film { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 14px; align-items: start; align-content: start; overflow: hidden; }
    .film-media { aspect-ratio: 16 / 10; max-height: 34dvh; }
    .film-body { gap: 6px; min-height: 0; }
    .film-meta { font-size: 17px; }
    .film-name { font-size: clamp(26px, 7.5vw, 34px); }
    .film-director { font-size: 14px; }
    .film-synopsis { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
    .film-trailer { margin-top: 2px; }
    .film-nav { justify-content: center; }
    .film-arrow { width: 44px; height: 44px; }
}
@media (max-width: 860px) {
    /* telefon: svaka sekcija je tačno jedan ekran, bez obzira na sadržaj */
    .hero, .selection, .gallery { min-height: 0; }
    .gallery { gap: 18px; padding: 84px 0 0; }
    .gallery-title { padding-inline: var(--pad); font-size: clamp(26px, 8vw, 36px); }
    .gallery-item { height: min(46dvh, 110vw); }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding-inline: var(--pad); font-size: 11px; }
    .footer-links { gap: 8px 22px; }
    .gallery-item img { opacity: 1; }
    .lightbox { padding: 60px 0; }
    .lightbox img { max-height: calc(100dvh - 160px); }
    .lightbox-arrow { top: auto; bottom: 14px; margin-top: 0; width: 44px; height: 44px; }
    .lightbox-count { bottom: 26px; }
}
/* niži telefoni: manja slika i naslov, da ostane mesta za sinopsis */
@media (max-width: 860px) and (max-height: 700px) {
    .film-media { max-height: 28dvh; }
    .film-name { font-size: clamp(22px, 6.6vw, 28px); }
    /* hero mora da stane i na nizak ekran (npr. iPhone SE sa trakama pretraživača) */
    .hero-inner { gap: 16px; }
    .hero-logo { width: min(48vw, 34dvh, 240px); }
    .hero-tagline { font-size: 20px; }
    .hero-info { gap: 16px; }
}

@media (max-width: 860px) {
    .page { padding: 110px var(--pad) 60px; }
    .page-title { font-size: clamp(30px, 9vw, 44px); }
    .contact-list { grid-template-columns: 1fr; gap: 4px; }
    .contact-list dt { font-size: 17px; }
    .contact-list dd { font-size: clamp(19px, 5.6vw, 26px); margin-bottom: 18px; }
    .main-nav a.is-active { opacity: .5; }
}

/* najniži telefoni (iPhone SE sa trakama pretraživača): još manja slika filma */
@media (max-width: 860px) and (max-height: 600px) and (orientation: portrait) {
    .film-media { max-height: 23dvh; }
    .selection { gap: 10px; padding-top: 78px; }
    .selection-title { font-size: 26px; }
}

/* ---------- Telefon položen (landscape): nizak ekran, raspored u redu ---------- */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
    .site-header { padding-block: 10px; }
    .brand img { height: 32px; }
    .scrollbar { display: none; }
    .hero, .selection, .gallery { min-height: 0; }

    .hero-inner { flex-direction: row; gap: clamp(20px, 4vw, 40px); text-align: left; transform: none; }
    .hero-logo { width: min(30vw, 58dvh * 1.33, 300px); }
    .hero-line { width: 1px; height: auto; align-self: stretch; margin-block: 4%; transform: scaleY(0); animation-name: grow-y; }
    .hero-info { align-items: flex-start; gap: 14px; }
    .hero-tagline { font-size: clamp(18px, 3vw, 26px); }
    .hero-event { flex-direction: row; gap: 14px; }
    .submit-btn { padding: .9em 1.6em; }

    .selection { gap: 8px; padding: 58px calc(var(--pad) + 8px) 10px var(--pad); }
    .selection-head { gap: 4px 16px; align-items: center; }
    .selection-title { flex: none; font-size: 22px; }
    .year-filter { margin-left: auto; }
    .year-filter button { font-size: 15px; }
    .cat-filter { margin: -2px 0 0; }
    .cat-filter button { font-size: 11px; padding: 2px 0; }
    .film { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 20px; align-items: stretch; }
    .film-media { max-height: none; height: 100%; aspect-ratio: auto; }
    .film-body { gap: 4px; }
    .film-meta { font-size: 15px; }
    .film-name { font-size: 22px; }
    .film-director { font-size: 13px; }
    .film-synopsis { font-size: 13px; line-height: 1.5; }
    .film-arrow { width: 34px; height: 34px; }
    .film-count { font-size: 18px; }
    .film-nav { gap: 14px; }

    .gallery { gap: 10px; padding: 58px 0 0; }
    .site-footer { flex-direction: row; align-items: center; padding-block: 10px; font-size: 11px; }
    .gallery-title { font-size: 22px; }
    .gallery-item { height: calc(100dvh - 58px - 26px - 20px - 40px - 8px); }

    .lightbox { padding: 16px 70px; }
    .lightbox img { max-height: calc(100dvh - 32px); }
    .lightbox-arrow { top: 50%; bottom: auto; margin-top: -22px; }
    .lightbox-count { bottom: 8px; font-size: 16px; }
}
