:root {
    --pink-50: #fff1f5;
    --pink-100: #ffe4ec;
    --pink-200: #fecdd9;
    --pink-500: #ec4899;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 63, 94, 0.18);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 60px rgba(225, 29, 72, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #fff7fa 46%, #fff1f5 100%);
    min-height: 100vh;
}

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: linear-gradient(90deg, rgba(255, 241, 245, 0.96), rgba(255, 228, 236, 0.96));
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 34px rgba(225, 29, 72, 0.12);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pink-500);
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
    font-size: 24px;
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink-500);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-600);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
}

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

.mobile-nav .nav-link {
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0 48px;
    background: radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.18), transparent 32%), linear-gradient(120deg, #fff1f5, #ffe4ec 54%, #fff7fa);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.48;
}

.glow-one {
    width: 190px;
    height: 190px;
    left: 8%;
    top: 20%;
    background: #f9a8d4;
}

.glow-two {
    width: 270px;
    height: 270px;
    right: 8%;
    bottom: -90px;
    background: #fb7185;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 52px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: var(--rose-600);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
    max-width: 720px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.14);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
    box-shadow: 0 18px 32px rgba(244, 63, 94, 0.28);
}

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

.primary-btn.small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.ghost-btn {
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.16);
}

.hero-poster {
    position: relative;
    min-height: 470px;
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ec, #ffffff);
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}

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

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: #ffffff;
    font-weight: 900;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(10px);
}

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--rose-600);
}

.hero-search,
.search-box {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(225, 29, 72, 0.14);
}

.hero-search input,
.search-box input {
    width: min(420px, 52vw);
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 16px;
    color: var(--text);
}

.hero-search button,
.search-box button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
    cursor: pointer;
}

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

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

.section-heading span {
    display: block;
    color: var(--rose-600);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

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

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

.category-card,
.category-overview-card,
.content-card,
.filter-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(225, 29, 72, 0.1);
}

.category-card {
    display: grid;
    gap: 12px;
    min-height: 170px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-row:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card strong {
    font-size: 22px;
    color: var(--text);
}

.category-card span,
.category-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.category-card em {
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.category-card em a {
    color: var(--rose-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(244, 63, 94, 0.34), transparent 34%), linear-gradient(135deg, #ffe4ec, #fff7fa);
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}

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

.movie-title {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
    margin: 7px 0;
}

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

.compact-card .movie-line {
    display: none;
}

.highlight-panel {
    width: min(1180px, calc(100% - 32px));
    padding: 42px;
    border-radius: 36px;
    background: linear-gradient(135deg, #f43f5e, #ec4899 58%, #fb7185);
    box-shadow: var(--shadow);
}

.light-heading,
.light-heading span,
.light-heading a,
.light-heading h2 {
    color: #ffffff;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    color: var(--rose-600);
    font-size: 26px;
    font-weight: 950;
    text-align: center;
}

.rank-thumb {
    width: 76px;
    height: 96px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffe4ec, #fff7fa);
}

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

.rank-info a {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

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

.rank-info span {
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
}

.small-play {
    min-height: 38px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
}

.page-hero {
    padding: 76px 0 56px;
    background: radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.2), transparent 28%), linear-gradient(120deg, #fff1f5, #ffe4ec, #fff7fa);
}

.soft-hero h1,
.rank-hero h1 {
    max-width: 860px;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 16px;
}

.search-box.wide {
    flex: 1;
    box-shadow: none;
    border: 1px solid rgba(244, 63, 94, 0.14);
}

.search-box.wide input {
    width: 100%;
}

.select-row {
    display: flex;
    gap: 12px;
}

.select-row select {
    min-height: 48px;
    padding: 0 42px 0 16px;
    color: #4b5563;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    background: #ffffff;
    outline: 0;
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
}

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

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

.category-overview-list {
    display: grid;
    gap: 28px;
    padding: 42px 0 64px;
}

.category-overview-card {
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.category-overview-head span {
    color: var(--rose-600);
    font-weight: 800;
}

.category-overview-head h2 {
    margin: 8px 0;
    font-size: 34px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.breadcrumb-wrap {
    display: grid;
    gap: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    padding: 42px 0 56px;
    background: radial-gradient(circle at 18% 8%, rgba(236, 72, 153, 0.18), transparent 30%), linear-gradient(120deg, #fff1f5, #ffe4ec, #fff7fa);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    margin-top: 32px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffe4ec, #ffffff);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 72px);
}

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

.detail-meta div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.detail-meta dt {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.detail-meta dd {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    padding: 46px 0 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.36);
    font-size: 30px;
}

.video-overlay strong {
    font-size: 20px;
}

.video-shell.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0 14px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.big-tags span {
    font-size: 14px;
    padding: 9px 14px;
}

.site-footer {
    margin-top: 48px;
    padding: 48px 0;
    color: #4b5563;
    background: linear-gradient(90deg, #fff1f5, #ffe4ec);
    border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: #111827;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #4b5563;
}

.footer-brand {
    font-size: 24px;
    margin-bottom: 12px;
}

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

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

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

    .hero-slider {
        min-height: 860px;
    }

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

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

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

    .nav-wrap {
        height: 66px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-section {
        padding-top: 34px;
    }

    .hero-slider {
        min-height: 780px;
    }

    .hero-slide {
        gap: 24px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
        letter-spacing: -0.05em;
    }

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

    .hero-control-row,
    .filter-panel,
    .section-heading,
    .category-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search,
    .search-box,
    .select-row {
        width: 100%;
    }

    .hero-search input,
    .search-box input {
        width: 100%;
        min-width: 0;
    }

    .select-row {
        flex-direction: column;
    }

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

    .highlight-panel {
        padding: 26px 16px;
        border-radius: 28px;
    }

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

    .rank-thumb {
        width: 58px;
        height: 76px;
    }

    .rank-info p {
        display: none;
    }

    .small-play {
        display: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-poster {
        max-width: 300px;
    }

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

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

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

    .hero-slider {
        min-height: 820px;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .poster-shell {
        height: 100%;
        aspect-ratio: auto;
    }

    .movie-line {
        min-height: 0;
        -webkit-line-clamp: 3;
    }
}
