:root {
    --page-bg: #fff7fb;
    --card-bg: #ffffff;
    --text: #2a2230;
    --muted: #716678;
    --line: rgba(244, 114, 182, 0.22);
    --pink: #ec4899;
    --rose: #fb7185;
    --orange: #f97316;
    --amber: #fbbf24;
    --shadow: 0 22px 60px rgba(236, 72, 153, 0.16);
    --soft-shadow: 0 14px 38px rgba(31, 27, 45, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.22), transparent 28rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24rem),
        linear-gradient(180deg, #fff7fb 0%, #fffaf2 46%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1220px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #514657;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #1f1726;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(255, 247, 251, 1), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(780px, calc(100% - 40px));
    margin-left: max(20px, calc((100% - 1220px) / 2));
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    background: rgba(32, 22, 37, 0.42);
    color: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(251, 207, 232, 0.75);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content .eyebrow {
    color: #fff7ed;
    background: rgba(251, 113, 133, 0.40);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 10px;
    max-width: 780px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-title {
    margin: 0 0 14px;
    color: #fed7aa;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
}

.hero-content p:not(.hero-title) {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.26);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.13);
}

.ghost-button.light {
    color: var(--pink);
    border-color: rgba(236, 72, 153, 0.26);
    background: rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.24);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.section-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.split-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 10px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.overview-card p,
.copy-card p {
    color: var(--muted);
    line-height: 1.85;
}

.text-link {
    color: var(--pink);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #261b2d;
    box-shadow: var(--soft-shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.02);
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-card span,
.category-card p {
    position: absolute;
    left: 20px;
    right: 20px;
    color: #ffffff;
}

.category-card span {
    bottom: 72px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.category-card:hover img {
    opacity: 0.78;
    transform: scale(1.10);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 14px;
    margin: 24px 0 30px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #8b5f76;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: 15px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: 0 16px 34px rgba(31, 27, 45, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.32);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(249, 115, 22, 0.16));
}

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

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

.genre-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.genre-badge {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(249, 115, 22, 0.92));
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    justify-content: center;
    background: rgba(31, 27, 45, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

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

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

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #9d174d;
    background: rgba(251, 207, 232, 0.55);
    font-size: 12px;
    font-weight: 760;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 38px 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(31, 27, 45, 0.06);
}

.rank-row:hover {
    border-color: rgba(236, 72, 153, 0.32);
    transform: translateY(-2px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

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

.rank-title {
    min-width: 0;
    color: var(--text);
    font-weight: 850;
}

.rank-info {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 72px clamp(24px, 5vw, 72px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 237, 213, 0.72)),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.24), transparent 24rem);
    box-shadow: var(--shadow);
}

.category-hero,
.ranking-hero {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(36, 26, 45, 0.92), rgba(236, 72, 153, 0.74)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.44), transparent 22rem);
}

.category-hero h1,
.category-hero p,
.ranking-hero h1,
.ranking-hero p {
    color: #ffffff;
}

.centered-actions {
    margin-top: 24px;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
}

.overview-cover {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 22px;
}

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

.overview-card h2 {
    margin: 6px 0 8px;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sample-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #9d174d;
    background: rgba(251, 207, 232, 0.58);
    font-size: 13px;
    font-weight: 760;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 28px;
    align-items: start;
}

.sticky-rank {
    position: sticky;
    top: 96px;
    grid-template-columns: 1fr;
}

.breadcrumbs {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--pink);
    font-weight: 800;
}

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: stretch;
    padding: 26px;
    border-radius: 34px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(36, 26, 45, 0.94), rgba(236, 72, 153, 0.72)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 26rem);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 8px;
}

.detail-info h1 {
    color: #ffffff;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span,
.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

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

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #120d18;
    box-shadow: 0 32px 70px rgba(31, 27, 45, 0.26);
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f0a14;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(18, 13, 24, 0.18), rgba(18, 13, 24, 0.78));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

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

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
}

.copy-card {
    padding: 28px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--soft-shadow);
}

.copy-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.copy-card p {
    margin: 0;
    font-size: 16px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.92), rgba(255, 247, 237, 0.92));
}

.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.footer-inner p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9d174d;
    background: rgba(251, 207, 232, 0.54);
    font-weight: 760;
}

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

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

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

    .sticky-rank {
        position: static;
    }

    .detail-cover img {
        max-height: 560px;
        min-height: 0;
    }
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        text-align: center;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        margin: 0 auto;
        padding: 24px;
    }

    .split-heading,
    .footer-inner {
        display: block;
    }

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

    .overview-grid,
    .rank-list,
    .category-grid,
    .movie-grid,
    .large-grid,
    .dense-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-card {
        grid-template-columns: 1fr;
    }

    .ranking-layout {
        display: block;
    }
}

@media (max-width: 560px) {
    .section-wrap {
        width: min(100% - 24px, 1220px);
        padding: 46px 0;
    }

    .page-hero,
    .detail-hero,
    .breadcrumbs {
        width: min(100% - 24px, 1220px);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

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

    .rank-row {
        grid-template-columns: 34px 48px 1fr;
    }

    .rank-info {
        grid-column: 3;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-info {
        padding: 10px 0;
    }

    .video-player {
        border-radius: 20px;
    }
}
