:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-card: #1f2937;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #22d3ee;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
}

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;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.25);
}

.logo-text {
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #e2e8f0;
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
    color: #34d399;
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #e2e8f0;
    font-weight: 650;
}

.mobile-menu a:hover {
    color: #34d399;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    padding: 0 0 78px;
}

.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: white;
    background: #059669;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    font-size: 14px;
}

.hero-title {
    max-width: 780px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: 19px;
    line-height: 1.75;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: white;
    background: #10b981;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(52, 211, 153, 0.38);
}

.btn-secondary:hover {
    color: white;
    border-color: #34d399;
    transform: translateY(-2px);
}

.btn-ghost {
    color: #34d399;
    padding: 0;
}

.btn-ghost:hover {
    color: #6ee7b7;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: white;
    background: rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

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

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

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

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

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

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

.page-section.compact {
    padding-top: 42px;
}

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

.section-kicker {
    margin: 0 0 10px;
    color: #34d399;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
}

.section-desc {
    max-width: 720px;
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    border-color: rgba(52, 211, 153, 0.42);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #334155;
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.play-bubble {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: white;
    background: rgba(16, 185, 129, 0.92);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
    transform: scale(0.72);
    transition: transform 0.28s ease;
}

.movie-card:hover .play-bubble {
    transform: scale(1);
}

.card-region,
.card-year {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.card-region {
    top: 12px;
    left: 12px;
    background: #059669;
}

.card-year {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
}

.card-body {
    display: flex;
    min-height: 184px;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 10px;
    overflow: hidden;
    color: white;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: #34d399;
}

.card-desc {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #64748b;
    font-size: 12px;
}

.feature-panel {
    padding: 38px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.82), rgba(51, 65, 85, 0.58));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 24px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card::after {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    content: "";
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 68%);
}

.category-card:hover {
    border-color: rgba(34, 211, 238, 0.36);
    transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    color: #cbd5e1;
    line-height: 1.75;
}

.category-card span {
    position: relative;
    z-index: 2;
    color: #34d399;
    font-weight: 800;
}

.page-hero {
    padding: 70px 0 42px;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 28%), radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.16), transparent 30%);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    color: white;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.85;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-top: 30px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.filter-box input,
.filter-box select {
    width: 100%;
    height: 48px;
    color: #e2e8f0;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 142px minmax(0, 1fr) 130px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(52, 211, 153, 0.36);
    transform: translateX(3px);
}

.rank-number {
    color: #34d399;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #334155;
    border-radius: 12px;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.rank-copy p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.rank-meta {
    color: #cbd5e1;
    font-weight: 700;
    text-align: right;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 34px 0 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #34d399;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
    padding: 0 0 70px;
}

.player-panel,
.detail-card,
.copy-card,
.related-panel {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.26);
}

.player-panel {
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.18));
    border: 0;
    cursor: pointer;
}

.player-layer.is-hidden {
    display: none;
}

.player-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: white;
    background: rgba(16, 185, 129, 0.95);
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(16, 185, 129, 0.36);
    font-size: 34px;
    line-height: 1;
    transform: translateX(2px);
}

.player-title {
    padding: 22px 24px 26px;
}

.player-title h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.player-title p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.85;
}

.detail-card {
    overflow: hidden;
}

.detail-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #334155;
}

.detail-info {
    padding: 20px;
}

.detail-info h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 22px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-line span:first-child {
    color: #94a3b8;
}

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

.tag-list span,
.tag-list a {
    padding: 6px 10px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.copy-card {
    margin-top: 28px;
    padding: 30px;
}

.copy-card h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 26px;
}

.copy-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.95;
}

.copy-card p:last-child {
    margin-bottom: 0;
}

.related-panel {
    margin-bottom: 70px;
    padding: 30px;
}

.related-panel h2 {
    margin: 0 0 24px;
    font-size: 28px;
}

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

.site-footer {
    color: #94a3b8;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-inner p {
    max-width: 560px;
    margin: 14px 0 0;
    line-height: 1.8;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 20px 0 28px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hidden-by-filter {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 36px;
    color: #cbd5e1;
    text-align: center;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
}

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

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

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

    .detail-card {
        max-width: 420px;
    }

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

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

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

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

    .navbar {
        min-height: 66px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-carousel {
        height: 74vh;
        min-height: 540px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .feature-panel {
        padding: 24px;
        border-radius: 22px;
    }

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

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

    .rank-meta {
        grid-column: 2 / -1;
        text-align: left;
    }

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