:root {
    --primary-950: #082f49;
    --primary-900: #0c4a6e;
    --primary-800: #075985;
    --primary-700: #0369a1;
    --primary-600: #0284c7;
    --primary-500: #0ea5e9;
    --accent-500: #f59e0b;
    --accent-400: #fbbf24;
    --accent-300: #fcd34d;
    --neutral-950: #0c0a09;
    --neutral-900: #1c1917;
    --neutral-800: #292524;
    --neutral-700: #44403c;
    --neutral-600: #57534e;
    --neutral-500: #78716c;
    --neutral-300: #d6d3d1;
    --neutral-200: #e7e5e4;
    --neutral-100: #f5f5f4;
    --neutral-50: #fafaf9;
    --white: #ffffff;
    --shadow-soft: 0 16px 45px rgba(12, 74, 110, 0.16);
    --shadow-strong: 0 24px 80px rgba(12, 74, 110, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--neutral-800);
    background: linear-gradient(180deg, #f0f9ff 0%, #fafaf9 36%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
    box-shadow: 0 14px 35px rgba(8, 47, 73, 0.25);
}

.nav-shell {
    max-width: 1280px;
    height: 64px;
    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-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-950);
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--accent-300);
}

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

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    background: var(--primary-800);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: var(--primary-950);
}

.hero-slide {
    display: none;
    min-height: 620px;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 47, 73, 0.92) 0%, rgba(8, 47, 73, 0.74) 38%, rgba(8, 47, 73, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 47, 73, 0.92) 0%, rgba(8, 47, 73, 0.14) 58%, rgba(8, 47, 73, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 78px 24px 46px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    gap: 42px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent-300);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.btn-primary {
    color: var(--primary-950);
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.hero-side {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(8, 47, 73, 0.42);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.hero-side h2 {
    margin: 18px 0 6px;
    font-size: 22px;
}

.hero-side p {
    font-size: 14px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--accent-400);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 47, 73, 0.58);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

.main-shell,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.page-hero {
    padding: 70px 24px;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 32%),
        linear-gradient(135deg, var(--primary-950), var(--primary-800));
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 14px;
    max-width: 860px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--neutral-600);
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 58px rgba(12, 74, 110, 0.22);
}

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

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary-950);
    background: var(--accent-400);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e0f2fe;
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--primary-600);
}

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

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

.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 38%),
        linear-gradient(135deg, var(--primary-900), var(--primary-700));
    box-shadow: var(--shadow-soft);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card a {
    display: inline-flex;
    align-items: center;
    color: var(--accent-300);
    font-weight: 900;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-no {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-950);
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    font-weight: 900;
}

.rank-item h2,
.rank-item h3 {
    margin: 0;
    color: var(--neutral-900);
    font-size: 17px;
}

.rank-item p {
    margin: 4px 0 0;
    color: var(--neutral-600);
    font-size: 13px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--neutral-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--neutral-900);
    background: var(--white);
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.empty-result {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    text-align: center;
    font-weight: 800;
}

.empty-result.is-visible {
    display: block;
}

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

.video-stage {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
    border: 0;
}

.video-overlay.is-hidden {
    display: none;
}

.play-core {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-950);
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
    font-size: 32px;
    font-weight: 900;
}

.detail-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-card h2,
.detail-card h3 {
    margin: 0 0 12px;
    color: var(--neutral-900);
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--neutral-700);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary-900), var(--primary-500));
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--neutral-100);
}

.info-list span:first-child {
    color: var(--neutral-500);
}

.info-list span:last-child {
    color: var(--neutral-900);
    font-weight: 800;
    text-align: right;
}

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

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

.content-block {
    margin-top: 28px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-block h2 {
    margin: 0 0 12px;
    color: var(--neutral-900);
    font-size: 26px;
}

.content-block p {
    margin: 0;
    color: var(--neutral-700);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-footer {
    color: var(--neutral-300);
    background: var(--neutral-950);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

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

.footer-grid p {
    max-width: 560px;
    margin: 12px 0 0;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--neutral-300);
}

.footer-grid a:hover {
    color: var(--accent-300);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--neutral-500);
}

.spaced-section {
    margin-top: 56px;
}

.hidden-card {
    display: none;
}

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

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

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

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

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

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

    .category-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .nav-shell,
    .main-shell,
    .page-shell,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero h1 {
        font-size: 38px;
    }

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

    .hero-arrow {
        display: none;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }
}
