:root {
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --green-50: #ecfdf5;
    --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 14px 35px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--green-900), var(--green-800));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--green-950);
    background: var(--green-100);
    font-size: 16px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.brand-text small,
.footer-brand small {
    display: block;
    color: #bbf7d0;
    font-size: 12px;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    white-space: nowrap;
}

.nav-link {
    color: #dcfce7;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #86efac;
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    outline: none;
}

.header-search input,
.mobile-search input {
    width: 190px;
    color: var(--white);
    background: rgba(6, 95, 70, 0.92);
    padding: 9px 12px;
}

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

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--green-700);
    padding: 9px 14px;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--green-600);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 11px;
    font-size: 20px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
}

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

.mobile-menu nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.62));
    backdrop-filter: saturate(115%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
    color: var(--white);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #86efac;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 18px var(--green-500);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 26px;
    color: #d1d5db;
    font-size: 18px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 5px 12px;
    color: #dcfce7;
    background: rgba(5, 150, 105, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.primary-btn {
    color: var(--white);
    background: var(--green-600);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.35);
}

.primary-btn:hover {
    background: var(--green-700);
    transform: translateY(-2px);
}

.ghost-btn {
    color: #dcfce7;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.5), rgba(17, 24, 39, 0.8));
}

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

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

.hero-dots button {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    background: var(--green-500);
}

.quick-panel {
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

.quick-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-grid h2 {
    margin: 0 0 6px;
    font-size: 25px;
}

.quick-grid p {
    margin: 0;
    color: var(--gray-600);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--green-800);
    background: var(--green-50);
    border: 1px solid #bbf7d0;
    font-weight: 700;
}

.page-section {
    padding: 70px 0;
}

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

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
}

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

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

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

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

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

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #111827);
}

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

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

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

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(5, 150, 105, 0.92);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 8px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
}

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

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--green-800);
    background: var(--green-50);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-wide .card-cover img {
    aspect-ratio: 16 / 9;
}

.movie-card-wide .card-body h3 {
    font-size: 22px;
}

.category-stack {
    display: grid;
    gap: 52px;
}

.category-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 14px;
}

.category-block-head h3 {
    margin: 0 0 4px;
    font-size: 26px;
}

.category-block-head p {
    margin: 0;
    color: var(--gray-600);
}

.category-block-head a {
    color: var(--green-700);
    font-weight: 800;
    white-space: nowrap;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.38), transparent 32%), linear-gradient(135deg, var(--green-950), var(--gray-900));
    padding: 76px 0;
}

.page-hero p {
    margin: 0 0 10px;
    color: #86efac;
    font-weight: 800;
    letter-spacing: 0.12em;
}

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

.hero-line {
    max-width: 820px;
    margin-top: 18px;
    color: #d1d5db;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    color: #d1fae5;
    font-size: 14px;
}

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

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

.collection-card a {
    display: block;
    min-height: 250px;
    border-radius: var(--radius-lg);
    padding: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.collection-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.collection-card p {
    margin: 0 0 18px;
    color: var(--gray-600);
}

.collection-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.collection-links a,
.collection-links a:visited {
    color: var(--green-700);
}

.collection-links a {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--green-50);
    font-size: 13px;
}

.collection-card span {
    color: var(--green-700);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 170px 170px;
    gap: 12px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    padding: 16px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    color: var(--gray-900);
    background: var(--gray-50);
    border-color: var(--gray-200);
    padding: 11px 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 150px 160px 88px;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 14px 18px;
    background: var(--white);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(3px);
    box-shadow: var(--soft-shadow);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--green-700);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
    padding: 78px 0;
}

.detail-backdrop,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.36);
    transform: scale(1.08);
}

.detail-mask {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.9));
}

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

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--green-900), var(--gray-900));
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
}

.large-tags span {
    color: #dcfce7;
    background: rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.32);
}

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(5, 150, 105, 0.36), rgba(0, 0, 0, 0.52));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.42);
    font-size: 32px;
    padding-left: 4px;
}

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

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

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

.content-card {
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
}

.info-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-card div {
    border-radius: 12px;
    padding: 14px;
    background: var(--gray-50);
}

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

.info-card dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.info-card a {
    color: var(--green-700);
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(180deg, var(--gray-900), #000000);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid p {
    max-width: 360px;
    color: #9ca3af;
    font-size: 14px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.footer-grid ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

.is-hidden-card {
    display: none !important;
}

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

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

    .hero-content {
        grid-template-columns: 1fr 230px;
        gap: 30px;
    }

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

    .featured-grid,
    .collection-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .rank-row span:nth-child(4),
    .rank-row span:nth-child(5) {
        display: none;
    }
}

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

    .header-inner {
        min-height: 60px;
    }

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

    .mobile-search input {
        width: 100%;
        flex: 1;
    }

    .hero {
        height: auto;
        min-height: 660px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 48px;
        padding-bottom: 86px;
    }

    .hero-poster {
        display: none;
    }

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

    .quick-grid,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        margin-top: 0;
        padding-top: 16px;
    }

    .page-section {
        padding: 48px 0;
    }

    .section-heading,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .collection-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-hero {
        padding: 44px 0;
    }

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

    .info-card dl {
        grid-template-columns: 1fr;
    }

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

    .rank-row span:nth-child(3) {
        display: none;
    }
}
