:root {
    --blue-900: #0f1e46;
    --blue-800: #173b7a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --gray-950: #090f1f;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 8px 22px rgba(15, 30, 70, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 30, 70, 0.16);
    --shadow-lg: 0 28px 70px rgba(15, 30, 70, 0.22);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 30, 70, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--blue-600);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    padding: 22px 0;
    font-weight: 700;
    color: var(--gray-700);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 3px;
    border-radius: 99px;
    background: var(--blue-600);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--gray-800);
}

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

.hero-static-title {
    position: relative;
    z-index: 5;
    padding-top: 54px;
    text-align: center;
}

.hero-static-title h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-static-title p {
    margin: 0 auto;
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 22px);
}

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

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

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(249, 115, 22, 0.36), transparent 30%),
        linear-gradient(180deg, rgba(15, 30, 70, 0.18), rgba(9, 15, 31, 0.95));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 4;
    display: grid;
    gap: 16px;
    max-width: 1180px;
}

.hero-content h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 700px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
}

.hero-kicker,
.eyebrow {
    margin: 0;
    font-weight: 800;
    color: var(--orange-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

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

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

.btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.btn {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 13px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
}

.btn.ghost-dark {
    color: var(--blue-600);
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: rgba(255, 255, 255, 0.7);
}

.btn.small {
    min-height: 42px;
    padding: 10px 18px;
}

.text-link {
    color: var(--blue-600);
}

.text-link:hover {
    color: var(--orange-600);
}

.section {
    padding: 74px 0;
}

.soft-bg {
    background: var(--white);
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.text-panel h2,
.side-panel h2,
.highlight-panel h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    line-height: 1.16;
}

.section-head h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p,
.category-card-large p,
.highlight-panel p,
.site-footer p {
    color: var(--gray-600);
}

.centered {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

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

.category-chip {
    display: grid;
    gap: 8px;
    min-height: 142px;
    padding: 22px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:nth-child(2n) {
    background: linear-gradient(135deg, var(--orange-500), var(--blue-700));
}

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

.category-chip span {
    font-size: 21px;
    font-weight: 900;
}

.category-chip small {
    color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-box span {
    color: var(--blue-600);
    font-size: 22px;
}

.search-box input,
.year-filter {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-800);
}

.year-filter {
    width: 180px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
    display: none;
}

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

.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);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.36);
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-tags,
.tag-row,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.card-body h2 {
    margin: 8px 0 8px;
    color: var(--gray-900);
    font-size: 19px;
    line-height: 1.28;
}

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

.card-body p {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--blue-600);
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-item strong {
    color: var(--orange-500);
    font-size: 22px;
}

.rank-item span {
    font-weight: 800;
}

.rank-item em {
    color: var(--gray-500);
    font-style: normal;
}

.highlight-panel {
    padding: 34px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 42%),
        linear-gradient(135deg, #eff6ff, var(--white));
    box-shadow: var(--shadow-md);
}

.page-hero {
    padding: 84px 0 70px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.36), transparent 34%),
        linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

.compact-hero {
    padding: 66px 0 58px;
}

.page-hero h1 {
    color: var(--white);
}

.page-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    margin-top: 18px;
    color: #dbeafe;
    font-weight: 700;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.78);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card-art img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: var(--blue-900);
}

.category-card-large h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
}

.ranking-card {
    padding-top: 0;
}

.rank-badge {
    position: absolute;
    z-index: 4;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.detail-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: end;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-950);
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.08);
    opacity: 0.48;
}

.detail-mask {
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.26), transparent 30%),
        linear-gradient(180deg, rgba(9, 15, 31, 0.38), rgba(9, 15, 31, 0.98));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: end;
    padding: 82px 0 58px;
}

.detail-poster {
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.32);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
    margin: 8px 0 16px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.06;
}

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

.detail-tags {
    margin-bottom: 18px;
}

.detail-meta-row span {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
}

.player-section {
    padding-bottom: 40px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}

.play-trigger span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--blue-600));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
    font-size: 34px;
}

.play-trigger.is-hidden {
    display: none;
}

.detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.text-panel,
.side-panel {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.text-panel h2,
.side-panel h2 {
    font-size: 26px;
}

.text-panel p {
    margin: 0 0 24px;
    color: var(--gray-700);
    font-size: 17px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    margin: 0;
}

.side-panel dt {
    color: var(--gray-500);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

.compact .card-body h2 {
    font-size: 16px;
}

.compact .card-body p {
    display: none;
}

.compact .tag-row {
    display: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
    padding: 54px 0;
}

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

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 22px;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
    text-align: center;
}

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

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

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

@media (max-width: 820px) {
    .top-nav {
        min-height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 10px;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-static-title {
        padding-top: 42px;
    }

    .hero-content {
        bottom: 84px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .filter-bar,
    .with-action,
    .split-layout,
    .detail-body-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .year-filter {
        width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .detail-poster {
        width: min(240px, 70vw);
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 19px;
    }

    .section {
        padding: 54px 0;
    }

    .hero {
        min-height: 620px;
    }

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

    .btn {
        width: 100%;
    }

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

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-item em {
        grid-column: 2;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .text-panel,
    .side-panel,
    .highlight-panel {
        padding: 22px;
    }

    .side-panel dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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