:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --white: #ffffff;
    --shadow-sm: 0 6px 18px rgba(28, 25, 23, 0.08);
    --shadow-md: 0 16px 40px rgba(28, 25, 23, 0.12);
    --shadow-lg: 0 30px 80px rgba(28, 25, 23, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background:
        radial-gradient(circle at 8% 0%, rgba(217, 119, 6, 0.11), transparent 28rem),
        radial-gradient(circle at 95% 5%, rgba(21, 128, 61, 0.12), transparent 24rem),
        linear-gradient(180deg, var(--stone-50), #ffffff 38rem);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(231, 229, 228, 0.85);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 14px 28px rgba(21, 128, 61, 0.25);
}

.brand-text,
.footer-brand {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--amber-700), var(--green-700));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    border-radius: 12px;
    color: var(--stone-700);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 12px;
    font-size: 0.94rem;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    color: var(--stone-800);
    background: var(--stone-100);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--stone-200);
    background: rgba(255, 255, 255, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: var(--white);
    background: var(--stone-950);
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(28, 25, 23, 0.82), transparent 38%);
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding-top: 94px;
    max-width: min(1180px, calc(100% - 32px));
}

.eyebrow,
.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 18px 0 12px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-copy-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.hero-copy-actions a,
.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-copy-actions a:first-child,
.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 18px 36px rgba(21, 128, 61, 0.27);
}

.hero-copy-actions a:last-child,
.ghost-button,
.outline-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover,
.hero-copy-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hero-card {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 150px;
    z-index: 4;
    width: min(440px, calc(100% - 32px));
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(28, 25, 23, 0.45);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-card h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-meta span,
.detail-badges span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-meta span {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
}

.hero-thumbs {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 12px;
    margin-top: 88px;
    padding-bottom: 34px;
    overflow-x: auto;
}

.hero-thumb {
    min-width: 174px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.11);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-thumb.active {
    background: rgba(21, 128, 61, 0.62);
    border-color: rgba(255, 255, 255, 0.52);
}

.hero-thumb img {
    width: 46px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    font-weight: 800;
    text-align: left;
}

.section {
    padding: 58px 0;
}

.section.compact {
    padding-top: 32px;
}

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

.section-heading h2,
.section-heading h1 {
    margin: 0;
    color: var(--stone-950);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--stone-600);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--green-700);
    background: var(--green-50);
    font-weight: 800;
}

.panel {
    padding: 24px;
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--stone-700);
    font-weight: 800;
    font-size: 0.9rem;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    outline: none;
    color: var(--stone-900);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 163, 74, 0.34);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-50), var(--green-50));
}

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

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(28, 25, 23, 0.72);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--green-700);
    font-size: 0.84rem;
    font-weight: 800;
}

.card-body h3 {
    margin: 6px 0 8px;
    font-size: 1.08rem;
    line-height: 1.28;
}

.card-body h3 a:hover {
    color: var(--green-700);
}

.card-body p {
    min-height: 3.05em;
    margin: 0;
    color: var(--stone-600);
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    color: var(--stone-700);
    background: var(--stone-100);
}

.movie-card-small .card-body p {
    min-height: auto;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    border: 1px solid rgba(231, 229, 228, 0.88);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(240, 253, 244, 0.88)),
        var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-tile span {
    display: block;
    color: var(--green-700);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 65%;
    margin-top: 10px;
    color: var(--stone-600);
    font-size: 0.98rem;
}

.tile-posters {
    position: absolute;
    right: 18px;
    bottom: -20px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.tile-posters img {
    width: 70px;
    height: 104px;
    object-fit: cover;
    border: 4px solid var(--white);
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(28, 25, 23, 0.16);
    transform: rotate(-5deg);
}

.tile-posters img:nth-child(2) {
    transform: rotate(4deg) translateY(-16px);
}

.tile-posters img:nth-child(3) {
    transform: rotate(-2deg) translateY(-5px);
}

.tile-posters img:nth-child(4) {
    transform: rotate(7deg) translateY(-20px);
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(22, 163, 74, 0.35);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    font-weight: 900;
}

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

.rank-copy {
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    font-size: 1rem;
}

.rank-copy em,
.rank-score {
    color: var(--stone-600);
    font-style: normal;
    font-size: 0.86rem;
}

.rank-score {
    color: var(--green-700);
    font-weight: 900;
}

.empty-state {
    display: none;
    padding: 26px;
    border-radius: 18px;
    color: var(--stone-600);
    text-align: center;
    background: var(--stone-100);
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: var(--white);
    background: var(--stone-950);
}

.detail-bg,
.detail-layer {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.05);
    transform: scale(1.03);
}

.detail-layer {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.25)),
        linear-gradient(0deg, rgba(28, 25, 23, 0.9), transparent 54%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
    padding: 74px 0 56px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.detail-main h1 {
    max-width: 800px;
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-badges span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
    font-size: 2.2rem;
    line-height: 1;
}

.play-overlay span:last-child {
    font-size: 1.15rem;
    font-weight: 900;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.article-panel,
.side-panel {
    padding: 26px;
    border: 1px solid var(--stone-200);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 12px;
    color: var(--stone-950);
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.article-panel p {
    margin: 0 0 20px;
    color: var(--stone-700);
}

.side-panel {
    align-self: start;
}

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

.side-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 15px;
    background: var(--stone-50);
}

.side-list a:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.side-list span {
    color: var(--stone-600);
    font-size: 0.84rem;
}

.site-footer {
    margin-top: 40px;
    padding: 54px 0 24px;
    color: var(--stone-300);
    background: linear-gradient(90deg, var(--stone-950), var(--stone-900));
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid p {
    margin: 12px 0 0;
    color: var(--stone-300);
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--stone-300);
}

.footer-grid a:hover {
    color: #86efac;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--stone-300);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .desktop-nav a:nth-last-child(-n + 5) {
        display: none;
    }

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

    .rank-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav.open {
        display: block;
    }

    .hero {
        min-height: 760px;
    }

    .hero-copy {
        padding-top: 58px;
    }

    .hero-card {
        left: 16px;
        right: 16px;
        bottom: 140px;
        width: auto;
        padding: 20px;
    }

    .hero-thumbs {
        margin-top: 260px;
    }

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

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

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

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

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

@media (max-width: 560px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1.06rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-copy-actions a,
    .primary-button,
    .ghost-button,
    .outline-button {
        width: 100%;
    }

    .hero-card h2 {
        font-size: 1.8rem;
    }

    .hero-thumbs {
        margin-top: 280px;
    }

    .panel,
    .article-panel,
    .side-panel {
        padding: 16px;
        border-radius: 22px;
    }

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

    .rank-item {
        grid-template-columns: 38px 52px 1fr;
    }

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