:root {
    --forest-50: #f5f7f5;
    --forest-100: #e4ede2;
    --forest-400: #72936a;
    --forest-600: #4a6644;
    --forest-700: #3c5238;
    --forest-800: #32432f;
    --earth-900: #423a32;
    --earth-800: #5a4d41;
    --earth-400: #aa9b85;
    --earth-300: #c5bcaa;
    --earth-200: #ddd8ca;
    --deer-500: #a88558;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f8faf7;
    --shadow: 0 18px 48px rgba(31, 41, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--forest-50) 0%, #ffffff 360px);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 10px 24px rgba(74, 102, 68, 0.28);
}

.brand-name {
    font-size: 20px;
    color: var(--forest-800);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-size: 15px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--forest-700);
    background: var(--forest-50);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--forest-50);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--forest-700);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--earth-900);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.34;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(168, 133, 88, 0.42), transparent 36%),
        linear-gradient(120deg, rgba(50, 67, 47, 0.96), rgba(66, 58, 50, 0.86) 48%, rgba(31, 41, 51, 0.62));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 56px 0;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--earth-200);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--forest-700);
    background: var(--forest-50);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.btn.primary,
.search-box button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 14px 28px rgba(74, 102, 68, 0.28);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn:hover,
.search-box button:hover,
.filter-row button:hover {
    transform: translateY(-1px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
}

.search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -46px auto 48px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel h2,
.category-strip h2,
.rank-head h2,
.side-card h2,
.player-card h2,
.article-block h2 {
    margin: 0 0 8px;
    color: var(--forest-800);
}

.search-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-row input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    font-size: 15px;
    outline: none;
}

.search-box input:focus,
.filter-row input:focus {
    border-color: var(--forest-400);
    box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.08);
}

.category-strip {
    margin-bottom: 56px;
}

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

.chip-row a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--forest-700);
    background: #ffffff;
    border: 1px solid var(--forest-100);
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.section-title {
    margin: 0 0 24px;
}

.section-title h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.section-title span {
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(31, 41, 51, 0.14);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--forest-100);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.ranking-card:hover img {
    transform: scale(1.04);
}

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(31, 41, 51, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta a {
    color: var(--forest-700);
    font-weight: 800;
}

.movie-card h2,
.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 0 0 12px;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.compact-card p {
    min-height: auto;
}

.rank-panel,
.side-card,
.player-card,
.article-block {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.rank-panel {
    position: sticky;
    top: 96px;
}

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

.rank-head a {
    color: var(--forest-600);
    font-weight: 800;
    font-size: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.rank-no {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    font-weight: 900;
    font-size: 13px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-800), var(--earth-900));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(168, 133, 88, 0.46), transparent 32%),
        radial-gradient(circle at 15% 40%, rgba(114, 147, 106, 0.42), transparent 28%);
}

.page-hero-inner,
.slim-hero .container {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.slim-hero .container {
    min-height: 260px;
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 48px;
    margin-bottom: 64px;
}

.category-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 170px;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.category-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-images img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.category-card p {
    margin: 0 0 6px;
    color: var(--forest-600);
    font-size: 13px;
    font-weight: 800;
}

.category-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
}

.category-card span {
    color: var(--muted);
    line-height: 1.7;
}

.list-toolbar,
.ranking-list {
    margin-top: 46px;
    margin-bottom: 72px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.filter-row input {
    flex: 1 1 260px;
}

.filter-row button {
    min-height: 40px;
    color: var(--forest-700);
    background: var(--forest-50);
}

.filter-row button.active {
    color: #ffffff;
    background: var(--forest-600);
}

.year-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sticky-filter {
    position: sticky;
    top: 88px;
    z-index: 20;
}

.ranking-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.ranking-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    font-weight: 900;
}

.ranking-info p {
    max-width: 780px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.8;
}

.detail-hero {
    min-height: 520px;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
    filter: blur(10px) saturate(1.08);
    transform: scale(1.06);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(50, 67, 47, 0.96), rgba(66, 58, 50, 0.82), rgba(17, 24, 39, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
    min-height: 520px;
    padding: 56px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-meta span {
    padding: 8px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 48px;
    margin-bottom: 72px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.video-player video {
    z-index: 1;
    object-fit: contain;
    background: #000000;
}

.video-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

.video-cover img {
    object-fit: cover;
    opacity: 0.52;
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    font-size: 26px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.video-cover strong {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
}

.video-player.is-playing .video-cover {
    opacity: 0;
    pointer-events: none;
}

.article-block p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 2;
}

.detail-side {
    position: sticky;
    top: 96px;
}

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

.side-list .movie-card {
    display: grid;
    grid-template-columns: 86px 1fr;
}

.side-list .poster-wrap img {
    height: 132px;
    aspect-ratio: auto;
}

.side-list .card-body {
    padding: 12px;
}

.side-list .tag-row,
.side-list .card-meta span:nth-child(n+2),
.side-list .movie-card p {
    display: none;
}

.site-footer {
    color: var(--earth-200);
    background: var(--earth-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 220px;
    gap: 36px;
    padding: 46px 0;
}

.footer-logo .brand-name {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    color: var(--earth-300);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 17px;
}

.footer-links a {
    color: var(--earth-300);
    font-size: 14px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    color: var(--earth-400);
    border-top: 1px solid rgba(221, 216, 202, 0.14);
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 760px;
    }

    .hero-poster {
        width: min(260px, 68vw);
        justify-self: center;
    }

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

    .search-box {
        flex-direction: column;
    }

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

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

    .detail-cover {
        width: min(260px, 72vw);
    }

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-name {
        font-size: 17px;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

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

    .movie-grid,
    .wide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

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

    .category-images img {
        height: 150px;
    }

    .filter-row {
        padding: 14px;
    }

    .side-list .movie-card {
        grid-template-columns: 78px 1fr;
    }
}
