:root {
    --blue-900: #1e3a8a;
    --blue-800: #1e40af;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --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-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 28px 65px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.nav-open {
    overflow: hidden;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-600), var(--blue-900));
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--orange-500);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: #bfdbfe;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.site-nav a {
    position: relative;
    color: #eff6ff;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fed7aa;
}

.site-nav a.active::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: var(--orange-500);
    content: "";
}

.nav-toggle {
    display: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, #3b82f6 0%, #1e3a8a 42%, #0f172a 100%);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(30, 64, 175, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 520px;
}

.hero-copy {
    width: min(720px, 100%);
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--orange-500);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-kicker.light,
.eyebrow {
    color: #fde68a;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2.5vw, 22px);
}

.hero-tags,
.tag-list,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.card-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 5px 11px;
    color: #eef2ff;
    font-size: 13px;
}

.card-meta span,
.rank-meta span {
    background: var(--gray-100);
    color: var(--gray-600);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 22px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--orange-600);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
    padding: 58px 0;
}

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

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

.section-heading a {
    color: var(--blue-700);
    font-weight: 700;
}

.compact-heading {
    margin-bottom: 14px;
}

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.card-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62) 100%);
    content: "";
}

.card-badge,
.card-year {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.card-badge {
    left: 10px;
    background: var(--orange-500);
}

.card-year {
    right: 10px;
    background: rgba(0, 0, 0, 0.68);
}

.play-mark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.94);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body h3 a:hover {
    color: var(--orange-600);
}

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

.category-section {
    border-radius: 28px;
    background: linear-gradient(90deg, #ecfdf5, #eff6ff);
    padding: 42px;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 170px;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--blue-600);
}

.category-card-red .category-icon { background: #ef4444; }
.category-card-blue .category-icon { background: #2563eb; }
.category-card-orange .category-icon { background: #f97316; }
.category-card-pink .category-icon { background: #ec4899; }
.category-card-purple .category-icon { background: #7c3aed; }
.category-card-green .category-icon { background: #16a34a; }
.category-card-cyan .category-icon { background: #0891b2; }
.category-card-teal .category-icon { background: #0d9488; }

.category-card strong {
    color: var(--gray-900);
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
}

.search-panel {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-700);
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.search-box button {
    min-width: 86px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--blue-700);
    cursor: pointer;
}

.filter-empty {
    margin: 12px 0 0;
    color: var(--orange-600);
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.spotlight-card {
    min-height: 100%;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), #dc2626);
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow-md);
}

.spotlight-card h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
}

.spotlight-card p {
    margin-bottom: 26px;
    color: var(--orange-100);
    font-size: 18px;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

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

.ranking-list.compact .rank-row {
    grid-template-columns: 0 46px minmax(0, 1fr) auto;
}

.ranking-list.compact .rank-cover {
    display: none;
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-number {
    color: var(--orange-500);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info h3 a:hover {
    color: var(--orange-600);
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-action {
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    padding: 8px 14px;
    font-weight: 700;
}

.page-hero {
    color: var(--white);
    padding: 68px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
}

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

.gradient-blue-orange {
    background: linear-gradient(110deg, var(--blue-700), var(--orange-600));
}

.gradient-blue {
    background: linear-gradient(110deg, var(--blue-600), var(--blue-900));
}

.gradient-orange {
    background: linear-gradient(110deg, #ea580c, #991b1b);
}

.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: #fed7aa;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-950);
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: blur(3px) saturate(1.2);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(30, 64, 175, 0.65));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 46px 0;
}

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

.detail-poster {
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    box-shadow: var(--shadow-lg);
}

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

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.12;
}

.detail-one-line {
    max-width: 780px;
    color: #dbeafe;
    font-size: 19px;
}

.detail-meta,
.tag-list {
    margin: 16px 0;
}

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

.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-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--orange-500);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

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

.content-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    margin: 0 0 16px;
    color: var(--gray-900);
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 48px 0;
}

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

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

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

.site-footer a:hover {
    color: #fed7aa;
}

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

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

[hidden] {
    display: none !important;
}

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

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

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

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border-radius: 18px;
        background: var(--blue-900);
        box-shadow: var(--shadow-lg);
    }

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

    .site-nav a {
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav a.active::after {
        display: none;
    }

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

    .hero-copy h1 {
        font-size: clamp(34px, 12vw, 48px);
    }

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

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

    .category-section {
        padding: 22px;
    }

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

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

    .rank-row,
    .ranking-list.compact .rank-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-cover,
    .rank-action {
        display: none;
    }

    .rank-number {
        grid-column: 1;
    }

    .rank-info {
        grid-column: 2;
    }
}

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

    .brand-copy small {
        display: none;
    }

    .hero-tags span:nth-child(n + 5) {
        display: none;
    }

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

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

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        min-height: 44px;
    }

    .card-cover {
        aspect-ratio: 16 / 10;
    }
}
