:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #0284c7;
    --brand-dark: #0369a1;
    --accent: #f59e0b;
    --soft: #e0f2fe;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 42%, #ffffff 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.24);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.logo-text {
    font-size: 22px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.22);
    transform: translateY(-1px);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

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

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

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 22%, rgba(14, 165, 233, 0.28), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.24) 100%);
}

.hero-content {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-copy {
    width: min(640px, 100%);
    padding: 80px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.hero-copy p {
    margin: 0 0 28px;
    font-size: clamp(17px, 2.4vw, 22px);
    color: rgba(255, 255, 255, 0.88);
}

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

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

.button-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.34);
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.button-light {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid var(--line);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.13);
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.25);
}

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

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

.hero-dot.is-active {
    background: #38bdf8;
}

.page-main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 68px 0;
}

.content-section.compact {
    padding: 42px 0;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 8;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

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

.search-row input:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.search-results {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.search-results.is-visible {
    display: grid;
}

.search-item {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.search-item strong {
    display: block;
    margin-bottom: 5px;
}

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

.category-card {
    min-height: 230px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-count {
    display: inline-flex;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    font-weight: 900;
}

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

.category-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.category-card ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.74));
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    z-index: 2;
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-meta,
.movie-line {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-line {
    min-height: 44px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.category-pill {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 13px;
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.feature-large {
    position: relative;
    min-height: 460px;
    border-radius: 30px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.feature-large img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.feature-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(2, 6, 23, 0.88));
}

.feature-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
}

.feature-copy h3 {
    margin: 0 0 10px;
    font-size: 34px;
}

.feature-copy p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 800;
}

.mini-card img {
    width: 72px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.page-hero {
    padding: 72px 0 42px;
    background: radial-gradient(circle at 78% 20%, rgba(14, 165, 233, 0.22), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

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

.page-hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 12px;
    padding: 18px;
    margin: 0 0 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-hero {
    padding: 56px 0;
    color: #ffffff;
    background: radial-gradient(circle at 82% 14%, rgba(14, 165, 233, 0.24), transparent 28%), linear-gradient(135deg, #020617 0%, #1e293b 100%);
}

.detail-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a {
    color: #7dd3fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

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

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.detail-main .lead {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.player-shell {
    margin-top: 28px;
    border-radius: 26px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 3;
}

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

.player-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.95);
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.36);
    cursor: pointer;
}

.detail-body {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 76px;
}

.article-panel {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 34px;
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-panel p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
    padding: 42px 0 24px;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-inner p {
    max-width: 620px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-weight: 800;
}

.footer-links a:hover {
    color: #38bdf8;
}

.copyright {
    width: min(1200px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.no-match {
    display: none;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
}

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

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

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

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

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

    .split-feature,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1200px);
        height: 62px;
    }

    .mobile-nav {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-copy {
        padding: 58px 0 86px;
    }

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

    .search-row,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .movie-grid,
    .rank-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-info {
        padding: 13px;
    }

    .movie-title {
        font-size: 16px;
    }

    .detail-body,
    .content-section {
        padding: 42px 0;
    }

    .article-panel {
        padding: 22px;
    }

    .player-button {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}

@media (max-width: 500px) {
    .category-grid,
    .movie-grid,
    .rank-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .poster-wrap {
        aspect-ratio: 16 / 10;
    }

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