:root {
    --forest-950: #07130f;
    --forest-900: #10231a;
    --forest-800: #173526;
    --forest-700: #214834;
    --earth-950: #1a110a;
    --earth-900: #2a1d12;
    --earth-800: #3a2a18;
    --moss-700: #3f6b3a;
    --moss-600: #4c7c42;
    --moss-500: #69a455;
    --moss-400: #8cc36e;
    --parchment-100: #fff8e8;
    --parchment-200: #f0e6cc;
    --parchment-300: #d8c9a6;
    --parchment-400: #ae9c78;
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.22);
    --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 19, 15, 0.94);
    border-bottom: 1px solid rgba(240, 230, 204, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--moss-700), var(--moss-500));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px rgba(76, 124, 66, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: var(--parchment-300);
}

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

.nav-link {
    position: relative;
    color: var(--parchment-200);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--moss-500);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--parchment-100);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--parchment-100);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(240, 230, 204, 0.08);
    padding: 12px 24px 20px;
    background: rgba(7, 19, 15, 0.98);
}

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

.mobile-nav-link {
    padding: 12px 0;
    color: var(--parchment-200);
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--forest-950);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 19, 15, 0.98) 0%, rgba(7, 19, 15, 0.78) 42%, rgba(7, 19, 15, 0.22) 100%),
                linear-gradient(0deg, var(--forest-950) 0%, rgba(7, 19, 15, 0.12) 44%, rgba(7, 19, 15, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 72vh;
    display: flex;
    align-items: center;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--moss-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 24px;
    max-width: 680px;
    color: var(--parchment-200);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.85;
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-cloud span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--parchment-100);
    background: rgba(23, 53, 38, 0.82);
    border: 1px solid rgba(240, 230, 204, 0.12);
    backdrop-filter: blur(8px);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--moss-600), var(--moss-500));
    box-shadow: 0 18px 42px rgba(76, 124, 66, 0.34);
}

.ghost-button {
    color: var(--parchment-100);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(240, 230, 204, 0.14);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--moss-500);
}

.search-panel {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 24px;
    align-items: center;
    margin-top: -42px;
    padding: 24px;
    border: 1px solid rgba(240, 230, 204, 0.12);
    border-radius: 24px;
    background: rgba(42, 29, 18, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-copy span {
    color: var(--moss-400);
    font-weight: 800;
}

.search-copy h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3vw, 34px);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--parchment-300);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(240, 230, 204, 0.14);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--parchment-100);
    background: rgba(7, 19, 15, 0.72);
    outline: none;
}

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

.section-block.container {
    padding-left: 0;
    padding-right: 0;
}

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

.section-heading h2,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--parchment-300);
    line-height: 1.8;
}

.split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.text-button {
    color: var(--moss-400);
    background: rgba(105, 164, 85, 0.08);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(240, 230, 204, 0.08);
    border-radius: 18px;
    background: rgba(42, 29, 18, 0.44);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(140, 195, 110, 0.32);
    box-shadow: var(--shadow-strong);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--earth-800);
}

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

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

.poster-shade,
.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(76, 124, 66, 0.9);
    transform: translate(-50%, -50%) scale(0.76);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-label {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--parchment-100);
    background: rgba(16, 35, 26, 0.82);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3 {
    margin: 0 0 10px;
    min-height: 54px;
    color: var(--parchment-100);
    font-size: 18px;
    line-height: 1.45;
}

.movie-card h3 a:hover,
.ranking-copy h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--moss-400);
}

.movie-card p {
    margin: 0 0 14px;
    min-height: 44px;
    color: var(--parchment-300);
    font-size: 14px;
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--parchment-400);
    font-size: 12px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(7, 19, 15, 0.46);
}

.category-section {
    background: rgba(42, 29, 18, 0.28);
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(240, 230, 204, 0.1);
    box-shadow: var(--shadow-soft);
    background: var(--earth-900);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 20px;
}

.tile-copy strong {
    font-size: 22px;
}

.tile-copy small {
    color: var(--parchment-300);
    line-height: 1.6;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 126px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 126px;
    padding: 14px;
    border: 1px solid rgba(240, 230, 204, 0.08);
    border-radius: 18px;
    background: rgba(42, 29, 18, 0.44);
}

.ranking-number {
    color: var(--moss-400);
    font-size: 28px;
    font-weight: 900;
}

.ranking-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--earth-800);
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-copy h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.ranking-copy p {
    margin: 0 0 10px;
    color: var(--parchment-300);
    font-size: 13px;
    line-height: 1.55;
}

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

.page-hero {
    padding: 64px 0 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--parchment-400);
    font-size: 14px;
}

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

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 32px 0 80px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(240, 230, 204, 0.08);
    border-radius: 22px;
    background: rgba(42, 29, 18, 0.44);
}

.category-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: var(--earth-800);
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 19, 15, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 2px 0 10px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--parchment-300);
    line-height: 1.7;
}

.mini-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-card-row a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--parchment-200);
    background: rgba(7, 19, 15, 0.44);
    font-size: 12px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
    gap: 28px;
    padding-top: 36px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.site-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(76, 124, 66, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    font-size: 34px;
}

.player-shell.playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(240, 230, 204, 0.08);
    border-radius: 22px;
    background: rgba(42, 29, 18, 0.48);
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--parchment-300);
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(7, 19, 15, 0.48);
}

.detail-card section {
    margin-top: 26px;
}

.detail-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-card p {
    margin: 0;
    color: var(--parchment-300);
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side .side-card {
    margin-top: 0;
}

.sticky-side {
    position: sticky;
    top: 98px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    background: var(--earth-800);
}

.side-card h2 {
    margin: 0 0 18px;
}

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

.side-card dt {
    color: var(--parchment-400);
    font-size: 13px;
}

.side-card dd {
    margin: 4px 0 0;
    color: var(--parchment-100);
    font-weight: 700;
}

.side-card dd a {
    color: var(--moss-400);
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(240, 230, 204, 0.08);
    background: rgba(7, 19, 15, 0.94);
}

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

.footer-brand p {
    max-width: 560px;
    color: var(--parchment-300);
    line-height: 1.8;
}

.footer-logo {
    margin-bottom: 18px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--parchment-300);
}

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

.footer-bottom {
    border-top: 1px solid rgba(240, 230, 204, 0.08);
}

.footer-bottom-inner {
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--parchment-400);
    font-size: 14px;
}

.card-hidden {
    display: none !important;
}

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

    .mobile-menu-button {
        display: block;
    }

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

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

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

    .sticky-side {
        position: static;
    }
}

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

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-copy {
        padding-top: 28px;
    }

    .hero-control {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -28px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-list,
    .ranking-list.large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-item {
        grid-template-columns: 44px 104px 1fr;
        gap: 12px;
    }

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

    .footer-bottom-inner {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        padding: 14px 0;
    }
}

@media (max-width: 520px) {
    .brand-subtitle {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 15px;
    }

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

    .ranking-item {
        grid-template-columns: 38px 1fr;
    }

    .ranking-thumb {
        display: none;
    }

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