
:root {
    --green-900: #052e16;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --emerald-600: #059669;
    --teal-600: #0d9488;
    --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;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: min(1200px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--green-700), var(--green-600), var(--emerald-600));
    box-shadow: 0 10px 30px rgba(6, 95, 70, 0.24);
}

.site-header__inner {
    width: var(--container);
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--green-700);
    background: var(--white);
    box-shadow: inset 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.brand__text {
    font-size: 20px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #dcfce7;
    opacity: 1;
}

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

.header-search input,
.mobile-search input,
.quick-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(255, 255, 255, 0.20);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--white);
    background: rgba(5, 46, 22, 0.36);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.quick-search input::placeholder {
    color: #bbf7d0;
}

.header-search button,
.mobile-search button,
.quick-search button {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    color: var(--green-700);
    background: var(--white);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--emerald-600), var(--teal-600));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.65s ease, transform 0.65s ease;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.84), rgba(3, 7, 18, 0.34), rgba(3, 7, 18, 0.78)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(34, 197, 94, 0.34), transparent 38%);
}

.hero-slide__content {
    position: relative;
    z-index: 3;
    width: var(--container);
    margin: 0 auto;
    max-width: 760px;
    padding: 90px 0;
}

.eyebrow,
.section-heading span,
.page-hero span,
.ranking-panel__head span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #bbf7d0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.hero-slide h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-slide p {
    max-width: 680px;
    margin: 0 0 32px;
    color: #ecfdf5;
    font-size: clamp(17px, 2vw, 23px);
}

.hero-actions,
.detail-copy .btn {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--green-700);
    background: var(--white);
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.hero-control--prev {
    left: 24px;
}

.hero-control--next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--white);
}

.quick-search-section {
    width: var(--container);
    margin: -54px auto 0;
    position: relative;
    z-index: 6;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-xl);
    padding: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--emerald-600));
    box-shadow: var(--shadow);
}

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

.quick-search-card p {
    color: #dcfce7;
}

.quick-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.16);
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 72px 0;
}

.section--white,
.section--soft {
    width: 100%;
    margin: 0;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
}

.section--white {
    background: var(--white);
}

.section--soft {
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.section-heading--row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.section-heading h2,
.page-hero h1,
.ranking-panel__head h2,
.story-block h2 {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.14;
}

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

.section-heading p,
.page-hero p,
.story-block p {
    margin: 10px 0 0;
    color: var(--gray-600);
}

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

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

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

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 178px;
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-500), var(--emerald-600));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.20);
}

.category-tile strong {
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: #ecfdf5;
    font-size: 14px;
}

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

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

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

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

.movie-card__link {
    display: grid;
    height: 100%;
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-card__badge,
.movie-card__year {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--white);
    background: rgba(22, 163, 74, 0.92);
}

.movie-card__badge {
    left: 12px;
}

.movie-card__year {
    right: 12px;
    background: rgba(3, 7, 18, 0.68);
}

.movie-card__body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-card__body h2,
.movie-card__body h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.28;
}

.movie-card__body p {
    min-height: 48px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-card__meta,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.movie-card__meta span,
.movie-card__tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--green-700);
    background: #dcfce7;
    font-size: 12px;
    font-weight: 700;
}

.movie-card__meta span {
    color: var(--gray-600);
    background: var(--gray-100);
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    border-radius: var(--radius-xl);
    padding: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.ranking-panel--long {
    max-height: calc(100vh - 120px);
    overflow: auto;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ecfdf5;
    transform: translateX(3px);
}

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

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    min-width: 0;
}

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

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

.rank-heat {
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--emerald-600));
}

.page-hero > div {
    width: var(--container);
    margin: 0 auto;
    padding: 76px 0;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    color: #ecfdf5;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(160px, 0.6fr);
    gap: 14px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #f0fdf4;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    color: var(--gray-900);
    border-color: #bbf7d0;
    background: var(--white);
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--gray-600);
    text-align: center;
    background: var(--gray-50);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    width: var(--container);
    margin: 0 auto;
    padding: 66px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--green-700), var(--gray-900));
    box-shadow: var(--shadow);
}

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

.detail-copy {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--green-700);
    font-weight: 800;
}

.detail-copy h1 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: var(--gray-600);
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.player-section {
    width: var(--container);
    margin: 0 auto 36px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: none;
    color: var(--white);
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.70));
    cursor: pointer;
}

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

.play-symbol {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--white);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

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

.story-block {
    border-radius: var(--radius-lg);
    padding: 26px;
    background: #f8fafc;
}

.story-block + .story-block {
    margin-top: 18px;
}

.info-panel {
    display: grid;
    gap: 12px;
    align-self: start;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: #ecfdf5;
}

.info-panel div {
    display: grid;
    gap: 4px;
}

.info-panel strong {
    color: var(--green-800);
}

.info-panel span,
.info-panel a {
    color: var(--gray-700);
}

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

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    max-width: 480px;
    margin: 0;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px;
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 1100px) {
    .category-grid,
    .movie-grid,
    .movie-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .ranking-panel {
        position: static;
    }
}

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

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

    .site-header__inner {
        gap: 12px;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-slide__content {
        padding: 80px 0;
    }

    .quick-search-card,
    .filter-bar,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .section-heading--row {
        display: block;
    }
}

@media (max-width: 580px) {
    .brand__text {
        font-size: 17px;
    }

    .hero-control {
        display: none;
    }

    .quick-search-section {
        margin-top: -36px;
    }

    .quick-search-card {
        padding: 20px;
    }

    .section,
    .section--white,
    .section--soft {
        padding-top: 50px;
        padding-bottom: 50px;
    }

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

    .movie-card__poster {
        aspect-ratio: 16 / 10;
    }

    .rank-item {
        grid-template-columns: 30px 48px minmax(0, 1fr);
    }

    .rank-heat {
        display: none;
    }

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