:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-50: #fff1f2;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 18px 48px rgba(126, 34, 206, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-600);
    background: linear-gradient(135deg, var(--purple-100), #ffe4f1);
    box-shadow: 0 10px 28px rgba(147, 51, 234, 0.22);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-700);
    background: var(--purple-50);
    transform: translateY(-1px);
}

.nav-search {
    min-width: 290px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.nav-search button,
.hero-search button,
.filter-bar button {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 800;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--purple-50);
    color: var(--purple-700);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 42px 20px 72px;
    background: linear-gradient(135deg, #faf5ff 0%, #fff1f7 50%, #fdf2f8 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-glow-a {
    width: 360px;
    height: 360px;
    background: #a855f7;
    left: -80px;
    top: 20px;
}

.hero-glow-b {
    width: 460px;
    height: 460px;
    background: #ec4899;
    right: -120px;
    bottom: -140px;
}

.hero-carousel {
    position: relative;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--purple-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 28px 0 20px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    display: block;
    background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    font-size: 19px;
    color: #4b5563;
}

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

.hero-tags {
    margin: 26px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    color: var(--purple-700);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(147, 51, 234, 0.09);
}

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

.btn-primary,
.btn-ghost,
.detail-play-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.detail-play-trigger {
    color: #fff;
    background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
    box-shadow: 0 16px 34px rgba(219, 39, 119, 0.25);
}

.btn-primary:hover,
.btn-ghost:hover,
.detail-play-trigger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    color: var(--purple-700);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(126, 34, 206, 0.28);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: min(58vw, 520px);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.045);
}

.floating-card {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    color: var(--purple-700);
    box-shadow: var(--shadow-sm);
}

.floating-card strong {
    font-size: 24px;
}

.floating-card small {
    color: #6b7280;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(126, 34, 206, 0.22);
    cursor: pointer;
}

.hero-dot.active {
    width: 38px;
    background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
}

.hero-search {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 34px auto 0;
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 18px 22px;
    font-size: 17px;
}

.hero-search button {
    padding: 0 28px;
}

.hero-category-links {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 18px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-category-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #581c87;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.content-section {
    padding: 72px 0;
}

.content-section.soft {
    background: linear-gradient(135deg, #fff, #faf5ff);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-heading a {
    color: var(--purple-700);
    font-weight: 900;
}

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

.feature-card,
.category-card,
.info-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.category-card:hover,
.info-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
    margin-bottom: 16px;
}

.feature-card h3,
.category-card h2,
.info-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.feature-card p,
.category-card p,
.info-card p {
    margin: 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title {
    display: block;
    min-height: 48px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-title:hover {
    color: var(--purple-700);
}

.movie-meta {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card p {
    min-height: 68px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
}

.tag-row span {
    padding: 4px 9px;
    font-size: 12px;
    background: var(--purple-50);
    box-shadow: none;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.rank-list,
.rank-panel {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 64px minmax(0, 1fr) 50px;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: var(--purple-50);
}

.rank-item img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-num {
    color: var(--pink-600);
    font-size: 20px;
    font-weight: 950;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.rank-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    justify-self: end;
    color: var(--purple-700);
    font-weight: 950;
}

.page-hero {
    padding: 58px 0;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.45), transparent 28%), linear-gradient(135deg, #6d28d9, #db2777);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -48px;
    top: -52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(236, 72, 153, 0.18));
}

.category-card h2 {
    font-size: 28px;
}

.category-samples {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--purple-50);
    color: var(--purple-700);
    font-weight: 800;
    font-size: 13px;
}

.detail-wrap {
    padding: 38px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--purple-700);
    font-weight: 800;
}

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

.detail-poster,
.detail-info,
.player-card,
.text-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.detail-info {
    padding: 30px;
}

.detail-info h1 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-lead {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
}

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

.detail-meta span {
    border-radius: 14px;
    padding: 12px;
    background: var(--purple-50);
    color: #4b5563;
}

.detail-meta strong {
    color: #111827;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
}

.detail-play-trigger {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-size: 18px;
}

.player-section {
    margin-top: 30px;
}

.player-card {
    padding: 22px;
}

.player-card h2,
.text-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    z-index: 2;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-700);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    font-size: 34px;
    transition: transform 0.2s ease;
}

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

.player-message {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    background: rgba(17, 24, 39, 0.82);
}

.player-message.show {
    display: block;
}

.text-card {
    margin-top: 24px;
    padding: 26px;
}

.text-card p {
    margin: 0 0 16px;
    color: #374151;
}

.related-section {
    margin-top: 52px;
}

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

.empty-state {
    display: none;
    padding: 42px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    color: var(--muted);
}

.empty-state.show {
    display: block;
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #4c1d95, #831843);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.74);
}

.footer-block h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

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

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

    .hero-slide,
    .detail-main,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 860px;
    }

    .hero-poster img {
        height: 520px;
    }

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

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

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

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .hero-section {
        padding-top: 28px;
    }

    .hero-carousel {
        min-height: 790px;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-copy h1 {
        margin-top: 18px;
    }

    .hero-search {
        display: grid;
        border-radius: 18px;
    }

    .hero-search button {
        min-height: 48px;
    }

    .hero-poster img {
        height: 420px;
    }

    .hero-dots {
        bottom: -10px;
    }

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

    .movie-grid,
    .movie-grid.featured-grid,
    .feature-grid,
    .category-grid,
    .category-list,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .content-section {
        padding: 48px 0;
    }
}
