:root {
    --forest-50: #f5f7f5;
    --forest-100: #e8ede7;
    --forest-600: #4a6644;
    --forest-700: #3c5238;
    --forest-800: #32432f;
    --earth-200: #ddd8ca;
    --earth-300: #c5bcaa;
    --earth-400: #aa9b85;
    --earth-800: #4e443a;
    --earth-900: #423a32;
    --deer-500: #a88558;
    --text: #111827;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-deep: 0 28px 70px rgba(39, 52, 35, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.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.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(74, 102, 68, 0.12);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--forest-800);
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--white);
    background: var(--forest-600);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(74, 102, 68, 0.25);
}

.brand-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

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

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

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--forest-800);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(74, 102, 68, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 42, 30, 0.92), rgba(32, 42, 30, 0.64) 46%, rgba(32, 42, 30, 0.2)), linear-gradient(0deg, rgba(66, 58, 50, 0.75), rgba(66, 58, 50, 0.1));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
    min-height: 640px;
    color: var(--white);
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-title p,
.page-hero p {
    margin: 0 0 12px;
    color: var(--earth-200);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transform: rotate(2deg);
}

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

.hero-actions,
.detail-copy .btn {
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--forest-600);
    box-shadow: 0 14px 30px rgba(74, 102, 68, 0.32);
}

.btn-primary:hover {
    background: var(--forest-700);
}

.btn-ghost,
.btn-line {
    margin-left: 10px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.btn-line {
    margin-left: 0;
    color: var(--forest-700);
    border-color: rgba(74, 102, 68, 0.22);
    background: var(--forest-50);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--forest-800);
    background: rgba(245, 247, 245, 0.86);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -72px;
    color: var(--white);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

.hero-quick {
    display: flex;
    gap: 12px;
}

.hero-quick a {
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 800;
}

.hero-strip {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: -40px;
}

.section-block {
    padding: 72px 0 0;
}

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

.section-title.compact {
    align-items: center;
}

.section-title p,
.page-hero p {
    color: var(--forest-600);
}

.section-title h2,
.detail-card h2,
.side-card h2,
.category-section-head h2 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.section-title a {
    color: var(--forest-600);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    padding: 16px;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid rgba(74, 102, 68, 0.12);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    color: var(--text);
    background: var(--forest-50);
    border: 1px solid rgba(74, 102, 68, 0.16);
    border-radius: 14px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.12);
}

.no-result {
    display: none;
    padding: 24px;
    margin: 0 0 26px;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border-radius: 18px;
}

.no-result.is-visible {
    display: block;
}

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

.movie-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(74, 102, 68, 0.10);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 102, 68, 0.24);
    box-shadow: 0 24px 40px rgba(39, 52, 35, 0.15);
}

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

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

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

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

.type-badge,
.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: var(--white);
    background: var(--forest-600);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: auto;
    right: 10px;
    background: var(--deer-500);
}

.card-body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.card-body strong {
    overflow: hidden;
    display: -webkit-box;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-line {
    overflow: hidden;
    display: -webkit-box;
    min-height: 38px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-small {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 130px;
}

.movie-card-small .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-small .card-line {
    min-height: 0;
}

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

.category-tile,
.category-section-card,
.detail-card,
.side-card,
.player-card {
    background: var(--white);
    border: 1px solid rgba(74, 102, 68, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.category-tile {
    display: grid;
    gap: 10px;
    padding: 24px;
    min-height: 150px;
    background: linear-gradient(135deg, #ffffff, var(--forest-50));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 102, 68, 0.28);
}

.category-tile strong {
    color: var(--forest-800);
    font-size: 22px;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.category-tile span {
    color: #4b5563;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px;
    background: var(--white);
    border: 1px solid rgba(74, 102, 68, 0.12);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.ranking-row span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--white);
    background: var(--forest-600);
    border-radius: 12px;
    font-weight: 900;
}

.ranking-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-row em {
    grid-column: 2;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.page-hero {
    position: relative;
    padding: 76px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 0%, rgba(168, 133, 88, 0.5), transparent 30%), linear-gradient(135deg, var(--forest-800), var(--earth-900));
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 68px);
}

.page-hero span {
    display: block;
    max-width: 760px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-section-card {
    padding: 24px;
}

.category-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.mini-grid.single {
    grid-template-columns: 1fr;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-pill {
    padding: 9px 13px;
    color: var(--forest-700);
    background: var(--white);
    border: 1px solid rgba(74, 102, 68, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.category-pill.current,
.category-pill:hover {
    color: var(--white);
    background: var(--forest-600);
}

.top-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.detail-hero {
    position: relative;
    color: var(--white);
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 42, 30, 0.94), rgba(32, 42, 30, 0.68)), linear-gradient(0deg, rgba(66, 58, 50, 0.62), transparent);
    backdrop-filter: blur(8px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

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

.detail-copy p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

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

.detail-meta span {
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

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

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

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

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
    border: 0;
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    padding-left: 4px;
    color: var(--forest-800);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.detail-card h2,
.side-card h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.page-nav-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.page-nav-card a {
    padding: 14px;
    color: var(--forest-700);
    background: var(--forest-50);
    border-radius: 14px;
    font-weight: 800;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--earth-300);
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

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

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

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

.footer-bottom {
    padding: 18px 0 28px;
    color: var(--earth-400);
    border-top: 1px solid var(--earth-800);
    font-size: 13px;
}

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

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

    .hero-poster {
        display: none;
    }

    .detail-side .mini-grid.single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 64px 0 96px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-controls {
        margin-top: -92px;
    }

    .hero-strip,
    .category-grid,
    .top-three,
    .footer-grid,
    .mini-grid,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .movie-card-small {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .section-title,
    .category-section-head,
    .page-nav-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

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

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

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

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

    .card-body {
        padding: 11px;
    }

    .card-line {
        display: none;
    }

    .hero-quick {
        display: none;
    }
}
