:root {
    --forest-50: #f5f7f5;
    --forest-100: #e8ede7;
    --forest-600: #4a6644;
    --forest-700: #3c5238;
    --forest-800: #32432f;
    --deer-500: #a88558;
    --earth-200: #ddd8ca;
    --earth-300: #c5bcaa;
    --earth-400: #aa9b85;
    --earth-800: #4e443a;
    --earth-900: #423a32;
    --text: #111827;
    --muted: #5f6b63;
    --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 10px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: linear-gradient(180deg, var(--forest-50), #ffffff 38%, #ffffff);
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.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);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    backdrop-filter: blur(16px);
    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;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--forest-600);
    box-shadow: 0 12px 26px rgba(74, 102, 68, 0.24);
    transition: background 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    background: var(--forest-700);
    transform: translateY(-1px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.site-nav a {
    transition: color 0.25s ease;
}

.site-nav a:hover {
    color: var(--forest-600);
}

.menu-toggle {
    display: none;
    padding: 8px 12px;
    border-radius: 10px;
    color: #374151;
    background: var(--forest-50);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    color: #ffffff;
    background: #10150f;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(168, 133, 88, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(10, 15, 10, 0.92) 0%, rgba(10, 15, 10, 0.68) 42%, rgba(10, 15, 10, 0.18) 100%),
        linear-gradient(0deg, rgba(10, 15, 10, 0.9), rgba(10, 15, 10, 0.1) 42%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    min-height: 610px;
    padding: 88px 0 76px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--forest-100);
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 780px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: 0.01em;
}

.hero p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 18px 36px rgba(74, 102, 68, 0.32);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.hero-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.hero-card h2 {
    margin: 16px 0 6px;
    font-size: 22px;
    line-height: 1.3;
}

.hero-card p {
    font-size: 14px;
    line-height: 1.7;
}

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

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

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

.section {
    padding: 58px 0;
}

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

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

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

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

.search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 4;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-box input,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.search-results {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.search-results.is-visible {
    display: grid;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

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

.category-card {
    display: block;
    min-height: 172px;
    padding: 24px;
    border: 1px solid rgba(78, 68, 58, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, var(--forest-50));
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

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

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

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

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

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

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

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.04);
    opacity: 0.82;
}

.card-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(74, 102, 68, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--forest-700);
    background: var(--forest-50);
    font-size: 12px;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    font-weight: 800;
}

.rank-item img {
    width: 84px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 76px 0 42px;
    background:
        radial-gradient(circle at 80% 20%, rgba(168, 133, 88, 0.18), transparent 32%),
        linear-gradient(135deg, var(--forest-50), #ffffff);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    color: var(--forest-800);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.video-element {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.play-symbol {
    position: absolute;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.player-cover.is-hidden {
    display: none;
}

.detail-card {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.18;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.article-body {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.article-body h2 {
    margin: 0 0 12px;
    color: var(--forest-800);
    font-size: 24px;
}

.article-body p {
    margin: 0 0 18px;
    color: #374151;
}

.sidebar-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.sidebar-poster div {
    padding: 18px;
}

.sidebar-poster h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.empty-search {
    grid-column: 1 / -1;
    padding: 26px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid var(--earth-800);
}

@media (max-width: 1040px) {
    .site-nav {
        gap: 14px;
    }

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

    .hero-card {
        max-width: 360px;
    }

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

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

@media (max-width: 780px) {
    .menu-toggle {
        display: inline-flex;
    }

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

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

    .site-nav a {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: var(--forest-50);
    }

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

    .hero-content {
        padding: 70px 0 84px;
    }

    .hero-card {
        width: min(100%, 310px);
    }

    .search-panel {
        margin-top: 24px;
    }

    .search-box,
    .filter-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .search-results,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 76px minmax(0, 1fr);
    }

    .footer-grid {
        gap: 26px;
    }
}
