:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #dc2626;
    --dark: #020617;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --radius: 1.25rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
    color: #334155;
}

.nav-link {
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #0f172a;
    background: #eef2ff;
    cursor: pointer;
    font-size: 20px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 650;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav.open {
    display: block;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #0f172a);
}

.sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.55) 48%, rgba(2, 6, 23, 0.16));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-content h2 {
    max-width: 760px;
    margin: 14px 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 740px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.hero-badges,
.movie-tags,
.filter-chips,
.hero-actions,
.footer-links,
.tag-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-badges span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 750;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
}

.hero-badges span:first-child {
    background: rgba(220, 38, 38, 0.95);
}

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    transition: all 0.22s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.36);
}

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

.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.58);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

.search-panel {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 480px);
    align-items: center;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.search-panel p {
    margin: 0;
    color: var(--muted);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 750;
}

.search-panel input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 14px 18px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.compact-panel {
    grid-template-columns: minmax(260px, 430px) 1fr;
    margin-bottom: 36px;
}

.filter-chips {
    justify-content: flex-end;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #334155;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 750;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--primary);
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: var(--primary);
}

.section-more:hover,
.text-link:hover {
    color: var(--primary-dark);
}

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

.four-col {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbeafe;
}

.poster-link img,
.wide-cover img,
.detail-aside > img,
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

.play-mark,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-mark {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.94);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0 10px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 900;
}

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

.movie-card .movie-tags span {
    color: #1d4ed8;
    background: #dbeafe;
}

.movie-card h3,
.wide-card h3 {
    margin: 14px 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card p,
.wide-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.category-tile,
.category-overview-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: all 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-3px);
}

.category-tile strong,
.category-overview-title {
    font-size: 21px;
    font-weight: 850;
}

.category-tile span,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-tile:hover span,
.category-overview-card:hover p,
.category-overview-card:hover a {
    color: #dbeafe;
}

.highlight-section {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.scroll-row {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.wide-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.wide-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #dbeafe;
}

.page-main {
    padding: 34px 0 70px;
}

.page-hero {
    margin-bottom: 34px;
    border-radius: 28px;
    padding: clamp(32px, 6vw, 70px);
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    box-shadow: var(--shadow);
}

.simple-hero h1 {
    max-width: 860px;
    margin: 10px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.simple-hero p {
    max-width: 780px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-samples {
    display: grid;
    gap: 6px;
    color: var(--primary);
    font-weight: 650;
}

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

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

.video-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

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

.video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.94);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.38);
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.detail-card,
.aside-box {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 14px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.detail-card h2,
.aside-box h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-card p,
.lead-text {
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.detail-card .movie-tags span {
    color: #1d4ed8;
    background: #dbeafe;
}

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.detail-aside > img {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #dbeafe;
    box-shadow: var(--shadow);
}

.aside-box h2 {
    margin-top: 0;
}

.aside-box dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.aside-box dt {
    color: var(--muted);
}

.aside-box dd {
    margin: 0;
    font-weight: 750;
}

.aside-box a,
.tag-links a {
    color: var(--primary);
}

.tag-links {
    margin-top: 24px;
}

.tag-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: #eff6ff;
    font-weight: 750;
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 22px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

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

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    color: #e2e8f0;
}

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

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

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

    .hero-slider {
        height: 540px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .compact-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .detail-aside {
        position: static;
    }
}

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

    .brand {
        font-size: 19px;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content {
        bottom: 58px;
    }

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

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

    .wide-card {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .four-col {
        grid-template-columns: 1fr;
    }
}
