:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --red: #ef4444;
    --orange: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7fb;
    --line: #f9cfe2;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 42%, #ffffff 100%);
}

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: rgba(255, 247, 251, 0.92);
    border-bottom: 1px solid rgba(249, 207, 226, 0.8);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    color: #374151;
    font-weight: 650;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--pink-dark);
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(252, 231, 243, 0.85);
    padding: 10px;
}

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

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(249, 207, 226, 0.8);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-inner {
    display: grid;
    gap: 14px;
    padding: 18px 0;
}

.mobile-category-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-category-links a,
.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background: radial-gradient(circle at 10% 20%, rgba(252, 231, 243, 0.95), transparent 34%), linear-gradient(135deg, #fff1f8 0%, #fff7ed 100%);
}

.hero-shell {
    position: relative;
    z-index: 2;
    padding: 74px 0 90px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.22;
    filter: blur(2px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-orb-one {
    width: 160px;
    height: 160px;
    top: 58px;
    left: 8%;
    background: var(--pink);
}

.hero-orb-two {
    width: 230px;
    height: 230px;
    right: 8%;
    top: 140px;
    background: var(--red);
    animation-delay: 0.7s;
}

.hero-orb-three {
    width: 180px;
    height: 180px;
    left: 36%;
    bottom: 60px;
    background: var(--orange);
    animation-delay: 1.2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.17;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.28;
    }
}

.hero-slides {
    position: relative;
    min-height: 455px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-copy {
    max-width: 650px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--pink-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    font-size: clamp(30px, 4vw, 52px);
}

.hero-copy p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--pink-dark);
    background: rgba(252, 231, 243, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-title-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.24);
}

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

.btn-ghost,
.pill-link {
    color: #be185d;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(249, 168, 212, 0.72);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 420px;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 35px 70px rgba(190, 24, 93, 0.22);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    font-weight: 800;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.hero-category-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.hero-category-strip a {
    border-radius: 999px;
    padding: 10px 16px;
    color: #374151;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.09);
    font-weight: 750;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: -54px;
    position: relative;
    z-index: 5;
}

.section-block {
    padding: 68px 0;
}

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

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

.section-heading h2,
.section-block > h2,
.side-card h2,
.prose-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--pink-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

.movie-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.movie-grid-five {
    grid-template-columns: repeat(5, 1fr);
}

.movie-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.movie-card {
    position: relative;
    min-width: 0;
}

.movie-cover-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-cover-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fff1f8, #fff7ed);
}

.focus-grid .movie-cover {
    aspect-ratio: 16 / 9;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.94);
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-cover-link:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3,
.movie-card-overlay h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.movie-card-body p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.movie-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 18px;
    color: #ffffff;
}

.movie-card-overlay span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.movie-category-link {
    display: none;
}

.tinted-section {
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.92), rgba(254, 242, 242, 0.92));
}

.split-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    padding: 70px 0;
}

.rank-panel,
.mini-panel,
.detail-card,
.side-card {
    border: 1px solid rgba(249, 207, 226, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 32px rgba(236, 72, 153, 0.08);
}

.rank-panel,
.mini-panel {
    padding: 28px;
}

.rank-list,
.media-list {
    display: grid;
    gap: 14px;
}

.rank-row,
.media-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
    grid-template-columns: 38px 66px 1fr auto;
}

.rank-row:hover,
.media-row:hover {
    background: #fdf2f8;
    transform: translateX(3px);
}

.rank-row > span:first-child,
.rank-index {
    color: var(--pink-dark);
    font-weight: 900;
}

.rank-row img,
.media-row img {
    width: 66px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row strong,
.media-row strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}

.rank-row em,
.media-row em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.media-row {
    grid-template-columns: 82px 1fr;
}

.media-row img {
    width: 82px;
    height: 58px;
}

.page-hero {
    padding: 72px 0;
    text-align: center;
    background: linear-gradient(135deg, #fff1f8, #fff7ed);
}

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

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.search-panel {
    display: flex;
    max-width: 840px;
    gap: 12px;
    margin: 28px auto 0;
}

.search-panel.narrow {
    max-width: 560px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(249, 168, 212, 0.72);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.88);
    color: #374151;
    outline: none;
}

.search-panel select {
    max-width: 190px;
    cursor: pointer;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.category-tile a {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(249, 207, 226, 0.74);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 8px;
    background: #fff7fb;
}

.category-mosaic img {
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
    border-radius: 16px;
}

.category-tile-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.category-tile-body span {
    font-size: 38px;
}

.category-tile-body h2 {
    margin: 10px 0;
    font-size: 26px;
    font-weight: 900;
}

.category-tile-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.empty-state {
    display: none;
    margin-bottom: 24px;
    border-radius: 18px;
    padding: 18px;
    color: #9f1239;
    background: #fff1f2;
    text-align: center;
    font-weight: 700;
}

.empty-state.is-visible {
    display: block;
}

.is-hidden {
    display: none !important;
}

.rank-table {
    display: grid;
    gap: 12px;
}

.rank-table-row {
    display: grid;
    grid-template-columns: 54px 76px 1fr 120px 80px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(249, 207, 226, 0.7);
    border-radius: 20px;
    padding: 12px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-table-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-table-row img {
    width: 76px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

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

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

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-breadcrumb a {
    color: var(--pink-dark);
    font-weight: 800;
}

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

.detail-main,
.detail-side {
    min-width: 0;
}

.player-section {
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 62px rgba(15, 23, 42, 0.26);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.4);
    font-size: 32px;
}

.player-box.is-playing .player-overlay,
.player-overlay[hidden] {
    display: none;
}

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

.detail-title-row {
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-title-row p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.detail-meta-grid span {
    border-radius: 18px;
    padding: 14px;
    background: #fff7fb;
    color: var(--ink);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--pink-dark);
    font-size: 12px;
}

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

.prose-card h2:not(:first-child) {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 207, 226, 0.86);
}

.prose-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 22px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 16px;
}

.full {
    width: 100%;
}

.site-footer {
    border-top: 1px solid rgba(249, 207, 226, 0.84);
    background: linear-gradient(180deg, #fff7fb, #ffffff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 207, 226, 0.72);
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

.visually-balanced {
    margin-bottom: 24px;
}

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

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

    .detail-side {
        position: static;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        min-height: auto;
    }

    .hero-shell {
        padding: 50px 0 64px;
    }

    .focus-grid,
    .movie-grid-three,
    .movie-grid-four,
    .movie-grid-five,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .search-panel select {
        max-width: none;
    }

    .detail-meta-grid,
    .rank-table-row {
        grid-template-columns: 1fr 1fr;
    }

    .rank-table-row img {
        width: 100%;
        height: 120px;
        grid-column: span 2;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 300px;
    }
}

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

    .movie-grid-five,
    .movie-grid-four,
    .movie-grid-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

    .movie-card-body p {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 32px 58px 1fr;
    }

    .rank-row em {
        display: none;
    }

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