:root {
    --bg: #08090b;
    --panel: #111318;
    --panel2: #171a20;
    --text: #f5f7fa;
    --muted: #9aa2ad;
    --red: #ff2d3f;
    --red2: #a80f23;
    --line: rgba(255, 255, 255, .09);
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --max: 1180px;
    --header: 68px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color-scheme: dark
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 80% -10%, rgba(183, 18, 45, .18), transparent 32rem), var(--bg);
    color: var(--text);
    min-height: 100vh
}

a {
    color: inherit;
    text-decoration: none
}

.hidden {
    display: none !important
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto
}

.site-header {
    height: var(--header);
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 9, 11, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line)
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .2px;
    min-width: max-content
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    color: #cfd4dc
}

.main-nav a:hover {
    color: #fff
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px
}

.icon-btn,
.icon-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #111318;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 20px
}

.hamburger {
    display: none
}

.hero {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: #101217;
    border-bottom: 1px solid var(--line)
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 28%;
    transition: opacity .45s ease, transform .65s ease;
    filter: saturate(.92)
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .68) 40%, rgba(0, 0, 0, .22) 72%, rgba(0, 0, 0, .62) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 38%)
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 115px 0 80px;
    max-width: 670px
}

.eyebrow {
    color: var(--red);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em
}

.hero h1 {
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    margin: 14px 0 18px;
    letter-spacing: -2.5px
}

.hero p {
    color: #d1d5db;
    max-width: 590px;
    line-height: 1.65;
    margin: 0 0 24px
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #ff3146, #c80d27);
    color: #fff;
    font-weight: 900
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(5px)
}

.hero-prev {
    left: 20px
}

.hero-next {
    right: 20px
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer
}

.hero-dot.active {
    width: 24px;
    background: var(--red)
}

.section {
    padding: 22px 0 12px
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px
}

.section-head h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -.6px
}

.see-all {
    font-size: 12px;
    font-weight: 900;
    color: #d8dde5;
    white-space: nowrap;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #111318
}

.see-all:hover {
    color: #fff;
    border-color: rgba(255, 45, 63, .55)
}

.poster-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 185px;
    overflow-x: auto;
    gap: 15px;
    padding: 2px 2px 14px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    scroll-snap-type: x proximity
}

.poster-card {
    min-width: 0;
    cursor: pointer;
    scroll-snap-align: start
}

.poster-image-wrap {
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    background: #15171b;
    position: relative;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, filter .3s ease
}

.poster-card:hover .poster-image {
    transform: scale(1.035);
    filter: brightness(.9)
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 45, 63, .93);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 10px 28px rgba(255, 0, 38, .22)
}

.poster-play:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
    margin-left: 3px
}

.poster-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    background: var(--red);
    font-size: 9px;
    font-weight: 900;
    padding: 4px 7px;
    border-radius: 999px
}

.poster-card h3 {
    font-size: 13px;
    margin: 8px 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.poster-card .meta {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 2px 0
}

.empty-row {
    color: #727986;
    font-size: 13px;
    padding: 14px 2px
}

.ad-block {
    margin: 26px auto;
    min-height: 50px;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center
}

.ad-block-wide {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden
}

.native-ad-wrap {
    margin: 34px auto 10px;
    text-align: center;
    overflow: hidden
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 34px;
    padding: 34px 0 40px;
    color: var(--muted)
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.footer-nav {
    display: flex;
    gap: 18px;
    font-size: 13px
}

.footer-copy {
    font-size: 12px;
    margin-top: 4px
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .94);
    display: flex;
    justify-content: center;
    padding: 90px 20px;
    overflow: auto
}

.search-panel {
    width: min(900px, 100%)
}

.search-top {
    display: flex;
    gap: 10px
}

.search-input {
    flex: 1;
    background: #15171b;
    color: #fff;
    border: 1px solid #30343a;
    border-radius: 12px;
    padding: 15px 16px;
    outline: none
}

.search-results {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 24px
}

.search-results .poster-card h3 {
    white-space: normal
}

.status-box {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 20px;
    color: var(--muted);
    text-align: center
}

@media(max-width:900px) {
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header);
        padding: 16px 20px;
        background: #0d0f13;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start
    }

    .main-nav.open {
        display: flex
    }

    .hamburger {
        display: grid
    }

    .hero {
        min-height: 420px
    }

    .hero-content {
        padding: 92px 0 70px
    }

    .poster-row {
        grid-auto-columns: 150px
    }

    .search-results {
        grid-template-columns: repeat(3, 1fr)
    }

    .hero-prev {
        left: 9px
    }

    .hero-next {
        right: 9px
    }
}

@media(max-width:600px) {
    :root {
        --header: 60px
    }

    .container {
        width: min(calc(100% - 22px), var(--max))
    }

    .brand-logo {
        width: 38px;
        height: 38px
    }

    .brand span {
        font-size: 14px
    }

    .icon-btn,
    .icon-link {
        width: 36px;
        height: 36px
    }

    .hero {
        min-height: 340px
    }

    .hero-content {
        padding: 68px 0 50px;
        max-width: 90%
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.8px
    }

    .hero p {
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 25px;
        top: 47%
    }

    .poster-row {
        grid-auto-columns: 128px;
        gap: 10px
    }

    .poster-card h3 {
        font-size: 12px
    }

    .poster-play {
        width: 42px;
        height: 42px
    }

    .section {
        padding-top: 18px
    }

    .section-head h2 {
        font-size: 18px
    }

    .ad-block {
        margin: 18px auto
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-nav {
        flex-wrap: wrap
    }

    .search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .search-overlay {
        padding: 72px 12px
    }

    .native-ad-wrap {
        margin-top: 24px
    }
}

.telegram-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border-radius: 50px;
    background: #229ed9;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(34, 158, 217, .45);
    transition: transform .2s, box-shadow .2s;
    animation: telegram-pulse 2.5s infinite;
}

.telegram-float svg {
    width: 23px;
    height: 23px;
}

.telegram-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 30px rgba(34, 158, 217, .65);
}

@keyframes telegram-pulse {
    50% {
        box-shadow: 0 6px 30px rgba(34, 158, 217, .75);
    }
}

@media (max-width: 600px) {
    .telegram-float {
        right: 12px;
        bottom: 18px;
        padding: 12px;
    }

    .telegram-float span {
        display: none;
    }
}