:root {
    --pink: #ec4899;
    --pink-strong: #db2777;
    --purple: #8b5cf6;
    --blue: #60a5fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 80px rgba(79, 70, 229, 0.15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff1f2 0%, #f5f3ff 45%, #eff6ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.96), rgba(168, 85, 247, 0.96), rgba(96, 165, 250, 0.96));
    box-shadow: 0 14px 40px rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
    padding: 26px 0;
}

.dropdown-panel {
    position: absolute;
    top: 72px;
    left: -18px;
    width: 190px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    color: #374151;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: #fdf2f8;
    color: var(--pink-strong);
}

.site-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 320px;
}

.site-search input,
.big-search input,
.category-filter-form input,
.category-filter-form select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: #374151;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.site-search button,
.big-search button,
.category-filter-form button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    color: #fff;
    background: var(--pink-strong);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-search button:hover,
.big-search button:hover,
.category-filter-form button:hover {
    transform: translateY(-1px);
    background: #be185d;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: #fff;
}

.mobile-panel nav,
.mobile-category-list {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-shade,
.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(88, 28, 135, 0.56), rgba(236, 72, 153, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 700px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.94);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow.light {
    background: #fce7f3;
    color: var(--pink-strong);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-list span,
.detail-tags a {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.tag-list span {
    color: #7c3aed;
    background: #f5f3ff;
}

.detail-tags a {
    color: #7c3aed;
    background: #fff;
}

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

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

.primary-btn {
    color: #fff;
    background: var(--pink);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.36);
}

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

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

.hero-poster {
    display: block;
    border-radius: 32px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
}

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

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

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

.section {
    padding: 74px 0;
}

.soft-band {
    padding: 74px 0;
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.9), rgba(237, 233, 254, 0.92), rgba(219, 234, 254, 0.9));
}

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

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

.section-link {
    color: var(--pink-strong);
    font-weight: 800;
}

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

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

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

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 90px rgba(236, 72, 153, 0.22);
}

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

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.92);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.movie-meta-row,
.movie-card-foot,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover {
    color: var(--pink-strong);
}

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

.movie-card-foot {
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.movie-card-foot a {
    color: var(--pink-strong);
    font-weight: 800;
}

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

.category-card a,
.category-overview-card a {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.92), rgba(96, 165, 250, 0.92));
    color: #fff;
    box-shadow: var(--shadow);
}

.category-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

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

.category-card p,
.category-overview-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.category-samples a {
    min-height: auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font-size: 14px;
    opacity: 0.92;
}

.feature-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    border-radius: 34px;
    padding: 44px;
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #60a5fa);
    box-shadow: var(--shadow);
}

.feature-banner h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.feature-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
}

.light-btn {
    background: #fff;
    color: var(--pink-strong);
}

.light-ghost {
    color: #fff;
}

.banner-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.banner-stack .movie-card {
    border-radius: 20px;
}

.banner-stack .movie-card:nth-child(n + 5) {
    display: none;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #111827, #581c87 48%, #be185d);
}

.page-hero {
    padding: 86px 0 72px;
}

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.8), transparent 34%), linear-gradient(135deg, #111827, #4c1d95 55%, #1d4ed8);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.category-filter-form,
.big-search {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 26px;
    border-radius: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.big-search {
    grid-template-columns: 1fr auto;
    max-width: 720px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    min-height: 260px;
    padding: 0;
    background: #fff;
    color: var(--ink);
}

.category-cover-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px 0 12px 12px;
}

.category-cover-strip img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-body {
    padding: 28px 28px 28px 0;
}

.category-overview-body p {
    color: #4b5563;
}

.category-overview-body .category-samples a {
    color: var(--pink-strong);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 96px 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.rank-cover img {
    width: 96px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

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

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-content p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.7;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    border-radius: 999px;
    color: #fff;
    background: var(--pink);
    font-weight: 800;
}

.detail-hero {
    min-height: 560px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.08);
    transform: scale(1.02);
}

.detail-shell {
    position: relative;
    z-index: 2;
    padding: 54px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    display: block;
    padding: 8px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.detail-info h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.detail-meta {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
}

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

.player-card,
.story-card {
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    transition: opacity 0.22s ease;
}

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

.player-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
    font-size: 28px;
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.story-card h2 + p {
    margin: 0 0 28px;
}

.story-card p {
    color: #374151;
    line-height: 1.95;
}

.empty-state {
    margin: 26px 0 0;
    border-radius: 20px;
    padding: 20px;
    color: #7c2d12;
    background: #fff7ed;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 54px 0 42px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-grid p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-content,
    .feature-banner,
    .detail-main,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .nav-shell {
        min-height: 64px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 74px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .section,
    .soft-band {
        padding: 48px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card h2 {
        font-size: 16px;
    }

    .feature-banner {
        padding: 26px;
        border-radius: 26px;
    }

    .banner-stack {
        grid-template-columns: 1fr;
    }

    .category-filter-form,
    .big-search,
    .detail-layout,
    .rank-item,
    .category-overview-card a {
        grid-template-columns: 1fr;
    }

    .category-cover-strip {
        padding: 12px;
    }

    .category-overview-body {
        padding: 0 22px 24px;
    }

    .rank-action {
        width: 100%;
    }

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

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

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }
}
