:root {
    --bg: #0b0b10;
    --bg-2: #12121a;
    --card: #181822;
    --line: rgba(255, 255, 255, .08);
    --text: #ececf1;
    --muted: #9a9aab;
    --accent: #f5b301;
    --accent-2: #ff7a18;
    --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #ffd257; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a1204;
    border: 0;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(245, 179, 1, .25);
}
.btn-accent:hover, .btn-accent:focus { color: #1a1204; filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 500;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 11, 16, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding: .8rem 0; }
.brand {
    color: #fff; font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.02em;
    display: inline-flex; align-items: center; gap: .35rem;
}
.brand:hover { color: #fff; }
.brand-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1204; font-size: 1.3rem;
}
.brand-accent { color: var(--accent); }
.site-header .nav-link { color: #c9c9d4; font-weight: 500; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Hero ---------- */
.hero, .film-hero {
    position: relative;
    padding: 90px 0 80px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255, 122, 24, .18), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(245, 179, 1, .10), transparent 60%),
        var(--bg);
    overflow: hidden;
}
.hero[style*="--hero-img"], .film-hero[style*="--hero-img"] { background: #0b0b10 var(--hero-img) center/cover no-repeat; }
.hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 11, 16, .96) 0%, rgba(11, 11, 16, .75) 55%, rgba(11, 11, 16, .4) 100%),
                linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-empty { padding: 120px 0; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: rgba(245, 179, 1, .12); padding: .35rem .8rem; border-radius: 999px;
}
.hero-title, .film-title {
    font-family: 'Noto Serif Armenian', serif; font-weight: 800; line-height: 1.1;
    font-size: clamp(2.3rem, 5vw, 4rem); margin: 1rem 0 .5rem;
}
.film-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: .8rem; }
.hero-meta { color: #c4c4d0; font-size: 1.05rem; }
.hero-text { color: #c4c4d0; font-size: 1.1rem; max-width: 620px; margin: 1.2rem 0 0; line-height: 1.7; }
.hero-funding { max-width: 520px; margin-top: 1.8rem; }
.hero-poster {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 2/3;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
}
.film-hero { padding: 40px 0 50px; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Poster ---------- */
.poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
    background:
        radial-gradient(120% 80% at 20% 0%, hsla(var(--h), 70%, 55%, .55), transparent 60%),
        linear-gradient(160deg, hsl(var(--h), 45%, 22%), hsl(calc(var(--h) + 40), 40%, 8%));
}
.poster-placeholder-title { font-family: 'Noto Serif Armenian', serif; font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: #fff; }
.poster-placeholder-sub { color: rgba(255, 255, 255, .7); font-size: .85rem; margin-top: .3rem; }

/* ---------- Funding ---------- */
.funding-bar { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; }
.funding-bar span {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .8s ease;
}
.funding-numbers { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; font-size: .9rem; }
.funding-percent { color: var(--accent); font-weight: 700; }
.funding-big .funding-bar { height: 12px; }
.funding-big .funding-numbers { font-size: 1.05rem; }
.funding-big .funding-numbers strong { font-size: 1.4rem; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; }
.stat-value { font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 800; color: #fff; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; }
.section-title { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.section-link { text-decoration: none; font-weight: 600; white-space: nowrap; }
.page-head { padding: 60px 0 10px; }
.page-title { font-family: 'Noto Serif Armenian', serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.block-title { font-weight: 700; font-size: 1.35rem; margin-bottom: 1rem; }

/* ---------- Film grid / card ---------- */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.film-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--text);
    background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.film-card:hover { color: var(--text); transform: translateY(-6px); border-color: rgba(245, 179, 1, .4); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.film-card-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.film-card-poster .poster-img { transition: transform .5s ease; }
.film-card:hover .poster-img { transform: scale(1.05); }
.film-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.film-card-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.3; }
.film-card-meta { color: var(--muted); font-size: .85rem; min-height: 1.2em; margin-bottom: .4rem; }
.film-card .funding { margin-top: auto; }
.film-card .funding-numbers { font-size: .8rem; }
.film-card-cta { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.film-card-cta.muted { color: var(--muted); font-weight: 500; }

.status-badge {
    position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(6px);
}
.status-badge.static { position: static; display: inline-block; }
.status-collecting { color: var(--accent); }
.status-funded, .status-in_production { color: #7dd3fc; }
.status-released { background: #16a34a; color: #fff; }
.play-badge {
    position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: .9rem; color: #1a1204;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

/* ---------- Steps ---------- */
.step, .info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.step-num, .timeline-num {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    font-weight: 800; color: #1a1204; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 1rem;
}
.step-title { font-size: 1.1rem; font-weight: 700; }
.step-text { color: var(--muted); line-height: 1.65; }
.timeline { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.timeline-item { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.timeline-num { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-box {
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
    padding: 40px; border-radius: 24px; border: 1px solid rgba(245, 179, 1, .25);
    background: radial-gradient(600px 200px at 0% 0%, rgba(245, 179, 1, .15), transparent), var(--card);
}
.cta-title { font-weight: 800; font-size: 1.6rem; }

/* ---------- Film page ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-description { color: #c9c9d4; line-height: 1.8; font-size: 1.02rem; }
.donate-box {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
    position: sticky; top: 90px;
}
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
    flex: 1 0 auto; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: .55rem .7rem; font-weight: 600; font-size: .9rem; transition: all .15s;
}
.preset:hover { border-color: var(--accent); }
.preset.active { background: rgba(245, 179, 1, .15); border-color: var(--accent); color: var(--accent); }
.supporters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.supporters li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.supporter-avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: rgba(245, 179, 1, .15); color: var(--accent); font-weight: 700;
}
.supporter-amount { color: var(--accent); font-weight: 700; white-space: nowrap; }
.supporter-message { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.pay-amount { font-size: 2.6rem; font-weight: 800; margin: .3rem 0; }
.thanks-icon {
    width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
    color: #1a1204; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Forms (dark) ---------- */
.form-control, .form-select {
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
}
.form-control:focus, .form-select:focus { background: rgba(255, 255, 255, .07); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(245, 179, 1, .15); }
.form-control::placeholder { color: #6e6e80; }
.form-label, legend.col-form-label { font-weight: 600; font-size: .95rem; }
.form-text { color: var(--muted); }
.form-check-input { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.donate-form fieldset .form-check { display: inline-block; margin-right: 1rem; }
.invalid-feedback { display: block; }

/* ---------- Filters / empty ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.filter-tab { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 500; }
.filter-tab:hover { color: #fff; }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #1a1204; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 50px 0 24px; margin-top: 40px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: .85rem; }

.alert { border-radius: 12px; }

@media (max-width: 991px) {
    .donate-box { position: static; }
    .hero { padding: 60px 0; }
}
@media (max-width: 575px) {
    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .film-card-body { padding: 10px 12px 12px; }
    .cta-box { padding: 26px; }
    .film-card .funding-goal { display: none; }
}

/* ---------- Manual payment page ---------- */
.donate-box.static { position: static; }
.pay-step { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.pay-step .step-num { margin-bottom: 0; }
.account { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.account-title { font-weight: 600; color: var(--muted); font-size: .9rem; }
.account-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.account-number span { font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.pay-hint { margin-top: 14px; font-size: .95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ref-code { font-weight: 800; color: var(--accent); background: rgba(245, 179, 1, .12); padding: .15rem .6rem; border-radius: 8px; letter-spacing: .05em; }

/* ---------- Trailer frame used as cover ---------- */
.poster-thumb { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.poster-thumb .poster-img { transform: scale(1.35); } /* hide YouTube letterbox bars */
.film-card:hover .poster-thumb .poster-img { transform: scale(1.42); }
.poster-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 55%, transparent 100%); }
.poster-thumb-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem; display: flex; flex-direction: column; }
.poster-thumb-caption .poster-placeholder-title { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.film-card .play-badge { z-index: 2; }
/* long titles on covers: max 3 lines */
.poster-thumb-caption .poster-placeholder-title,
.poster-placeholder .poster-placeholder-title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.poster-thumb-caption .poster-placeholder-sub,
.poster-placeholder .poster-placeholder-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-card .poster-placeholder-title { font-size: 1.15rem; }
.film-card .poster-thumb-caption { padding-right: 3.4rem; }

/* ---------- Series badge ---------- */
.type-badge {
    position: absolute; top: 38px; left: 10px; z-index: 2; font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 999px; background: rgba(125, 211, 252, .9); color: #06202e;
}

/* ---------- Logo ---------- */
.brand-logo { width: 36px; height: 36px; object-fit: contain; display: inline-block; filter: drop-shadow(0 4px 10px rgba(245, 179, 1, .25)); }
.site-footer .brand-logo { width: 32px; height: 32px; }
