* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --primary-50: #f0f9f4;
    --primary-100: #dcf2e4;
    --primary-200: #bce5cd;
    --primary-600: #267f56;
    --primary-700: #1f6546;
    --accent-50: #fef9ee;
    --accent-100: #fcefD0;
    --accent-200: #f8dc9e;
    --accent-400: #f0a838;
    --accent-600: #cf6913;
    --accent-700: #ac4a12;
    --paper-50: #fafaf9;
    --paper-200: #e7e5e4;
    --paper-300: #d6d3d1;
    --ink-500: #77716c;
    --ink-600: #5e5a55;
    --ink-700: #4f4b46;
    --ink-800: #454545;
    --ink-900: #3d3d3d;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(61, 61, 61, 0.12);
    --shadow-soft: 0 10px 28px rgba(61, 61, 61, 0.10);
}

body {
    margin: 0;
    background: var(--paper-50);
    color: var(--ink-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--primary-100);
    box-shadow: 0 8px 24px rgba(38, 127, 86, 0.06);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(38, 127, 86, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-logo,
.hero-copy h1,
.section-head h2,
.detail-copy h1,
.sub-hero h1,
.category-hero h1 {
    font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
}

.brand-text strong {
    font-size: 20px;
    color: var(--ink-900);
}

.brand-text em {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: var(--ink-700);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-700);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -22px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--primary-600);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink-700);
    font-size: 26px;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
    background: var(--ink-900);
}

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

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

.hero-bg,
.category-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    filter: brightness(0.58);
}

.hero-shade,
.category-hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    max-width: 680px;
    color: var(--white);
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(46px, 7vw, 74px);
    line-height: 0.95;
}

.hero-kicker {
    margin: 0 0 18px;
    color: var(--paper-200);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
}

.hero-desc {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--paper-300);
    font-size: 18px;
    line-height: 1.8;
}

.hero-feature {
    max-width: 600px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-feature h2 {
    margin: 12px 0 8px;
    font-size: 28px;
}

.hero-feature p {
    margin: 0 0 18px;
    color: var(--paper-200);
    line-height: 1.7;
}

.primary-button,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--primary-600);
    color: var(--white);
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.section-action:hover {
    background: var(--primary-700);
    box-shadow: 0 12px 24px rgba(38, 127, 86, 0.22);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.34);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

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

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

.page-stack {
    display: grid;
    gap: 64px;
    padding: 64px 0;
}

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

.section-head h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--ink-600);
    line-height: 1.7;
}

.section-action {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

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

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

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

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

.card-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-900);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24), transparent);
}

.cover-gradient.soft {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient.soft {
    opacity: 1;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-600);
    color: var(--white);
    font-size: 24px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-badge.small {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

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

.duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(61, 61, 61, 0.86);
    color: var(--white);
    font-size: 12px;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--ink-900);
    font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span,
.tag-row span,
.detail-tags span,
.info-card dd span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 700;
}

.tag-row span:nth-child(2n),
.detail-tags span:nth-child(2n) {
    background: var(--accent-100);
    color: var(--accent-700);
}

.card-meta,
.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--ink-500);
    font-size: 13px;
}

.card-meta {
    justify-content: space-between;
    margin-top: 12px;
}

.movie-card-featured {
    display: block;
    max-width: 880px;
    margin: 0 auto;
}

.featured-cover {
    aspect-ratio: 16 / 9;
}

.featured-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: var(--white);
}

.featured-info h3 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 5vw, 42px);
}

.featured-info p {
    max-width: 680px;
    margin: 0 0 12px;
    color: var(--paper-200);
    line-height: 1.7;
}

.category-panel {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

.category-tile,
.category-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(188, 229, 205, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-card h2 {
    color: var(--ink-900);
    font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
    font-size: 22px;
    font-weight: 800;
}

.category-tile strong,
.category-card span {
    margin-top: 10px;
    color: var(--primary-700);
}

.category-tile em,
.category-card p {
    margin-top: auto;
    color: var(--ink-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.sub-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
}

.sub-hero .container {
    padding: 70px 0;
}

.sub-hero h1,
.category-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 7vw, 64px);
}

.sub-hero p,
.category-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--primary-100);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    overflow: hidden;
    padding: 0;
}

.category-covers {
    display: grid;
    height: 150px;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.category-card-body h2,
.category-card-body p {
    margin: 0;
}

.category-card-body p {
    margin-top: 8px;
}

.category-card-body span {
    margin-top: 14px;
}

.category-hero {
    min-height: 420px;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    min-height: 420px;
    gap: 40px;
    grid-template-columns: 1.3fr 360px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-mini-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-mini-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hero-mini-card h2 {
    margin: 18px 18px 8px;
    font-size: 22px;
}

.hero-mini-card span {
    display: block;
    margin: 0 18px 18px;
    color: var(--paper-200);
}

.rank-list,
.compact-list,
.search-list {
    display: grid;
    gap: 10px;
}

.rank-row,
.compact-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(61, 61, 61, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
    grid-template-columns: 70px 1fr 150px 90px 90px;
}

.compact-row {
    grid-template-columns: 1fr 140px 90px 90px;
}

.rank-row:hover,
.compact-row:hover {
    box-shadow: var(--shadow-soft);
    transform: translateX(3px);
}

.rank-row.top .rank-num {
    background: var(--accent-600);
    color: var(--white);
}

.rank-num {
    display: inline-grid;
    width: 46px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 800;
}

.rank-name,
.compact-title {
    overflow: hidden;
    color: var(--ink-900);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-stack {
    gap: 34px;
}

.archive-year h2 {
    margin: 0 0 16px;
    font-family: Georgia, Cambria, "Times New Roman", "Songti SC", serif;
    font-size: 30px;
}

.search-box {
    max-width: 620px;
    margin-top: 26px;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink-900);
    font-size: 16px;
}

.search-summary {
    color: var(--ink-600);
    font-weight: 800;
}

.search-item {
    display: grid;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    grid-template-columns: 96px 1fr;
}

.search-item[hidden] {
    display: none;
}

.search-item img {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.search-item span {
    display: grid;
    gap: 5px;
}

.search-item strong {
    color: var(--ink-900);
    font-size: 18px;
}

.search-item em,
.search-item small {
    color: var(--ink-600);
    font-style: normal;
    line-height: 1.5;
}

.detail-hero {
    min-height: 560px;
}

.detail-top {
    position: relative;
    z-index: 2;
    padding: 34px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--paper-200);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    align-items: end;
    gap: 34px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.poster-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-card span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-600);
    color: var(--white);
    font-weight: 800;
}

.detail-copy {
    color: var(--white);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1.05;
}

.lead {
    max-width: 850px;
    margin: 0 0 22px;
    color: var(--paper-200);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    margin-bottom: 20px;
    color: var(--paper-300);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-panel {
    overflow: hidden;
    border-radius: 24px;
    background: var(--ink-900);
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
    color: var(--white);
    cursor: pointer;
}

.player-button span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-600);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    font-size: 34px;
}

.player-button[hidden] {
    display: none;
}

.content-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-card p {
    margin: 0;
    color: var(--ink-700);
    font-size: 17px;
    line-height: 1.9;
}

.info-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-card div {
    display: grid;
    gap: 12px;
    grid-template-columns: 100px 1fr;
}

.info-card dt {
    color: var(--ink-500);
    font-weight: 800;
}

.info-card dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--ink-800);
}

.site-footer {
    padding: 44px 0;
    background: var(--ink-900);
    color: var(--paper-300);
}

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

.footer-logo {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
}

.site-footer p {
    max-width: 420px;
    margin: 0;
    line-height: 1.7;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--paper-300);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--accent-400);
}

@media (max-width: 980px) {
    .movie-grid.four,
    .category-grid,
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-hero-content,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-mini-card,
    .poster-card {
        max-width: 360px;
    }

    .rank-row {
        grid-template-columns: 58px 1fr 100px;
    }

    .rank-row span:nth-child(3),
    .rank-row span:nth-child(4) {
        display: none;
    }

    .compact-row {
        grid-template-columns: 1fr 80px;
    }

    .compact-row span:nth-child(2),
    .compact-row span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 12px;
        left: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--primary-100);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

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

    .nav-link.active::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        min-height: 620px;
        padding: 54px 0;
    }

    .hero-arrow {
        display: none;
    }

    .hero-feature {
        padding: 18px;
    }

    .page-stack {
        gap: 42px;
        padding: 42px 0;
    }

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

    .movie-grid.four,
    .category-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .category-panel,
    .content-card {
        padding: 20px;
        border-radius: 20px;
    }

    .category-hero-content {
        padding: 44px 0;
    }

    .detail-top {
        padding-bottom: 42px;
    }

    .poster-card {
        max-width: 260px;
    }

    .lead {
        font-size: 17px;
    }

    .info-card div {
        grid-template-columns: 1fr;
    }

    .search-item {
        grid-template-columns: 76px 1fr;
    }

    .search-item img {
        width: 76px;
        height: 64px;
    }
}
