:root {
    --mountain-50: #f5f3ef;
    --mountain-100: #e8e4d9;
    --mountain-200: #d4cab5;
    --mountain-300: #bca989;
    --mountain-400: #a68e66;
    --mountain-500: #8b724f;
    --mountain-600: #725e45;
    --mountain-700: #5a4a3a;
    --mountain-800: #4a3d32;
    --mountain-900: #3d342c;
    --earth-50: #f9f7f4;
    --earth-100: #f0ebe3;
    --earth-300: #ccb89e;
    --earth-500: #a17f5e;
    --earth-600: #8a6a4f;
    --earth-700: #715544;
    --forest-50: #f2f7f4;
    --forest-100: #e0ebe5;
    --forest-500: #56826d;
    --forest-600: #446858;
    --forest-700: #385448;
    --sky-50: #f3f8fb;
    --sky-500: #639dc6;
    --sky-700: #446ca4;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 18px;
    --radius-large: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--mountain-900);
    background: linear-gradient(180deg, var(--mountain-50), #ffffff 360px);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.shell,
.content-section,
.footer-shell,
.nav-shell,
.quick-shell,
.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--mountain-200);
    backdrop-filter: blur(14px);
}

.nav-shell {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--mountain-900);
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mountain-700), var(--earth-500));
    box-shadow: var(--shadow-medium);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.desktop-nav a,
.mobile-menu a {
    color: var(--mountain-700);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: var(--mountain-900);
}

.nav-search,
.mobile-search,
.home-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--mountain-300);
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.nav-search input,
.mobile-search input,
.home-search input {
    border: 0;
    outline: 0;
    min-width: 190px;
    padding: 11px 16px;
    color: var(--mountain-800);
    background: transparent;
}

.nav-search button,
.mobile-search button,
.home-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 11px 18px;
    background: var(--mountain-600);
    transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.home-search button:hover {
    background: var(--mountain-700);
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mountain-100);
    color: var(--mountain-800);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 20px;
    border-top: 1px solid var(--mountain-200);
}

.mobile-menu.is-open {
    display: grid;
    gap: 14px;
}

.hero {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    background: var(--mountain-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 80px;
}

.hero-text {
    width: min(760px, 100%);
    color: #ffffff;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 680px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.section-heading,
.simple-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.btn,
.section-link,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
    min-height: 48px;
    padding: 0 24px;
}

.btn:hover,
.section-link:hover,
.rank-action:hover {
    transform: translateY(-2px);
}

.btn.primary,
.section-link,
.rank-action {
    color: #ffffff;
    background: var(--mountain-600);
    box-shadow: var(--shadow-medium);
}

.btn.primary:hover,
.section-link:hover,
.rank-action:hover {
    background: var(--mountain-700);
    box-shadow: var(--shadow-strong);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(6px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    margin-top: -42px;
    position: relative;
    z-index: 6;
}

.quick-card,
.page-hero,
.filter-panel,
.text-card,
.category-inner {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(212, 202, 181, 0.82);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
}

.quick-card {
    padding: 28px;
}

.quick-card h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-card h2 {
    margin: 0;
    color: var(--mountain-900);
    line-height: 1.2;
}

.quick-card h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--earth-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-cloud a {
    padding: 9px 14px;
    color: var(--mountain-700);
    border-radius: 999px;
    background: var(--mountain-100);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.chip-cloud a:hover {
    color: #ffffff;
    background: var(--mountain-700);
}

.content-section {
    padding: 66px 0 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.section-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 22px;
}

.movie-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(212, 202, 181, 0.82);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--mountain-300);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mountain-200);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover .category-icon {
    transform: scale(1.08);
}

.type-badge,
.year-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 6px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.type-badge {
    right: 10px;
}

.year-badge {
    left: 10px;
}

.movie-body {
    padding: 16px;
}

.movie-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--mountain-900);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-bottom: 12px;
}

.movie-meta span,
.detail-meta span {
    padding: 6px 9px;
    color: var(--earth-700);
    font-size: 12px;
    font-weight: 800;
    background: var(--earth-100);
}

.movie-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--mountain-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 6px 8px;
    color: var(--forest-700);
    font-size: 12px;
    font-weight: 700;
    background: var(--forest-100);
}

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

.category-inner {
    display: block;
    height: 100%;
    padding: 26px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--forest-600), var(--mountain-600));
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--mountain-900);
}

.category-card p {
    margin: 0 0 16px;
    color: var(--mountain-600);
}

.sample-links {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.sample-links a {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--earth-700);
    font-weight: 700;
}

.category-more {
    display: inline-flex;
    color: var(--forest-700);
    font-weight: 800;
}

.category-more:hover {
    color: var(--mountain-900);
}

.page-hero {
    margin-top: 38px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--earth-50));
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: var(--mountain-600);
    font-size: 18px;
}

.filter-panel {
    margin-top: 28px;
    padding: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 160px 110px;
    gap: 12px;
}

.filter-grid input,
.filter-grid select,
.filter-grid button {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--mountain-200);
    border-radius: 14px;
    background: #ffffff;
    color: var(--mountain-800);
    padding: 0 14px;
    outline: 0;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--mountain-500);
    box-shadow: 0 0 0 3px rgba(114, 94, 69, 0.14);
}

.filter-grid button {
    cursor: pointer;
    color: #ffffff;
    background: var(--mountain-600);
    font-weight: 800;
}

.filter-grid button:hover {
    background: var(--mountain-700);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 150px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(212, 202, 181, 0.82);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #ffffff;
    border-radius: 16px;
    background: var(--mountain-700);
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mountain-200);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 8px;
    color: var(--mountain-900);
    font-size: 20px;
}

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

.rank-action {
    min-height: 42px;
    padding: 0 16px;
}

.detail-head {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--mountain-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--forest-700);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--earth-50));
    border: 1px solid var(--mountain-200);
    box-shadow: var(--shadow-soft);
}

.detail-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 24px;
    background: var(--mountain-200);
    box-shadow: var(--shadow-medium);
}

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

.detail-info h1 {
    margin: 4px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.lead-text {
    margin: 0 0 20px;
    color: var(--mountain-700);
    font-size: 19px;
}

.large-tags {
    margin: 18px 0 24px;
}

.player-section {
    padding-top: 46px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.66));
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--mountain-900);
    background: #ffffff;
    box-shadow: var(--shadow-strong);
}

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

.text-card {
    padding: 26px;
}

.text-card h2 {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 900;
}

.text-card p {
    margin: 0;
    color: var(--mountain-700);
    white-space: pre-line;
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.compact-card .movie-body h3 {
    font-size: 16px;
}

.site-footer {
    margin-top: 72px;
    color: var(--mountain-100);
    background: var(--mountain-800);
}

.footer-shell {
    padding: 46px 0 26px;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 20px;
}

.footer-grid p {
    margin: 0;
    color: var(--mountain-200);
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-links a {
    color: var(--mountain-200);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 228, 217, 0.18);
    color: var(--mountain-300);
    text-align: center;
}

[data-movie-card][hidden] {
    display: none;
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .quick-shell,
    .detail-layout,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions,
    .section-heading,
    .simple-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-shell {
        margin-top: 20px;
    }

    .quick-card,
    .page-hero,
    .detail-layout {
        padding: 22px;
        border-radius: 22px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .movie-body h3 {
        font-size: 16px;
        min-height: 46px;
    }

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

    .rank-row {
        grid-template-columns: 44px 92px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-action {
        grid-column: 2 / 4;
    }

    .rank-info p {
        display: none;
    }

    .rank-num {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
    }

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

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