:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --blue-600: #2563eb;
    --teal-600: #0d9488;
    --text-dark: #1f2937;
    --text-soft: #64748b;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.12);
    --shadow-deep: 0 28px 70px rgba(15, 23, 42, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    background: var(--slate-50);
    color: var(--text-dark);
    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;
}

.container.narrow {
    width: min(880px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.38);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.brand-text small {
    color: #cbd5e1;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 12px;
    color: #e2e8f0;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--orange-500);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700) 48%, #7c2d12);
    color: #ffffff;
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.18;
    pointer-events: none;
}

.hero-glow-a {
    top: 80px;
    left: 8%;
    background: var(--orange-500);
}

.hero-glow-b {
    right: 6%;
    bottom: 70px;
    background: var(--blue-600);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72), rgba(124, 45, 18, 0.82)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.hero-dim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.28), transparent 36%), radial-gradient(circle at 78% 70%, rgba(37, 99, 235, 0.22), transparent 38%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 56px;
    align-items: center;
    padding: 100px 0 108px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-summary {
    max-width: 700px;
    margin: 24px 0;
    color: #e2e8f0;
    font-size: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.hero-actions,
.section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-actions.centered {
    justify-content: center;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.ghost-button.full {
    width: 100%;
    margin-top: 18px;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-deep);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

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

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

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

.feature-strip {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

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

.feature-card {
    display: grid;
    gap: 6px;
    padding: 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-deep);
}

.feature-card strong {
    color: var(--slate-900);
    font-size: 22px;
}

.feature-card span {
    color: var(--text-soft);
}

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

.section-block.white {
    background: #ffffff;
}

.section-block.soft {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.section-block.dark {
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading p,
.ranking-head p {
    margin: 0 0 8px;
    color: var(--orange-500);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-heading h2,
.ranking-head h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
}

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

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

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-block.dark .movie-card,
.section-block.dark .ranking-panel {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-800);
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.07);
}

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

.play-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-card-body strong {
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.section-block.dark .movie-card-body strong {
    color: #ffffff;
}

.movie-line {
    color: var(--text-soft);
    font-size: 14px;
}

.section-block.dark .movie-line {
    color: #cbd5e1;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.rank-tags em {
    padding: 4px 8px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-style: normal;
}

.section-block.dark .movie-meta span,
.section-block.dark .rank-tags em {
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

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

.category-card,
.category-overview-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.category-covers img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.category-card strong,
.category-title-link strong {
    color: var(--slate-900);
    font-size: 20px;
}

.category-card span,
.category-title-link span,
.category-mini-list span {
    color: var(--text-soft);
    font-size: 14px;
}

.category-title-link {
    display: grid;
    gap: 8px;
}

.category-mini-list {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    color: var(--orange-600);
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: start;
}

.ranking-panel,
.info-card,
.detail-article,
.filter-panel {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 24px;
}

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

.large-list {
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: #ffffff;
}

.section-block.dark .rank-row {
    background: rgba(255, 255, 255, 0.1);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    font-weight: 900;
}

.rank-row img {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    color: var(--slate-900);
}

.section-block.dark .rank-copy strong {
    color: #ffffff;
}

.rank-copy span {
    color: var(--text-soft);
    font-size: 14px;
}

.section-block.dark .rank-copy span {
    color: #cbd5e1;
}

.rank-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.page-hero {
    padding: 98px 0;
    color: #ffffff;
    text-align: center;
    background: radial-gradient(circle at 18% 26%, rgba(249, 115, 22, 0.36), transparent 30%), linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.page-hero p:last-child {
    max-width: 720px;
    margin: 20px auto 0;
    color: #cbd5e1;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    padding: 22px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    color: var(--slate-900);
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.empty-state {
    padding: 30px;
    border-radius: var(--radius-md);
    color: var(--text-soft);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78), rgba(124, 45, 18, 0.72)), var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 28%, rgba(251, 146, 60, 0.28), transparent 34%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 78px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-deep);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

.detail-tags span {
    color: #ffffff;
}

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

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-deep);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.26), rgba(2, 6, 23, 0.78));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 22px 44px rgba(249, 115, 22, 0.32);
    font-size: 34px;
    text-indent: 4px;
}

.detail-article {
    margin-top: 24px;
    padding: 30px;
}

.detail-article h2,
.info-card h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
}

.detail-article p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 17px;
}

.detail-side {
    display: grid;
    gap: 20px;
}

.info-card {
    padding: 24px;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.info-card dt {
    color: var(--text-soft);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--slate-900);
}

.info-card .text-link {
    display: flex;
    margin-bottom: 10px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid p {
    margin: 14px 0 0;
    color: #94a3b8;
}

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

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

[hidden] {
    display: none !important;
}

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

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

@media (max-width: 840px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: var(--slate-800);
        box-shadow: var(--shadow-deep);
    }

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

    .nav-link {
        display: block;
    }

    .hero-slider {
        min-height: auto;
    }

    .hero-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 72px 0 86px;
    }

    .hero-poster,
    .detail-poster {
        width: min(300px, 80vw);
        margin: 0 auto;
    }

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

    .cards-3,
    .cards-4,
    .cards-5,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand-text small {
        display: none;
    }

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

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

    .hero-summary {
        font-size: 17px;
    }

    .feature-grid,
    .filter-panel,
    .footer-grid,
    .cards-3,
    .cards-4,
    .cards-5,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-article,
    .info-card {
        padding: 22px;
    }
}
