:root {
    --pink: #ec4899;
    --rose: #fb7185;
    --rose-dark: #be123c;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3d4df;
    --soft: #fff1f5;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(190, 18, 60, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 3%, rgba(251, 113, 133, 0.18), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.13), transparent 30rem),
        linear-gradient(180deg, #fff7fa 0%, #ffffff 38%, #fff7fa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f3f4f6;
}

body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #f472b6, #fb7185);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 113, 133, 0.18);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

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

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-input {
    border: 1px solid #f9a8d4;
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    padding: 12px 16px;
    transition: 0.25s ease;
}

.header-search input {
    width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-more {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.24);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff1f5;
    border-radius: 14px;
    padding: 10px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--pink);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

.hero-carousel {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 28px auto 0;
    border-radius: 36px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow);
    background: #1f1020;
}

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

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

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

.hero-backdrop img {
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.45;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(23, 5, 18, 0.94) 0%, rgba(23, 5, 18, 0.75) 45%, rgba(23, 5, 18, 0.28) 100%),
        radial-gradient(circle at 25% 30%, rgba(236, 72, 153, 0.45), transparent 38rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding: 64px;
}

.hero-copy {
    max-width: 690px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--pink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-copy p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-list,
.pill-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span,
.pill-link,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 14px;
    backdrop-filter: blur(10px);
}

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

.ghost-button {
    color: #ffffff;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    width: min(390px, 100%);
    justify-self: center;
    border-radius: 32px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    font-weight: 900;
}

.hero-orb {
    position: absolute;
    z-index: 1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.42;
}

.hero-orb-one {
    left: -70px;
    bottom: -80px;
    background: var(--pink);
}

.hero-orb-two {
    right: 8%;
    top: 8%;
    background: var(--rose);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 64px;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

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

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

.home-categories,
.content-section,
.split-section,
.page-shell,
.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 22px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
    margin: 8px 0 0;
    color: var(--ink);
    letter-spacing: -0.04em;
}

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

.section-more {
    color: var(--pink);
    padding: 10px 15px;
    background: #fff1f5;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    border: 1px solid rgba(251, 113, 133, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.42);
}

.category-glow {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.18);
}

.category-thumbs {
    position: relative;
    display: flex;
    height: 78px;
}

.category-thumbs img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    margin-right: -18px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.category-card h3 {
    margin: 14px 0 8px;
    font-size: 20px;
}

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

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

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

.movie-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(251, 113, 133, 0.15);
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(190, 18, 60, 0.16);
}

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

.poster-link img {
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.type-badge {
    left: 10px;
    top: 10px;
}

.year-badge {
    right: 10px;
    top: 10px;
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
}

.card-body {
    padding: 16px;
}

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

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

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

.meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

.tag-list {
    margin-top: 12px;
}

.tag-list span {
    color: #be185d;
    background: #fff1f5;
    padding: 6px 9px;
    font-size: 12px;
}

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

.split-section .content-section {
    padding: 0;
}

.rank-panel {
    position: sticky;
    top: 92px;
    border-radius: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 113, 133, 0.18);
    box-shadow: var(--shadow);
}

.section-heading.side {
    align-items: center;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #fce7f3;
}

.rank-row span {
    color: var(--pink);
    font-weight: 900;
}

.rank-row img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-row b {
    color: #be185d;
    font-size: 12px;
}

.page-shell,
.detail-shell {
    padding-top: 32px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 50px;
    color: #ffffff;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 22rem),
        linear-gradient(135deg, #831843, #ec4899 48%, #fb7185);
    box-shadow: var(--shadow);
}

.page-hero .section-kicker,
.page-hero h1,
.page-hero p {
    color: #ffffff;
}

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

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

.page-hero .pill-row {
    margin-top: 24px;
}

.pill-link {
    color: #be185d;
    background: #ffffff;
    padding: 10px 15px;
}

.pill-link.is-active {
    color: #ffffff;
    background: rgba(17, 24, 39, 0.36);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 28px 0 4px;
    border: 1px solid rgba(251, 113, 133, 0.18);
    border-radius: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.filter-panel h2 {
    margin: 6px 0 0;
}

.filter-input {
    width: min(460px, 100%);
    font-size: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 24px;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 0.7fr;
    gap: 28px;
    align-items: stretch;
}

.player-card,
.detail-info,
.story-card {
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 113, 133, 0.18);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    padding: 14px;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0f0f13;
    aspect-ratio: 16 / 9;
}

.video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f0f13;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.72));
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay strong {
    font-size: 18px;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 50px rgba(236, 72, 153, 0.36);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid #ffffff;
}

.detail-info {
    padding: 30px;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
}

.detail-one-line {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span,
.detail-tags span {
    color: #be185d;
    background: #fff1f5;
    padding: 9px 13px;
}

.detail-tags {
    margin-top: 18px;
}

.story-card {
    margin-top: 26px;
    padding: 30px;
}

.story-card p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

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

.site-footer {
    margin-top: 68px;
    border-top: 1px solid rgba(251, 113, 133, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 22px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
}

.footer-inner p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #be185d;
    background: #fff1f5;
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 800;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 28px;
    color: #9ca3af;
    font-size: 14px;
}

[data-search-card].is-hidden {
    display: none;
}

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

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

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

    .split-section,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .mobile-panel.is-open {
        display: grid;
        gap: 12px;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero-carousel {
        min-height: 780px;
        margin: 18px 14px 0;
        border-radius: 28px;
    }

    .hero-content {
        min-height: 780px;
        grid-template-columns: 1fr;
        padding: 34px 24px 80px;
    }

    .hero-poster {
        width: min(270px, 72vw);
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

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

    .filter-panel,
    .section-heading,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand-name {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

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

    .home-categories,
    .content-section,
    .split-section,
    .page-shell,
    .detail-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-hero,
    .detail-info,
    .story-card {
        padding: 24px;
        border-radius: 24px;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .category-grid.wide {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 28px 52px minmax(0, 1fr);
    }

    .rank-row b {
        display: none;
    }
}
