
:root {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
    --accent: #db2777;
    --accent-soft: #fce7f3;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #faf5ff;
    --page: #f9fafb;
    --shadow: 0 18px 45px rgba(88, 28, 135, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.brand-text {
    font-size: 20px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--brand);
    background: #f3e8ff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f3e8ff;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--brand);
    margin: 5px 0;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 16px;
}

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

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background: linear-gradient(135deg, #faf5ff, #ffffff 48%, #fdf2f8);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    filter: blur(2px) saturate(1.2);
    transform: scale(1.03);
}

.hero-carousel::before,
.hero-carousel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-carousel::before {
    width: 420px;
    height: 420px;
    right: -130px;
    top: 120px;
    background: rgba(219, 39, 119, 0.16);
}

.hero-carousel::after {
    width: 360px;
    height: 360px;
    left: -140px;
    bottom: 70px;
    background: rgba(124, 58, 237, 0.15);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    align-items: center;
    gap: 54px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    background: #f3e8ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 22px 0 22px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy p {
    max-width: 640px;
    color: #4b5563;
    font-size: 20px;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 18px 34px rgba(124, 58, 237, 0.25);
}

.btn-secondary {
    color: var(--brand);
    background: #ffffff;
    border: 1px solid #e9d5ff;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.18);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
    max-width: 620px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(233, 213, 255, 0.9);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(88, 28, 135, 0.08);
}

.hero-stat strong {
    display: block;
    font-size: 26px;
    color: var(--brand-dark);
}

.hero-stat span {
    color: var(--muted);
    font-size: 14px;
}

.hero-stage {
    position: relative;
    min-height: 580px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
    transform: translateX(16px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.86));
}

.hero-slide-copy {
    position: relative;
    z-index: 1;
    padding: 34px;
    color: #ffffff;
}

.hero-slide-copy span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.hero-slide-copy h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.12;
}

.hero-slide-copy p {
    color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.page-hero {
    padding: 82px 0 46px;
    background: radial-gradient(circle at top right, #fce7f3, transparent 34%), linear-gradient(135deg, #faf5ff, #ffffff);
    border-bottom: 1px solid #f3e8ff;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    color: #4b5563;
    font-size: 18px;
}

.section {
    padding: 58px 0;
}

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

.section-head h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-head p {
    color: var(--muted);
    max-width: 680px;
}

.section-link {
    flex: 0 0 auto;
    color: var(--brand);
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 999px;
    background: #f3e8ff;
}

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #e9d5ff;
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e8ff, #fdf2f8);
}

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

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

.card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 750;
}

.card-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 25px rgba(17, 24, 39, 0.18);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

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

.card-body p {
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span,
.meta-chip {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #f3e8ff;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 28px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(233, 213, 255, 0.9);
    box-shadow: 0 14px 34px rgba(88, 28, 135, 0.09);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.17), rgba(219, 39, 119, 0.17));
}

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

.category-card p {
    position: relative;
    color: var(--muted);
    min-height: 76px;
}

.category-count {
    position: relative;
    display: inline-flex;
    margin: 18px 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--brand);
    background: #f3e8ff;
    font-weight: 800;
}

.thumb-row {
    position: relative;
    display: flex;
    align-items: center;
}

.thumb-row img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
    margin-right: -16px;
    background: #f3e8ff;
}

.filter-panel {
    margin: 34px 0 28px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.filter-title strong {
    font-size: 20px;
}

.filter-title span {
    color: var(--muted);
    font-size: 14px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 14px;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink);
    background: #f9fafb;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
}

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

.rank-row {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    border-color: #e9d5ff;
    box-shadow: 0 16px 36px rgba(88, 28, 135, 0.1);
}

.rank-link {
    display: grid;
    grid-template-columns: 72px 78px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.rank-number {
    color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 30px;
    font-weight: 900;
}

.rank-row img {
    width: 78px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3e8ff;
}

.rank-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
}

.rank-heat {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fdf2f8;
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0;
    background: #111827;
    color: #ffffff;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(3px) saturate(1.15);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.75));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
    background: #312e81;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-copy h1 {
    margin: 16px 0 16px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.player-card,
.story-panel,
.info-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.player-card h2,
.story-panel h2,
.info-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
    font-size: 30px;
}

.story-panel {
    margin-top: 24px;
}

.story-panel p {
    color: #374151;
    margin: 0 0 16px;
}

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

.info-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.info-list strong {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

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

.mini-card {
    display: grid;
    gap: 8px;
    font-weight: 750;
}

.mini-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #f3e8ff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.mini-card span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.empty-filter {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 22px;
    border: 1px dashed #d1d5db;
}

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

.site-footer {
    margin-top: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #4c1d95, #831843);
}

.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.76);
}

.footer-brand p {
    max-width: 440px;
    margin: 16px 0 0;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

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

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

.hidden-by-filter {
    display: none !important;
}

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

    .hero-stage {
        min-height: 520px;
    }

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .header-inner {
        min-height: 68px;
        padding: 0 18px;
    }

    .brand-text {
        font-size: 17px;
    }

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

    .hero-inner {
        width: min(100% - 28px, 1200px);
        padding: 52px 0 46px;
        gap: 32px;
    }

    .hero-copy p {
        font-size: 17px;
    }

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

    .hero-stage {
        min-height: 460px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

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

    .rank-link {
        grid-template-columns: 48px 64px 1fr;
    }

    .rank-heat {
        grid-column: 3 / 4;
        justify-self: start;
    }

    .detail-poster {
        max-width: 260px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide-copy {
        padding: 24px;
    }

    .hero-slide-copy h2 {
        font-size: 28px;
    }
}
