:root {
    --rose-50: #fff1f4;
    --rose-100: #ffe3e9;
    --rose-200: #fecdd8;
    --rose-300: #fda4b8;
    --rose-400: #fb718d;
    --rose-500: #f43f6e;
    --rose-600: #e11d57;
    --pink-500: #ec4899;
    --amber-400: #f59e0b;
    --slate-950: #12070d;
    --slate-900: #1b1016;
    --text: #2a1820;
    --muted: #7a6a71;
    --line: rgba(244, 63, 110, 0.18);
    --panel: rgba(255, 255, 255, 0.82);
    --shadow: 0 24px 80px rgba(244, 63, 110, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, rgba(253, 164, 184, 0.35), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.18), transparent 24rem),
        linear-gradient(180deg, #fff7f9 0%, #ffffff 38%, #fff7fa 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(244, 63, 110, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
    box-shadow: 0 14px 28px rgba(244, 63, 110, 0.28);
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.brand-mark svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500), var(--rose-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #5d4b53;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--rose-600);
    background: var(--rose-50);
    transform: translateY(-1px);
}

.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 30px rgba(244, 63, 110, 0.24);
    font-weight: 800;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--rose-600);
    background: var(--rose-50);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

.page-main {
    padding-bottom: 56px;
}

.hero {
    position: relative;
    margin: 28px auto 56px;
    border-radius: 36px;
    overflow: hidden;
    background: #220b16;
    box-shadow: 0 32px 90px rgba(132, 21, 55, 0.26);
}

.hero-track {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vw, 74px);
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffdbe4;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
    margin: 22px 0 18px;
    font-size: clamp(36px, 5.5vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #8a2946;
    background: var(--rose-50);
    font-size: 12px;
    font-weight: 800;
}

.hero .hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 36px rgba(244, 63, 110, 0.26);
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(244, 63, 110, 0.34);
}

.button.secondary {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.button.light {
    color: var(--rose-600);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(244, 63, 110, 0.1);
}

.hero-media {
    position: relative;
    min-height: 100%;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #220b16 0%, rgba(34, 11, 22, 0.6) 28%, rgba(34, 11, 22, 0.08) 100%),
        linear-gradient(0deg, rgba(34, 11, 22, 0.82), transparent 50%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-controls {
    position: absolute;
    left: clamp(28px, 5vw, 70px);
    bottom: 28px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 7px;
    margin-left: 8px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: white;
}

.section {
    margin: 52px auto;
}

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

.eyebrow {
    margin: 0 0 7px;
    color: var(--rose-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-text h1 {
    margin: 0;
    color: #26131b;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-desc,
.page-title p {
    max-width: 740px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(244, 63, 110, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 110, 0.32);
    box-shadow: 0 24px 70px rgba(244, 63, 110, 0.22);
}

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

.poster-ratio {
    display: block;
    aspect-ratio: 3 / 4;
}

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber-400), #f97316);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.22);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #26131b;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
    color: #8c6975;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--rose-50);
}

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

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

.category-card,
.panel-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 244, 0.8)),
        radial-gradient(circle at 80% 0%, rgba(253, 164, 184, 0.3), transparent 18rem);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 26px;
    min-height: 190px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 72px rgba(244, 63, 110, 0.2);
}

.category-card strong {
    display: block;
    color: #26131b;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.category-card p {
    margin: 12px 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.category-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-600);
    background: white;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 12px;
    margin: 24px 0 26px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(244, 63, 110, 0.1);
    backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #4c2c38;
    background: white;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(244, 63, 110, 0.52);
    box-shadow: 0 0 0 4px rgba(244, 63, 110, 0.1);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: white;
    text-align: center;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(244, 63, 110, 0.1);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    width: 82px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #f8dfe6;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

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

.rank-value {
    min-width: 88px;
    color: var(--rose-600);
    font-weight: 900;
    text-align: right;
}

.page-title {
    padding: 54px 0 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #8c6975;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose-600);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 28px;
    align-items: stretch;
    margin: 34px auto 46px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #f8dfe6;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.detail-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 48px);
}

.detail-text .one-line {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #0f0710;
    box-shadow: 0 32px 90px rgba(27, 16, 22, 0.32);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(244, 63, 110, 0.28), transparent 22rem),
        linear-gradient(180deg, rgba(15, 7, 16, 0.22), rgba(15, 7, 16, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 22px 44px rgba(244, 63, 110, 0.32);
    font-weight: 900;
    cursor: pointer;
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 34px;
}

.article-panel,
.side-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 60px rgba(244, 63, 110, 0.11);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: #26131b;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.article-panel p {
    margin: 0 0 18px;
    color: #5d4b53;
    font-size: 16px;
    line-height: 1.95;
}

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

.related-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: var(--rose-50);
}

.related-item img {
    width: 62px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.related-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 241, 244, 0.54), rgba(255, 255, 255, 0.92));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 14px;
    color: #26131b;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.85;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

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

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

    .detail-hero,
    .content-panel {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        max-height: 620px;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        min-height: 68px;
    }

    .primary-nav,
    .nav-action {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-header.is-open .primary-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: grid;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: white;
        box-shadow: var(--shadow);
    }

    .hero-track {
        min-height: 680px;
    }

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

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

    .hero-content {
        min-height: 680px;
        background: linear-gradient(180deg, rgba(34, 11, 22, 0.52), rgba(34, 11, 22, 0.92));
    }

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

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

    .rank-item {
        grid-template-columns: 44px 70px minmax(0, 1fr);
    }

    .rank-value {
        grid-column: 3;
        text-align: left;
    }

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

@media (max-width: 640px) {
    :root {
        --shell: min(100vw - 22px, 1180px);
    }

    .brand {
        min-width: auto;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text span {
        display: none;
    }

    .hero {
        margin-top: 16px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 28px 22px 76px;
    }

    .hero-summary {
        font-size: 15px;
    }

    .card-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .category-card,
    .article-panel,
    .side-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-hero {
        gap: 18px;
    }

    .detail-poster img {
        min-height: 420px;
    }

    .detail-text {
        padding: 18px 4px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}
