
:root {
    --bg: #0E0E10;
    --panel: #151519;
    --card: #191A20;
    --muted: #9CA3AF;
    --text: #EAEAF0;
    --red: #CC1F26;
    --red-500: #E11D2F;
    --border: #25262C;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter, Roboto, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--text);
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto
}

.grid {
    display: grid;
    gap: 24px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--red);
    color: #fff;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: var(--shadow);
    transition: .15s;
    cursor: pointer
}

.btn:hover {
    background: var(--red-500);
    transform: translateY(-1px)
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff
}

.badge {
    display: inline-block;
    background: rgba(204, 31, 38, .14);
    color: #fff;
    border: 1px solid rgba(204, 31, 38, .4);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    letter-spacing: .3px
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 14, 16, .6);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border)
}

.header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0
}

.nav a {
    margin: 0 10px;
    color: #D0D6DF;
    opacity: .9
}

.nav a:hover {
    color: #fff;
    opacity: 1
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    letter-spacing: .6px
}

#hero-2{
    background: url("../img/scr/hero-wide-2.jpg") center top / cover no-repeat;
    max-width: 1160px;

    cursor: pointer;
    position: relative;
    display: block;
    margin: 100px auto 40px;
    border: solid 1px #9CA3AF;
}

#hero-2:hover {
    animation: hero2-bounce 0.6s;
}

@keyframes hero2-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.04); }
    50%  { transform: scale(0.98); }
    70%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hero-diclamer {
    font-size: 0.625rem;
    position: absolute;
    right: 5px;
    bottom: 0;
    color: #777;
}

/* HERO with adaptive full-width background */
/*.hero {*/
/*    position: relative;*/
/*    min-height: clamp(420px, 68vh, 820px);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    margin-bottom: 0;*/
/*}*/

/*.hero-xxxx::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    !* background: url("../img/scr/hero-wide.png") center top / cover no-repeat; *!*/
/*    filter: grayscale(12%);*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

/*.hero::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .15) 75%, rgba(0, 0, 0, 0) 100%)*/
/*}*/

/*.hero .content {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    padding: clamp(3rem, 6vw, 6rem) 0*/
/*}*/

/*.hero h1 {*/
/*    font-size: clamp(36px, 5vw, 56px);*/
/*    line-height: 1.1;*/
/*    margin: 0 0 10px;*/
/*    font-weight: 900;*/
/*    letter-spacing: .5px;*/
/*    text-transform: uppercase*/
/*}*/

/*.hero p.lead {*/
/*    max-width: 840px;*/
/*    color: #DCE2EA;*/
/*    opacity: .92;*/
/*    margin: .4rem 0 1.2rem*/
/*}*/

/*.hero .cta {*/
/*    margin-top: 1rem*/
/*}*/

/*.hero .down {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    margin-left: .6rem;*/
/*    opacity: .8*/
/*}*/

/* Portrait / tall viewports: fit image by width to avoid side gaps */
@media (max-aspect-ratio: 3/2) {
    .hero::before {
        /*background-size: 100% auto;*/
    }

    /* fit width fully */
}

/* Small screens: reduce vertical space a bit more */
@media (max-width: 640px) {
    .hero {
        min-height: 60vh;
    }

    .hero .content {
        padding: 3rem 0;
    }

    #hero-2{
        margin: 5% 7%;
    }
}

.section {
    padding: 56px 0;
    /*border-top: 1px solid var(--border);*/
    background: var(--bg)
}

.section.alt {
    background: linear-gradient(180deg, var(--bg), var(--panel))
}

.section h2 {
    font-size: 28px;
    margin: 0 0 6px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px
}

.section .tabtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff
}

.tab {
    display: inline-flex;
    align-items: center;
    background: var(--red);
    color: #fff;
    padding: .45rem .7rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: .8rem
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: .15s
}

.card:hover {
    transform: translateY(-2px)
}

.preview-row {
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr))
}

.footer {
    border-top: 1px solid var(--border);
    padding: 26px 0;
    color: #ABB4C2
}

.footer a {
    color: #eee;
    text-decoration: underline dotted
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 0
}

blockquote {
    border-left: 4px solid var(--red);
    padding: 6px 14px;
    margin: 0;
    background: rgba(255, 255, 255, .02);
    border-radius: 8px
}

cite {
    display: block;
    margin-top: .5rem;
    color: var(--muted);
    font-style: normal
}

.section .split {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 24px;
    align-items: center
}

@media (max-width: 880px) {
    .section .split {
        grid-template-columns:1fr
    }
}

/* CAST page */
/*.director {*/
/*    display: grid;*/
/*    grid-template-columns:340px 1fr;*/
/*    gap: 24px;*/
/*    align-items: center;*/
/*    background: linear-gradient(180deg, #1B1C22, #15161C);*/
/*    padding: 18px;*/
/*    border: 1px solid var(--border);*/
/*    border-radius: 16px;*/
/*    position: relative*/
/*}*/

.director::before {
    content: "Режиссёр";
    position: absolute;
    left: -6px;
    top: -10px;
    background: var(--red);
    color: #fff;
    padding: .3rem .6rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: .75rem
}

.cast-list {
    display: grid;
    gap: 22px
}

.cast-card {
    display: grid;
    grid-template-columns:260px 1fr;
    gap: 18px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px
}

@media (max-width: 640px) {
    .cast-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cast-card{
        display: flex;
        flex-direction: column;
    }
}

.cast-card.alt {
    grid-template-columns:1fr 260px
}

.role {
    font-weight: 700;
    color: #fff;
    margin-bottom: .3rem
}

.bio {
    color: #D5DBE6
}

/* Reviews page */
.review-quote {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 16px
}

.review-quote .meta {
    margin-top: .6rem;
    color: var(--muted)
}

/* Comments */
.comments {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 16px
}

.comment {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border)
}

.comment:last-child {
    border-bottom: 0
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px
}

.pagination button {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    padding: .4rem .7rem;
    border-radius: 8px;
    cursor: pointer
}

.pagination button.active {
    background: var(--red);
    border-color: var(--red);
}

.counter {
    color: var(--muted);
    margin-left: auto
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70
}

.modal {
    width: min(860px, 92vw);
    max-height: 86vh;
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px
}

.modal header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal header h3 {
    margin: 0
}

.modal .close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer
}

.modal-backdrop.show {
    display: flex
}

.small {
    font-size: .9rem;
    color: var(--muted)
}


/* === Mobile menu (append-only) === */
.burger {
    display: none;
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    opacity: .9
}

.burger:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 14, 16, .96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .2s ease;
    padding: 16px 18px;
    z-index: 80;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.mobile-nav a {
    padding: 10px 2px;
    font-size: 1.05rem;
    border-bottom: 1px dashed rgba(255, 255, 255, .08)
}

.mobile-nav a:last-child {
    border-bottom: 0
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 70;
}

@media (max-width: 920px) {
    .nav {
        display: none
    }

    .header .row {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .burger {
        display: inline-flex
    }

    #comments-counter {
        display: none
    }
}

.mobile-open .mobile-nav {
    transform: translateY(0)
}

.mobile-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto
}

/* CTA */
.cta-fixed {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    z-index: 100;
    min-width: 320px;
    max-width: 106vw;
    padding: 1.4rem 2.2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    background: linear-gradient(90deg, #CC1F26 0%, #191A20 60%, #0E0E10 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .5px;
    text-align: center;
    text-transform: uppercase;

    animation: cta-fixed-gradient 4s linear infinite alternate;
    cursor: pointer;
    transform-origin: center;
}

.cta-fixed:hover{
    transform: translateX(-50%) scale(1.1);
}

.cta-fixed::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, #E11D2F 0%, #191A20 60%, #151519 100%);
    opacity: 0;
    transition: opacity 1.2s;
    animation: cta-gradient-fade 4s linear infinite alternate;
}

@keyframes cta-gradient-fade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes cta-fixed-gradient {
    0% {
        background: linear-gradient(90deg, #CC1F26 0%, #191A20 60%, #0E0E10 100%);
    }
    20% {
        background: linear-gradient(120deg, #E11D2F 0%, #191A20 60%, #151519 100%);
    }
    40% {
        background: linear-gradient(180deg, #CC1F26 0%, #191A20 60%, #0E0E10 100%);
    }
    60% {
        background: linear-gradient(240deg, #E11D2F 0%, #191A20 60%, #151519 100%);
    }
    80% {
        background: linear-gradient(300deg, #CC1F26 0%, #191A20 60%, #0E0E10 100%);
    }
    100% {
        background: linear-gradient(360deg, #E11D2F 0%, #191A20 60%, #151519 100%);
    }
}