:root {
    --vintage-50: #faf8f3;
    --vintage-100: #f5f1e6;
    --vintage-200: #e8dfc8;
    --vintage-300: #dac9a3;
    --vintage-800: #6d533a;
    --vintage-900: #5a4532;
    --aged-50: #f7f6f4;
    --aged-100: #eeeae5;
    --aged-300: #c4b8a8;
    --aged-500: #947e67;
    --aged-700: #67574a;
    --aged-900: #4a3e3a;
    --sepia-50: #fdfaf5;
    --sepia-100: #f9f3e8;
    --sepia-200: #f2e6cd;
    --sepia-400: #d4bd7e;
    --sepia-500: #c4a55d;
    --sepia-600: #a68847;
    --sepia-700: #8a6e3c;
    --ink: #2b211d;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(62, 45, 33, 0.18);
    --soft-shadow: 0 10px 24px rgba(90, 69, 50, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--vintage-50);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

[hidden] {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(90, 69, 50, 0.96);
    color: var(--vintage-50);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

.site-nav {
    width: min(1440px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sepia-400), var(--sepia-700));
    color: var(--vintage-900);
    font-weight: 900;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(0, 0, 0, 0.24);
}

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

.logo-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: 0.04em;
}

.logo-text small {
    margin-top: 4px;
    color: var(--vintage-300);
    font-size: 12px;
}

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

.nav-link {
    color: var(--vintage-200);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sepia-400);
    border-bottom-color: var(--sepia-400);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--vintage-50);
    width: 44px;
    height: 44px;
    font-size: 24px;
}

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--vintage-900), var(--aged-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-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(0.85) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 38%, rgba(212, 189, 126, 0.22), transparent 32%), linear-gradient(90deg, rgba(43, 33, 29, 0.95), rgba(90, 69, 50, 0.78) 48%, rgba(43, 33, 29, 0.38));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(980px, calc(100% - 32px));
    padding-top: 13vh;
    margin-left: max(16px, calc((100vw - 1380px) / 2));
    color: var(--vintage-50);
}

.hero-kicker {
    display: inline-flex;
    border: 1px solid rgba(212, 189, 126, 0.7);
    color: var(--sepia-400);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 26px 0 10px;
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.03em;
}

.hero-content h2 {
    margin: 0 0 14px;
    color: var(--sepia-400);
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 800;
}

.hero-content p {
    max-width: 760px;
    color: var(--vintage-200);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
    margin: 0 0 22px;
}

.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: 5px 10px;
    border-radius: 999px;
    background: var(--sepia-100);
    color: var(--sepia-700);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(253, 250, 245, 0.13);
    color: var(--vintage-50);
    border: 1px solid rgba(212, 189, 126, 0.35);
}

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

.center-actions {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    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);
}

.btn.primary {
    background: linear-gradient(135deg, var(--sepia-500), var(--sepia-700));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(138, 110, 60, 0.32);
}

.btn.ghost {
    color: var(--vintage-50);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
    color: var(--vintage-900);
    border-color: var(--sepia-600);
    background: rgba(255, 255, 255, 0.55);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: max(16px, calc((100vw - 1380px) / 2));
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

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

.intro-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 46px 0 20px;
}

.intro-search h2,
.page-hero h1 {
    margin: 0 0 10px;
    color: var(--vintage-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 50px);
}

.intro-search p,
.page-hero p {
    margin: 0;
    color: var(--aged-700);
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px 150px auto;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
    min-height: 42px;
    border: 1px solid var(--vintage-200);
    border-radius: 12px;
    padding: 0 12px;
    background: var(--vintage-50);
    color: var(--aged-900);
    font: inherit;
}

.filter-panel button {
    background: var(--vintage-900);
    color: var(--vintage-50);
    cursor: pointer;
    font-weight: 700;
}

.empty-state {
    margin: 22px 0;
    padding: 18px;
    border-radius: 14px;
    background: var(--sepia-100);
    color: var(--sepia-700);
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 42px 0 28px;
}

.section-title > span {
    width: 5px;
    height: 42px;
    background: var(--sepia-600);
    border-radius: 999px;
    margin-top: 5px;
}

.section-title h2 {
    margin: 0;
    color: var(--vintage-900);
    font-size: clamp(26px, 3vw, 42px);
    font-family: Georgia, "Times New Roman", serif;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--aged-500);
}

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

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

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

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

.movie-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.movie-card.large .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 12px;
    left: 12px;
    background: rgba(43, 33, 29, 0.78);
    color: var(--vintage-50);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(196, 165, 93, 0.92);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.card-content {
    padding: 18px;
    background: linear-gradient(180deg, var(--white), var(--vintage-50));
}

.card-content h3 {
    margin: 0 0 8px;
    color: var(--vintage-900);
    font-size: 20px;
    line-height: 1.3;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

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

.meta-row span:not(:last-child)::after {
    content: "";
}

.band {
    margin: 60px 0;
    padding: 56px 0;
}

.band.aged {
    background: var(--aged-100);
}

.band.gradient {
    background: linear-gradient(135deg, var(--sepia-50), var(--vintage-100));
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 128px;
    padding: 14px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-num {
    color: var(--sepia-600);
    font-size: 28px;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
}

.rank-item img {
    width: 88px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-item h3 {
    margin: 0 0 6px;
    color: var(--vintage-900);
    font-size: 19px;
}

.rank-item p {
    margin: 0 0 8px;
    color: var(--aged-700);
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile,
.category-overview-card a {
    display: block;
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--vintage-900);
    color: var(--vintage-50);
    box-shadow: var(--soft-shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(43, 33, 29, 0.86), rgba(43, 33, 29, 0.16));
}

.category-tile div {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-family: Georgia, "Times New Roman", serif;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: var(--vintage-200);
    font-size: 14px;
}

.page-shell {
    min-height: 70vh;
}

.page-hero {
    background: linear-gradient(135deg, var(--vintage-900), var(--aged-900));
    color: var(--vintage-50);
    padding: 72px 0;
}

.page-hero > div {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--vintage-50);
}

.page-hero p {
    color: var(--vintage-200);
    max-width: 880px;
}

.breadcrumb {
    color: var(--sepia-400) !important;
    margin-bottom: 12px !important;
    font-weight: 700;
}

.category-overview-card a {
    min-height: auto;
    background: var(--white);
    color: var(--ink);
}

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

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

.category-overview-content {
    padding: 22px;
}

.category-overview-card h2 {
    color: var(--vintage-900);
}

.category-overview-card p {
    color: var(--aged-700);
    min-height: 68px;
}

.category-overview-card span {
    display: inline-flex;
    margin-top: 16px;
    color: var(--sepia-700);
    font-weight: 800;
}

.listing-grid {
    margin-top: 26px;
}

.detail-page {
    background: var(--vintage-50);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--vintage-50);
    background: var(--aged-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(0.8);
    transform: scale(1.08);
    opacity: 0.36;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 33, 29, 0.94), rgba(74, 62, 58, 0.8));
}

.detail-content {
    position: relative;
    z-index: 2;
    padding: 48px 0 56px;
}

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

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

.detail-info h1 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.15;
}

.detail-one-line {
    max-width: 900px;
    margin: 0 0 18px;
    color: var(--vintage-200);
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.detail-meta span {
    border: 1px solid rgba(212, 189, 126, 0.38);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--sepia-400);
    background: rgba(0, 0, 0, 0.18);
    font-weight: 700;
}

.tag-row.strong span {
    background: rgba(253, 250, 245, 0.12);
    color: var(--vintage-50);
    border: 1px solid rgba(212, 189, 126, 0.28);
}

.player-section {
    padding: 52px 0 32px;
}

.player-header {
    margin-bottom: 18px;
}

.player-header h2 {
    margin: 0 0 4px;
    color: var(--vintage-900);
    font-size: 28px;
}

.player-header p {
    margin: 0;
    color: var(--aged-500);
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-play span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sepia-600);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
    font-size: 32px;
    padding-left: 4px;
}

.player-play strong {
    font-size: 18px;
}

.player-wrap.playing .player-play {
    opacity: 0;
    pointer-events: none;
}

.detail-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0 20px;
}

.detail-text article {
    padding: 28px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.detail-text h2 {
    margin: 0 0 14px;
    color: var(--vintage-900);
    font-family: Georgia, "Times New Roman", serif;
}

.detail-text p {
    margin: 0;
    color: var(--aged-700);
    font-size: 16px;
}

.related-grid {
    padding-bottom: 60px;
}

.site-footer {
    margin-top: 70px;
    background: var(--aged-900);
    color: var(--aged-100);
}

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

.footer-brand strong {
    display: block;
    margin-bottom: 12px;
    color: var(--vintage-50);
    font-size: 26px;
    font-family: Georgia, "Times New Roman", serif;
}

.footer-brand p {
    max-width: 620px;
    color: var(--aged-300);
    margin: 0;
}

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

.footer-links h3 {
    margin: 0 0 12px;
    color: var(--vintage-200);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--aged-300);
}

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

.footer-copy {
    border-top: 1px solid rgba(238, 234, 229, 0.12);
    text-align: center;
    color: var(--aged-300);
    padding: 18px 16px;
    font-size: 14px;
}

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

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

    .nav-menu {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .site-nav {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

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

    .nav-link {
        padding: 10px 4px;
    }

    .intro-search,
    .detail-grid,
    .detail-text,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        padding-top: 11vh;
    }

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

    .detail-poster img {
        width: 220px;
    }
}

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

    .movie-card.large {
        grid-column: auto;
        grid-row: auto;
    }

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

    .rank-item a {
        grid-template-columns: 46px 74px minmax(0, 1fr);
        gap: 12px;
    }

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

    .category-covers {
        height: 160px;
    }

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

    .logo-text small {
        display: none;
    }
}
