:root {
    --pink: #db2777;
    --pink-dark: #be185d;
    --rose: #f43f5e;
    --rose-soft: #fff1f2;
    --pink-soft: #fdf2f8;
    --blue-soft: #eff6ff;
    --cyan-soft: #ecfeff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--pink-soft), #ffffff 48%, var(--rose-soft));
    min-height: 100vh;
}

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

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

img {
    background: linear-gradient(135deg, #fce7f3, #ffe4e6 45%, #fff7ed);
}

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}

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

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--pink);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--pink-soft);
}

main {
    min-height: 60vh;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--pink-dark), var(--rose), var(--pink));
    color: #ffffff;
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.12);
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.22;
    mix-blend-mode: screen;
    animation: blobMove 12s ease-in-out infinite;
}

.hero-blob.one {
    top: 50px;
    left: 6%;
    background: #ffffff;
}

.hero-blob.two {
    top: 150px;
    right: 8%;
    background: #f9a8d4;
    animation-delay: 2s;
}

.hero-blob.three {
    bottom: 30px;
    left: 45%;
    background: #fecdd3;
    animation-delay: 4s;
}

.hero-carousel {
    position: relative;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 20px 92px;
    z-index: 1;
}

.hero-slide {
    display: none;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 44px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.65s ease both;
}

.hero-image-wrap {
    position: relative;
    order: 2;
    min-height: 420px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(17, 24, 39, 0.28);
    transform: rotate(1.2deg);
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.55));
}

.hero-copy {
    order: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffe4e6;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 620px;
    color: #ffe4e6;
    font-size: 20px;
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff1f2;
}

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

.primary-btn,
.ghost-btn,
.outline-btn,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
    padding: 13px 28px;
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

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

.ghost-btn {
    padding: 12px 26px;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.78);
}

.ghost-btn:hover {
    background: #ffffff;
    color: var(--pink);
}

.hero-dots {
    position: absolute;
    left: 20px;
    bottom: 38px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
}

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

.section,
.page-hero,
.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

.page-hero {
    padding-top: 54px;
    padding-bottom: 42px;
}

.page-hero-card {
    border-radius: 30px;
    padding: 46px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--pink), var(--rose));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero-card h1 {
    position: relative;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    z-index: 1;
}

.page-hero-card p {
    position: relative;
    max-width: 760px;
    margin: 0;
    color: #ffe4e6;
    font-size: 18px;
    line-height: 1.75;
    z-index: 1;
}

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

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

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card strong {
    display: block;
    color: var(--pink);
    font-size: 34px;
    margin-bottom: 4px;
}

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

.category-card {
    min-height: 180px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow);
}

.category-card .icon {
    display: block;
    font-size: 44px;
    margin-bottom: 20px;
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.category-card[data-accent="blue"] {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card[data-accent="purple"] {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.category-card[data-accent="orange"] {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-card[data-accent="red"] {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-card[data-accent="cyan"] {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.category-card[data-accent="emerald"],
.category-card[data-accent="green"] {
    background: linear-gradient(135deg, #059669, #10b981);
}

.category-card[data-accent="amber"] {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

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

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

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.movie-card.hidden {
    display: none;
}

.poster-box {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #fdf2f8;
}

.movie-card.compact .poster-box {
    height: 180px;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.55));
    pointer-events: none;
}

.corner-badge,
.rank-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
}

.corner-badge {
    top: 14px;
    right: 14px;
    padding: 7px 11px;
    background: rgba(219, 39, 119, 0.9);
}

.rank-badge {
    left: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.3);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.movie-card:hover h3 {
    color: var(--pink);
}

.card-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.meta-row span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.mini-tags span {
    padding: 5px 9px;
    color: var(--pink);
    background: var(--pink-soft);
    font-size: 12px;
}

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

.compact-card {
    position: relative;
    min-height: 190px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.compact-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.compact-card:hover img {
    transform: scale(1.08);
}

.compact-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 14px 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.78));
}

.filter-panel {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.filter-grid label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}

.filter-reset,
.outline-btn {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.22);
}

.outline-btn {
    color: var(--pink);
    background: #ffffff;
    border: 1px solid #fbcfe8;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 116px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.rank-item img {
    width: 116px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-score {
    color: var(--pink);
    font-size: 24px;
    font-weight: 900;
    text-align: right;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main,
.detail-side,
.player-card,
.text-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(219, 39, 119, 0.22), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    z-index: 4;
}

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(219, 39, 119, 0.92);
    box-shadow: 0 18px 45px rgba(219, 39, 119, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: var(--rose);
}

.play-button svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: currentColor;
}

.detail-content {
    padding: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 16px;
}

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

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

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

.detail-meta span,
.tag {
    padding: 8px 12px;
    color: var(--pink);
    background: var(--pink-soft);
}

.detail-content p {
    color: #374151;
    line-height: 1.86;
}

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

.text-card h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.text-card p {
    color: #374151;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 94px;
    align-self: start;
    padding: 22px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.25s ease;
}

.related-item:hover {
    background: var(--pink-soft);
}

.related-item img {
    width: 92px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
}

.related-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}

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

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

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

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

.copyright {
    margin-top: 34px !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(24px, -18px) scale(1.05);
    }

    66% {
        transform: translate(-18px, 24px) scale(0.96);
    }
}

@media (max-width: 1024px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .detail-side {
        position: static;
    }

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

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

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

    .hero-carousel {
        min-height: auto;
        padding: 54px 20px 82px;
    }

    .hero-slide.active {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap {
        order: 1;
        min-height: 320px;
        transform: none;
    }

    .hero-image-wrap img {
        height: 320px;
    }

    .hero-copy {
        order: 2;
    }

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

    .rank-item {
        grid-template-columns: 52px 90px 1fr;
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
        font-size: 18px;
    }

    .rank-item img {
        width: 90px;
        height: 78px;
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 18px;
    }

    .section,
    .page-hero,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .movie-grid.large-grid,
    .feature-strip,
    .footer-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .poster-box,
    .movie-card.compact .poster-box {
        height: 260px;
    }

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

    .rank-item img {
        display: none;
    }

    .rank-score {
        grid-column: 2;
    }

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