:root {
    --green-950: #052e16;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --yellow-300: #fde047;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.18);
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 36%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--green-700), var(--green-950));
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 20px;
}

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

.brand-icon {
    font-size: 28px;
    line-height: 1;
}

.brand-text {
    font-size: 21px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
    color: #bbf7d0;
}

.nav-search,
.mobile-search,
.feature-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.feature-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: inset 0 0 0 1px transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
    width: 190px;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(20, 83, 45, 0.72);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: #86efac;
}

.nav-search input:focus,
.mobile-search input:focus,
.feature-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.nav-search button,
.mobile-search button,
.feature-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-search button,
.feature-search button,
.primary-button {
    color: var(--green-900);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-search button:hover,
.mobile-search button:hover,
.feature-search button:hover,
.primary-button:hover {
    background: var(--green-100);
    transform: translateY(-1px);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.hero-section {
    position: relative;
    min-height: 540px;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(120deg, var(--green-900), var(--green-700) 48%, var(--green-950));
}

.hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(68px);
    opacity: 0.24;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero-glow-left {
    top: 52px;
    left: 7vw;
    background: var(--white);
}

.hero-glow-right {
    right: 7vw;
    bottom: 60px;
    background: var(--yellow-300);
    animation-delay: 1.2s;
}

.hero-shell {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 48px;
    padding: 40px 0 72px;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--green-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow,
.feature-panel .eyebrow {
    color: #bbf7d0;
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.hero-description {
    max-width: 680px;
    margin: 0 0 22px;
    color: #dcfce7;
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.42));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 82px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 32px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    background: var(--white);
}

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 90px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: var(--green-50);
}

.content-section,
.highlight-section,
.rank-and-feature {
    padding: 68px 0;
}

.highlight-section {
    background: linear-gradient(90deg, var(--green-100), var(--green-50));
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-100), #ffffff);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.48));
    opacity: 0;
    transition: opacity 0.24s ease;
}

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

.poster-category,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.poster-category {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: var(--green-600);
}

.rank-badge {
    right: 12px;
    bottom: 12px;
    min-width: 34px;
    padding: 6px 10px;
    text-align: center;
    background: var(--gray-900);
}

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

.movie-card-body h3 {
    margin: 0 0 9px;
    color: var(--gray-800);
    font-size: 19px;
    line-height: 1.28;
}

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

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 12px;
}

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

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

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

.category-tile,
.category-card a {
    display: grid;
    gap: 10px;
    min-height: 150px;
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.category-card a:hover {
    transform: translateY(-4px);
    background: var(--green-50);
    box-shadow: var(--shadow-md);
}

.category-tile strong,
.category-card h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 22px;
}

.category-number,
.category-card span {
    color: var(--green-700);
    font-weight: 900;
}

.category-tile em,
.category-card em,
.category-card p {
    color: var(--gray-600);
    font-style: normal;
    font-size: 14px;
}

.rank-and-feature {
    color: var(--white);
    background: linear-gradient(90deg, var(--green-700), var(--green-950));
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: stretch;
}

.rank-panel,
.feature-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.rank-panel .section-heading h2,
.feature-panel h2 {
    color: var(--white);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
}

.rank-row span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--green-950);
    font-weight: 900;
    background: var(--white);
}

.rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: #bbf7d0;
    font-style: normal;
    font-size: 13px;
}

.feature-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.feature-panel p {
    color: #dcfce7;
}

.feature-search {
    margin-top: 26px;
}

.feature-search input {
    border: 0;
}

.page-main {
    background: #ffffff;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(120deg, var(--green-900), var(--green-700), var(--green-950));
}

.compact-hero {
    padding: 66px 0;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
    max-width: 820px;
    margin: 0;
    color: #dcfce7;
    font-size: 18px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-panel span {
    color: var(--green-700);
    font-weight: 900;
    white-space: nowrap;
}

.breadcrumb-bar {
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: var(--gray-600);
    font-size: 14px;
}

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

.breadcrumb em {
    color: var(--gray-800);
    font-style: normal;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 30px;
    padding: 34px 0;
}

.detail-main {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--gray-950);
    box-shadow: var(--shadow-lg);
}

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

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

.play-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: var(--green-900);
    font-size: 34px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.play-overlay strong {
    font-size: 22px;
}

.play-overlay em {
    color: #bbf7d0;
    font-style: normal;
}

.player-card.is-playing .play-overlay {
    visibility: hidden;
    opacity: 0;
}

.detail-card,
.side-card {
    border-radius: 20px;
    padding: 26px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.detail-intro {
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 700;
}

.prose-block {
    margin-top: 26px;
}

.prose-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 23px;
}

.prose-block p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.9;
}

.review-block {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

.review-block p {
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--green-50);
    font-style: italic;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.poster-side-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    object-fit: cover;
    background: var(--green-50);
}

.wide-button {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: var(--white);
    background: var(--green-700);
}

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

.side-card div {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
}

.side-card div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

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

.side-card dd {
    margin: 4px 0 0;
    color: var(--gray-800);
    font-weight: 800;
}

.related-section {
    background: var(--gray-100);
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(90deg, var(--gray-950), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 34px;
    padding: 52px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p,
.site-footer ul {
    margin: 0;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--green-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-300);
}

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

@keyframes pulseGlow {
    from {
        transform: scale(0.92);
        opacity: 0.18;
    }
    to {
        transform: scale(1.08);
        opacity: 0.32;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .movie-grid,
    .movie-grid.four-cols,
    .category-grid,
    .large-category-grid,
    .split-grid,
    .detail-shell,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-shell {
        align-items: start;
    }
}

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

    .nav-search {
        display: none;
    }

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

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

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

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

    .hero-controls {
        bottom: 62px;
    }

    .movie-grid,
    .movie-grid.four-cols,
    .category-grid,
    .large-category-grid,
    .split-grid,
    .detail-shell,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .content-section,
    .highlight-section,
    .rank-and-feature {
        padding: 44px 0;
    }

    .compact-hero {
        padding: 46px 0;
    }

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

    .rank-row em {
        grid-column: 2;
    }

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