:root {
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    --radius: 24px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: #f8fafc;
}

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

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

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 46%, #ecfdf5 100%);
    border-bottom: 1px solid rgba(22, 163, 74, 0.15);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 16px 35px rgba(22, 101, 52, 0.28);
}

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

.brand-text strong {
    font-size: 22px;
    color: var(--green-900);
    letter-spacing: 0.02em;
}

.brand-text em {
    font-style: normal;
    font-size: 12px;
    color: var(--green-700);
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--slate-700);
    transition: 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-800);
    background: rgba(22, 163, 74, 0.09);
}

.search-form,
.search-page-form,
.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input,
.search-page-form input,
.filter-box input,
.card-search,
.filter-select {
    width: 100%;
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    background: #ffffff;
    color: var(--slate-900);
    transition: 0.2s ease;
}

.search-form input:focus,
.search-page-form input:focus,
.filter-box input:focus,
.card-search:focus,
.filter-select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.search-form button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--green-700);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.header-search {
    width: 310px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--green-900);
    font-size: 22px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(22, 163, 74, 0.12);
}

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

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--green-950);
}

.hero-track {
    position: relative;
    min-height: 640px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 30%, rgba(251, 191, 36, 0.36), transparent 30%),
        linear-gradient(115deg, rgba(5, 46, 22, 0.96), rgba(6, 78, 59, 0.86) 48%, rgba(120, 53, 15, 0.74));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    padding: 84px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    gap: 42px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(22, 163, 74, 0.14);
    color: var(--green-700);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-kicker {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.pill-links a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.tag-row span {
    background: #ecfdf5;
    color: var(--green-800);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.large-tags span {
    font-size: 14px;
    padding: 8px 14px;
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(22, 101, 52, 0.25);
    cursor: pointer;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(22, 101, 52, 0.32);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: #fbbf24;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 24px;
}

.muted-section {
    max-width: none;
    background: #ffffff;
}

.muted-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.side-panel h2,
.story-card h2 {
    margin: 12px 0 10px;
    color: var(--slate-950);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.035em;
}

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

.section-more,
.text-link {
    color: var(--green-800);
    background: #ecfdf5;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #052e16;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.poster-badge {
    left: 12px;
    top: 12px;
    background: rgba(22, 101, 52, 0.92);
}

.poster-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.82);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 17px;
}

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

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--slate-950);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h2 a:hover {
    color: var(--green-700);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--slate-500);
    font-size: 14px;
    line-height: 1.65;
}

.movie-desc {
    display: -webkit-box;
    min-height: 46px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-row {
    margin-top: 14px;
}

.movie-card .tag-row span {
    font-size: 12px;
    padding: 5px 9px;
}

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

.category-tile,
.category-overview-card,
.side-panel,
.story-card {
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.category-tile {
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(22, 163, 74, 0.94), rgba(6, 78, 59, 0.94)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.5), transparent 34%);
    color: #ffffff;
    transition: 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    margin: 18px 0;
    color: #d1fae5;
    font-size: 14px;
    line-height: 1.7;
}

.category-tile em {
    min-height: 40px;
    color: #fef3c7;
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
}

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

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

.compact-movie {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.compact-movie img {
    width: 76px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.compact-movie strong,
.compact-movie em {
    display: block;
}

.compact-movie strong {
    color: var(--slate-950);
    font-weight: 900;
}

.compact-movie em {
    margin-top: 6px;
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
}

.side-panel {
    position: sticky;
    top: 104px;
    padding: 28px;
    background:
        linear-gradient(180deg, #ffffff, #f0fdf4);
}

.filter-box {
    margin: 22px 0;
    flex-direction: column;
    align-items: stretch;
}

.pill-links a {
    background: #ecfdf5;
    color: var(--green-800);
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 70px 24px;
    background:
        radial-gradient(circle at 74% 20%, rgba(251, 191, 36, 0.28), transparent 32%),
        linear-gradient(135deg, #052e16, #166534 54%, #78350f);
    color: #ffffff;
    overflow: hidden;
}

.page-hero > div,
.detail-hero > * {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

.page-hero h1,
.detail-copy h1 {
    color: #ffffff;
}

.page-hero p,
.detail-one-line {
    max-width: 850px;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-poster-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    background: var(--green-950);
}

.category-poster-strip img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.category-overview-card > div {
    padding: 22px;
}

.category-overview-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.category-overview-card p {
    min-height: 78px;
    margin: 0 0 18px;
    color: var(--slate-500);
    line-height: 1.7;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.local-search {
    width: min(100%, 560px);
}

.filter-select {
    width: 180px;
    border-radius: 18px;
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--slate-500);
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.empty-state.show {
    display: block;
}

.search-page-form {
    max-width: 640px;
    margin-top: 24px;
}

.detail-hero {
    padding-top: 36px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #bbf7d0;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

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

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

.detail-meta div {
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta dt {
    color: #bbf7d0;
    font-size: 13px;
}

.detail-meta dd {
    margin: 6px 0 0;
    color: #ffffff;
    font-weight: 900;
}

.player-section {
    padding-bottom: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.58));
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-start span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    font-size: 34px;
    padding-left: 6px;
    box-shadow: 0 20px 45px rgba(22, 101, 52, 0.38);
}

.player-start strong {
    font-size: 18px;
}

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

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

.story-card {
    padding: 30px;
}

.story-card h2 {
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.95;
}

.site-footer {
    background: var(--slate-950);
    color: #cbd5e1;
    padding: 58px 24px 26px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 26px;
    font-weight: 950;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #86efac;
}

.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #94a3b8;
    font-size: 14px;
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

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

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .side-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: 68px;
        padding: 0 16px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero-carousel,
    .hero-track,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 60px 18px 86px;
        gap: 26px;
    }

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

    .hero-actions,
    .section-heading,
    .toolbar,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .content-section {
        padding: 54px 16px;
    }

    .movie-grid,
    .archive-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-list,
    .detail-article,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .filter-select,
    .local-search {
        width: 100%;
    }

    .page-hero,
    .detail-hero {
        padding: 48px 16px;
    }

    .detail-poster {
        max-width: 270px;
    }

    .story-card {
        padding: 24px;
    }
}
