:root {
    color-scheme: dark;
    --forest-950: #0a140d;
    --forest-900: #152819;
    --forest-800: #224126;
    --forest-700: #2f5a33;
    --earth-950: #1c1710;
    --earth-900: #352b1f;
    --earth-800: #4a3d2b;
    --moss-700: #455234;
    --moss-600: #59693f;
    --moss-500: #6d8350;
    --moss-400: #8a9f6e;
    --parchment-100: #f5f2ed;
    --parchment-200: #ebe4d9;
    --parchment-300: #dfd4c1;
    --parchment-400: #d3c4a9;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius-large: 28px;
    --radius-card: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(109, 131, 80, 0.22), transparent 34rem),
        linear-gradient(180deg, var(--forest-950), var(--earth-950) 56%, #0b0f0b);
    color: var(--parchment-200);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 40, 25, 0.9);
    border-bottom: 1px solid rgba(47, 90, 51, 0.72);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--parchment-100);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--moss-500), var(--forest-700));
    box-shadow: 0 10px 30px rgba(109, 131, 80, 0.35);
    font-size: 22px;
    font-weight: 800;
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: var(--parchment-300);
    font-size: 12px;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: var(--parchment-200);
    font-weight: 650;
}

.main-nav a,
.footer-links a,
.mobile-panel a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
    color: var(--parchment-100);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(109, 131, 80, 0.28);
    border-radius: 999px;
    background: rgba(53, 43, 31, 0.42);
}

.nav-search input,
.mobile-search input,
.filter-box input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--parchment-100);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.filter-box input::placeholder {
    color: rgba(223, 212, 193, 0.68);
}

.nav-search button,
.mobile-search button,
.filter-box button,
.primary-btn,
.ghost-btn,
.play-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.play-button {
    background: var(--moss-600);
    color: #ffffff;
    font-weight: 750;
}

.nav-search button {
    padding: 8px 14px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

.primary-btn:hover,
.play-button:hover,
.nav-search button:hover,
.mobile-search button:hover {
    transform: translateY(-1px);
    background: var(--moss-500);
}

.ghost-btn {
    border: 1px solid rgba(245, 242, 237, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: var(--parchment-100);
}

.ghost-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 242, 237, 0.46);
    background: rgba(255, 255, 255, 0.13);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 242, 237, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--parchment-100);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    animation: slideDown 0.28s ease both;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 0;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(53, 43, 31, 0.45);
    color: var(--parchment-200);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(53, 43, 31, 0.42);
}

.mobile-search input {
    flex: 1;
    width: auto;
}

.mobile-search button {
    padding: 10px 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    border-bottom: 1px solid rgba(47, 90, 51, 0.58);
}

.hero-track {
    position: relative;
    min-height: 72vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
    background-image:
        linear-gradient(90deg, rgba(10, 20, 13, 0.98) 0%, rgba(10, 20, 13, 0.84) 38%, rgba(10, 20, 13, 0.36) 68%, rgba(10, 20, 13, 0.94) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.68fr);
    align-items: center;
    gap: 52px;
    padding: 110px 0 88px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(138, 159, 110, 0.36);
    border-radius: 999px;
    background: rgba(34, 65, 38, 0.64);
    color: var(--parchment-300);
    font-size: 13px;
    font-weight: 750;
}

.hero h1 {
    max-width: 780px;
    margin: 20px 0 18px;
    color: var(--parchment-100);
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    color: var(--parchment-200);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.72;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.chip,
.rank-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(34, 65, 38, 0.82);
    color: var(--parchment-200);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 12px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 242, 237, 0.12);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
    background: var(--earth-900);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(245, 242, 237, 0.14);
    border-radius: 18px;
    background: rgba(10, 20, 13, 0.76);
    backdrop-filter: blur(14px);
}

.hero-poster-info strong {
    display: block;
    color: var(--parchment-100);
    font-size: 18px;
}

.hero-poster-info small {
    display: block;
    margin-top: 6px;
    color: var(--parchment-300);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-controls button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 242, 237, 0.38);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-controls button.is-active {
    width: 34px;
    background: var(--moss-400);
}

.section {
    padding: 72px 0 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head h1,
.section-head h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    color: var(--parchment-100);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head h1,
.page-title h1,
.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--parchment-300);
    line-height: 1.72;
}

.section-more {
    flex-shrink: 0;
    color: var(--moss-400);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 20px;
    border: 1px solid rgba(109, 131, 80, 0.23);
    border-radius: var(--radius-card);
    background:
        radial-gradient(circle at top right, rgba(109, 131, 80, 0.2), transparent 12rem),
        rgba(53, 43, 31, 0.42);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 159, 110, 0.58);
    background: rgba(53, 43, 31, 0.62);
}

.category-tile strong {
    display: block;
    color: var(--parchment-100);
    font-size: 22px;
}

.category-tile p {
    margin: 12px 0 18px;
    color: var(--parchment-300);
    line-height: 1.62;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 242, 237, 0.08);
    border-radius: var(--radius-card);
    background: rgba(53, 43, 31, 0.4);
    box-shadow: var(--shadow-soft);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(138, 159, 110, 0.42);
    box-shadow: var(--shadow-strong);
}

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

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

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 999px;
    background: rgba(89, 105, 63, 0.9);
    color: #ffffff;
    font-size: 24px;
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.type-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(21, 40, 25, 0.86);
    color: var(--parchment-100);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--moss-400);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--parchment-100);
    font-size: 19px;
    line-height: 1.34;
}

.movie-card h3 a:hover {
    color: var(--moss-400);
}

.movie-card p {
    min-height: 54px;
    margin: 0;
    color: var(--parchment-300);
    line-height: 1.62;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 5px 8px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 116px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(245, 242, 237, 0.08);
    border-radius: 18px;
    background: rgba(53, 43, 31, 0.42);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(138, 159, 110, 0.45);
}

.rank-num {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    background: rgba(109, 131, 80, 0.2);
    color: var(--moss-400);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 116px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    color: var(--parchment-100);
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--parchment-300);
    line-height: 1.6;
}

.rank-tag {
    width: fit-content;
    margin-top: 10px;
    padding: 6px 10px;
}

.side-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
    border: 1px solid rgba(109, 131, 80, 0.22);
    border-radius: var(--radius-card);
    background: rgba(34, 65, 38, 0.42);
    box-shadow: var(--shadow-soft);
}

.side-panel h2,
.side-panel h3 {
    margin: 0 0 14px;
    color: var(--parchment-100);
}

.side-panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(245, 242, 237, 0.08);
    color: var(--parchment-300);
}

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

.page-hero {
    padding: 86px 0 46px;
    border-bottom: 1px solid rgba(47, 90, 51, 0.48);
    background:
        radial-gradient(circle at 12% 12%, rgba(109, 131, 80, 0.24), transparent 30rem),
        rgba(10, 20, 13, 0.24);
}

.page-title .eyebrow {
    margin-bottom: 18px;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    margin: 28px 0 0;
    padding: 12px;
    border: 1px solid rgba(109, 131, 80, 0.25);
    border-radius: 20px;
    background: rgba(53, 43, 31, 0.43);
}

.filter-box input {
    width: 100%;
    min-height: 44px;
    padding: 0 6px;
}

.filter-box button {
    padding: 0 22px;
    background: var(--moss-600);
    color: #fff;
    font-weight: 800;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    border: 1px solid rgba(109, 131, 80, 0.34);
    padding: 9px 13px;
    cursor: pointer;
}

.chip:hover,
.chip.is-active {
    background: var(--moss-600);
    color: #fff;
}

.no-results {
    display: none;
    padding: 38px;
    border: 1px dashed rgba(245, 242, 237, 0.24);
    border-radius: var(--radius-card);
    color: var(--parchment-300);
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    padding: 52px 0 0;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(245, 242, 237, 0.1);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
    background: var(--earth-900);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--parchment-400);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin-bottom: 18px;
}

.detail-summary {
    color: var(--parchment-200);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span {
    padding: 8px 12px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid rgba(109, 131, 80, 0.22);
    border-radius: 16px;
    background: rgba(53, 43, 31, 0.38);
}

.detail-meta-grid span {
    display: block;
    color: var(--parchment-400);
    font-size: 13px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--parchment-100);
}

.player-section {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 242, 237, 0.12);
    border-radius: var(--radius-large);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.82)),
        var(--player-poster);
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 154px;
    min-height: 58px;
    padding: 0 28px;
    box-shadow: 0 14px 40px rgba(89, 105, 63, 0.42);
}

.content-panel {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid rgba(109, 131, 80, 0.2);
    border-radius: var(--radius-card);
    background: rgba(53, 43, 31, 0.36);
}

.content-panel h2 {
    margin: 0 0 14px;
    color: var(--parchment-100);
    font-size: 28px;
}

.content-panel p {
    margin: 0 0 18px;
    color: var(--parchment-200);
    line-height: 1.86;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(47, 90, 51, 0.55);
    background: rgba(10, 20, 13, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    padding: 36px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--parchment-100);
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 680px;
    margin: 0;
    color: var(--parchment-300);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--parchment-300);
    font-weight: 700;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(245, 242, 237, 0.08);
    color: var(--parchment-400);
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1060px) {
    .main-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        min-height: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero,
    .hero-track,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-inner {
        gap: 30px;
        padding: 70px 0 82px;
    }

    .hero-poster-info {
        position: static;
        margin: 12px;
    }

    .section {
        padding-top: 54px;
    }

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

    .category-grid,
    .movie-grid,
    .detail-meta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-num {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 16px;
    }

    .rank-item img {
        width: 96px;
    }

    .filter-box {
        grid-template-columns: 1fr;
    }

    .filter-box button {
        min-height: 44px;
    }
}
