:root {
    --bg: #fff7fb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --green: #10b981;
    --shadow: 0 18px 45px rgba(139, 92, 246, 0.14);
    --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
        linear-gradient(135deg, #fff7fb 0%, #f5f3ff 46%, #eff6ff 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.10);
}

.header-inner {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(135deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.20);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff0f7;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #db2777;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-nav.open {
    display: grid;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.22)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 130px 24px 80px;
}

.hero-content h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #db2777;
}

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

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

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

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

.btn.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.hero-dot {
    width: 40px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.38);
    transition: 0.22s ease;
}

.hero-dot.active {
    width: 68px;
    background: #ffffff;
}

.content-section,
.quick-search-panel {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 24px;
}

.quick-search-panel {
    margin-top: -68px;
    position: relative;
    z-index: 6;
    padding-top: 0;
}

.quick-search-panel .section-heading {
    max-width: 780px;
    margin: 0 auto 26px;
    padding: 34px 28px 0;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.home-search {
    max-width: 780px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    gap: 12px;
    border-radius: 0 0 28px 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.home-search input,
.search-tools input,
.list-tools input,
.search-tools select,
.list-tools select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 16px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border 0.22s ease, box-shadow 0.22s ease;
}

.home-search input:focus,
.search-tools input:focus,
.list-tools input:focus,
.search-tools select:focus,
.list-tools select:focus {
    border-color: rgba(236, 72, 153, 0.52);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.center {
    text-align: center;
}

.section-heading.with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #db2777;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-content-card h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

.text-link {
    color: #db2777;
    font-weight: 800;
}

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

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

.category-card {
    position: relative;
    min-height: 170px;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(139, 92, 246, 0.20);
}

.category-card strong {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 12px;
}

.category-card em {
    position: relative;
    z-index: 2;
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.7;
}

.category-glow {
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
}

.category-card.from-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.category-card.from-purple {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.category-card.from-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card.from-pink {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.category-card.from-indigo {
    background: linear-gradient(135deg, #6366f1, #312e81);
}

.category-card.from-orange {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-card.from-cyan {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.category-card.from-green {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.category-card.from-yellow {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-card.from-slate {
    background: linear-gradient(135deg, #334155, #7c3aed);
}

.glass-section,
.pale-section {
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

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

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

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

.all-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.horizontal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(139, 92, 246, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 10;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.58), transparent);
}

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

.movie-card h3,
.ranking-item h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover {
    color: #db2777;
}

.movie-card p,
.ranking-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

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

.movie-meta-line.compact {
    color: #8b5cf6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #7c3aed;
    background: #f3e8ff;
    font-size: 12px;
    font-weight: 800;
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 60px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
}

.ranking-index {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 18px;
    font-weight: 900;
}

.ranking-poster {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
}

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

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
}

.page-hero > div {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 78px 24px;
}

.soft-hero {
    color: var(--text);
    background:
        radial-gradient(circle at 16% 16%, rgba(236, 72, 153, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 243, 255, 0.88));
}

.search-hero {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
}

.category-hero.from-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.category-hero.from-purple {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.category-hero.from-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-hero.from-pink {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.category-hero.from-indigo {
    background: linear-gradient(135deg, #6366f1, #312e81);
}

.category-hero.from-orange {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-hero.from-cyan {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.category-hero.from-green {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.category-hero.from-yellow {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-hero.from-slate {
    background: linear-gradient(135deg, #334155, #7c3aed);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.list-tools-section {
    padding-top: 48px;
}

.list-tools,
.search-tools {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.list-tools {
    grid-template-columns: 1fr 220px;
}

.search-tools {
    grid-template-columns: 1.6fr repeat(3, 1fr);
}

.empty-state {
    display: none;
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.detail-breadcrumb {
    color: #6b7280;
}

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

.player-card,
.detail-content-card,
.detail-side {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.26));
    cursor: pointer;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.34);
    font-size: 32px;
    padding-left: 4px;
}

.play-title {
    max-width: 80%;
    text-align: center;
    font-weight: 900;
    font-size: 22px;
}

.detail-side {
    padding: 16px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
}

.detail-mini-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.detail-mini-meta span,
.detail-meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #7c3aed;
    background: #f3e8ff;
    font-size: 13px;
    font-weight: 800;
}

.detail-content-card {
    margin-top: 28px;
    padding: 30px;
}

.detail-content-card .lead {
    margin: 16px 0 20px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.detail-content-card h2 {
    margin: 26px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-content-card p {
    color: #4b5563;
    line-height: 2;
}

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

.related-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.site-footer {
    border-top: 1px solid rgba(236, 72, 153, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #6b7280;
    font-weight: 700;
}

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

.footer-inner p {
    margin: 0;
    color: #6b7280;
}

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero-content {
        padding-top: 100px;
    }

    .category-grid,
    .large-category-grid,
    .featured-grid,
    .movie-grid,
    .compact-grid,
    .all-grid,
    .home-ranking,
    .wide-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-tools,
    .list-tools {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 16px;
        align-items: start;
    }

    .detail-mini-meta {
        align-content: start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 18px;
    }

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

    .hero-content {
        padding: 86px 18px 76px;
    }

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

    .content-section,
    .quick-search-panel,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .category-grid,
    .large-category-grid,
    .featured-grid,
    .movie-grid,
    .compact-grid,
    .all-grid,
    .home-ranking,
    .wide-ranking {
        grid-template-columns: 1fr;
    }

    .horizontal-rail {
        grid-auto-columns: 78vw;
    }

    .ranking-item {
        grid-template-columns: 48px 76px 1fr;
        gap: 12px;
    }

    .detail-content-card {
        padding: 22px;
    }

    .detail-side {
        grid-template-columns: 110px 1fr;
    }

    .play-circle {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
