* {
    box-sizing: border-box;
}

:root {
    --green-950: #052e16;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --yellow: #fde047;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
    --soft-shadow: 0 14px 32px rgba(17, 24, 39, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--green-50), var(--gray-50) 28%, var(--white));
    line-height: 1.65;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--green-800), var(--green-900));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(5, 46, 22, 0.22);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo {
    font-size: 21px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.24));
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--green-100);
    transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.big-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search {
    position: relative;
    width: 260px;
}

.nav-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 10px 42px 10px 16px;
    color: var(--white);
    background: rgba(20, 83, 45, 0.82);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(220, 252, 231, 0.78);
}

.nav-search button {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: var(--green-100);
    background: rgba(22, 163, 74, 0.28);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(5, 46, 22, 0.42);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(20, 83, 45, 0.72);
    color: var(--green-50);
    font-weight: 650;
}

.mobile-search input {
    padding-right: 16px;
}

.mobile-search button,
.big-search button,
.inline-filter button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    background: var(--green-600);
    font-weight: 750;
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    overflow: hidden;
    background: var(--green-950);
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

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

.hero-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.06);
}

.hero-overlay {
    background:
        radial-gradient(circle at 75% 15%, rgba(253, 224, 71, 0.28), transparent 24%),
        linear-gradient(90deg, rgba(5, 46, 22, 0.96) 0%, rgba(20, 83, 45, 0.82) 42%, rgba(17, 24, 39, 0.62) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.42), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 68px);
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
    align-items: center;
    gap: 42px;
    padding: 56px 0 76px;
    color: var(--white);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 8px 14px;
    color: var(--green-950);
    background: var(--yellow);
    box-shadow: 0 10px 30px rgba(253, 224, 71, 0.28);
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.hero p {
    max-width: 680px;
    margin: 0;
    font-size: clamp(17px, 2.2vw, 22px);
    color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.detail-meta,
.movie-meta-line,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: var(--green-50);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
}

.primary-btn {
    color: var(--green-950);
    background: var(--yellow);
    box-shadow: 0 18px 36px rgba(253, 224, 71, 0.28);
}

.secondary-btn {
    color: var(--white);
    background: var(--green-600);
    box-shadow: 0 18px 36px rgba(22, 163, 74, 0.22);
}

.ghost-btn {
    color: var(--green-50);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    aspect-ratio: 4 / 5.4;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 36px 80px rgba(3, 7, 18, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(2deg);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 56px;
    background: var(--yellow);
}

.section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.section-raised {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

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

.compact-head {
    margin-bottom: 16px;
}

.section-kicker {
    color: var(--green-700);
    background: var(--green-100);
    padding: 6px 12px;
}

.section h2,
.page-hero h1,
.detail-copy h1,
.text-panel h2 {
    margin: 10px 0 0;
    color: var(--gray-900);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section h2,
.page-hero h1 {
    font-size: clamp(28px, 4.8vw, 48px);
}

.section-more {
    padding: 10px 16px;
    color: var(--green-700);
    background: var(--green-100);
}

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

.category-chip,
.category-overview-card,
.rank-panel,
.search-panel,
.text-panel,
.player-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.92);
}

.category-chip {
    min-height: 132px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.category-chip span,
.category-title {
    color: var(--green-800);
    font-size: 20px;
    font-weight: 850;
}

.category-chip small,
.category-overview-card p,
.search-panel p {
    color: var(--gray-500);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.62), transparent 52%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--green-600);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.28);
}

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

.movie-meta-line span {
    color: var(--green-800);
    background: var(--green-50);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-row:hover strong,
.mini-links a:hover {
    color: var(--green-700);
}

.movie-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.movie-card-compact h3 {
    font-size: 16px;
}

.movie-card-compact p {
    display: none;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.64fr);
    gap: 22px;
    align-items: start;
}

.rank-panel,
.search-panel {
    padding: 24px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: var(--green-50);
}

.rank-number {
    color: var(--green-700);
    font-weight: 900;
    font-size: 18px;
    text-align: center;
}

.rank-thumb {
    width: 58px;
    aspect-ratio: 1;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

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

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info strong {
    color: var(--gray-900);
    font-size: 15px;
}

.rank-info em {
    margin-top: 2px;
    color: var(--gray-500);
    font-style: normal;
    font-size: 13px;
}

.search-panel {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(253, 224, 71, 0.22), transparent 36%),
        linear-gradient(135deg, var(--white), var(--green-50));
}

.big-search {
    margin-top: 22px;
}

.big-search input,
.inline-filter input,
.inline-filter select {
    min-height: 48px;
    border: 1px solid var(--gray-200);
    outline: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--white);
    color: var(--gray-900);
}

.big-search input {
    flex: 1;
    min-width: 0;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    border-radius: 34px;
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 44px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 260px;
    background:
        radial-gradient(circle at top right, rgba(253, 224, 71, 0.24), transparent 28%),
        linear-gradient(135deg, var(--green-900), var(--green-700));
}

.page-hero .section-kicker {
    color: var(--green-950);
    background: var(--yellow);
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

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

.inline-filter {
    flex-wrap: wrap;
    margin-top: 24px;
}

.inline-filter input {
    min-width: 260px;
}

.category-overview-card {
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card p {
    min-height: 78px;
    margin: 10px 0 16px;
}

.mini-links {
    display: grid;
    gap: 8px;
}

.mini-links a {
    overflow: hidden;
    color: var(--gray-800);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-hero {
    min-height: 540px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.detail-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 58px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    margin-top: 42px;
}

.detail-poster {
    aspect-ratio: 4 / 5.4;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-copy h1 {
    max-width: 920px;
    margin-top: 18px;
    color: var(--white);
    font-size: clamp(34px, 6vw, 70px);
}

.detail-one-line {
    max-width: 900px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    color: var(--green-50);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-cloud {
    margin-top: 18px;
}

.tag {
    color: var(--green-900);
    background: var(--green-100);
}

.player-section {
    padding-top: 38px;
    padding-bottom: 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: var(--gray-950);
    border: 0;
    box-shadow: 0 30px 80px rgba(3, 7, 18, 0.28);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(22, 163, 74, 0.36), rgba(3, 7, 18, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    color: var(--green-950);
    background: var(--yellow);
    font-size: 30px;
    box-shadow: 0 18px 48px rgba(253, 224, 71, 0.28);
}

.play-layer strong {
    font-size: 18px;
}

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

.text-panel {
    padding: 28px;
}

.text-panel h2 {
    font-size: 28px;
}

.text-panel p {
    margin: 16px 0 0;
    color: var(--gray-700);
    font-size: 17px;
}

.empty-state {
    display: none;
    margin: 28px auto 0;
    width: min(560px, 100%);
    padding: 24px;
    text-align: center;
    border-radius: var(--radius-xl);
    color: var(--gray-500);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--gray-900), var(--green-950));
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    margin: 0 auto;
    color: var(--white);
    font-size: 22px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

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

.footer-inner p {
    margin: 0;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-search {
        width: 220px;
    }

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

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

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

    .header-inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-content {
        padding-top: 34px;
        gap: 26px;
    }

    .hero-poster {
        max-width: 360px;
        width: 70%;
        transform: none;
    }

    .detail-poster {
        width: min(300px, 78vw);
    }

    .wide-rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .mobile-panel,
    .section,
    .page-hero,
    .detail-wrap,
    .footer-inner {
        width: min(100% - 22px, 1280px);
    }

    .hero-content {
        width: min(100% - 22px, 1280px);
    }

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

    .hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-actions,
    .big-search,
    .inline-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .ghost-btn,
    .big-search button,
    .inline-filter input,
    .inline-filter select {
        width: 100%;
    }

    .page-hero {
        border-radius: 24px;
        padding: 28px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 38px 52px minmax(0, 1fr);
    }

    .mobile-panel nav {
        grid-template-columns: 1fr;
    }
}
