:root {
    --vintage-50: #fdfaf5;
    --vintage-100: #f9f3e8;
    --vintage-200: #f5f1e6;
    --vintage-700: #5a4532;
    --vintage-900: #2d2218;
    --aged-100: #faf8f3;
    --aged-200: #eee6d6;
    --aged-300: #d8c9ad;
    --aged-800: #3a2b1e;
    --sepia-50: #fff7e8;
    --sepia-400: #c88a41;
    --sepia-600: #8a5a2b;
    --ink: #241a13;
    --muted: #756456;
    --white: #ffffff;
    --shadow-soft: 0 18px 48px rgba(69, 48, 31, 0.14);
    --shadow-card: 0 12px 28px rgba(69, 48, 31, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--vintage-50);
    color: var(--ink);
    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(253, 250, 245, 0.88);
    border-bottom: 1px solid rgba(138, 90, 43, 0.16);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--vintage-900);
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sepia-50);
    background: linear-gradient(135deg, var(--sepia-600), #4d321c);
    box-shadow: 0 12px 24px rgba(138, 90, 43, 0.26);
}

.brand-name {
    font-size: 22px;
    white-space: nowrap;
}

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

.nav-link,
.dropdown-button {
    border: 0;
    background: transparent;
    color: var(--vintage-700);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-button:hover {
    color: var(--sepia-50);
    background: var(--sepia-600);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 180px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(138, 90, 43, 0.16);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--vintage-700);
}

.dropdown-link:hover {
    background: var(--vintage-100);
    color: var(--sepia-600);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--sepia-50);
    background: var(--sepia-600);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #1d140d;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.04);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(19, 12, 8, 0.92) 0%, rgba(19, 12, 8, 0.72) 44%, rgba(19, 12, 8, 0.18) 100%), linear-gradient(0deg, rgba(19, 12, 8, 0.66), rgba(19, 12, 8, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    min-height: 620px;
    margin: 0 auto;
    padding: 92px 24px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 42px;
    color: var(--sepia-50);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e4cba3;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: "";
    width: 46px;
    height: 2px;
    background: var(--sepia-400);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 16px;
    max-width: 880px;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 247, 232, 0.86);
    font-size: 18px;
}

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

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

.primary-button {
    color: var(--sepia-50);
    background: var(--sepia-600);
    box-shadow: 0 18px 30px rgba(138, 90, 43, 0.34);
}

.secondary-button {
    color: var(--sepia-50);
    border: 1px solid rgba(255, 247, 232, 0.36);
    background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-side-card {
    padding: 24px;
    border: 1px solid rgba(255, 247, 232, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-side-card strong {
    display: block;
    margin-top: 18px;
    font-size: 20px;
}

.hero-side-card span {
    display: block;
    color: rgba(255, 247, 232, 0.72);
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 247, 232, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--sepia-400);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--sepia-600);
}

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--vintage-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(138, 90, 43, 0.12);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--aged-200);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-year {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--sepia-50);
    background: rgba(0, 0, 0, 0.68);
    font-size: 13px;
    font-weight: 700;
}

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

.movie-meta {
    color: var(--sepia-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--vintage-900);
    font-size: 20px;
    line-height: 1.35;
}

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

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card h3 {
    font-size: 17px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--vintage-700);
    background: var(--vintage-100);
    font-size: 12px;
}

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-md);
    color: var(--sepia-50);
    background: linear-gradient(135deg, var(--sepia-600), var(--aged-800));
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 247, 232, 0.82);
}

.rank-panel {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--vintage-900), #4b331f);
    color: var(--sepia-50);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.rank-panel-inner {
    padding: 30px;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.rank-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 247, 232, 0.14);
}

.rank-list span {
    color: var(--sepia-400);
    font-weight: 900;
    font-size: 22px;
}

.rank-list a {
    overflow: hidden;
    color: var(--sepia-50);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    grid-column: 2;
    margin-top: -6px;
    color: rgba(255, 247, 232, 0.62);
    font-style: normal;
    font-size: 13px;
}

.search-panel {
    margin: 28px 0 32px;
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(138, 90, 43, 0.16);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--vintage-900);
    background: transparent;
}

.search-panel button {
    border: 0;
    color: var(--sepia-50);
    background: var(--sepia-600);
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
}

.breadcrumb {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sepia-600);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    margin-bottom: 34px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--white), var(--vintage-100));
    box-shadow: var(--shadow-card);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.detail-title h1 {
    margin-bottom: 12px;
}

.detail-title p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--vintage-700);
    background: var(--aged-200);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.content-card,
.player-card,
.side-card {
    border: 1px solid rgba(138, 90, 43, 0.12);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card,
.side-card {
    padding: 28px;
}

.content-card h2,
.player-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--vintage-900);
    font-size: 28px;
}

.content-card p {
    margin: 0 0 18px;
    color: var(--vintage-700);
    font-size: 17px;
}

.player-card {
    overflow: hidden;
    margin-bottom: 32px;
}

.player-card h2 {
    padding: 24px 28px 0;
}

.player-shell {
    position: relative;
    margin: 24px 28px 28px;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--sepia-50);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 90, 43, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    font-size: 34px;
    transform: translateX(3px);
}

.player-overlay.is-hidden {
    display: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--sepia-50);
    text-align: center;
    pointer-events: none;
}

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

.side-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-card li + li {
    margin-top: 12px;
}

.side-card a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--vintage-700);
    background: var(--vintage-100);
    font-weight: 700;
}

.side-card a:hover {
    color: var(--sepia-50);
    background: var(--sepia-600);
}

.site-footer {
    background: var(--vintage-900);
    color: rgba(255, 247, 232, 0.82);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--sepia-50);
    font-size: 26px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--sepia-50);
    font-size: 18px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 247, 232, 0.12);
    text-align: center;
    color: rgba(255, 247, 232, 0.58);
}

.is-filter-hidden {
    display: none;
}

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

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

    .detail-layout,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
    }

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

    .nav-link,
    .dropdown-button {
        width: 100%;
        text-align: left;
    }

    .nav-dropdown:hover .dropdown-panel,
    .nav-dropdown:focus-within .dropdown-panel,
    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        padding: 0 0 0 14px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 640px;
        padding-top: 74px;
    }

    .hero-side-card {
        display: none;
    }

    .movie-grid,
    .category-strip,
    .rank-list,
    .related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

@media (max-width: 560px) {
    .header-inner,
    .page-shell,
    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-name {
        font-size: 18px;
    }

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

    .hero-content h1,
    .hero-content h2 {
        font-size: 40px;
    }

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

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

    .search-panel {
        border-radius: var(--radius-md);
        flex-direction: column;
    }

    .search-panel input {
        min-height: 44px;
    }

    .player-card h2,
    .player-shell {
        margin-left: 16px;
        margin-right: 16px;
    }

    .player-card h2 {
        padding-left: 0;
        padding-right: 0;
    }
}
