:root {
    --site-emerald: #10b981;
    --site-teal: #0f766e;
    --site-cyan: #155e75;
    --site-ink: #0f172a;
    --site-muted: #64748b;
    --site-soft: #f8fafc;
    --site-card: #ffffff;
    --site-line: #e5e7eb;
    --site-radius: 22px;
    --site-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

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: 60;
    color: #ffffff;
    background: linear-gradient(90deg, #065f46 0%, #0f766e 50%, #155e75 100%);
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.25);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

.nav-links a {
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.9);
}

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

.nav-search {
    display: flex;
    align-items: center;
    width: min(270px, 26vw);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
    border: 0;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.85);
    padding: 11px 15px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px;
}

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

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

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 680ms ease, visibility 680ms ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 30%, rgba(16, 185, 129, 0.34), transparent 34%), linear-gradient(120deg, #022c22 0%, #0f172a 58%, #083344 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-image img.is-broken {
    opacity: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.68) 46%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 64px 0 82px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.34);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-lead {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2.8vw, 24px);
    line-height: 1.7;
}

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

.hero-meta span,
.movie-meta span,
.detail-meta span,
.tag-pill,
.rank-score {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
    color: #ffffff;
    background: #10b981;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.34);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

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

.btn-light {
    color: #065f46;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #10b981;
}

.section {
    padding: 64px 0;
}

.section-white {
    background: #ffffff;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #059669;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 780px;
    color: var(--site-muted);
    line-height: 1.75;
}

.stats-strip {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.stat-card {
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--site-line);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-num {
    display: block;
    color: #047857;
    font-size: 28px;
    font-weight: 950;
}

.stat-label {
    display: block;
    margin-top: 6px;
    color: var(--site-muted);
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #065f46 0%, #0e7490 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -44px;
    bottom: -52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 14px;
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    font-weight: 850;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.15);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.42), transparent 34%), linear-gradient(145deg, #064e3b 0%, #0f172a 65%, #164e63 100%);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, opacity 220ms ease;
}

.poster-frame img.is-broken {
    opacity: 0;
}

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

.poster-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.poster-badge,
.poster-type {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    background: rgba(16, 185, 129, 0.92);
}

.poster-type {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 38% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
}

.movie-body {
    padding: 18px;
}

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

.movie-meta span,
.detail-meta span {
    color: #047857;
    background: #ecfdf5;
}

.movie-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-title a:hover {
    color: #059669;
}

.movie-desc {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.66;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-pill {
    color: #0f766e;
    background: #f0fdfa;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.5fr));
    gap: 14px;
    padding: 18px;
    margin: 0 0 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--site-ink);
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.empty-state {
    display: none;
    padding: 48px 24px;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
    color: var(--site-muted);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at 78% 16%, rgba(16, 185, 129, 0.34), transparent 28%), linear-gradient(90deg, #064e3b 0%, #0f766e 48%, #155e75 100%);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 78px 112px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-num {
    color: #047857;
    font-size: 30px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 112px;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: linear-gradient(145deg, #065f46, #0f172a);
}

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

.rank-cover img.is-broken {
    opacity: 0;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.rank-score {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0e7490);
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(145deg, #064e3b, #0f172a);
    box-shadow: var(--site-shadow);
}

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

.detail-poster img.is-broken {
    opacity: 0;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: #bbf7d0;
}

.detail-intro {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.player-card {
    margin-top: 34px;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--site-shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.16), transparent 34%), #020617;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

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

.play-button {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #10b981;
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.42);
    font-size: 34px;
    cursor: pointer;
}

.detail-article {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.text-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.text-card p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-grid p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

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

.footer-grid a:hover {
    color: #34d399;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

    .detail-layout {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 820px) {
    .navbar {
        min-height: 68px;
    }

    .nav-links {
        display: none;
    }

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

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

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

    .stat-card:nth-child(2) {
        border-right: 0;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 92px 1fr;
    }

    .rank-score {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        position: relative;
        top: auto;
        max-width: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .logo-title {
        font-size: 19px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-light {
        width: 100%;
    }

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

    .rank-item {
        grid-template-columns: 42px 78px 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
