:root {
    --bg: #f8fafc;
    --bg-soft: #eef4ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #eff6ff 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: #e2e8f0;
    font-size: 15px;
}

.nav-links a {
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #60a5fa;
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: #60a5fa;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.18) 100%),
                linear-gradient(0deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.1) 45%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 88px;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-kicker {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.78);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.32);
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

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

.hero-actions,
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 22px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.36);
}

.ghost-btn {
    min-height: 46px;
    padding: 0 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.ghost-btn.dark {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.text-link {
    color: var(--primary);
    gap: 6px;
}

.text-link:hover {
    color: var(--primary-dark);
}

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

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 32px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

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

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

.main-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 22px 76px;
}

.page-shell {
    padding-top: 34px;
}

.intro-strip,
.page-hero,
.detail-hero,
.player-section,
.detail-side-card,
.category-panel,
.ranking-block {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 54px;
}

.intro-strip h2,
.page-hero h1,
.section-head h2,
.detail-copy h1,
.detail-main-text h2,
.detail-side-card h2 {
    margin: 8px 0 10px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.intro-strip h2,
.section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.intro-strip p,
.section-head p,
.page-hero p {
    margin: 0;
    color: var(--muted);
}

.content-section {
    margin-top: 54px;
}

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

.section-head-simple {
    align-items: center;
    margin-bottom: 18px;
}

.section-head-search {
    align-items: stretch;
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid var(--line);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(150px, 190px);
    gap: 12px;
    align-items: end;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.25);
}

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

.category-tile {
    min-height: 132px;
    padding: 22px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: -30px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    display: block;
    color: #dbeafe;
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.72) 100%);
}

.card-badge,
.card-score {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 12px;
    top: 12px;
    background: rgba(37, 99, 235, 0.88);
}

.card-score {
    right: 12px;
    top: 12px;
    background: rgba(249, 115, 22, 0.9);
}

.card-body {
    padding: 17px;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.category-panel-links a:hover,
.footer-column a:hover,
.detail-side-card a:hover,
.adjacent-links a:hover {
    color: var(--primary);
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.ranking-block {
    border-radius: var(--radius);
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 90px 42px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 130px;
    padding: 13px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-poster {
    display: block;
    width: 90px;
    height: 100px;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.rank-poster img {
    height: 100%;
    object-fit: cover;
}

.rank-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.twin-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.page-hero {
    border-radius: var(--radius);
    padding: clamp(30px, 6vw, 62px);
    margin-bottom: 36px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 38%),
                linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
    max-width: 840px;
    font-size: 18px;
}

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

.category-panel {
    border-radius: 20px;
    padding: 24px;
}

.category-panel-title {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

.category-panel-links {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 34px;
    align-items: center;
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 42px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 56%, #1d4ed8 100%);
    color: #ffffff;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 10;
    background: #020617;
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 58px);
}

.lead-text {
    max-width: 820px;
    color: #e2e8f0;
    font-size: 19px;
}

.detail-meta {
    margin: 18px 0 8px;
}

.detail-meta span {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.65);
}

.player-section {
    margin-top: 36px;
    border-radius: var(--radius);
    padding: clamp(12px, 2.6vw, 24px);
    background: #020617;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
    font-size: 34px;
    padding-left: 5px;
}

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

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

.detail-main-text {
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-main-text h2 {
    font-size: 28px;
}

.detail-main-text p {
    color: #334155;
    font-size: 17px;
}

.detail-side-card {
    border-radius: 20px;
    padding: 24px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: #1e293b;
}

.adjacent-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.adjacent-links a {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    font-weight: 800;
}

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

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 38px;
}

.footer-brand p {
    max-width: 640px;
    margin: 18px 0 0;
    color: #94a3b8;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-column h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

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

    .rank-grid,
    .detail-content,
    .twin-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 12px 0 4px;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid rgba(226, 232, 240, 0.16);
    }

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

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

    .hero-content {
        bottom: 74px;
    }

    .hero-nav {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .intro-strip,
    .section-head,
    .section-head-search,
    .detail-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

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

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

    .detail-hero {
        gap: 24px;
    }

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

@media (max-width: 560px) {
    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .main-shell {
        padding: 38px 14px 56px;
    }

    .hero-carousel {
        min-height: 500px;
    }

    .hero-content {
        width: calc(100% - 28px);
        bottom: 66px;
    }

    .hero-actions,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .movie-grid,
    .movie-grid-small,
    .category-grid,
    .category-panel-grid,
    .adjacent-links {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 72px 38px 1fr;
        gap: 10px;
    }

    .rank-poster {
        width: 72px;
        height: 86px;
    }

    .detail-content,
    .detail-main-text,
    .detail-side-card {
        display: block;
    }

    .detail-main-text,
    .detail-side-card,
    .ranking-block,
    .intro-strip,
    .page-hero {
        padding: 20px;
    }
}
