:root {
    --earth-950: #2d1d17;
    --earth-900: #573729;
    --earth-800: #6a4130;
    --earth-700: #814e34;
    --earth-600: #9b5f3c;
    --bronze-600: #8d6d43;
    --bronze-500: #a68558;
    --bronze-300: #d4bd91;
    --bronze-100: #f1ede3;
    --clay-100: #f0ebe6;
    --stone-50: #f8f7f4;
    --stone-100: #efede6;
    --stone-200: #ddd9cc;
    --stone-600: #6d675d;
    --ink: #281c17;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(45, 29, 23, 0.16);
    --soft-shadow: 0 14px 36px rgba(45, 29, 23, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--stone-50);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.image-hidden {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(87, 55, 41, 0.96);
    color: var(--stone-50);
    box-shadow: 0 12px 35px rgba(45, 29, 23, 0.18);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bronze-300), var(--bronze-600));
    color: var(--earth-950);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(248, 247, 244, 0.82);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 99px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background:
        radial-gradient(circle at 18% 18%, rgba(212, 189, 145, 0.34), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(155, 95, 60, 0.30), transparent 32%),
        linear-gradient(135deg, var(--earth-950), var(--earth-800));
    color: var(--stone-50);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(45, 29, 23, 0.88), rgba(45, 29, 23, 0.36)),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 22px 44px;
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--bronze-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero-copy h1,
.detail-copy h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 740px;
    margin: 24px 0 0;
    color: rgba(248, 247, 244, 0.86);
    font-size: 20px;
}

.hero-tags,
.detail-tags,
.meta-row,
.chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.meta-row span,
.chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(248, 247, 244, 0.92);
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button {
    background: linear-gradient(135deg, var(--bronze-300), var(--bronze-600));
    color: var(--earth-950);
    box-shadow: 0 16px 34px rgba(166, 133, 88, 0.30);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.12);
    color: var(--stone-50);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.hero-poster {
    display: block;
    transform: rotate(1.5deg);
}

.hero-poster-frame,
.page-poster-frame,
.detail-poster-frame,
.poster-frame,
.ranking-poster-frame {
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(166, 133, 88, 0.60), rgba(106, 65, 48, 0.85)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 44%);
}

.hero-poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster-frame::after,
.poster-frame::after,
.page-poster-frame::after,
.detail-poster-frame::after,
.ranking-poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(45, 29, 23, 0.34));
    pointer-events: none;
}

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--bronze-300);
}

.hero-mini-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-mini-search input,
.list-toolbar input {
    width: min(360px, 62vw);
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    color: var(--ink);
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(45, 29, 23, 0.08);
}

.hero-mini-search span {
    color: rgba(248, 247, 244, 0.70);
    font-size: 13px;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 22px;
}

.section-title,
.list-toolbar,
.ranking-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-title h2,
.list-toolbar h2,
.ranking-head h2,
.article-card h2,
.side-card h2 {
    margin: 0;
    color: var(--earth-900);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-title p,
.list-toolbar p,
.ranking-head p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

.section-more {
    min-width: 116px;
    background: var(--earth-800);
    color: var(--stone-50);
}

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

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--white), var(--bronze-100));
    border: 1px solid rgba(129, 78, 52, 0.12);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-row:hover,
.side-links a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card span {
    color: var(--bronze-600);
    font-weight: 900;
}

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

.category-card em {
    color: var(--stone-600);
    font-size: 13px;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(129, 78, 52, 0.10);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-cover {
    position: relative;
    display: block;
}

.poster-frame {
    aspect-ratio: 3 / 4;
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(45, 29, 23, 0.82);
    color: var(--bronze-300);
    font-weight: 900;
    backdrop-filter: blur(8px);
}

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

.movie-card-body h2 {
    margin: 6px 0 8px;
    color: var(--earth-950);
    font-size: 18px;
    line-height: 1.25;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover {
    color: var(--earth-600);
}

.card-meta,
.tag-line {
    margin: 0;
    color: var(--bronze-600);
    font-size: 12px;
    font-weight: 800;
}

.card-line {
    min-height: 3.6em;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 14px;
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--earth-900), var(--earth-800));
    color: var(--stone-50);
    box-shadow: var(--shadow);
}

.ranking-head h2 {
    color: var(--stone-50);
}

.ranking-head a {
    color: var(--bronze-300);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.16);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(212, 189, 145, 0.18);
    color: var(--bronze-300);
    font-weight: 900;
}

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

.rank-main em {
    margin-top: 3px;
    color: rgba(248, 247, 244, 0.62);
    font-size: 12px;
    font-style: normal;
}

.rank-score {
    color: var(--bronze-300);
    font-weight: 900;
}

.chip-row {
    margin-bottom: 24px;
}

.chip-link {
    background: var(--bronze-100);
    color: var(--earth-800);
    border: 1px solid rgba(129, 78, 52, 0.10);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 46px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 189, 145, 0.30), transparent 36%),
        linear-gradient(135deg, var(--earth-900), var(--earth-700));
    color: var(--stone-50);
    box-shadow: var(--shadow);
}

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

.page-hero-copy p,
.detail-one-line {
    max-width: 860px;
    color: rgba(248, 247, 244, 0.84);
    font-size: 18px;
}

.page-hero-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-poster-frame {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.page-hero-card strong {
    font-size: 20px;
}

.page-hero-card span {
    color: rgba(248, 247, 244, 0.74);
    font-size: 14px;
}

.detail-hero {
    max-width: none;
    margin-top: 0;
    border-radius: 0;
    padding: 44px 22px 64px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 18%, rgba(212, 189, 145, 0.28), transparent 34%);
    pointer-events: none;
}

.detail-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    color: rgba(248, 247, 244, 0.70);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--bronze-300);
}

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

.detail-poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.meta-row.large span {
    background: rgba(255, 255, 255, 0.12);
    color: var(--stone-50);
}

.detail-tags {
    margin-top: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(129, 78, 52, 0.10);
}

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

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--stone-50);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bronze-300), var(--bronze-600));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 23px;
    border-left: 23px solid var(--earth-950);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.article-card,
.side-card {
    padding: 26px;
}

.article-card p {
    margin: 14px 0 0;
    color: #50483f;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone-200);
}

.side-card dt {
    color: var(--bronze-600);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: var(--ink);
}

.side-links {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-links a {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-links span {
    color: var(--stone-600);
    font-size: 13px;
}

.ranking-list-full {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 86px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(129, 78, 52, 0.10);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-index {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--bronze-100);
    color: var(--earth-800);
    font-weight: 900;
}

.ranking-poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.25;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--stone-600);
}

.ranking-score {
    justify-self: end;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--earth-800);
    color: var(--bronze-300);
    font-weight: 900;
}

.site-footer {
    margin-top: 40px;
    padding: 52px 22px 24px;
    background: var(--earth-950);
    color: rgba(248, 247, 244, 0.78);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--stone-50);
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--bronze-300);
    font-size: 18px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 14px;
}

[data-search-card].is-filtered {
    display: none;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

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

    .ranking-panel {
        position: static;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding-top: 12px;
        justify-content: flex-start;
    }

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

    .hero-section {
        min-height: 760px;
    }

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

    .hero-slider {
        min-height: 620px;
    }

    .hero-poster {
        max-width: 300px;
    }

    .hero-control-row,
    .section-title,
    .list-toolbar,
    .ranking-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-mini-search {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-mini-search input,
    .list-toolbar input {
        width: 100%;
    }

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

    .page-hero {
        margin: 18px 12px 0;
        padding: 28px;
    }

    .detail-copy h1 {
        font-size: clamp(34px, 10vw, 58px);
    }

    .ranking-row {
        grid-template-columns: 54px 70px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
        justify-self: start;
        width: auto;
        height: auto;
        padding: 6px 12px;
        border-radius: 999px;
    }

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

@media (max-width: 540px) {
    .content-section {
        padding: 42px 14px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        padding: 50px 16px 34px;
    }

    .hero-copy h1,
    .page-hero-copy h1 {
        font-size: clamp(34px, 12vw, 56px);
    }

    .hero-summary,
    .page-hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

    .ranking-row {
        grid-template-columns: 1fr;
    }

    .ranking-index,
    .ranking-thumb,
    .ranking-score {
        justify-self: start;
    }

    .detail-hero {
        padding: 28px 14px 48px;
    }

    .article-card,
    .side-card {
        padding: 20px;
    }
}
