* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #fff7ff;
    --panel: #ffffff;
    --ink: #1f1b2e;
    --muted: #6b6478;
    --line: rgba(126, 34, 206, 0.12);
    --primary: #9333ea;
    --primary-deep: #6d28d9;
    --accent: #ec4899;
    --accent-soft: #fce7f3;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(88, 28, 135, 0.16);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 32rem),
        radial-gradient(circle at top right, rgba(147, 51, 234, 0.18), transparent 34rem),
        linear-gradient(180deg, #fff7ff 0%, #ffffff 42%, #fff7ff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #7e22ce 0%, #ec4899 52%, #a855f7 100%);
    box-shadow: 0 16px 36px rgba(126, 34, 206, 0.28);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand {
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.brand-text {
    background: linear-gradient(90deg, #fff, #fce7f3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #fff;
    transform: translateY(-1px);
}

.site-search {
    position: relative;
    width: 220px;
}

.site-search input,
.mobile-search input,
.filter-input,
.filter-select,
.search-large input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.site-search input {
    height: 40px;
    padding: 0 46px 0 18px;
    transition: width 0.25s ease, background 0.25s ease;
}

.site-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.site-search input:focus {
    background: rgba(255, 255, 255, 0.26);
}

.site-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

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

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

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

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    height: 42px;
    padding: 0 16px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    color: var(--primary);
    background: #fff;
}

.mobile-link {
    display: block;
    padding: 10px 4px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 570px;
    color: #fff;
    background: #13051f;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.35), transparent 32rem),
        radial-gradient(circle at 78% 16%, rgba(147, 51, 234, 0.45), transparent 30rem),
        linear-gradient(135deg, rgba(19, 5, 31, 0.98), rgba(76, 29, 149, 0.88));
    z-index: 1;
}

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

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

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.23;
    filter: blur(1px) saturate(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 48px;
    padding: 76px 0 92px;
}

.hero-kicker,
.section-kicker,
.card-region,
.category-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
}

.hero-kicker,
.section-kicker {
    padding: 8px 14px;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    color: #fff;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.hero h1 {
    max-width: 790px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6.2vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 740px;
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.88);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero-actions,
.section-title-row,
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #7e22ce, #ec4899);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.28);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    width: min(100%, 410px);
    justify-self: end;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: inherit;
    pointer-events: none;
}

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

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

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

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

.main-space {
    padding: 58px 0 22px;
}

.section {
    margin-bottom: 64px;
}

.section-title-row {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading h2,
.page-heading h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.page-heading p,
.category-card p,
.movie-card p,
.mini-card p,
.detail-copy p,
.info-card p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.72;
}

.section-link {
    color: var(--primary);
    font-weight: 900;
}

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

.movie-card,
.category-card,
.info-card,
.panel-card,
.mini-card,
.search-box,
.player-shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 58px rgba(126, 34, 206, 0.24);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #4c1d95, #db2777);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 2.82;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.68));
    transition: opacity 0.28s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-region {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(90deg, #9333ea, #ec4899);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover,
.mini-title:hover {
    color: var(--primary);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 12px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #8b5cf6;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3e8ff;
}

.category-chip {
    padding: 6px 10px;
    color: #be185d;
    font-size: 12px;
    background: #fce7f3;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -26px -68px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.info-card h2,
.panel-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card span {
    position: absolute;
    left: 26px;
    bottom: 22px;
    color: var(--primary);
    font-weight: 900;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.mini-list {
    display: grid;
    gap: 16px;
}

.mini-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
}

.mini-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.mini-poster img {
    width: 96px;
    height: 128px;
    object-fit: cover;
}

.rank-index {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.mini-title {
    display: block;
    margin: 4px 0 8px;
    font-weight: 900;
}

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

.mini-card span {
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    padding: 62px 0 42px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.32), transparent 30rem),
        linear-gradient(135deg, #4c1d95, #be185d);
}

.page-heading {
    max-width: 820px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

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

.filter-bar {
    align-items: stretch;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.filter-input,
.filter-select,
.search-large input {
    min-height: 46px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(147, 51, 234, 0.18);
}

.filter-input {
    flex: 1 1 300px;
}

.filter-select {
    flex: 0 0 160px;
    border-radius: 16px;
}

.search-box {
    padding: 26px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.search-large {
    display: flex;
    gap: 12px;
}

.search-large input {
    border-radius: 18px;
}

.search-large button {
    min-width: 116px;
}

.detail-hero {
    position: relative;
    color: #fff;
    background: #150522;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(236, 72, 153, 0.24), transparent 32rem),
        linear-gradient(90deg, rgba(21, 5, 34, 0.96), rgba(61, 9, 96, 0.82));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 40px;
    align-items: center;
    padding: 58px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-title h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5.4vw, 62px);
    line-height: 1.06;
}

.detail-title p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.76;
}

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

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.video-play-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 30px;
    cursor: pointer;
}

.detail-copy,
.info-card,
.panel-card {
    border-radius: var(--radius);
    padding: 26px;
}

.detail-copy {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--line);
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-copy p {
    margin: 0 0 20px;
    font-size: 16px;
}

.info-card {
    position: sticky;
    top: 92px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span:first-child {
    color: var(--muted);
}

.info-row span:last-child {
    font-weight: 900;
    text-align: right;
}

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

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.site-footer {
    margin-top: 68px;
    color: #fff;
    background: linear-gradient(180deg, #581c87, #2e1065);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand {
    font-size: 24px;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

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

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

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

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

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

    .info-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .site-search {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        min-height: 64px;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 56px 0 88px;
    }

    .hero-poster {
        width: min(74vw, 310px);
        justify-self: start;
        transform: rotate(0deg);
    }

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

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

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

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

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

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

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

    .movie-title {
        min-height: 42px;
        font-size: 15px;
    }

    .movie-card-body p {
        min-height: auto;
        font-size: 13px;
    }

    .mini-card {
        grid-template-columns: 82px 1fr;
    }

    .mini-poster img {
        width: 82px;
        height: 112px;
    }

    .search-large {
        flex-direction: column;
    }

    .filter-select {
        flex: 1 1 140px;
    }
}
