:root {
    --blue-900: #172554;
    --blue-800: #1e3a8a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --green-500: #22c55e;
    --yellow-500: #eab308;
    --red-500: #ef4444;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 12px 26px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-800), var(--blue-600));
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.22);
}

.site-header-inner {
    max-width: 1280px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-name {
    font-size: 21px;
}

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

.nav-link {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #dbeafe;
}

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

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 16px;
    background: var(--blue-700);
}

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

.mobile-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--white);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700), var(--cyan-500));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-slide img,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.54), rgba(6, 182, 212, 0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 80px 24px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 12px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue-600);
}

.hero h1,
.page-hero h1,
.detail-head-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 680px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.small-actions {
    margin-top: 22px;
}

.primary-button,
.ghost-button,
.panel-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
    color: var(--blue-700);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.panel-button:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ghost-button {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.ghost-button:hover {
    color: var(--blue-700);
    background: var(--white);
}

.hero-stat-card {
    position: absolute;
    right: 42px;
    bottom: 48px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
    color: var(--white);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.hero-stat-card span {
    font-size: 13px;
    opacity: 0.88;
}

.hero-stat-card i {
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, 0.32);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.white-section {
    background: var(--white);
}

.soft-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-more,
.panel-button {
    color: var(--white);
    background: var(--blue-600);
}

.featured-strip,
.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.wide-card {
    min-height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
}

.wide-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.wide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
}

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

.wide-card div {
    position: relative;
    z-index: 2;
    padding: 18px;
    color: var(--white);
}

.wide-card strong,
.wide-card span {
    display: block;
}

.wide-card strong {
    font-size: 20px;
    line-height: 1.25;
}

.wide-card span {
    margin-top: 6px;
    color: #dbeafe;
    font-size: 14px;
}

.movie-grid,
.rank-grid,
.category-grid,
.category-panel-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.movie-card.compact {
    width: 320px;
    flex: 0 0 320px;
}

.rank-grid .movie-card.compact {
    width: auto;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.88);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-500), #f97316);
}

.movie-card-body {
    padding: 18px;
}

.movie-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--blue-600);
}

.meta-line,
.card-summary {
    margin: 8px 0 0;
}

.meta-line {
    color: var(--gray-500);
    font-size: 13px;
}

.card-summary {
    min-height: 44px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
}

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.18));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
}

.category-tile span {
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
}

.category-tile strong {
    margin-top: 6px;
    font-size: 24px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700), var(--cyan-500));
}

.compact-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 24px;
}

.compact-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px auto 0;
    color: #dbeafe;
    font-size: 18px;
}

.rank-hero,
.search-hero {
    background: linear-gradient(135deg, #111827, var(--blue-800), var(--blue-500));
}

.category-panel {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

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

.category-panel p {
    color: var(--gray-600);
}

.category-samples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.category-samples a {
    position: relative;
    min-height: 110px;
    overflow: hidden;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    color: var(--white);
    background: var(--blue-900);
}

.category-samples img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.category-samples span {
    position: relative;
    z-index: 2;
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.page-link,
.page-gap {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.page-link {
    color: var(--blue-700);
    background: #eff6ff;
}

.page-link.current {
    color: var(--white);
    background: var(--blue-600);
}

.page-link.muted {
    color: var(--gray-500);
    background: var(--gray-100);
}

.detail-hero {
    min-height: 560px;
}

.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    filter: blur(8px) scale(1.08);
    opacity: 0.72;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(30, 64, 175, 0.72), rgba(3, 7, 18, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: #dbeafe;
    font-size: 14px;
}

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

.detail-head-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.detail-one-line {
    max-width: 820px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 20px;
}

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

.detail-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags span {
    color: var(--white);
    background: rgba(59, 130, 246, 0.36);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--gray-950);
    box-shadow: var(--shadow-lg);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.36);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play-button {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
    font-size: 38px;
    line-height: 1;
    padding-left: 6px;
}

.content-card,
.sticky-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.content-card h2,
.sticky-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    color: var(--gray-700);
    font-size: 17px;
}

.lead-text {
    color: var(--gray-900) !important;
    font-weight: 800;
}

.detail-sidebar .sticky-card {
    position: sticky;
    top: 88px;
}

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

.related-list .wide-card {
    min-height: 128px;
}

.search-results:empty::before {
    content: "输入关键词后显示匹配影片";
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--gray-500);
    background: var(--gray-50);
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-grid a:hover {
    color: #93c5fd;
}

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

.footer-brand {
    color: var(--white);
    font-size: 20px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-content {
        padding: 70px 20px 110px;
    }

    .hero-stat-card {
        left: 20px;
        right: 20px;
        justify-content: center;
    }

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

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

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

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

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

@media (max-width: 560px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .hero h1,
    .page-hero h1,
    .detail-head-copy h1 {
        font-size: 38px;
    }

    .section {
        padding: 48px 16px;
    }

    .soft-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-card.compact {
        width: 280px;
        flex-basis: 280px;
    }

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

    .primary-button,
    .ghost-button,
    .panel-button,
    .section-more {
        width: 100%;
    }

    .category-samples {
        grid-template-columns: 1fr;
    }
}
