:root {
    --color-bg: #0a0a0a;
    --color-text: #e0e0e0;
    --color-accent: #c49b3f;
    --color-accent-2: #9b6a3c;
    --overlay-opacity: 0.85;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-body);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="27" viewBox="0 0 24 27"><polygon points="2,2 22,13 12,16 2,25" fill="%23c49b3f" stroke="%23ffffff" stroke-width="1.5"/></svg>') 4 2, auto;
}

/* Кинематографичные эффекты фона: зерно + виньетка */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjYiIG51bU9jdGF2ZXM9IjMiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjZikiIG9wYWNpdHk9IjAuNCIvPjwvc3ZnPg==');
    background-repeat: repeat;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -1%); }
    20% { transform: translate(1%, -2%); }
    30% { transform: translate(-1%, 2%); }
    40% { transform: translate(2%, 1%); }
    50% { transform: translate(-2%, -2%); }
    60% { transform: translate(1%, 2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(2%, -2%); }
    90% { transform: translate(-2%, 1%); }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: multiply;
}

/*  ГЛАВНЫЙ КОНТЕЙНЕР */
.cinema-scroll {
    position: relative;
    z-index: 2;
}

/*  ИНТРО СЕКЦИЯ */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards 0.5s;
    z-index: 5;
}

.title-small {
    font-family: var(--font-body);
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-accent);
}

.title-main {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #a07a3c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 1rem 0;
    text-transform: uppercase;
}

.title-date-stamp {
    font-family: monospace;
    border-top: 1px solid rgba(196, 155, 63, 0.4);
    display: inline-block;
    padding-top: 1rem;
    font-size: 0.8rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    color: #888;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/*  ФИЛЬМОГРАФИЯ (карточки воспоминаний) */
.filmography {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.film-card {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.film-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-sticky {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

/* Постеры с эффектом кинозвезды */
.film-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 4 / 5;
    box-shadow: 0 20px 35px -15px rgba(0,0,0,0.5);
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.film-card:hover .film-poster img {
    transform: scale(1.05);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.5) 0%, rgba(196,155,63,0.2) 100%);
    mix-blend-mode: overlay;
}

.film-rating {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 3;
}

/* Контент карточки */
.film-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #aaa;
}

.film-year {
    font-family: monospace;
    color: var(--color-accent);
    font-weight: bold;
}

.film-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.film-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px dashed #333;
    padding-bottom: 1rem;
}

.film-synopsis {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 1rem;
}

.film-quote {
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 1.8rem;
    color: #c4b594;
    font-size: 0.9rem;
}

.watch-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    padding: 0.8rem 0;
    border-bottom: 1px solid transparent;
}

.watch-trailer:hover {
    gap: 16px;
    border-bottom-color: var(--color-accent);
    color: #fff;
}

/*  ФУТЕР */
.cinema-footer {
    margin-top: 8rem;
    background: linear-gradient(0deg, #050505, #0a0a0a);
    padding: 5rem 2rem 4rem;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.footer-call {
    font-family: monospace;
    letter-spacing: 8px;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-size: 0.8rem;
}

.footer-names {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-names strong {
    color: var(--color-accent);
}
.footer-names span {
    display: inline-block;
    background: rgba(196, 155, 63, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    margin-top: 0.5rem;
    font-weight: bold;
}

.footer-quote {
    font-style: italic;
    max-width: 500px;
    margin: 2rem auto;
    font-size: 0.9rem;
    color: #888;
}

.footer-copyright {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 2rem;
}

/* 3D ГАДЖЕТ - ВРАЩАЮЩИЙСЯ ЭЛЕМЕНТ СЮРПРИЗ */
.cursor-3d-gadget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 8px rgba(196,155,63,0.6));
}

.gadget-inner {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(196,155,63,0.5);
    animation: spin 4s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 900px) {
    .card-sticky {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    .filmography {
        padding: 2rem 1rem;
    }
    .film-card {
        margin-bottom: 4rem;
    }
    .cursor-3d-gadget {
        width: 35px;
        height: 35px;
        bottom: 1rem;
        left: 1rem;
    }
}
