
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --orange: #ea580c;
    --purple: #7c3aed;
    --border: #e5e7eb;
    --ring: rgba(37, 99, 235, 0.16);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.08), transparent 30rem),
        radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.10), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

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

.container {
    width: min(100% - 2rem, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 1.24rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.9rem;
    background: var(--surface-soft);
    color: var(--text);
}

.mobile-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.25rem auto;
    border-radius: 2px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(1.08) contrast(0.92);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.2)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 46%, rgba(2, 6, 23, 0.48));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 3rem;
    padding: 6.5rem 0 5rem;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: #a5f3fc;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-summary {
    max-width: 720px;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2.2vw, 1.24rem);
}

.hero-tags,
.tag-list,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags {
    margin-top: 1.4rem;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
}

.tag-list span {
    background: #eff6ff;
    color: #2563eb;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 999px;
    padding: 0.78rem 1.3rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.btn-light {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.7rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    background: rgba(234, 88, 12, 0.95);
    color: #ffffff;
    font-weight: 900;
}

.hero-panel-text h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.hero-panel-text p {
    margin: 0.75rem 0 1rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-panel-text a {
    color: #67e8f9;
    font-weight: 800;
}

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

.hero-dot {
    width: 0.72rem;
    height: 0.72rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.section {
    padding: 4.5rem 0;
}

.section-tight {
    padding: 3rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-subtitle {
    max-width: 680px;
    margin: 0.65rem 0 0;
    color: var(--muted);
}

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

.feature-card,
.category-card,
.stat-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.86);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.category-card:hover,
.stat-card:hover,
.movie-card:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.28);
}

.feature-card strong,
.category-card strong,
.stat-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 1.08rem;
}

.feature-card p,
.category-card p,
.stat-card p {
    margin: 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1.35rem;
}

.movie-grid.wide {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #dbeafe, #ecfeff);
}

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

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

.card-badge,
.card-score {
    position: absolute;
    top: 0.75rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-badge {
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
}

.card-score {
    right: 0.75rem;
    background: rgba(234, 88, 12, 0.95);
}

.movie-card-body {
    padding: 1rem;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.9em;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--primary);
}

.movie-meta,
.movie-line {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.05em;
    line-height: 1.52;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    margin-top: 0.85rem;
}

.category-grid,
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}

.category-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
}

.category-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.category-count {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 900;
}

.section-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.search-box span {
    color: #0f172a;
    font-weight: 900;
    white-space: nowrap;
}

.search-box input,
.control {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.control {
    min-height: 3.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0 1rem;
    color: var(--muted);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.no-results {
    display: none;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 1.2rem;
    background: rgba(239, 246, 255, 0.82);
    padding: 2rem;
    color: #1d4ed8;
    font-weight: 800;
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.rank-list {
    display: grid;
    gap: 0.9rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 86px 54px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-cover {
    overflow: hidden;
    border-radius: 0.9rem;
    aspect-ratio: 2 / 3;
    background: #e0f2fe;
}

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

.rank-index {
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    place-items: center;
    border-radius: 1rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 950;
}

.rank-gold {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #ffffff;
}

.rank-silver {
    background: linear-gradient(135deg, #64748b, #cbd5e1);
    color: #ffffff;
}

.rank-bronze {
    background: linear-gradient(135deg, #b45309, #fdba74);
    color: #ffffff;
}

.rank-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.rank-title:hover {
    color: var(--primary);
}

.rank-info p {
    margin: 0.28rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.rank-score {
    min-width: 4rem;
    color: var(--orange);
    font-size: 1.45rem;
    font-weight: 950;
    text-align: right;
}

.page-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.09)),
        #ffffff;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 750;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.82)),
        #0f172a;
    color: #ffffff;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: blur(4px) saturate(1.2);
    transform: scale(1.08);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 4.5rem 0;
}

.detail-poster {
    width: 100%;
    border-radius: 1.35rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-meta {
    margin: 1rem 0;
    color: #bae6fd;
    font-weight: 800;
}

.detail-line {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    padding: 3rem 0 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.36)),
        radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 42%);
}

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

.play-circle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
    font-size: 2rem;
    line-height: 1;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    align-items: start;
}

.article-box,
.side-box {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.article-box + .article-box {
    margin-top: 1rem;
}

.article-box h2,
.side-box h2 {
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
}

.article-box p {
    margin: 0;
    color: #334155;
    font-size: 1.02rem;
}

.article-box p + p {
    margin-top: 0.85rem;
}

.side-list {
    display: grid;
    gap: 0.9rem;
}

.side-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.side-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 0.7rem;
    object-fit: cover;
}

.side-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.2rem 0;
}

.footer-inner p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #475569;
    font-weight: 750;
}

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

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .hero-content,
    .detail-hero-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }

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

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

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

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

    .mobile-nav.is-open {
        display: grid;
        gap: 0.35rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        min-height: 720px;
        padding: 5.5rem 0 4rem;
    }

    .hero-panel {
        grid-template-columns: 110px minmax(0, 1fr);
        border-radius: 1.2rem;
    }

    .hero-panel-text h2 {
        font-size: 1.1rem;
    }

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

    .section-tools {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

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

    .rank-index {
        display: none;
    }

    .rank-score {
        font-size: 1.1rem;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 1.2rem, 1280px);
    }

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

    .brand-text {
        font-size: 1.02rem;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.05em;
    }

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

    .movie-card-body {
        padding: 0.82rem;
    }

    .movie-meta,
    .movie-line,
    .tag-list {
        font-size: 0.8rem;
    }

    .tag-list span {
        padding: 0.25rem 0.52rem;
    }

    .player-shell {
        border-radius: 1rem;
    }

    .article-box,
    .side-box {
        padding: 1.1rem;
    }
}
