:root {
    color-scheme: light;
    --bg: #fff7ff;
    --surface: #ffffff;
    --surface-strong: #fff0fb;
    --ink: #25152f;
    --muted: #705f7b;
    --soft: #ead8f2;
    --purple: #7c3aed;
    --purple-dark: #4c1d95;
    --pink: #ec4899;
    --orange: #f97316;
    --shadow: 0 20px 45px rgba(76, 29, 149, 0.16);
    --ring: 0 0 0 4px rgba(236, 72, 153, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(236, 72, 153, 0.13), transparent 32rem),
        radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.16), transparent 34rem),
        linear-gradient(180deg, #f8eaff 0%, #fff7fb 42%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 55%, #a855f7 100%);
    box-shadow: 0 14px 35px rgba(124, 58, 237, 0.28);
}

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

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

.brand {
    font-size: 22px;
    white-space: nowrap;
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.19);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.nav-link {
    font-size: 15px;
    opacity: 0.9;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    font: inherit;
}

.nav-search input,
.mobile-search input {
    width: 190px;
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    padding: 10px 14px;
    backdrop-filter: blur(14px);
    transition: width 0.25s ease, box-shadow 0.25s ease;
}

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

.nav-search input:focus {
    width: 250px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.nav-search button,
.mobile-search button {
    border: 0;
    color: #7c2bd7;
    background: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

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

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

.mobile-links {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

main {
    min-height: 70vh;
}

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

.hero {
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.18), rgba(255, 255, 255, 0));
}

.hero-stage {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #26103d, #7c3aed 44%, #ec4899);
    box-shadow: var(--shadow);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 8, 30, 0.92) 0%, rgba(44, 15, 70, 0.66) 42%, rgba(15, 4, 30, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(720px, calc(100% - 96px));
    transform: translateY(-50%);
    color: #fff;
}

.hero-pill {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.rank-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-btn {
    padding: 13px 24px;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.36);
}

.ghost-btn {
    padding: 12px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inline-btn {
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--pink));
}

.primary-btn:hover,
.ghost-btn:hover,
.inline-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.content-section {
    margin: 0 0 54px;
}

.section-heading,
.page-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-heading > span,
.page-heading > span {
    width: 6px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--purple), var(--pink));
}

.section-heading h2,
.page-heading h1,
.detail-text h1 {
    margin: 0;
    color: #281235;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.section-heading p,
.page-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(76, 29, 149, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(76, 29, 149, 0.18);
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #2e1450, #7c3aed 48%, #ec4899);
}

.movie-card-horizontal .poster-shell {
    aspect-ratio: 16 / 9;
}

.poster-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.poster-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--purple);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.28s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

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

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row span,
.detail-tags span {
    color: #7a2bd2;
    background: #f0dcff;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 28px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28), transparent 10rem),
        linear-gradient(135deg, #6d28d9, #ec4899);
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.24), transparent 10rem),
        linear-gradient(135deg, #4c1d95, #f97316);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 27px;
}

.category-card p {
    margin: 0 0 22px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.category-samples a {
    border-radius: 999px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 90px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(76, 29, 149, 0.11);
}

.rank-number {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 90px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(135deg, #2e1450, #ec4899);
}

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

.rank-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-badge {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.filter-panel {
    margin: 0 0 26px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 38px rgba(76, 29, 149, 0.10);
}

.filter-title {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 900;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 160px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    color: var(--ink);
    background: #fff;
    padding: 13px 15px;
    box-shadow: inset 0 0 0 1px #ead8f2;
}

.filter-controls input:focus,
.filter-controls select:focus {
    box-shadow: var(--ring), inset 0 0 0 1px rgba(236, 72, 153, 0.32);
}

.filter-empty {
    display: none;
    margin-top: 16px;
    color: var(--muted);
}

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

.breadcrumb {
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: stretch;
    margin-bottom: 36px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #2e1450, #7c3aed 50%, #ec4899);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
}

.detail-text {
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #7a2bd2;
    background: #f0dcff;
    font-weight: 800;
}

.detail-text h1 {
    margin-bottom: 18px;
}

.detail-lead {
    margin: 0 0 20px;
    color: #4b355f;
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.player-section {
    overflow: hidden;
    border-radius: 30px;
    background: #0c0614;
    box-shadow: var(--shadow);
    margin-bottom: 42px;
}

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

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.76), rgba(236, 72, 153, 0.44));
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
}

.play-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--purple);
    font-size: 38px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.player-caption {
    padding: 18px 22px;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(90deg, #160725, #2d113f);
}

.article-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 46px;
}

.article-card {
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(76, 29, 149, 0.10);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.article-card p {
    margin: 0;
    color: #4b355f;
    line-height: 1.9;
}

.site-footer {
    color: #fff;
    background: linear-gradient(180deg, #4c1d95, #220d3d);
    margin-top: 52px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
}

.footer-brand {
    font-size: 22px;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

@media (max-width: 980px) {
    .main-nav,
    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-stage {
        height: 520px;
    }

    .hero-content {
        left: 24px;
        width: calc(100% - 48px);
    }

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

    .category-grid,
    .article-block,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        min-height: 360px;
    }
}

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

    .brand {
        font-size: 19px;
    }

    .hero-stage {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .card-body {
        padding: 13px;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 74px 1fr;
    }

    .rank-row .inline-btn {
        grid-column: 1 / -1;
    }

    .rank-number {
        width: 42px;
        height: 42px;
    }

    .rank-cover {
        width: 74px;
    }

    .detail-text,
    .article-card {
        padding: 22px;
    }

    .detail-poster img {
        min-height: 320px;
    }
}

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

    .mobile-links {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }
}
