:root {
    --sand-50: #fdfaf7;
    --sand-100: #f9f3ed;
    --sand-200: #f2e6d9;
    --sand-300: #e8d4bd;
    --earth-100: #ede9e4;
    --earth-300: #c2b4a3;
    --earth-500: #8f7862;
    --earth-700: #635144;
    --earth-900: #473c33;
    --desert-400: #f2ad6b;
    --desert-600: #dd6f1f;
    --desert-700: #b75617;
    --black: #11100e;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(55, 38, 24, 0.16);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, var(--sand-50), var(--sand-100) 45%, var(--earth-100));
    color: var(--earth-900);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(194, 180, 163, 0.45);
    background: rgba(253, 250, 247, 0.88);
    backdrop-filter: blur(16px);
}

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

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--earth-900);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--desert-600), var(--earth-900));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(221, 111, 31, 0.3);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--earth-700);
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--sand-200);
    color: var(--desert-700);
}

.top-search {
    display: flex;
    align-items: center;
    width: min(330px, 34vw);
    border: 1px solid var(--sand-300);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
}

.top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 14px;
    color: var(--earth-900);
}

.top-search button {
    border: 0;
    padding: 10px 16px;
    color: var(--white);
    background: var(--desert-600);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sand-300);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--earth-900);
}

.hero {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    background: var(--black);
}

.hero-track {
    position: relative;
    min-height: 74vh;
}

.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;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 74vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 84px 0 120px;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--desert-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow {
    background: var(--sand-200);
    color: var(--desert-700);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 21px);
}

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

.button-primary,
.button-secondary,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button-primary {
    padding: 12px 22px;
    color: var(--white);
    background: var(--desert-600);
    box-shadow: 0 14px 28px rgba(221, 111, 31, 0.32);
}

.button-secondary {
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

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

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

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 48px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--earth-900);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-more,
.text-link {
    color: var(--desert-700);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(232, 212, 189, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 30px rgba(71, 60, 51, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(221, 111, 31, 0.42);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, var(--earth-900), var(--earth-700));
}

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

.movie-card:hover .poster-link img,
.compact-card:hover img,
.rank-card:hover img {
    transform: scale(1.06);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent);
}

.card-content {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--earth-500);
    font-size: 13px;
    font-weight: 700;
}

.card-content h3,
.rank-body h3 {
    margin: 0 0 8px;
    color: var(--earth-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-content p,
.rank-body p,
.category-tile p,
.page-title p,
.detail-title p,
.footer-inner p {
    margin: 0;
    color: var(--earth-600);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--sand-200);
    color: var(--earth-700);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(232, 212, 189, 0.9);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(249, 243, 237, 0.74));
    box-shadow: 0 12px 30px rgba(71, 60, 51, 0.08);
}

.category-title {
    display: block;
    margin-bottom: 10px;
    color: var(--earth-900);
    font-size: 22px;
    font-weight: 850;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a,
.breadcrumb a {
    color: var(--desert-700);
    font-weight: 700;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(232, 212, 189, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    width: min(520px, 100%);
    color: var(--earth-700);
    font-weight: 800;
}

.filter-panel input {
    width: 100%;
    border: 1px solid var(--sand-300);
    border-radius: 14px;
    padding: 12px 14px;
    outline: 0;
    background: var(--sand-50);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-button {
    border: 1px solid var(--sand-300);
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--white);
    color: var(--earth-700);
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    border-color: var(--desert-600);
    color: var(--white);
    background: var(--desert-600);
}

.page-hero {
    padding: 72px 0 36px;
    background: linear-gradient(135deg, var(--desert-100, #fdf2e5), var(--sand-100));
}

.page-title {
    max-width: 780px;
}

.page-title h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 56px);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 134px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(232, 212, 189, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 28px rgba(71, 60, 51, 0.08);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--earth-900);
}

.rank-cover img {
    height: 100%;
    min-height: 174px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rank-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: rgba(221, 111, 31, 0.9);
    font-weight: 900;
}

.rank-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(232, 212, 189, 0.9);
}

.compact-card img {
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--earth-900);
    transition: transform 0.35s ease;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: var(--earth-900);
    line-height: 1.35;
}

.compact-card em {
    margin-top: 4px;
    color: var(--earth-500);
    font-size: 13px;
    font-style: normal;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--earth-500);
    font-size: 14px;
}

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

.detail-title {
    margin-bottom: 24px;
}

.detail-title h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 5vw, 58px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(221, 111, 31, 0.2), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-overlay span {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--desert-600);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    font-size: 28px;
    transform: translateX(3px);
}

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

.detail-panel,
.sidebar-panel,
.content-box {
    border: 1px solid rgba(232, 212, 189, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(71, 60, 51, 0.08);
}

.detail-panel {
    margin-top: 24px;
    padding: 26px;
}

.detail-panel h2,
.sidebar-panel h2,
.content-box h2 {
    margin: 0 0 16px;
    color: var(--earth-900);
    font-size: 24px;
}

.detail-copy {
    display: grid;
    gap: 16px;
    color: var(--earth-700);
}

.sidebar-panel {
    padding: 18px;
}

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

.site-footer {
    margin-top: 64px;
    padding: 38px 0;
    border-top: 1px solid rgba(232, 212, 189, 0.9);
    background: rgba(71, 60, 51, 0.94);
    color: var(--earth-100);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-logo,
.footer-links a {
    color: var(--white);
}

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

.no-results {
    display: none;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    color: var(--earth-600);
    text-align: center;
}

.no-results.show {
    display: block;
}

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav,
    .top-search {
        display: none;
        width: 100%;
    }

    .site-nav.open,
    .top-search.open {
        display: flex;
    }

    .site-nav {
        order: 4;
        flex-direction: column;
        align-items: stretch;
    }

    .top-search {
        order: 5;
    }

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

    .hero-content {
        padding-top: 70px;
    }

    .hero-controls {
        bottom: 22px;
    }

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

    .filter-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-filters {
        justify-content: flex-start;
    }

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

    .rank-cover img {
        min-height: 142px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
