:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0d9488;
    --amber: #f59e0b;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.10);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 6%, rgba(16, 185, 129, 0.14), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(20, 184, 166, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #ecfdf5 42%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(16, 185, 129, 0.14);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--emerald), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--emerald-dark);
    background: rgba(16, 185, 129, 0.10);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.10);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--emerald-dark);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
}

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

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 650px;
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #d1fae5 0%, #ecfeff 48%, #fffbeb 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.48;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 96%);
}

.hero-glow {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.36;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.65), transparent 64%);
}

.hero-glow.one {
    top: 38px;
    right: 8%;
}

.hero-glow.two {
    left: 3%;
    bottom: -180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.42), transparent 64%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 999px;
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 32px rgba(5, 150, 105, 0.10);
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 950;
    background: linear-gradient(90deg, #065f46 0%, #0f766e 48%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead,
.page-hero p,
.detail-lead {
    max-width: 650px;
    color: #475569;
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(5, 150, 105, 0.18);
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 18px 38px rgba(5, 150, 105, 0.28);
}

.btn-soft {
    color: var(--emerald-dark);
    background: rgba(255, 255, 255, 0.74);
}

.hero-stage {
    position: relative;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-card {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: 36px;
    background: #0f172a;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s ease;
}

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

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.38) 45%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 1;
}

.hero-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 32px;
    color: #ffffff;
}

.hero-card-body h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-card-body p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.hero-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.hero-card-meta span,
.tag,
.year-badge,
.rank-badge,
.heat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-card-meta span {
    padding: 6px 10px;
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px);
}

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

.section {
    padding: 72px 0;
}

.page-hero {
    padding: 78px 0 38px;
}

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

.section-heading h2,
.page-hero h1,
.detail-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.30);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.18), rgba(20, 184, 166, 0.12));
}

.movie-card-wide .poster-frame {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.58));
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.92);
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: rgba(245, 158, 11, 0.94);
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.movie-info small {
    min-height: 44px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.tag {
    min-height: 24px;
    padding: 0 9px;
    color: var(--emerald-dark);
    font-size: 12px;
    background: rgba(16, 185, 129, 0.11);
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.82));
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #065f46;
    font-size: 23px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 0.5fr));
    gap: 12px;
    margin: 28px 0;
    padding: 16px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.search-box {
    position: relative;
}

.search-box span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--emerald-dark);
    font-size: 13px;
    font-weight: 900;
}

.search-box input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.search-box input {
    padding: 0 18px 0 64px;
}

.filter-panel select {
    padding: 0 15px;
}

.empty-state {
    display: none;
    margin-top: 22px;
    padding: 24px;
    border-radius: 22px;
    color: #475569;
    background: rgba(255, 255, 255, 0.84);
}

.empty-state.show {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 72px 72px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-row:hover {
    transform: translateY(-2px);
    border-color: rgba(5, 150, 105, 0.28);
}

.ranking-number {
    color: #065f46;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.ranking-thumb {
    width: 64px;
    height: 84px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
}

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

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

.ranking-main strong,
.ranking-main small {
    display: block;
}

.ranking-main strong {
    margin-bottom: 5px;
    font-size: 18px;
}

.ranking-main small {
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: #475569;
    white-space: nowrap;
}

.heat-pill {
    min-height: 32px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #64748b;
    font-weight: 700;
}

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #065f46;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.12);
}

.player-card {
    margin: 18px 0 34px;
    overflow: hidden;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: 0.04em;
    background:
        radial-gradient(circle at 50% 45%, rgba(5, 150, 105, 0.54), transparent 24%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.82));
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 20px 44px rgba(5, 150, 105, 0.34);
}

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

.article-card {
    padding: 30px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.article-card + .article-card {
    margin-top: 18px;
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.article-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(16, 185, 129, 0.14);
    background: rgba(236, 253, 245, 0.60);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
}

.footer-grid p {
    color: #64748b;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #065f46;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.10);
}

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

    .menu-toggle {
        display: flex;
    }

    .hero-inner,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-stage {
        min-height: 430px;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 52px 64px minmax(0, 1fr);
    }

    .ranking-meta,
    .heat-pill {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        height: 64px;
    }

    .logo {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-card {
        min-height: 390px;
        border-radius: 28px;
    }

    .hero-card-body {
        padding: 24px;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

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

    .detail-hero {
        gap: 26px;
        padding-top: 34px;
    }

    .detail-title {
        font-size: 40px;
    }

    .article-card {
        padding: 22px;
    }
}
