:root {
    color-scheme: light;
}

.hero-gallery-page {
    background: #f7f9fd;
    color: #17233c;
}

.hero-gallery-container {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
}

.hero-gallery-hero {
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, #ff20ca 12%, transparent), transparent 28rem),
        radial-gradient(circle at 15% 8%, color-mix(in srgb, #3e5e9b 18%, transparent), transparent 34rem),
        #f7f9fd;
}

.hero-gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    color: #3e5e9b;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-gallery-back i {
    transition: translate 0.2s ease;
}

.hero-gallery-back:hover i {
    translate: -0.25rem 0;
}

.hero-gallery-kicker,
.hero-gallery-count,
.hero-film-number {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.14em;
}

.hero-gallery-kicker {
    margin: 0 0 1rem;
    color: #3e5e9b;
    font-size: clamp(0.72rem, 1.3vw, 0.88rem);
    font-weight: 700;
}

.hero-gallery-hero h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    background: linear-gradient(118deg, #253d6b 4%, #3e5e9b 48%, #b6349d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-gallery-lead {
    margin: 1.6rem 0 0;
    color: #59677f;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

.hero-gallery-count {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 2.4rem 0 0;
    color: #6d7990;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-gallery-count span {
    color: #ff20ca;
    font-size: 1.5rem;
}

.hero-gallery-list {
    padding: 1rem 0 clamp(6rem, 10vw, 9rem);
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-film-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in srgb, #3e5e9b 16%, transparent);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(35, 57, 99, 0.1);
    transition: translate 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-film-card:hover,
.hero-film-card:focus-within {
    translate: 0 -4px;
    border-color: color-mix(in srgb, #3e5e9b 34%, transparent);
    box-shadow: 0 24px 60px rgba(35, 57, 99, 0.16);
}

.hero-film-frame {
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #000;
}

.hero-film-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.hero-film-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem 1.4rem;
}

.hero-film-number {
    margin: 0 0 0.35rem;
    color: #8a95a9;
    font-size: 0.64rem;
    font-weight: 700;
}

.hero-film-meta h2 {
    margin: 0;
    color: #253d6b;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.04em;
}

.hero-film-file {
    margin: 0.45rem 0 0;
    color: #8a95a9;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.hero-film-size {
    flex: 0 0 auto;
    margin: 0;
    color: #7a879c;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
}

.hero-gallery-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: #6d7990;
}

@media (max-width: 760px) {
    .hero-gallery-container {
        width: min(100% - 1.5rem, 1180px);
    }

    .hero-gallery-hero {
        padding-top: 7rem;
    }

    .hero-gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-film-card {
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-film-card,
    .hero-gallery-back i {
        transition: none;
    }
}
