:root {
    --bg: #000;
    --surface: #090909;
    --surface-soft: #131313;
    --text: #fff;
    --muted: #b0b0b0;
    --accent: #ec2f8d;
    --accent-2: #0099ff;
    --ring: rgba(0, 153, 255, 0.2);
    --film-hole: #1f1f1f;
    --radius: 14px;
    --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: radial-gradient(circle at top right, rgba(236, 47, 141, 0.16), transparent 30%), var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: 5rem 0; position: relative; }
.section-title {
    font-size: clamp(2rem, 6vw, 4.8rem);
    line-height: .95;
    letter-spacing: -0.05em;
    margin: 0 0 1rem;
}
.section-lead { color: var(--muted); max-width: 70ch; }

.about-layout,
.open-call-layout {
    display: grid;
    gap: 1.2rem;
}

.about-layout > .section-figure,
.open-call-layout > .section-figure {
    order: -1;
}

.section-figure {
    margin: 0;
}

.section-figure img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16/10;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
}

.section-figure figcaption {
    margin-top: .55rem;
    color: #9f9f9f;
    font-size: .9rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a { color: #e5e5e5; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); }
.admin-link { opacity: .8; }

.nav-toggle {
    display: none;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background:#fff; margin: 3px 0; pointer-events: none; }

.btn {
    border: 0;
    cursor: pointer;
    font-weight: 600;
}
.btn-pill {
    background: #fff;
    color: #000 !important;
    border-radius: 100px;
    padding: .7rem 1.2rem;
}
.btn-outline {
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 100px;
    padding: .7rem 1.2rem;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.hero {
    min-height: 80vh;
    display: grid;
    align-items: end;
    background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.86)), url('../images/site/hero.jpg') center/cover fixed;
}
.hero-content {
    padding: 8rem 0 5rem;
    max-width: 760px;
}
.hero-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    padding: .4rem .8rem;
    margin-bottom: 1rem;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 6rem);
    line-height: .9;
    letter-spacing: -0.05em;
}
.hero p { color: #d7d7d7; max-width: 62ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.film-edge {
    position: relative;
    overflow: hidden;
}

.nav-wrap.film-edge {
    overflow: visible;
}
.film-edge::before,
.film-edge::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 15px;
    background-image: radial-gradient(circle at 8px 7px, var(--film-hole) 5px, transparent 5.5px);
    background-size: 22px 15px;
    opacity: .92;
    pointer-events: none;
}
.film-edge::before { top: 0; }
.film-edge::after { bottom: 0; }

.panel {
    background: linear-gradient(145deg, #090909, #131313);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 0 0 1px var(--ring);
    border-radius: var(--radius);
    padding: 1.3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.edition-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    justify-content: space-between;
    min-height: 100%;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    padding: .8rem;
    transition: transform .25s ease, border-color .25s ease;
}
.edition-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.edition-card h3 { margin: .2rem 0 .45rem; }
.edition-card p { margin: 0; color: var(--muted); }
.edition-year { color: var(--accent); font-weight: 700; }
.edition-thumb-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
}
.edition-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #101010;
}
.edition-thumb-placeholder {
    display: grid;
    place-items: center;
    color: #9d9d9d;
    font-size: .9rem;
}
.edition-year-chip {
    position: absolute;
    top: .55rem;
    right: .55rem;
    padding: .2rem .6rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(0,0,0,.55);
    font-size: .8rem;
    font-weight: 700;
}
.editions-grid { align-items: stretch; }

.logo-strip {
    margin-top: 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: #060606;
    padding: 1rem 0;
}
.logo-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marquee 34s linear infinite;
}
.logo-track img {
    height: 70px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.form-grid { display: grid; gap: .85rem; }
.form-row { display: grid; gap: .85rem; grid-template-columns: 1fr; }
label { font-size: .9rem; color: #ddd; }
input, select, textarea {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.04);
    color: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(0,153,255,.2);
}
.error-text { color: #ff7da2; font-size: .82rem; display: none; }

.faq-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.faq-item button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #fff;
    padding: 1rem .2rem;
    border: 0;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 220px; padding-bottom: 1rem; }

.news-card img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.news-card h3 { margin-bottom: .3rem; }
.news-date { color: #9f9f9f; font-size: .9rem; }

.gallery-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .65rem;
}
.gallery-grid a { position: relative; overflow: hidden; border-radius: 8px; }
.gallery-grid img { width: 100%; height: 170px; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .8rem;
    z-index: 99;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 10px; }
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #060606;
}
.footer-grid {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-logo img { height: 72px; width: auto; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
    color: #9f9f9f;
    font-size: .9rem;
    padding: .8rem;
}

.flash { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; }
.flash-success { background: rgba(16,175,101,.2); border: 1px solid rgba(16,175,101,.45); }
.flash-error { background: rgba(217,60,90,.2); border: 1px solid rgba(217,60,90,.5); }

.reveal { opacity: 0; transform: translateY(28px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid rgba(255,255,255,.1); }

@media (min-width: 860px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }

    .about-layout,
    .open-call-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 1.6rem;
    }

    .about-layout > :first-child {
        order: 1;
    }

    .about-layout > .section-figure {
        order: 2;
    }

    .open-call-layout > :first-child {
        order: 2;
    }

    .open-call-layout > .section-figure {
        order: 1;
    }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 4;
        background: #050505;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,.45);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 4%;
        display: none;
    }
    .main-nav.open { display: flex; }
}
