:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --orange: #fb7185;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --soft-2: #fdf2f8;
    --line: #f3d9e2;
    --card: #ffffff;
    --shadow: 0 18px 48px rgba(190, 18, 60, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #fff7fb 48%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
}

.nav-wrap {
    max-width: 1180px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 1.32rem;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-dark);
    background: #ffe4e6;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--rose-dark);
    background: #ffe4e6;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 22px 18px;
}

.mobile-menu.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    background: #ffffff;
    border: 1px solid #ffe4e6;
}

.hero-section {
    position: relative;
    min-height: 720px;
    padding: 106px 22px 70px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(244, 63, 94, 0.22), transparent 24rem),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(253, 242, 248, 0.65));
    pointer-events: none;
}

.hero-slider {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 540px;
    margin: 0 auto;
}

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

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

.hero-copy {
    padding: 42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--rose-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.section-heading p {
    color: var(--muted);
    font-size: 1.02rem;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #ffe4e6;
    font-size: 0.78rem;
    font-weight: 750;
}

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.24);
}

.btn.soft {
    color: var(--rose-dark);
    background: #ffffff;
    border: 1px solid #fecdd3;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-art {
    position: relative;
    min-height: 520px;
    padding: 16px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 228, 230, 0.86));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 28px -26px auto auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
    filter: blur(6px);
}

.hero-art img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.hero-art span {
    position: absolute;
    left: 34px;
    bottom: 30px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-pagination {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 18px auto 0;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 56px;
    background: var(--rose);
}

.section,
.page-main,
.detail-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px;
}

.page-main,
.detail-main {
    padding-top: 104px;
}

.search-section {
    margin-top: -32px;
    position: relative;
    z-index: 3;
}

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

.section-heading.centered {
    max-width: 760px;
    margin: 0 auto 22px;
    display: block;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

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

.search-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #ffe4e6;
    box-shadow: var(--shadow);
}

.search-input {
    width: 100%;
    min-height: 54px;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: var(--text);
    background: #fff7fb;
}

.filter-chips,
.category-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.filter-chips button,
.category-pill-row a {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--rose-dark);
    background: #ffe4e6;
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover,
.category-pill-row a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.category-card,
.content-card,
.category-overview-block {
    border-radius: 26px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #ffe4e6;
    box-shadow: 0 14px 38px rgba(190, 18, 60, 0.08);
}

.category-title {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--rose-dark);
}

.category-card p,
.category-overview-block p,
.content-card p {
    color: var(--muted);
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    color: #374151;
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid #ffe4e6;
    box-shadow: 0 16px 36px rgba(190, 18, 60, 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: #fda4af;
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(190, 18, 60, 0.84);
    font-size: 0.76rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--rose-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.card-body h2 {
    margin: 7px 0 8px;
    font-size: 1.06rem;
    line-height: 1.28;
}

.card-body h2 a:hover {
    color: var(--rose-dark);
}

.card-body p {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ranking-split {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 28px;
    align-items: center;
    margin-top: 22px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff1f2, #ffffff 52%, #fdf2f8);
    box-shadow: var(--shadow);
}

.ranking-copy {
    padding: 20px;
}

.ranking-copy h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.05em;
}

.ranking-copy p {
    color: var(--muted);
}

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

.rank-list.large {
    max-width: 880px;
    margin: 0 auto;
}

.rank-row {
    display: grid;
    grid-template-columns: 52px 68px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #ffe4e6;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: #fda4af;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: var(--rose-dark);
    background: #ffe4e6;
    font-weight: 950;
}

.rank-gold,
.rank-silver,
.rank-bronze {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-row img {
    width: 68px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffe4e6;
}

.rank-info {
    display: grid;
    gap: 4px;
}

.rank-info strong {
    font-size: 1rem;
}

.rank-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

.page-hero {
    margin-bottom: 32px;
    padding: 48px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.18), transparent 22rem),
        linear-gradient(135deg, #fff1f2, #ffffff);
    box-shadow: var(--shadow);
}

.page-hero.slim {
    text-align: center;
}

.category-hero {
    text-align: center;
}

.category-overview-block {
    margin-bottom: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 430px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    background: #0f172a;
    object-fit: cover;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-symbol {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.35);
    font-size: 1.6rem;
}

.detail-panel {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #ffe4e6;
    box-shadow: var(--shadow);
}

.detail-poster {
    width: 150px;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    background: #ffe4e6;
}

.detail-info h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-line {
    color: var(--muted);
    font-weight: 650;
}

.meta-grid {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    color: #374151;
    font-size: 0.94rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 0;
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--rose-dark);
}

.detail-nav-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.detail-nav-links a {
    flex: 1;
    min-width: 240px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--rose-dark);
    background: #ffe4e6;
    font-weight: 850;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #fff7fb, #f9fafb);
    border-top: 1px solid #ffe4e6;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.footer-grid p,
.footer-bottom {
    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.footer-links a:hover {
    color: var(--rose-dark);
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 30px;
    border-top: 1px solid #ffe4e6;
    text-align: center;
    font-size: 0.92rem;
}

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

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

    .menu-button {
        display: inline-flex;
    }

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

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

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

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

@media (max-width: 720px) {
    .hero-section {
        min-height: 980px;
        padding-top: 88px;
    }

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

    .hero-copy,
    .page-hero {
        padding: 26px;
        border-radius: 26px;
    }

    .hero-art img {
        height: 340px;
    }

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

    .section-heading {
        display: block;
    }

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

    .detail-poster {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

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

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

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

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

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

    .hero-actions {
        display: grid;
    }
}
