:root {
    color-scheme: light;
    --pink: #ec4899;
    --rose: #f43f5e;
    --purple: #8b5cf6;
    --violet: #7c3aed;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.26);
    --soft: rgba(255, 255, 255, 0.74);
    --shadow: 0 24px 70px rgba(30, 41, 59, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 32rem),
        linear-gradient(135deg, #fff1f2 0%, #faf5ff 42%, #eff6ff 100%);
}

body.is-menu-open {
    overflow: hidden;
}

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: 50;
    color: #fff;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.96), rgba(147, 51, 234, 0.96), rgba(37, 99, 235, 0.96));
    box-shadow: 0 18px 50px rgba(88, 28, 135, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 9px 12px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button {
    border: 0;
    border-radius: 999px;
    color: var(--violet);
    background: #fff;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav .nav-link {
    display: block;
    margin-top: 8px;
}

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #24113d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(88, 28, 135, 0.94), rgba(157, 23, 77, 0.76), rgba(30, 64, 175, 0.88)),
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.16), transparent 18rem);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fde68a;
    font-weight: 900;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.btn-primary,
.btn-light,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.btn-light {
    color: var(--violet);
    background: #fff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.btn-light:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 100px rgba(17, 24, 39, 0.32);
}

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

.hero-poster-meta {
    position: absolute;
    inset: auto 16px 16px 16px;
    border-radius: 20px;
    padding: 16px;
    background: rgba(17, 24, 39, 0.64);
    backdrop-filter: blur(18px);
}

.hero-poster-meta strong {
    display: block;
    font-size: 22px;
}

.hero-poster-meta span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

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

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

.hero-dot.is-active {
    background: #fff;
}

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

.page-hero {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

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

.page-hero p,
.detail-title p {
    max-width: 850px;
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 36px rgba(168, 85, 247, 0.28);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.content-block {
    margin-top: 54px;
}

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    transition: 0.28s ease;
}

.card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 88px rgba(88, 28, 135, 0.22);
}

.cover-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(59, 130, 246, 0.22));
}

.cover-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: 0.35s ease;
}

.card-link:hover img,
.wide-card:hover img,
.related-card:hover img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

.year-badge,
.type-badge,
.rank-badge,
.small-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(12px);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
}

.type-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
}

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

.card-body {
    display: flex;
    min-height: 184px;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.card-meta,
.card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    color: #be185d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    border-radius: 28px;
    padding: 24px;
    color: #fff;
    background: var(--tile-bg, linear-gradient(135deg, var(--pink), var(--purple)));
    box-shadow: var(--shadow);
    transition: 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.01);
}

.category-tile span {
    display: block;
    font-size: 36px;
    margin-bottom: 14px;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: start;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.wide-card a {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 18px;
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    transition: 0.25s ease;
}

.wide-card a:hover {
    transform: translateY(-4px);
}

.wide-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.wide-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: 0.35s ease;
}

.wide-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.wide-info strong {
    font-size: 20px;
}

.wide-info em {
    color: var(--pink);
    font-style: normal;
    font-weight: 800;
}

.wide-info span {
    color: var(--muted);
    line-height: 1.7;
}

.small-rank {
    left: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.filter-panel,
.info-panel,
.detail-card,
.player-card,
.related-panel {
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.filter-panel {
    margin-bottom: 28px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
    gap: 12px;
}

.filter-grid input,
.filter-grid select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #334155;
    background: #fff;
    padding: 0 14px;
    outline: 0;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: rgba(236, 72, 153, 0.65);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

.empty-state {
    display: none;
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.76);
}

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

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

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 0;
    overflow: hidden;
    background: #050816;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050816;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050816;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(15, 23, 42, 0.34);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 22px 52px rgba(236, 72, 153, 0.42);
    font-size: 40px;
    transform: translateZ(0);
}

.detail-card h1,
.detail-card h2,
.related-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.detail-card p,
.info-panel p {
    color: #4b5563;
    line-height: 1.9;
    margin: 0 0 16px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.meta-strip span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #5b21b6;
    background: #ede9fe;
    font-weight: 800;
}

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

.related-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
}

.related-card .related-cover {
    overflow: hidden;
    border-radius: 16px;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: 0.35s ease;
}

.related-info strong {
    display: block;
    line-height: 1.4;
}

.related-info span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    color: #fff;
    background: linear-gradient(90deg, #111827, #581c87, #111827);
}

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

.footer-inner p {
    max-width: 560px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.footer-links a {
    border-radius: 999px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .header-search {
        display: none;
    }

    .hero-inner,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-section,
    .hero-inner {
        min-height: 520px;
    }

    .hero-inner {
        display: flex;
        align-items: center;
    }

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

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

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

    .wide-card a,
    .related-card {
        grid-template-columns: 112px 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

    .hero-actions,
    .inline-actions {
        flex-direction: column;
    }

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

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

    .page-shell,
    .page-hero-inner,
    .header-inner,
    .mobile-nav,
    .footer-inner,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .card-body {
        min-height: auto;
    }
}
