:root {
    color-scheme: dark;
    --site-bg: #0a0a0a;
    --site-panel: #121212;
    --site-panel-soft: #1a1a1a;
    --site-border: rgba(255, 255, 255, 0.08);
    --site-text: #f5f5f5;
    --site-muted: #a3a3a3;
    --site-red: #dc2626;
    --site-red-dark: #991b1b;
    --site-gold: #f59e0b;
    --site-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html {
    background: var(--site-bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(153, 27, 27, 0.22), transparent 34rem),
        var(--site-bg);
    color: var(--site-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

.site-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(14px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-red), var(--site-red-dark));
    box-shadow: 0 0 28px rgba(220, 38, 38, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-links a,
.mobile-panel a,
.footer-links a {
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.nav-links a.is-active {
    color: var(--site-red);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-border);
    border-radius: 0.75rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--site-border);
    padding: 0.85rem 1rem 1rem;
    background: rgba(10, 10, 10, 0.96);
}

.mobile-panel.is-open {
    display: grid;
    gap: 0.8rem;
}

.hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #050505;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}

.hero-art.poster-fallback {
    background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.36), rgba(10, 10, 10, 0.72)),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2), transparent 22rem),
        #111111;
}

.hero-art.poster-fallback::after {
    content: attr(data-title);
    position: absolute;
    right: min(8vw, 6rem);
    bottom: min(13vw, 8rem);
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    text-align: right;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86)),
        linear-gradient(0deg, var(--site-bg), transparent 45%, rgba(0, 0, 0, 0.38));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 5.5rem;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--site-red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 46rem;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.hero-desc {
    max-width: 44rem;
    margin: 1.1rem 0 0;
    color: #e5e5e5;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.hero-meta {
    margin-top: 1.15rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-red {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

.badge-gold {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: var(--site-red);
    color: #ffffff;
    box-shadow: 0 0 26px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
    background: var(--site-red-dark);
}

.btn-ghost {
    border-color: var(--site-border);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 5;
    display: flex;
    transform: translateX(-50%);
    gap: 0.6rem;
}

.hero-dot {
    width: 2.2rem;
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    width: 3.4rem;
    background: var(--site-red);
}

.main-content {
    padding: 3.4rem 0 4rem;
}

.section-block {
    margin-top: 3rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 46rem;
    margin: 0.45rem 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.2rem;
}

.movie-card {
    min-width: 0;
}

.poster-link {
    display: block;
    text-decoration: none;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 1.1rem;
    background:
        linear-gradient(145deg, rgba(220, 38, 38, 0.24), rgba(18, 18, 18, 0.95)),
        var(--site-panel);
    box-shadow: var(--site-shadow);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.poster-frame.poster-fallback::after {
    content: attr(data-title);
    position: absolute;
    inset: auto 1rem 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.poster-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::before {
    opacity: 1;
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 0.7rem;
    right: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.78);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.poster-play {
    left: 50%;
    top: 50%;
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--site-red);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 0.8rem 0.15rem 0;
}

.card-title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--site-red);
}

.card-meta {
    margin-top: 0.4rem;
    color: var(--site-muted);
    font-size: 0.78rem;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.2rem;
    margin: 0.5rem 0 0;
    overflow: hidden;
    color: #a3a3a3;
    font-size: 0.86rem;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-strip {
    display: grid;
    grid-auto-columns: minmax(11rem, 1fr);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.7rem;
    scroll-snap-type: x mandatory;
}

.horizontal-strip .movie-card {
    scroll-snap-align: start;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: 1.25rem;
}

.panel-card {
    border: 1px solid var(--site-border);
    border-radius: 1.25rem;
    background: rgba(18, 18, 18, 0.82);
    box-shadow: var(--site-shadow);
}

.panel-padding {
    padding: 1.25rem;
}

.rank-list {
    display: grid;
    gap: 0.65rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(3px);
}

.rank-number {
    display: inline-flex;
    width: 2.1rem;
    height: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
    font-weight: 900;
}

.rank-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-meta {
    margin-top: 0.2rem;
    color: var(--site-muted);
    font-size: 0.78rem;
}

.category-cloud,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.category-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e5e5;
    font-weight: 750;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover,
.tag-pill:hover {
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(220, 38, 38, 0.14);
    color: #ffffff;
}

.page-hero {
    padding: 5rem 0 2.5rem;
    background:
        linear-gradient(180deg, rgba(220, 38, 38, 0.12), transparent),
        var(--site-bg);
}

.page-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-desc {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.8;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(9rem, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.input,
.select {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--site-border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0.75rem 0.9rem;
    outline: none;
}

.input:focus,
.select:focus {
    border-color: rgba(220, 38, 38, 0.7);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.empty-result {
    display: none;
    padding: 2rem;
    border: 1px solid var(--site-border);
    border-radius: 1.2rem;
    color: var(--site-muted);
    text-align: center;
}

.empty-result.is-visible {
    display: block;
}

.detail-hero {
    padding: 3rem 0 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
    color: var(--site-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #e5e5e5;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--site-red);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.6fr);
    gap: 1.6rem;
    align-items: start;
}

.detail-poster .poster-frame {
    border-radius: 1.35rem;
}

.detail-info {
    min-width: 0;
}

.detail-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 1rem 0 0;
    color: #e5e5e5;
    font-size: 1.08rem;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 1rem;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 1.4rem;
    background: #000000;
    box-shadow: var(--site-shadow);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(220, 38, 38, 0.22), transparent 18rem),
        rgba(0, 0, 0, 0.36);
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: inline-flex;
    width: 5rem;
    height: 5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--site-red);
    box-shadow: 0 0 38px rgba(220, 38, 38, 0.46);
    font-size: 1.6rem;
    transform: translateX(0.08rem);
}

.video-shell.is-playing .play-overlay {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.content-panel {
    padding: 1.45rem;
    border: 1px solid var(--site-border);
    border-radius: 1.25rem;
    background: rgba(18, 18, 18, 0.78);
    box-shadow: var(--site-shadow);
}

.content-panel h2 {
    margin: 0 0 0.9rem;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.content-panel p {
    margin: 0;
    color: #d4d4d4;
    line-height: 1.9;
}

.content-panel p + p {
    margin-top: 0.9rem;
}

.detail-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.detail-nav a {
    display: block;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    text-decoration: none;
}

.detail-nav a:hover {
    border-color: rgba(220, 38, 38, 0.5);
}

.site-footer {
    border-top: 1px solid var(--site-border);
    background: rgba(5, 5, 5, 0.78);
    padding: 2rem 0;
    color: var(--site-muted);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-title {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
}

.footer-desc {
    margin: 0.35rem 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.9rem;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .feature-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .catalog-tools {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 22rem;
    }
}

@media (max-width: 640px) {
    .site-container {
        width: min(100% - 1rem, 1180px);
    }

    .hero-content {
        padding: 7rem 0 5rem;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .catalog-tools,
    .detail-nav {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
