:root {
    --blue-900: #0f2a5f;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --teal-600: #0d9488;
    --green-600: #16a34a;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.13);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.09);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    color: var(--gray-700);
    font-weight: 600;
}

.nav-links > a {
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-links > a:hover {
    color: var(--blue-600);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.nav-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 16px;
    background: transparent;
}

.nav-search button,
.quick-search button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--blue-600);
    padding: 10px 16px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.nav-search button:hover,
.quick-search button:hover,
.filter-panel button:hover {
    background: var(--blue-700);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-800);
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    height: clamp(520px, 68vw, 720px);
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--blue-900), var(--blue-700), var(--teal-600));
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.32), transparent 32%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.9) 0%, rgba(15, 42, 95, 0.76) 48%, rgba(15, 42, 95, 0.22) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.12));
}

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

.eyebrow {
    margin: 0 0 14px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 10px;
    max-width: 820px;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.18;
}

.hero-desc {
    margin: 0 0 24px;
    max-width: 760px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--blue-700);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: var(--blue-600);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38);
}

.btn.primary:hover {
    background: var(--blue-700);
}

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

.btn.soft {
    color: var(--blue-900);
    background: rgba(255, 255, 255, 0.88);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--white);
}

.quick-search {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.quick-search form {
    display: flex;
    gap: 12px;
}

.quick-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 14px 18px;
    outline: 0;
}

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

.quick-search button {
    border-radius: 999px;
    padding: 12px 28px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a {
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 14px;
    font-weight: 700;
}

.quick-links a:hover {
    color: var(--blue-700);
    background: #dbeafe;
}

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

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

.content-section,
.category-preview {
    margin: 48px 0;
}

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

.section-head h2,
.article-section h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--gray-600);
}

.section-link {
    flex: 0 0 auto;
    color: var(--blue-600);
    font-weight: 800;
}

.section-link:hover {
    color: var(--blue-700);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster-link img {
    width: 100%;
    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(0deg, rgba(3, 7, 18, 0.68), transparent 58%);
    opacity: 0.82;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    background: rgba(3, 7, 18, 0.72);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.strip-card h3 a:hover {
    color: var(--blue-600);
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: var(--gray-100);
}

.strip-grid {
    display: grid;
    gap: 14px;
}

.strip-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.strip-poster {
    display: block;
    min-height: 140px;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

.strip-body {
    padding: 16px 16px 16px 0;
}

.strip-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strip-rank {
    flex: 0 0 auto;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue-600);
    font-size: 13px;
    font-weight: 800;
}

.strip-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.strip-card p {
    margin: 8px 0 10px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-section {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.category-preview:nth-of-type(even) {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.compact-strip .strip-card {
    grid-template-columns: 82px 1fr;
}

.compact-strip .strip-poster {
    min-height: 106px;
}

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

.category-card,
.category-overview-card a {
    display: block;
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600) 58%, var(--teal-600));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 6px;
    margin: 16px 0 20px;
    color: #eff6ff;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 64px);
    color: var(--white);
    background:
        radial-gradient(circle at 86% 22%, rgba(20, 184, 166, 0.35), transparent 28%),
        linear-gradient(135deg, var(--blue-900), var(--blue-600), var(--teal-600));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    max-width: 840px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p:last-child {
    margin: 0;
    max-width: 820px;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 11px 14px;
    color: var(--gray-800);
    background: var(--white);
    outline: 0;
}

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

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--gray-950);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--gray-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--gray-950);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

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

.player-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.38), transparent 32%);
}

.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.42);
    transform: translate(-50%, -50%);
    font-size: 34px;
}

.detail-info-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-info-card > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.detail-info-card > div {
    padding: 24px;
}

.detail-info-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.detail-info-card p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--gray-600);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

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

.article-section {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.article-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.article-section h2:not(:first-child) {
    margin-top: 32px;
}

.article-section p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 36px;
    padding: 48px 0 28px;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: #d1d5db;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .detail-layout,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-wrap {
        min-height: 64px;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: var(--white);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    }

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

    .nav-links > a {
        padding: 12px 6px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-search {
        margin-top: 12px;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-top: 64px;
    }

    .quick-search form {
        flex-direction: column;
    }

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

@media (max-width: 640px) {
    .movie-grid,
    .small-grid,
    .category-card-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .strip-card,
    .compact-strip .strip-card {
        grid-template-columns: 96px 1fr;
    }

    .strip-poster,
    .compact-strip .strip-poster {
        min-height: 124px;
    }

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

    .brand,
    .footer-brand {
        font-size: 18px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
