:root {
    --pink: #ec4899;
    --rose: #f43f5e;
    --purple: #7c3aed;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: #f3e8ff;
    --card: #ffffff;
    --shadow: 0 18px 55px rgba(190, 24, 93, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose), var(--purple));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.22);
}

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

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

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -15% -35% -15%;
    height: 360px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
    pointer-events: none;
}

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

.hero-slide {
    opacity: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-copy {
    width: min(760px, calc(100% - 44px));
    margin-left: max(22px, calc((100vw - 1220px) / 2 + 22px));
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-heading p,
.card-meta,
.category-card-wide p,
.page-hero p,
.search-panel p {
    margin: 0 0 10px;
    color: var(--pink);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-text .eyebrow,
.page-hero p {
    color: #fbcfe8;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 680px;
    margin: 24px 0 0;
    color: #ffe4ef;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
}

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

.primary-button,
.ghost-button,
.panel-link,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.35);
}

.primary-button:hover,
.panel-link:hover,
.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.26);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.tag-list,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-list span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    color: #9d174d;
    background: rgba(252, 231, 243, 0.9);
    font-size: 13px;
    font-weight: 800;
}

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

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

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

.search-band {
    margin-top: -58px;
    position: relative;
    z-index: 5;
    padding: 0 22px;
}

.search-panel {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 480px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.category-card-wide h2,
.detail-text h1,
.page-hero h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.search-panel h2 {
    font-size: clamp(24px, 4vw, 42px);
}

.search-box,
.filter-bar label {
    display: grid;
    gap: 8px;
    color: #9d174d;
    font-weight: 900;
}

.search-box input,
.filter-bar select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: 18px;
    padding: 0 18px;
    outline: none;
    color: #111827;
    background: #fff7fb;
}

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

.content-section {
    max-width: 1220px;
    margin: 0 auto;
    padding: 70px 22px 0;
}

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

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

.inline-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.more-link,
.panel-link {
    color: #be185d;
    background: #fce7f3;
}

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

.category-tile {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #fff1f7);
    box-shadow: 0 14px 36px rgba(244, 114, 182, 0.12);
    transition: 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-wide:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span {
    color: #be185d;
    font-weight: 900;
}

.category-tile strong {
    font-size: 18px;
    line-height: 1.35;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
    transition: 0.22s ease;
}

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

.card-poster img {
    transition: transform 0.42s ease;
}

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

.card-year {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.card-body {
    padding: 16px;
}

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

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

.card-meta {
    margin-bottom: 8px;
    color: #be185d;
    font-size: 12px;
}

.movie-card-compact .card-body p:not(.card-meta),
.movie-card-compact .card-tags {
    display: none;
}

.hot-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #111827, #3b0a24 58%, #831843);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.hot-panel .section-heading p {
    color: #f9a8d4;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 52px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-row img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.rank-no,
.rank-heat {
    color: #f9a8d4;
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.hot-panel .panel-link {
    width: 100%;
    margin-top: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.page-hero {
    min-height: 420px;
    display: flex;
    align-items: end;
    padding: 120px max(22px, calc((100vw - 1220px) / 2 + 22px)) 54px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #831843);
    background-size: cover;
    background-position: center;
}

.compact-page-hero {
    min-height: 320px;
}

.page-hero > div {
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.02;
}

.page-hero span {
    display: block;
    max-width: 720px;
    margin-top: 18px;
    color: #ffe4ef;
    font-size: 18px;
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 220px;
    gap: 16px;
    align-items: end;
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(190, 24, 93, 0.1);
}

.filter-bar label span {
    font-size: 13px;
}

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

.category-card-wide {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    background: linear-gradient(135deg, #ffffff, #fff1f7);
    box-shadow: 0 14px 36px rgba(244, 114, 182, 0.1);
    transition: 0.22s ease;
}

.category-card-wide h2 {
    font-size: 30px;
}

.category-card-wide span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #9d174d;
    background: #fce7f3;
    font-weight: 800;
    font-size: 13px;
}

.detail-main {
    background: #ffffff;
}

.detail-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.detail-content {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
    padding: 114px 22px 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #ffe4ef;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.poster-card {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    background: #fce7f3;
}

.detail-text h1 {
    max-width: 760px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1;
}

.lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: #ffe4ef;
    font-size: 20px;
    line-height: 1.75;
}

.player-section {
    padding-top: 54px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #05060a;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05060a;
}

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

.video-player.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 80px;
    height: 80px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.38);
    font-size: 30px;
}

.movie-prose {
    max-width: 920px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.movie-prose h3 {
    margin-top: 28px;
    color: #111827;
    font-size: 26px;
}

.meta-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.meta-table div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #fff7fb;
}

.meta-table dt {
    color: #be185d;
    font-weight: 900;
}

.meta-table dd {
    margin: 0;
}

.pager-links {
    display: flex;
    gap: 10px;
}

.pager-links a {
    border-radius: 999px;
    padding: 10px 14px;
    color: #be185d;
    background: #fce7f3;
    font-weight: 900;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 116px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
    transition: 0.22s ease;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 116px;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background: #fce7f3;
}

.rank-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 8px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    font-weight: 900;
}

.rank-card h2 {
    margin: 6px 0 10px;
    font-size: 24px;
}

.rank-card p,
.rank-card span {
    color: var(--muted);
    line-height: 1.7;
}

.rank-card strong {
    color: #be185d;
    font-size: 30px;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 24px;
    border-radius: 22px;
    color: #be185d;
    background: #fce7f3;
    font-weight: 900;
    text-align: center;
}

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

.site-footer {
    margin-top: 90px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #3b0a24 55%, #831843);
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 52px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    line-height: 1.8;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffe4ef;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(236, 72, 153, 0.45);
}

.copyright {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbcfe8;
}

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

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

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

    .hot-panel {
        position: static;
    }

    .poster-card {
        width: min(320px, 100%);
    }
}

@media (max-width: 780px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-button {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        margin: 0 22px;
    }

    .search-panel,
    .filter-bar,
    .footer-grid,
    .category-wide-grid,
    .meta-table,
    .rank-card {
        grid-template-columns: 1fr;
    }

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

    .content-section {
        padding-top: 48px;
    }

    .inline-heading {
        align-items: start;
        flex-direction: column;
    }

    .rank-card {
        align-items: start;
    }
}

@media (max-width: 520px) {
    .category-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .detail-actions,
    .pager-links {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .panel-link,
    .more-link {
        width: 100%;
    }

    .detail-content {
        padding-top: 92px;
    }
}
