:root {
    --vintage-950: #120f0c;
    --vintage-900: #211811;
    --vintage-850: #2b2118;
    --vintage-800: #3a2a1d;
    --vintage-700: #4d3826;
    --vintage-100: #efe4d1;
    --vintage-50: #fbf6ee;
    --sepia-700: #9a5c1e;
    --sepia-600: #b8752a;
    --sepia-500: #d0913e;
    --sepia-100: #f0d6ad;
    --aged-800: #5c4a37;
    --aged-600: #806b55;
    --aged-100: #eadfcd;
    --ink: #2a2118;
    --muted: #796854;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(33, 24, 17, 0.18);
    --soft-shadow: 0 12px 28px rgba(33, 24, 17, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--vintage-50), #f4ead9 42%, #fffaf2);
    font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(33, 24, 17, 0.92);
    color: var(--vintage-50);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(240, 214, 173, 0.16);
}

.header-inner {
    width: min(1480px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe0a8, var(--sepia-600) 55%, #5a3214);
    color: #24160b;
    box-shadow: 0 0 28px rgba(208, 145, 62, 0.45);
}

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

.main-nav a,
.category-tabs a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 250, 242, 0.82);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(208, 145, 62, 0.2);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--vintage-50);
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(208, 145, 62, 0.34), transparent 34%), linear-gradient(135deg, var(--vintage-950), var(--aged-800) 55%, var(--vintage-900));
    color: var(--vintage-50);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-slider {
    position: relative;
    width: min(1480px, calc(100% - 32px));
    min-height: 78vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    align-items: center;
    gap: 56px;
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-kicker,
.section-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(208, 145, 62, 0.18);
    color: #ffdca9;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 250, 242, 0.82);
    font-size: clamp(17px, 2vw, 24px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(240, 214, 173, 0.16);
    color: #f9dfb7;
    padding: 5px 10px;
    font-size: 13px;
}

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

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

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

.btn.primary {
    background: linear-gradient(135deg, #f3bc69, var(--sepia-600));
    color: #24160b;
    box-shadow: 0 16px 34px rgba(208, 145, 62, 0.28);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--vintage-50);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.38);
    aspect-ratio: 3 / 4;
    isolation: isolate;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: var(--vintage-50);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.active {
    background: var(--sepia-500);
    opacity: 1;
}

.quick-search,
.content-section,
.page-hero,
.detail-main,
.category-tabs {
    width: min(1480px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search {
    margin-top: 28px;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    align-items: center;
    gap: 20px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(154, 92, 30, 0.12);
}

.quick-search span {
    display: block;
    color: var(--sepia-700);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.quick-search strong {
    font-size: 22px;
}

.movie-search {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(128, 107, 85, 0.24);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 250, 242, 0.94);
    color: var(--ink);
    outline: none;
}

.movie-search:focus {
    border-color: var(--sepia-600);
    box-shadow: 0 0 0 4px rgba(208, 145, 62, 0.14);
}

.content-section {
    padding: 68px 0;
}

.content-section.tinted {
    width: 100%;
    padding-left: max(16px, calc((100% - 1480px) / 2));
    padding-right: max(16px, calc((100% - 1480px) / 2));
    background: linear-gradient(135deg, rgba(234, 223, 205, 0.72), rgba(251, 246, 238, 0.5));
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.18;
}

.section-head p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

.section-head .section-kicker,
.page-hero span {
    background: rgba(154, 92, 30, 0.11);
    color: var(--sepia-700);
}

.section-more {
    flex: 0 0 auto;
    color: var(--sepia-700);
    font-weight: 700;
}

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

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

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

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 28px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.92);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(154, 92, 30, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--aged-100);
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(180deg, rgba(18, 15, 12, 0.06), rgba(18, 15, 12, 0.72));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

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

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

.movie-card h2 a,
.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card h2 a:hover,
.movie-card h3 a:hover {
    color: var(--sepia-700);
}

.movie-meta {
    margin: 0 0 10px;
    color: var(--aged-600);
    font-size: 14px;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    background: var(--sepia-100);
    color: #744315;
}

.rank-list {
    display: grid;
    gap: 14px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.9);
    border: 1px solid rgba(154, 92, 30, 0.12);
    box-shadow: 0 8px 20px rgba(33, 24, 17, 0.08);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #fffaf2;
}

.rank-no {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--vintage-900);
    color: var(--vintage-50);
    font-weight: 800;
}

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

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    margin-bottom: 4px;
    font-size: 18px;
}

.rank-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-score {
    color: var(--sepia-700);
    font-weight: 800;
    font-size: 22px;
}

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

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

.category-card {
    min-height: 148px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(240, 214, 173, 0.42));
    border: 1px solid rgba(154, 92, 30, 0.12);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong,
.category-card span {
    display: block;
}

.category-card strong {
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card span {
    color: var(--muted);
}

.page-main {
    padding-bottom: 70px;
}

.page-hero {
    margin-top: 34px;
    padding: 58px;
    border-radius: 36px;
    color: var(--vintage-50);
    background: radial-gradient(circle at 85% 20%, rgba(208, 145, 62, 0.26), transparent 34%), linear-gradient(135deg, var(--vintage-900), var(--aged-800));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 250, 242, 0.78);
    font-size: 20px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.category-tabs a {
    color: var(--aged-800);
    background: rgba(255, 250, 242, 0.86);
    border: 1px solid rgba(154, 92, 30, 0.12);
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #fffaf2;
    background: var(--vintage-800);
}

.detail-main {
    padding: 34px 0 70px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(33, 24, 17, 0.96), rgba(92, 74, 55, 0.92));
    color: var(--vintage-50);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 900px;
    margin: 0 0 22px;
    color: rgba(255, 250, 242, 0.82);
    font-size: 20px;
}

.player-section {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.main-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: cover;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: var(--vintage-50);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3bc69, var(--sepia-600));
    color: #211811;
    font-size: 42px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
    max-width: min(760px, 86%);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.2;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

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

.detail-content article,
.detail-content aside {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 250, 242, 0.92);
    border: 1px solid rgba(154, 92, 30, 0.12);
    box-shadow: var(--soft-shadow);
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    color: var(--muted);
}

dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 14px;
    margin: 0;
}

dt {
    color: var(--sepia-700);
    font-weight: 800;
}

dd {
    margin: 0;
    color: var(--muted);
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    margin-top: 40px;
    background: var(--vintage-900);
    color: rgba(255, 250, 242, 0.78);
}

.footer-inner {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: var(--vintage-50);
    font-weight: 800;
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    max-width: 620px;
}

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

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

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

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

    .detail-content {
        grid-template-columns: 1fr 1fr;
    }

    .detail-content aside {
        grid-column: 1 / -1;
    }
}

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

    .main-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 16px;
        border-radius: 20px;
        background: rgba(33, 24, 17, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .hero-slider {
        min-height: 860px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 80px 0 120px;
    }

    .hero-poster {
        width: min(360px, 78vw);
        justify-self: center;
    }

    .quick-search-inner,
    .featured-layout,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .featured-side,
    .movie-grid,
    .compact-grid,
    .category-full-grid,
    .home-rank,
    .wide-rank,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-poster {
        max-width: 360px;
    }

    .page-hero {
        padding: 36px 24px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .quick-search,
    .content-section,
    .page-hero,
    .detail-main,
    .category-tabs,
    .footer-inner {
        width: min(100% - 22px, 1480px);
    }

    .logo span:last-child {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero,
    .hero-slider {
        min-height: 820px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .movie-grid,
    .compact-grid,
    .category-full-grid,
    .featured-side,
    .home-rank,
    .wide-rank,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 34px 64px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

    .detail-hero {
        padding: 20px;
    }

    .play-icon {
        width: 74px;
        height: 74px;
        font-size: 32px;
    }
}
