:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --amber-400: #fbbf24;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 42%, var(--gray-50) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-600);
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--emerald-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--gray-900);
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 0 24px 22px;
    font-weight: 700;
    color: var(--gray-600);
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(16, 185, 129, 0.42), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.84) 70%, rgba(15, 23, 42, 0.98));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 70vh;
    align-items: flex-end;
    padding-top: 96px;
    padding-bottom: 76px;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.badge,
.hero-badges span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-badges span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-badges .primary {
    background: var(--emerald-600);
    border-color: var(--emerald-500);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button-primary {
    color: var(--white);
    background: var(--emerald-600);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.28);
}

.button-primary:hover {
    background: var(--emerald-700);
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--emerald-500);
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 42px 0;
}

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

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.section-head p,
.page-hero p,
.detail-title p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100), var(--emerald-50));
}

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

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

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

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

.movie-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 9px;
    color: var(--white);
    background: var(--emerald-600);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.movie-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--white);
    background: rgba(16, 185, 129, 0.86);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--emerald-600);
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.meta-pill {
    padding: 5px 9px;
    color: var(--emerald-700);
    background: var(--emerald-50);
}

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

.category-card {
    min-height: 172px;
    padding: 22px;
    background: linear-gradient(135deg, var(--white), var(--emerald-50));
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 14px;
}

.category-card span {
    color: var(--emerald-600);
    font-weight: 900;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: var(--gray-900);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.rank-item {
    display: grid;
    grid-template-columns: 40px 58px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    color: var(--white);
    border-radius: 16px;
    transition: background 0.22s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rank-num {
    color: var(--amber-400);
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.rank-copy {
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    line-height: 1.35;
}

.rank-copy em {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    padding: 62px 0 40px;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.15), transparent 32%),
        linear-gradient(180deg, var(--white), var(--gray-50));
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    font: inherit;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-row a,
.filter-row button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-row a:hover,
.filter-row a.active,
.filter-row button:hover,
.filter-row button.active {
    color: var(--white);
    background: var(--emerald-600);
    border-color: var(--emerald-600);
}

.detail-hero {
    padding: 42px 0 32px;
    background:
        radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

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

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.player-section {
    padding: 42px 0 18px;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    z-index: 2;
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    padding-left: 6px;
    background: rgba(16, 185, 129, 0.92);
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.42);
    font-size: 38px;
}

.content-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

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

.content-stack {
    display: grid;
    gap: 18px;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin: 0 0 10px;
}

.sitemap-list a {
    color: var(--gray-700);
    font-weight: 700;
}

.sitemap-list a:hover {
    color: var(--emerald-600);
}

.empty-tip {
    display: none;
    padding: 26px;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
}

.site-footer {
    margin-top: 40px;
    padding: 46px 0;
    color: rgba(255, 255, 255, 0.76);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 32px;
}

.footer-brand {
    color: var(--white);
}

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

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

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

.footer-links a:hover {
    color: var(--emerald-500);
}

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

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

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

    .mobile-menu-button {
        display: inline-block;
    }

    .mobile-nav.open {
        display: flex;
    }

    .hero,
    .hero-content {
        min-height: 74vh;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

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

    .category-grid,
    .rank-layout,
    .detail-grid,
    .footer-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        gap: 22px;
    }

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

    .movie-info {
        padding: 13px;
    }
}

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

    .movie-grid {
        gap: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p {
        font-size: 13px;
    }
}
