:root {
    --cream-50: #fefdfb;
    --warm-50: #faf5f0;
    --warm-100: #f5ebe0;
    --warm-200: #e8d4be;
    --warm-300: #d9b896;
    --warm-500: #be8350;
    --warm-600: #a86d44;
    --warm-700: #8b583a;
    --warm-800: #714834;
    --warm-900: #5d3d2d;
    --tea-50: #fdf8f3;
    --tea-100: #fbeee0;
    --tea-200: #f7dbbf;
    --tea-400: #eca368;
    --tea-600: #d9703c;
    --tea-700: #b45833;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--warm-900);
    background: linear-gradient(180deg, var(--cream-50), #ffffff 52%, var(--warm-50));
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(245, 235, 224, .9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1180px;
    height: 66px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--warm-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    box-shadow: 0 14px 28px rgba(217, 112, 60, .24);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    gap: 26px;
    align-items: center;
    color: var(--warm-700);
    font-weight: 600;
}

.desktop-nav a {
    position: relative;
    padding: 20px 0;
    transition: color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
    color: var(--tea-600);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 13px;
    height: 2px;
    border-radius: 10px;
    background: var(--tea-600);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--warm-700);
    background: var(--tea-50);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 10px 18px 18px;
    border-top: 1px solid var(--warm-100);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: var(--warm-700);
    font-weight: 600;
}

.hero {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: var(--warm-900);
}

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

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

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

.hero-slide.is-active img {
    animation: heroZoom 8s ease forwards;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .46) 42%, rgba(0, 0, 0, .12)), linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 18px 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-kicker span,
.tag-row span,
.info-pill,
.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: inherit;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.hero h1,
.hero h2 {
    margin: 0 0 16px;
    max-width: 780px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    letter-spacing: -.04em;
}

.hero h1 small {
    display: block;
    margin-bottom: 14px;
    color: var(--tea-400);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    letter-spacing: .16em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(217, 112, 60, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(217, 112, 60, .32);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, .2);
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, .34);
    cursor: pointer;
    backdrop-filter: blur(6px);
}

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-search-panel {
    position: relative;
    z-index: 5;
    max-width: 1180px;
    margin: -42px auto 0;
    padding: 0 18px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    padding: 13px 16px;
    color: var(--warm-800);
    outline: none;
    background: #ffffff;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--tea-400);
    box-shadow: 0 0 0 4px rgba(236, 163, 104, .18);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 18px;
}

.section-muted {
    max-width: none;
    background: var(--warm-50);
}

.section-muted > .section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 18px;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--warm-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.03em;
}

.section-head p,
.page-lead {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--warm-600);
    line-height: 1.8;
}

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

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--warm-100);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, var(--tea-50));
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, border-color .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--tea-200);
}

.category-card strong {
    color: var(--warm-900);
    font-size: 22px;
}

.category-card span {
    color: var(--warm-600);
    line-height: 1.6;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--warm-100);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--tea-200);
    box-shadow: 0 18px 42px rgba(93, 61, 45, .14);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--warm-100);
}

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

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 112, 60, .9);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
}

.rank-num {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--warm-900), var(--tea-600));
    font-weight: 800;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--warm-500);
    font-size: 12px;
}

.movie-card strong {
    color: var(--warm-900);
    font-size: 18px;
    line-height: 1.35;
}

.excerpt {
    color: var(--warm-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tea-700);
}

.tag-row span {
    background: var(--tea-50);
    border: 1px solid var(--tea-100);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--warm-100);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-item b {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
}

.rank-item img {
    width: 96px;
    height: 132px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--warm-900);
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--warm-600);
    line-height: 1.65;
}

.page-hero {
    padding: 64px 18px 42px;
    background: linear-gradient(135deg, var(--tea-50), var(--warm-50));
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    color: var(--warm-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.04em;
}

.filter-bar {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 180px 160px;
    gap: 12px;
}

.empty-state {
    display: none;
    padding: 34px;
    border: 1px dashed var(--tea-200);
    border-radius: 22px;
    color: var(--warm-600);
    background: var(--tea-50);
    text-align: center;
}

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

.breadcrumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 0;
    color: var(--warm-600);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--tea-700);
}

.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 18px 74px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 28px;
    align-items: start;
}

.detail-panel,
.side-panel,
.content-panel {
    border: 1px solid var(--warm-100);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-panel {
    overflow: hidden;
}

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

.movie-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .68));
    cursor: pointer;
    transition: opacity .2s ease, visibility .2s ease;
}

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

.play-mark {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
    font-size: 28px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.detail-copy {
    padding: 28px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: var(--warm-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.03em;
}

.detail-copy .one-line {
    margin: 0 0 18px;
    color: var(--warm-600);
    font-size: 18px;
    line-height: 1.75;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--warm-700);
}

.info-pill {
    background: var(--warm-50);
    border: 1px solid var(--warm-100);
}

.side-panel {
    overflow: hidden;
}

.side-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.side-content {
    padding: 22px;
}

.side-content h2,
.content-panel h2 {
    margin: 0 0 14px;
    color: var(--warm-900);
    font-size: 24px;
}

.side-content dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    margin: 0;
    color: var(--warm-700);
}

.side-content dt {
    color: var(--warm-500);
}

.side-content dd {
    margin: 0;
}

.content-panel {
    margin-top: 28px;
    padding: 28px;
}

.content-panel p {
    margin: 0 0 18px;
    color: var(--warm-700);
    line-height: 1.9;
}

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

.mini-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--warm-100);
    border-radius: 18px;
    background: #ffffff;
    transition: transform .2s ease, border-color .2s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--tea-200);
}

.mini-card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.mini-card span {
    padding: 12px;
}

.mini-card strong {
    display: block;
    color: var(--warm-900);
    line-height: 1.4;
}

.mini-card em {
    display: block;
    margin-top: 6px;
    color: var(--warm-500);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: var(--warm-100);
    background: var(--warm-900);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    color: var(--warm-200);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.footer-links a {
    color: var(--warm-200);
}

.footer-links a:hover {
    color: var(--tea-400);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--warm-300);
    text-align: center;
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.12);
    }
}

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

    .hero-control {
        display: none;
    }

    .search-box,
    .filter-bar,
    .detail-main,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 19px;
    }

    .section,
    .section-muted > .section-inner {
        padding: 48px 14px;
    }

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

    .movie-card strong {
        font-size: 16px;
    }

    .excerpt {
        -webkit-line-clamp: 2;
    }

    .rank-item {
        grid-template-columns: 44px 74px 1fr;
    }

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

    .page-hero {
        padding-top: 42px;
    }

    .detail-copy,
    .content-panel {
        padding: 20px;
    }
}
