:root {
    --page-bg: #fff7fd;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text: #191224;
    --muted: #6b6274;
    --line: rgba(139, 92, 246, 0.16);
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --accent: #db2777;
    --accent-soft: #fce7f3;
    --shadow: 0 24px 70px rgba(88, 28, 135, 0.18);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(216, 180, 254, 0.35), transparent 32rem),
        radial-gradient(circle at top right, rgba(251, 207, 232, 0.42), transparent 34rem),
        var(--page-bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 35px rgba(219, 39, 119, 0.28);
}

.brand-name {
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #52465f;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-dark);
    background: rgba(124, 58, 237, 0.1);
}

.nav-toggle {
    display: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-dark);
    font-weight: 800;
}

main {
    width: 100%;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.hero-glow-one {
    width: 280px;
    height: 280px;
    top: 80px;
    left: 7%;
    background: #c084fc;
}

.hero-glow-two {
    width: 380px;
    height: 380px;
    right: 5%;
    bottom: 30px;
    background: #f472b6;
}

.hero-slides {
    position: relative;
    width: min(100% - 32px, var(--container));
    min-height: 680px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 46px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 48px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 36px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    box-shadow: var(--shadow);
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 12, 44, 0.88), rgba(68, 22, 83, 0.55), rgba(255, 255, 255, 0.08)),
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.28), transparent 14rem);
    z-index: -1;
}

.hero-content {
    max-width: 680px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 7vw, 5.9rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero-desc {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    line-height: 1.9;
    max-width: 660px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
}

.tag-row span {
    background: #f5f3ff;
    color: var(--primary-dark);
    border-color: rgba(124, 58, 237, 0.1);
}

.detail-tags span {
    background: rgba(124, 58, 237, 0.09);
    color: var(--primary-dark);
    border-color: rgba(124, 58, 237, 0.12);
}

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

.primary-btn,
.secondary-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-btn {
    min-height: 52px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 40px rgba(219, 39, 119, 0.26);
}

.secondary-btn {
    min-height: 52px;
    padding: 0 24px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
    transform: rotate(2.5deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.35));
    z-index: 1;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.28);
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.stats-band,
.content-section,
.ranking-strip,
.filter-panel,
.page-hero,
.detail-hero,
.player-section {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: -28px;
    position: relative;
    z-index: 4;
}

.stats-band div {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 45px rgba(88, 28, 135, 0.12);
    backdrop-filter: blur(16px);
}

.stats-band strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
    color: var(--primary-dark);
}

.stats-band span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.content-section,
.ranking-strip,
.player-section {
    padding: 48px 0;
}

.intro-section {
    padding-bottom: 18px;
}

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

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-dark);
    border-color: rgba(124, 58, 237, 0.12);
}

.section-heading h2,
.detail-article h2,
.detail-side-card h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.lead-text {
    max-width: 860px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.text-link {
    color: var(--primary-dark);
    background: rgba(124, 58, 237, 0.1);
    padding: 12px 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 12px 38px rgba(88, 28, 135, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.search-box span {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.search-box input,
.filter-selects select {
    width: 100%;
    outline: none;
    color: var(--text);
    background: transparent;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-selects select {
    min-width: 138px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.12);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 20px 54px rgba(88, 28, 135, 0.1);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(88, 28, 135, 0.18);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(219, 39, 119, 0.12));
}

.movie-poster img {
    transition: transform 0.35s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
    backdrop-filter: blur(12px);
}

.year-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.52);
    font-size: 0.78rem;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    min-height: 220px;
}

.movie-card-title {
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: var(--text);
}

.movie-card-title:hover {
    color: var(--primary-dark);
}

.movie-card-meta {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 850;
}

.movie-card-desc {
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.94rem;
}

.movie-card-compact .movie-card-body {
    min-height: 185px;
}

.empty-state {
    margin-top: 24px;
    padding: 28px;
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted);
    font-weight: 800;
}

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

.category-tile {
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 231, 243, 0.72));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 20px 52px rgba(88, 28, 135, 0.1);
    overflow: hidden;
}

.category-main-link {
    display: block;
    padding: 28px;
}

.category-count {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(124, 58, 237, 0.1);
    font-weight: 900;
    margin-bottom: 16px;
}

.category-tile h2 {
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.category-tile p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 28px;
}

.category-samples a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

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

.ranking-list li a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(124, 58, 237, 0.11);
}

.ranking-list span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 950;
}

.ranking-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: var(--accent);
    font-weight: 950;
    font-style: normal;
}

.page-hero,
.detail-hero {
    margin-top: 28px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(252, 231, 243, 0.78)),
        radial-gradient(circle at right top, rgba(216, 180, 254, 0.62), transparent 22rem);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: var(--shadow);
}

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

.page-hero p {
    max-width: 820px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.04rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 54px);
    align-items: center;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(88, 28, 135, 0.22);
}

.detail-copy h1 {
    color: var(--text);
}

.detail-one-line {
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.9;
}

.detail-tags {
    margin-top: 22px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #12091f;
    box-shadow: 0 30px 80px rgba(18, 9, 31, 0.35);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05020a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(18, 9, 31, 0.32), rgba(88, 28, 135, 0.28));
    font-size: 1rem;
    font-weight: 950;
    transition: 0.22s ease;
    z-index: 3;
}

.player-overlay:hover .play-circle {
    transform: scale(1.08);
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 50px rgba(219, 39, 119, 0.34);
    transition: 0.22s ease;
}

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

.detail-article,
.detail-side-card {
    padding: clamp(24px, 4vw, 36px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 20px 56px rgba(88, 28, 135, 0.09);
}

.detail-article h2:not(:first-child) {
    margin-top: 32px;
}

.detail-article p {
    margin-top: 14px;
    color: #403548;
    line-height: 2;
    font-size: 1.04rem;
}

.detail-side-card dl {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.detail-side-card div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.detail-side-card dt {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 900;
}

.detail-side-card dd {
    margin-top: 5px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.6;
}

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

.site-footer {
    margin-top: 36px;
    background: linear-gradient(135deg, #3b0764, #831843);
    color: #ffffff;
}

.footer-shell {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 48px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 560px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.9;
}

.footer-brand-link .brand-name {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

.footer-columns h2 {
    font-size: 1.05rem;
    font-weight: 950;
    margin-bottom: 14px;
}

.footer-columns ul {
    display: grid;
    gap: 10px;
}

.footer-columns a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-columns a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: rgba(255, 255, 255, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    }

    .detail-body,
    .footer-shell {
        grid-template-columns: 1fr;
    }
}

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

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 86px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(124, 58, 237, 0.13);
        box-shadow: var(--shadow);
    }

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

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

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

    .hero-slide {
        inset: 24px 0 72px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
    }

    .hero-poster {
        max-width: 260px;
        justify-self: start;
        transform: none;
    }

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

    .filter-panel,
    .compact-hero,
    .detail-layout,
    .footer-columns {
        grid-template-columns: 1fr;
        display: grid;
    }

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

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

@media (max-width: 640px) {
    .nav-shell {
        height: 68px;
    }

    .brand-name {
        font-size: 1.08rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

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

    .movie-card-title {
        font-size: 0.98rem;
    }

    .movie-card-desc {
        font-size: 0.88rem;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.2rem, 14vw, 3.5rem);
    }

    .hero-slide,
    .page-hero,
    .detail-hero {
        border-radius: 24px;
        padding: 24px;
    }

    .hero-actions,
    .detail-actions,
    .filter-selects {
        grid-template-columns: 1fr;
        display: grid;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .stats-band {
        grid-template-columns: 1fr;
    }

    .player-shell {
        border-radius: 20px;
    }

    .play-circle {
        width: 64px;
        height: 64px;
    }
}
