:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --accent: #f59e0b;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

img {
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand {
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 9px 12px;
    color: #cbd5e1;
    border-radius: 999px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.38);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.62) 43%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 82px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #eff6ff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

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

.btn-light {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
}

.btn-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 28px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

.main-wrap,
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-block {
    margin-bottom: 72px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

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

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

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

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

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

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.movie-meta,
.card-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.movie-meta {
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    min-height: 48px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--primary);
}

.movie-card p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    min-height: 48px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

.card-bottom {
    justify-content: space-between;
    margin-top: 14px;
}

.horizontal-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-rail .movie-card {
    width: 340px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.feature-panel {
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eef2ff, #eff6ff 55%, #f8fafc);
}

.dark-panel {
    padding: 36px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.55), transparent 34%), linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: var(--shadow);
}

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

.rank-card a {
    position: relative;
    min-height: 116px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

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

.rank-card img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    background: #0f172a;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-card p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-card span {
    color: #475569;
    font-size: 12px;
}

.rank-num {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff !important;
    background: var(--primary);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.54), transparent 36%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 24px 70px;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.category-card {
    display: block;
    min-height: 230px;
    padding: 26px;
    border-radius: 24px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.5), transparent 34%), linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.8;
}

.category-card span {
    color: #93c5fd;
    font-weight: 800;
}

.filter-panel {
    position: sticky;
    top: 80px;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(130px, 0.45fr));
    gap: 12px;
    margin: -24px 0 32px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 70px;
}

.player-section {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    gap: 32px;
    align-items: start;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #020617;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.06);
}

.play-button {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 36px;
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.36);
    transition: 0.2s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.detail-panel {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.detail-tags,
.info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span,
.info-list span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.detail-panel p {
    color: #475569;
    line-height: 1.85;
}

.content-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 34px;
}

.content-card {
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 36px;
}

.footer-about p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 9px 0;
}

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

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 14px;
}

.is-hidden-by-filter {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

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

    .menu-button {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .movie-grid,
    .editor-grid,
    .category-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-section {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        height: 68vh;
        min-height: 520px;
    }

    .hero-content {
        padding: 0 18px 78px;
    }

    .hero-control {
        display: none;
    }

    .main-wrap,
    .page-wrap,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero-inner {
        padding: 64px 16px 56px;
    }

    .movie-grid,
    .editor-grid,
    .category-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .horizontal-rail .movie-card {
        width: 290px;
    }

    .rank-card a {
        grid-template-columns: 74px 1fr;
    }

    .rank-card img {
        width: 74px;
        height: 74px;
    }

    .content-card,
    .detail-panel,
    .feature-panel,
    .dark-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }
}
