:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --amber-300: #fcd34d;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, .14);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, .10);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 16px 38px rgba(2, 6, 23, .22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 900;
    letter-spacing: .02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
    box-shadow: 0 10px 28px rgba(249, 115, 22, .38);
}

.brand-text {
    font-size: 1.15rem;
}

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

.nav-link,
.mobile-nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    border-radius: 999px;
    transition: color .22s ease, background .22s ease, transform .22s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 28px auto 0;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--slate-900);
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: clamp(28px, 6vw, 78px);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .65s ease, transform .9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    max-width: 680px;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--orange-400);
    font-weight: 900;
    letter-spacing: .08em;
}

.hero h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero p,
.page-hero p,
.detail-info-card p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.9;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 14px 30px rgba(234, 88, 12, .34);
}

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

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

.panel-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 24px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
    box-shadow: var(--shadow-card);
}

.panel-card-hot {
    background: linear-gradient(160deg, var(--orange-500), #7c2d12 70%, var(--slate-900));
}

.panel-label {
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    font-weight: 900;
}

.panel-card strong {
    display: block;
    margin: 16px 0;
    font-size: 1.6rem;
    line-height: 1.25;
}

.panel-card a {
    color: var(--white);
    font-weight: 900;
}

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

.hero-category-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .10);
}

.hero-controls {
    position: absolute;
    left: 34px;
    bottom: 28px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
}

.hero-dots {
    display: inline-flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    transition: width .22s ease, background .22s ease;
}

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

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 64px auto;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: -.04em;
}

.section-heading p {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.8;
}

.section-more,
.toolbar-links a {
    color: var(--orange-600);
    font-weight: 900;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: var(--slate-500);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--slate-800);
    background: var(--slate-100);
    font: inherit;
}

.toolbar-links {
    display: flex;
    gap: 14px;
    white-space: nowrap;
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
}

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

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

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .36s ease, filter .36s ease;
}

.movie-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .64));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(234, 88, 12, .34);
}

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

.movie-meta-line {
    display: flex;
    gap: 10px;
    color: var(--orange-600);
    font-size: .82rem;
    font-weight: 900;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--slate-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    min-height: 54px;
    color: var(--slate-500);
    font-size: .94rem;
    line-height: 1.7;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: .78rem;
    font-weight: 800;
    background: var(--slate-100);
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 168px;
    padding: 22px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, box-shadow .22s ease;
}

.category-tile:nth-child(3n + 1),
.category-overview-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, var(--orange-500), #7c2d12);
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .18);
}

.category-tile span,
.category-main-link {
    display: block;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-tile p,
.category-overview-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-sample-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .13);
    font-size: .82rem;
    font-weight: 800;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-item span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.ranking-item strong {
    color: var(--slate-900);
    line-height: 1.3;
}

.ranking-item em {
    color: var(--slate-500);
    font-style: normal;
    font-size: .88rem;
}

.page-hero,
.detail-top {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
}

.compact-hero {
    min-height: 330px;
    display: grid;
    align-items: center;
    padding: clamp(28px, 5vw, 62px);
    border-radius: 30px;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, .45), transparent 34%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.detail-top {
    padding: 26px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-weight: 800;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    gap: 24px;
}

.player-shell,
.detail-info-card,
.copy-card {
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-950);
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--slate-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, .24), rgba(2, 6, 23, .68));
    cursor: pointer;
    transition: opacity .22s ease, visibility .22s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 18px 40px rgba(234, 88, 12, .38);
    font-size: 2rem;
}

.player-cover strong {
    font-size: 1.15rem;
}

.detail-info-card {
    overflow: hidden;
}

.detail-info-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--slate-900);
}

.detail-info-text {
    padding: 22px;
}

.detail-info-card h1 {
    color: var(--slate-900);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-info-card p {
    color: var(--slate-500);
    font-size: .98rem;
}

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: var(--slate-700);
    font-weight: 800;
}

.info-list a {
    color: var(--orange-600);
}

.copy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.copy-card {
    padding: 26px;
}

.copy-card h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 1.45rem;
}

.copy-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 2;
}

.accent-card {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.accent-card h2,
.accent-card p {
    color: var(--white);
}

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

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, .76);
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900));
}

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

.footer-inner strong {
    display: block;
    color: var(--white);
    font-size: 1.25rem;
}

.footer-inner p {
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 900;
}

.no-results {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 22px;
    color: var(--slate-500);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

@media (max-width: 1120px) {
    .hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 760px) {
    .site-nav {
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .brand-text {
        font-size: 1rem;
    }

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

    .hero {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .hero-slide {
        padding: 28px;
    }

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

    .hero-controls {
        left: 22px;
        bottom: 20px;
    }

    .content-section,
    .page-hero,
    .detail-top {
        width: calc(100% - 24px);
        margin-top: 42px;
    }

    .section-heading,
    .toolbar,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-links,
    .footer-links {
        flex-wrap: wrap;
    }

    .movie-grid,
    .related-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-strip,
    .copy-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 132px 1fr;
    }

    .poster-link {
        aspect-ratio: 3 / 4;
    }

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

    .movie-card p {
        min-height: auto;
    }

    .detail-info-card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .detail-info-card img {
        height: 100%;
    }

    .footer-inner {
        padding: 28px 0;
    }
}
