:root {
    --forest-900: #243321;
    --forest-800: #32432f;
    --forest-700: #3c5238;
    --forest-600: #4a6644;
    --forest-100: #e8ede7;
    --forest-50: #f5f7f5;
    --earth-900: #423a32;
    --earth-800: #4e443a;
    --earth-400: #aa9b85;
    --earth-300: #c5bcaa;
    --earth-200: #ddd8ca;
    --gold-500: #d8a23d;
    --text-main: #1f2933;
    --text-muted: #667085;
    --line: #e4e7ec;
    --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 16px 48px -18px rgba(35, 49, 32, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 231, 236, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.nav-shell,
.page-shell,
.footer-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--forest-600);
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(74, 102, 68, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-button {
    display: none;
    border: 0;
    border-radius: 10px;
    background: var(--forest-50);
    color: var(--forest-700);
    padding: 8px 11px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 12px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.mobile-nav a {
    border-radius: 10px;
    padding: 10px 12px;
    color: #344054;
    font-weight: 600;
}

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

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background:
        radial-gradient(circle at 18% 18%, rgba(216, 162, 61, 0.28), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(232, 237, 231, 0.22), transparent 32%),
        linear-gradient(135deg, #253820, #4a6644 52%, #78604c);
    color: var(--white);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -42% -8%;
    height: 340px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(60px);
    transform: rotate(-3deg);
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 58px;
}

.hero-title-block {
    max-width: 760px;
    margin-bottom: 28px;
}

.hero-title-block span,
.page-hero span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff8dd;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-title-block h1 {
    margin: 18px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-title-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 18px;
}

.hero-carousel {
    position: relative;
    min-height: 390px;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: 36px;
    align-items: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-copy {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    padding: 34px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.hero-copy h2 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
}

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

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(232, 237, 231, 0.14);
    color: #fff6d7;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.primary-button:hover,
.section-more:hover,
.text-link:hover {
    background: var(--forest-700);
    color: var(--white);
    transform: translateY(-1px);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.hero-poster {
    justify-self: center;
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hero-poster img,
.movie-poster img,
.compact-card img,
.rank-card img,
.category-thumbs img,
.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

.hero-search {
    display: flex;
    max-width: 680px;
    margin-top: 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-main);
    padding: 0 14px;
    outline: none;
}

.hero-search input {
    border: 0;
}

.hero-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    background: var(--forest-600);
    color: var(--white);
    padding: 0 22px;
    font-weight: 800;
}

.page-shell {
    padding: 58px 0;
}

.page-shell.narrow {
    max-width: 900px;
}

.content-section + .content-section {
    margin-top: 64px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

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

.section-more,
.text-link {
    min-height: 38px;
    background: var(--forest-50);
    color: var(--forest-700);
    font-size: 14px;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
}

.movie-year,
.movie-type {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    top: 10px;
    left: 10px;
    background: rgba(36, 51, 33, 0.76);
}

.movie-type {
    right: 10px;
    bottom: 10px;
    background: rgba(74, 102, 68, 0.86);
}

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

.movie-card-body h3 {
    margin: 0;
    color: var(--forest-900);
    font-size: 16px;
    line-height: 1.35;
}

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

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

.movie-card .tag-row span {
    background: var(--forest-50);
    color: var(--forest-700);
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-card {
    display: flex;
    min-height: 226px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, var(--forest-50));
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span,
.category-card strong,
.category-card em {
    display: block;
}

.category-card span {
    width: fit-content;
    border-radius: 999px;
    background: var(--forest-600);
    color: var(--white);
    padding: 4px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.category-card strong {
    margin-top: 14px;
    color: var(--forest-800);
    font-size: 20px;
}

.category-card em {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 16px;
}

.category-thumbs img {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: var(--earth-200);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 48px 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 16px;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--forest-600);
    color: var(--white);
    font-weight: 900;
}

.rank-card img {
    width: 64px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: var(--earth-200);
}

.rank-info {
    display: grid;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: var(--forest-900);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em,
.rank-score {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.rank-score {
    border-radius: 999px;
    background: var(--forest-50);
    padding: 5px 9px;
    color: var(--forest-700);
    font-weight: 800;
}

.sub-main {
    min-height: 70vh;
}

.page-hero {
    background:
        radial-gradient(circle at 18% 12%, rgba(216, 162, 61, 0.26), transparent 34%),
        linear-gradient(135deg, var(--forest-800), var(--forest-600));
    color: var(--white);
}

.page-hero .page-shell {
    padding: 66px 0;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.overview-list {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 22px;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-overview-cover img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--earth-200);
}

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

.category-overview-card p {
    margin: 10px 0 18px;
    color: var(--text-muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 18px;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow-soft);
}

.filter-panel.large {
    grid-template-columns: minmax(0, 1fr) 210px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    border-radius: 16px;
    background: var(--forest-50);
    color: var(--forest-700);
    padding: 18px;
    text-align: center;
    font-weight: 700;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(216, 162, 61, 0.24), transparent 30%),
        linear-gradient(135deg, var(--forest-900), var(--earth-900));
    color: var(--white);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-symbol {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(74, 102, 68, 0.94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    font-size: 30px;
    line-height: 1;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 16px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-one-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.detail-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    color: #fff6d7;
    font-size: 13px;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
}

.detail-article,
.detail-side {
    border: 1px solid rgba(228, 231, 236, 0.92);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-article {
    padding: 28px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 12px;
    color: var(--forest-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0 0 14px;
    color: #344054;
}

.lead-text {
    color: var(--forest-700) !important;
    font-weight: 800;
}

.detail-side {
    align-self: start;
    padding: 22px;
    position: sticky;
    top: 92px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 11px 12px;
    margin: 0 0 20px;
}

.detail-side dt {
    color: var(--text-muted);
}

.detail-side dd {
    min-width: 0;
    margin: 0;
    color: var(--forest-900);
    font-weight: 700;
}

.full {
    width: 100%;
}

.compact-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 54px;
    aspect-ratio: 3 / 4;
    border-radius: 9px;
    background: var(--earth-200);
}

.compact-card span {
    display: grid;
    min-width: 0;
}

.compact-card strong {
    overflow: hidden;
    color: var(--forest-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

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

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 30px;
    padding: 44px 0 30px;
}

.footer-logo {
    color: var(--white);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-links a {
    color: var(--earth-200);
}

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

.footer-bottom {
    border-top: 1px solid rgba(221, 216, 202, 0.16);
    padding: 18px 16px;
    color: var(--earth-300);
    text-align: center;
    font-size: 13px;
}

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

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

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

    .home-hero {
        min-height: 0;
    }

    .hero-shell {
        padding: 42px 0;
    }

    .hero-slide {
        gap: 20px;
    }

    .hero-copy {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-search,
    .filter-panel,
    .filter-panel.large {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-search button {
        min-height: 46px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .category-grid,
    .rank-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 42px 56px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        width: fit-content;
    }

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

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

    .page-hero .page-shell,
    .page-shell {
        padding: 38px 0;
    }

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

@media (max-width: 460px) {
    .nav-shell,
    .page-shell,
    .footer-shell,
    .hero-shell,
    .mobile-nav {
        width: min(100% - 22px, 1240px);
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .movie-grid {
        gap: 12px;
    }

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

    .movie-card-body h3 {
        font-size: 14px;
    }
}
