* {
    box-sizing: border-box;
}

:root {
    --forest-50: #f5f7f5;
    --forest-100: #e8ede7;
    --forest-600: #4a6644;
    --forest-700: #3d5638;
    --forest-800: #2f432b;
    --earth-50: #faf7f1;
    --earth-200: #ddd8ca;
    --earth-300: #c5bcaa;
    --earth-400: #aa9b85;
    --earth-800: #4e443a;
    --earth-900: #423a32;
    --deer-500: #a88558;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --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-hover: 0 20px 35px -12px rgba(74, 102, 68, 0.28);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--forest-50), #ffffff 34%, var(--earth-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

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

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 10px 24px rgba(74, 102, 68, 0.25);
}

.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

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

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

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

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background: radial-gradient(circle at 16% 16%, rgba(168, 133, 88, 0.28), transparent 32%), linear-gradient(135deg, #20331f, #4a6644 48%, #7c633f);
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 52%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 24%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 82px 0 64px;
}

.hero-slider {
    position: relative;
    min-height: 455px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--earth-200);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 84px);
    max-width: 780px;
}

.hero-desc {
    margin: 22px 0 0;
    max-width: 660px;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

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

.primary-btn,
.secondary-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 22px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: #ffffff;
    color: var(--forest-800);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

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

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

.text-link {
    min-height: auto;
    padding: 0;
    color: var(--forest-700);
}

.hero-poster {
    position: relative;
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--forest-800), var(--deer-500));
}

.hero-poster-glow {
    position: absolute;
    inset: auto 16px 16px;
    height: 70px;
    border-radius: 22px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.hero-dots {
    display: flex;
    gap: 9px;
    margin-top: 28px;
}

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

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

.hero-search-panel {
    margin-top: 30px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hero-search input,
.global-search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    min-height: 48px;
    padding: 0 16px;
    outline: none;
}

.hero-search button,
.global-search-box button {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--forest-700);
    cursor: pointer;
    font-weight: 700;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-category-links a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

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

.soft-section {
    margin-top: 72px;
    padding: 72px 0;
    background: rgba(245, 247, 245, 0.74);
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 42px);
    color: #111827;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-title span {
    display: block;
    width: 86px;
    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(6, minmax(0, 1fr));
    gap: 22px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.movie-card.hidden {
    display: none;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest-700), var(--deer-500));
}

.poster-frame img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.05);
    filter: brightness(0.78);
}

.play-mark,
.detail-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(74, 102, 68, 0.88);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark,
.detail-poster:hover span {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

.movie-card-body {
    padding: 14px;
}

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.42;
}

.movie-card-body h3 a:hover {
    color: var(--forest-600);
}

.movie-card-body p {
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--forest-50);
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 92px 1fr;
}

.movie-card-compact .poster-frame {
    min-height: 126px;
}

.movie-card-compact .movie-card-body {
    align-self: center;
}

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

.category-card,
.category-overview-card,
.text-card,
.info-card,
.player-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-card {
    padding: 24px;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff, var(--forest-50));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.category-card strong {
    font-size: 20px;
    line-height: 1.35;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.sub-hero {
    padding: 78px 0 68px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--earth-900));
}

.sub-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.sub-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

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

.category-overview-card {
    padding: 28px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

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

.category-samples a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--forest-50);
    color: #111827;
}

.category-samples span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.global-search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(2px);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.82));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 36px 0 62px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 38px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    background: linear-gradient(135deg, var(--forest-800), var(--deer-500));
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 68px);
}

.detail-copy p:not(.eyebrow) {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
    font-size: 18px;
}

.detail-section {
    padding-top: 58px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 26px;
}

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

.player-card,
.text-card,
.info-card {
    padding: 22px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.48));
    cursor: pointer;
}

.video-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-overlay span {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 102, 68, 0.9);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
    font-size: 30px;
}

.player-card h2,
.text-card h2,
.info-card h2 {
    margin: 18px 0 10px;
    font-size: 24px;
}

.player-card p,
.text-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.86;
}

.info-card {
    position: sticky;
    top: 92px;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card div {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.info-card a {
    color: var(--forest-700);
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 20px;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--earth-300);
    line-height: 1.7;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid var(--earth-800);
    padding: 20px 16px;
    text-align: center;
    color: var(--earth-400);
    font-size: 13px;
}

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 820px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
    }

    .hero-poster {
        width: min(280px, 80%);
        justify-self: start;
    }

    .hero-slider {
        min-height: 630px;
    }

    .filter-bar,
    .global-search-box,
    .detail-layout,
    .detail-content-grid,
    .footer-inner,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

    .info-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-inner {
        padding-top: 54px;
    }

    .hero h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-desc,
    .detail-copy p:not(.eyebrow) {
        font-size: 16px;
    }

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

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

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

    .content-section,
    .soft-section {
        padding-top: 48px;
    }

    .soft-section {
        margin-top: 48px;
        padding-bottom: 48px;
    }

    .player-card,
    .text-card,
    .info-card {
        padding: 16px;
    }
}
