* {
    box-sizing: border-box;
}

:root {
    --green-950: #022c22;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-300: #6ee7b7;
    --green-100: #d1fae5;
    --gray-950: #020617;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--green-800), var(--green-600));
    box-shadow: 0 10px 35px rgba(6, 95, 70, 0.28);
}

.nav-wrap {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand {
    color: var(--white);
    font-size: 21px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 16px;
    border-radius: 13px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 10px;
}

.hero {
    position: relative;
    min-height: 620px;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.35), transparent 34%), linear-gradient(135deg, #022c22 0%, #064e3b 52%, #0f766e 100%);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    max-width: 1180px;
    min-height: 620px;
    margin: 0 auto;
    padding: 58px 22px 86px;
}

.hero-slide {
    position: absolute;
    inset: 58px 22px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: -58px -22px -86px;
    opacity: 0.18;
    filter: blur(18px);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: var(--green-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(236, 253, 245, 0.88);
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
}

.btn.wide {
    width: 100%;
    margin-top: 18px;
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

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

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 44, 34, 0.82);
    color: #ffffff;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 22px;
    bottom: 40px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: #ffffff;
}

.section-wrap,
.page-hero,
.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.section-wrap {
    padding-top: 58px;
    padding-bottom: 20px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: center;
    margin-top: -42px;
    padding-top: 28px;
    padding-bottom: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel p {
    margin-top: 6px;
    color: var(--gray-600);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px 8px 18px;
    border-radius: 16px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-900);
}

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

.section-title-row h2,
.rank-panel h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
}

.section-title-row h2 {
    font-size: 32px;
    letter-spacing: -0.03em;
}

.section-more {
    color: var(--green-700);
    font-weight: 800;
}

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

.category-badge,
.category-panel {
    display: block;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-badge {
    padding: 20px;
}

.category-badge:hover,
.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-badge span {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--gray-900);
}

.category-badge small {
    display: block;
    margin-top: 8px;
    color: var(--gray-500);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
}

.dense .poster-link {
    height: 210px;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(110, 231, 183, 0.38), transparent 40%), linear-gradient(135deg, var(--green-800), var(--gray-900));
}

.poster-link img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-year,
.poster-region {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-year {
    right: 12px;
    background: var(--green-600);
}

.poster-region {
    left: 12px;
    background: rgba(2, 44, 34, 0.78);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

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

.movie-card-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tags span,
.detail-tags a {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 13px;
}

.rank-panel {
    position: sticky;
    top: 90px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--green-900), var(--green-950));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
}

.compact-item strong {
    color: var(--green-300);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
    align-items: end;
    padding-top: 70px;
    padding-bottom: 70px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.28), transparent 36%), linear-gradient(135deg, var(--green-950), var(--green-700));
    max-width: none;
}

.page-hero > div,
.page-hero > label {
    max-width: 1180px;
}

.simple-hero > div,
.category-hero > div,
.search-hero > div {
    padding-left: max(22px, calc((100vw - 1180px) / 2 + 22px));
}

.hero-search {
    width: min(420px, calc(100% - 44px));
    margin-right: max(22px, calc((100vw - 1180px) / 2 + 22px));
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-search input {
    color: #ffffff;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(236, 253, 245, 0.86);
}

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

.category-panel {
    padding: 24px;
}

.category-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--gray-900);
    font-weight: 900;
    font-size: 22px;
}

.category-panel-title strong {
    color: var(--green-700);
    font-size: 14px;
}

.category-panel p {
    color: var(--gray-600);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 60px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-row.medal {
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

.rank-num {
    color: var(--green-700);
    font-size: 28px;
    font-weight: 900;
}

.rank-thumb {
    height: 110px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--gray-600);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    filter: blur(16px);
}

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

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 64px;
}

.detail-poster {
    height: 440px;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    margin: 20px 0 0;
    color: rgba(236, 253, 245, 0.9);
    font-size: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.detail-tags {
    margin-top: 20px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.48));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.38);
    font-size: 30px;
}

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

.detail-text article {
    padding: 26px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-text h2 {
    margin: 0 0 14px;
}

.detail-text p {
    margin: 0;
    color: var(--gray-700);
}

.site-footer {
    margin-top: 58px;
    background: linear-gradient(180deg, var(--green-900), var(--green-950));
    color: #ffffff;
}

.footer-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 22px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--green-300);
    font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(236, 253, 245, 0.74);
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1050px) {
    .hero-slide,
    .detail-wrap,
    .split-layout,
    .search-panel,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .rank-panel {
        position: static;
    }

    .hero-search {
        margin-left: max(22px, calc((100vw - 1180px) / 2 + 22px));
    }
}

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

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: var(--green-900);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 12px 14px;
    }

    .hero,
    .hero-slider {
        min-height: 560px;
    }

    .hero-slide {
        inset: 48px 22px 78px;
    }

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

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

    .section-title-row,
    .rank-row {
        align-items: stretch;
    }

    .section-title-row {
        flex-direction: column;
    }

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

    .poster-link,
    .dense .poster-link {
        height: 280px;
    }

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

    .rank-row .btn {
        grid-column: 1 / -1;
    }

    .detail-wrap {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .detail-poster {
        width: 220px;
        height: 310px;
    }
}
