:root {
    --vintage-50: #faf8f3;
    --vintage-100: #f4eee1;
    --vintage-200: #e8dfc8;
    --vintage-800: #6d533a;
    --vintage-900: #5a4532;
    --aged-50: #f7f6f4;
    --aged-100: #eeeae5;
    --aged-200: #ddd5c9;
    --aged-600: #7d6a5c;
    --aged-700: #67574a;
    --aged-800: #564942;
    --aged-900: #4a3e3a;
    --sepia-50: #fbf7ea;
    --sepia-100: #f3e6bd;
    --sepia-300: #dec979;
    --sepia-400: #d4bd7e;
    --sepia-500: #b99349;
    --sepia-600: #a68847;
    --sepia-700: #8a6e3c;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(74, 62, 58, 0.16);
    --soft-shadow: 0 10px 26px rgba(74, 62, 58, 0.12);
    --radius: 18px;
    font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--vintage-50);
    color: var(--vintage-900);
    line-height: 1.7;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--vintage-900);
    color: var(--vintage-50);
    box-shadow: 0 12px 28px rgba(38, 28, 20, 0.28);
}

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

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

.brand:hover {
    opacity: 0.86;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--vintage-900);
    background: linear-gradient(135deg, var(--sepia-300), var(--sepia-600));
    box-shadow: 0 0 0 5px rgba(212, 189, 126, 0.12);
}

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

.brand-text strong {
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.brand-text em {
    color: var(--vintage-200);
    font-style: normal;
    font-size: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--vintage-200);
    font-weight: 700;
    padding: 26px 0 22px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vintage-900), var(--aged-900));
}

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

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

.hero-bg,
.watch-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 189, 126, 0.24), transparent 30%),
        linear-gradient(135deg, var(--vintage-900), var(--aged-900));
}

.hero-bg img,
.watch-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: sepia(0.28) contrast(1.08) brightness(0.75);
}

.hero-overlay,
.watch-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(27, 18, 12, 0.86), rgba(27, 18, 12, 0.46), rgba(27, 18, 12, 0.76)),
        linear-gradient(0deg, var(--vintage-50), transparent 18%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, var(--vintage-50), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 110px 0 150px;
}

.hero-copy {
    max-width: 760px;
    color: var(--vintage-50);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sepia-400);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.watch-head h1 {
    margin: 14px 0 16px;
    font-size: clamp(2.7rem, 6vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: 0.05em;
}

.hero-line {
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--vintage-100);
    margin: 0 0 14px;
}

.hero-summary,
.page-hero p,
.watch-head p {
    color: var(--vintage-200);
    max-width: 780px;
    font-size: 1.08rem;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
    border: 1px solid rgba(212, 189, 126, 0.34);
    background: rgba(212, 189, 126, 0.14);
    color: var(--sepia-400);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

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

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

.primary-btn,
.search-form button,
.filter-panel button {
    color: var(--white);
    background: linear-gradient(135deg, var(--sepia-600), var(--vintage-800));
    box-shadow: 0 12px 25px rgba(90, 69, 50, 0.24);
}

.primary-btn:hover,
.search-form button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(90, 69, 50, 0.28);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.compact {
    min-height: 42px;
    padding: 0 18px;
}

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

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

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

.search-panel {
    margin-top: -50px;
    position: relative;
    z-index: 6;
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.search-form {
    display: grid;
    gap: 12px;
}

.search-form label {
    font-size: 1.2rem;
    font-weight: 900;
}

.search-form div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--aged-200);
    background: var(--vintage-50);
    border-radius: 14px;
    min-height: 48px;
    padding: 0 16px;
    color: var(--vintage-900);
    outline: none;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sepia-500);
    box-shadow: 0 0 0 4px rgba(166, 136, 71, 0.14);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a,
.hero-inline-links a,
.mini-links a {
    color: var(--sepia-700);
    background: var(--sepia-50);
    border: 1px solid rgba(166, 136, 71, 0.2);
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 800;
}

.page-section {
    padding: 58px 0;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 28px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.15;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--aged-600);
}

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

.feature-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
}

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vintage-900), var(--sepia-600));
}

.large-card .poster-link {
    aspect-ratio: 16 / 13;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(212, 189, 126, 0.36), transparent 35%),
        linear-gradient(135deg, var(--vintage-900), var(--aged-900));
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    color: var(--vintage-900);
    background: var(--sepia-400);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--aged-600);
    font-size: 0.9rem;
    margin-bottom: 7px;
}

.card-body h3,
.rank-card h2 {
    margin: 0 0 8px;
    line-height: 1.24;
    font-size: 1.18rem;
}

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

.card-body p,
.rank-card p,
.category-card p,
.detail-section p,
.footer-brand p {
    color: var(--aged-700);
    margin: 0;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: var(--sepia-700);
    background: var(--sepia-50);
}

.wide-band {
    background: var(--aged-100);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(74, 62, 58, 0.08);
}

.category-area {
    display: grid;
    gap: 34px;
}

.category-strip {
    background: linear-gradient(135deg, var(--sepia-50), var(--vintage-100));
    border: 1px solid rgba(166, 136, 71, 0.14);
    border-radius: var(--radius);
    padding: 24px;
}

.strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.strip-head h3 {
    margin: 0;
    font-size: 1.5rem;
}

.strip-head a {
    color: var(--sepia-700);
    font-weight: 900;
}

.ranking-band {
    padding: 58px 0;
    background: linear-gradient(135deg, var(--vintage-900), var(--aged-900));
    color: var(--vintage-50);
}

.ranking-band .section-heading p {
    color: var(--vintage-200);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.ranking-list a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ranking-list strong,
.ranking-list em {
    color: var(--sepia-400);
    font-style: normal;
    font-weight: 900;
}

.page-hero {
    position: relative;
    padding: 86px 0;
    color: var(--vintage-50);
    background:
        radial-gradient(circle at 18% 24%, rgba(212, 189, 126, 0.22), transparent 30%),
        linear-gradient(135deg, var(--vintage-900), var(--aged-900));
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 58px 58px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
}

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

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 22px;
}

.category-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.category-card-main span {
    font-size: 1.35rem;
    font-weight: 900;
}

.category-card-main strong {
    color: var(--sepia-700);
}

.mini-links,
.hero-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.filter-panel {
    position: sticky;
    top: 92px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 190px 190px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    font-weight: 900;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.rank-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--vintage-900), var(--sepia-600));
}

.rank-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    color: var(--vintage-900);
    background: var(--sepia-400);
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 900;
}

.rank-card em {
    color: var(--sepia-700);
    font-style: normal;
    font-weight: 900;
}

.watch-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background: var(--vintage-900);
}

.watch-shade {
    background:
        linear-gradient(90deg, rgba(27, 18, 12, 0.88), rgba(27, 18, 12, 0.48)),
        linear-gradient(0deg, var(--vintage-50), transparent 22%);
}

.watch-head {
    position: relative;
    z-index: 2;
    color: var(--vintage-50);
    padding: 100px 0 120px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--vintage-200);
    margin-bottom: 18px;
}

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

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    gap: 26px;
    margin-top: -80px;
    position: relative;
    z-index: 4;
}

.player-card,
.info-panel,
.detail-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #000;
}

.player-cover {
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--vintage-50);
    background: #050403;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    filter: brightness(0.66) sepia(0.25);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.68));
}

.play-circle {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sepia-500);
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.player-cover strong {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 24px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.info-panel {
    padding: 24px;
}

.info-panel h2,
.detail-section h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

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

.info-panel dt {
    color: var(--aged-600);
    font-size: 0.9rem;
}

.info-panel dd {
    margin: 0;
    font-weight: 800;
}

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

.detail-section {
    padding: 28px;
    margin-bottom: 28px;
}

.detail-section p {
    font-size: 1.05rem;
}

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

.site-footer {
    color: var(--aged-100);
    background: var(--aged-900);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 40px;
}

.footer-logo .brand-mark {
    width: 34px;
    height: 34px;
}

.site-footer h3 {
    color: var(--vintage-100);
    margin: 0 0 14px;
}

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

.site-footer a {
    color: var(--aged-200);
}

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

.footer-bottom {
    width: min(1320px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--aged-200);
    text-align: center;
    font-size: 0.94rem;
}

@media (max-width: 1100px) {
    .feature-grid,
    .cards-grid,
    .small-grid,
    .category-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-layout,
    .watch-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .header-inner {
        min-height: 68px;
    }

    .brand-text strong {
        font-size: 1.1rem;
    }

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

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--vintage-900);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 10px;
        box-shadow: var(--shadow);
    }

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

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

    .nav-link.active,
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 80px 0 130px;
    }

    .search-form div,
    .filter-panel,
    .feature-grid,
    .cards-grid,
    .small-grid,
    .category-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 120px 1fr;
    }

    .watch-head {
        padding: 84px 0 110px;
    }

    .watch-layout {
        margin-top: -64px;
    }
}

@media (max-width: 520px) {
    .hero-copy h1,
    .watch-head h1,
    .page-hero h1 {
        font-size: 2.45rem;
    }

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

    .rank-poster {
        aspect-ratio: 16 / 9;
    }

    .card-body,
    .category-strip,
    .detail-section,
    .info-panel {
        padding: 18px;
    }
}
