:root {
    --forest-50: #f0f7f2;
    --forest-100: #dcefe1;
    --forest-600: #2f7a4f;
    --forest-700: #266640;
    --forest-800: #1d4f32;
    --earth-50: #faf7f1;
    --earth-100: #efe4d3;
    --earth-800: #3a2e25;
    --earth-900: #241c16;
    --deer-500: #c58a3a;
    --deer-600: #ad7327;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f8faf9;
    --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
    --shadow-hover: 0 20px 50px rgba(31, 41, 55, 0.15);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(47, 122, 79, 0.08), transparent 36rem), var(--bg);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.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.88);
    box-shadow: 0 4px 20px rgba(31, 41, 55, 0.05);
    backdrop-filter: blur(18px);
}

.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;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
    box-shadow: 0 10px 24px rgba(47, 122, 79, 0.22);
}

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

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

.nav-link {
    position: relative;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--forest-50);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--forest-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-inner {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 18px;
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.mobile-category-links a {
    padding: 6px 10px;
    color: var(--forest-700);
    background: var(--forest-50);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background: #0d1711;
}

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

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 18, 12, 0.96) 0%, rgba(8, 18, 12, 0.76) 42%, rgba(8, 18, 12, 0.3) 100%),
        linear-gradient(0deg, rgba(8, 18, 12, 0.92) 0%, transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 92px 0 150px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--deer-500);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-content h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-desc {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 24px;
}

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

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
    box-shadow: 0 14px 30px rgba(47, 122, 79, 0.28);
}

.button.ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button.ghost-dark {
    color: var(--forest-700);
    border-color: var(--forest-100);
    background: #ffffff;
}

.button.full {
    width: 100%;
}

.hero-control-row {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: -104px;
    padding-bottom: 38px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-search {
    display: flex;
    width: min(460px, 100%);
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.hero-search input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.hero-search input {
    padding: 0 14px;
}

.hero-search button {
    border: 0;
    color: #ffffff;
    background: var(--forest-600);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.stats-strip div,
.category-tile,
.movie-card,
.home-rank,
.category-overview-card,
.page-hero,
.detail-poster-card,
.detail-main,
.player-shell,
.article-content,
.rank-table,
.search-list {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.stats-strip div {
    padding: 22px;
}

.stats-strip strong {
    display: block;
    color: var(--forest-700);
    font-size: 30px;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.section-block {
    margin-top: 58px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.8vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

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

.small-heading h2 {
    font-size: 28px;
}

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

.category-tile {
    display: block;
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
    display: block;
    color: var(--forest-700);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    color: #ffffff;
    background: var(--deer-500);
    border-radius: 999px;
    font-size: 12px;
}

.category-tile p {
    min-height: 72px;
    margin: 14px 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.category-tile em {
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
}

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

.compact-grid {
    grid-template-columns: repeat(3, 1fr);
}

.mini-grid {
    grid-template-columns: repeat(4, 1fr);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--earth-100);
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
    opacity: 0.85;
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(47, 122, 79, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--forest-700);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

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

.movie-meta {
    margin: 0 0 6px;
    color: var(--deer-600);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-line:hover .rank-line-title,
.rank-table-row:hover strong,
.home-rank-item:hover strong {
    color: var(--forest-700);
}

.movie-summary {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.home-rank {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.home-rank-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.home-rank-item span {
    color: var(--deer-600);
    font-weight: 900;
}

.home-rank-item strong {
    display: block;
    line-height: 1.35;
}

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

.page-main {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

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

.breadcrumb em {
    color: #cbd5e1;
    font-style: normal;
}

.page-hero {
    padding: 34px;
    margin-bottom: 32px;
    background:
        radial-gradient(circle at top right, rgba(47, 122, 79, 0.12), transparent 22rem),
        #ffffff;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p:last-child,
.category-overview-head p {
    max-width: 760px;
    color: var(--muted);
}

.category-overview-card {
    padding: 24px;
    margin-bottom: 22px;
}

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

.category-overview-head h2 {
    margin: 0;
    font-size: 28px;
}

.filter-panel {
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.large-filter {
    max-width: 720px;
}

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

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

.detail-poster-card,
.detail-main {
    padding: 18px;
}

.detail-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
}

.detail-main {
    min-height: 420px;
}

.detail-main h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #334155;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.detail-meta-grid div {
    padding: 14px;
    border-radius: 14px;
    background: var(--forest-50);
}

.detail-meta-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-grid dd {
    margin: 5px 0 0;
    color: var(--forest-800);
    font-weight: 900;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82));
    cursor: pointer;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--forest-700);
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay em {
    width: min(680px, calc(100% - 32px));
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    text-align: center;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    font-size: 12px;
}

.article-content {
    padding: 26px;
}

.article-content p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 17px;
}

.rank-table,
.search-list {
    overflow: hidden;
}

.rank-table-row,
.rank-line {
    display: grid;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.rank-table-row {
    grid-template-columns: 72px 1fr 80px 120px 180px;
    padding: 15px 18px;
}

.rank-line {
    grid-template-columns: 1fr 70px 120px 110px;
    padding: 13px 18px;
}

.rank-table-row:hover,
.rank-line:hover {
    background: var(--forest-50);
}

.rank-no {
    color: var(--deer-600);
    font-weight: 900;
}

.rank-line span,
.rank-table-row span {
    color: var(--muted);
}

.rank-line-title {
    color: var(--ink) !important;
    font-weight: 900;
}

.empty-state {
    padding: 26px;
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

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

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

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

.footer-main p,
.site-footer li,
.footer-bottom {
    color: rgba(239, 228, 211, 0.78);
}

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

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin: 8px 0;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(239, 228, 211, 0.12);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .home-rank {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-control-row {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-strip,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid,
    .category-movie-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-overview-head,
    .footer-bottom {
        flex-direction: column;
        display: flex;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-table-row,
    .rank-line {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

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

    .hero-content {
        padding-top: 62px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .stats-strip,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid,
    .category-movie-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .article-content,
    .detail-main,
    .detail-poster-card {
        padding: 20px;
    }

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