:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-50: #fef2f2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.narrow {
    max-width: 880px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800));
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-500), var(--red-800));
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 13px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--red-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fecaca;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 72px 0;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.22);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 820px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(17px, 2.6vw, 23px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 28px;
}

.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.compact-actions {
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.26);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--red-700);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(127, 29, 29, 0.24);
}

.full-btn {
    width: 100%;
    margin-top: 16px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls > button,
.hero-dot {
    border: 0;
    color: var(--white);
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.68;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: var(--red-500);
}

.category-strip {
    margin-top: -56px;
    position: relative;
    z-index: 5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.category-tile {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--red-900));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -44px;
    bottom: -46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.category-tile strong {
    font-size: 18px;
}

.category-tile span {
    color: #cbd5e1;
    font-size: 13px;
}

.content-section {
    padding: 72px 0;
    background: var(--white);
}

.soft-bg {
    background: var(--slate-50);
}

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

.section-head h2 {
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--slate-600);
}

.section-head a {
    color: var(--red-600);
    font-weight: 800;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
    box-shadow: var(--soft-shadow);
}

.poster-wrap img,
.wide-poster img,
.detail-side img,
.catalog-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-wrap img,
.wide-poster img {
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.wide-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82));
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    background: var(--red-600);
}

.play-chip {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.74);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.movie-card strong {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 15px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card small,
.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    margin: 0;
}

.movie-card:hover strong {
    color: var(--red-600);
}

.wide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wide-card {
    min-width: 0;
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.wide-poster {
    flex: 0 0 112px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--slate-200);
}

.wide-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-num {
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-600);
    font-weight: 900;
    font-size: 12px;
}

.wide-info strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 17px;
    line-height: 1.35;
}

.wide-info small,
.wide-info em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cta-band,
.page-hero {
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.34), transparent 35%), linear-gradient(135deg, var(--slate-950), var(--red-900));
}

.cta-band {
    padding: 86px 0;
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.cta-band p {
    max-width: 720px;
    margin: 0 auto 28px;
    color: #fecaca;
    font-size: 18px;
}

.page-hero {
    padding: 76px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

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

.catalog-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
    color: var(--white);
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card.compact {
    min-height: 220px;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.catalog-card span {
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.catalog-card strong {
    font-size: 25px;
    line-height: 1.1;
}

.catalog-card em {
    color: #e2e8f0;
    font-style: normal;
    font-size: 14px;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 6;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
}

.search-box {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
}

.search-box span {
    color: var(--slate-700);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    outline: none;
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: var(--white);
    background: var(--red-600);
}

.filter-count {
    margin: 12px 0 0;
    color: var(--slate-500);
    font-size: 14px;
}

.catalog-list .movie-card.is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
    background: var(--slate-950);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.7;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
}

.player-panel {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(220, 38, 38, 0.36), rgba(2, 6, 23, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    background: var(--red-600);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    font-size: 36px;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.18;
}

.detail-side {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-side img {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: var(--slate-800);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.article-card,
.info-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--red-600);
    font-weight: 800;
}

.article-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.article-card h2,
.info-card h2 {
    margin: 28px 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.article-card p {
    margin: 0 0 14px;
    color: var(--slate-700);
    font-size: 17px;
}

.lead-text {
    color: var(--slate-800) !important;
    font-size: 20px !important;
    font-weight: 700;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.meta-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--red-50);
    color: var(--red-700);
    font-weight: 800;
    font-size: 13px;
}

.detail-tags span {
    color: var(--slate-700);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.info-card {
    position: sticky;
    top: 96px;
}

.info-card h2 {
    margin-top: 0;
}

.info-card dl {
    margin: 0;
}

.info-card dt {
    margin-top: 14px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fca5a5;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    font-size: 14px;
}

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

    .wide-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        align-items: flex-start;
        padding-top: 84px;
    }

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

    .wide-grid,
    .catalog-grid,
    .region-grid,
    .footer-grid,
    .detail-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        display: none;
    }

    .player-panel {
        min-height: 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-panel,
    .info-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .hero-copy {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .category-grid,
    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .wide-card {
        flex-direction: column;
    }

    .wide-poster {
        flex-basis: auto;
        width: 100%;
    }

    .content-section {
        padding: 52px 0;
    }

    .article-card,
    .info-card {
        padding: 22px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }
}
