:root {
    --pink: #db2777;
    --rose: #f43f5e;
    --orange: #f97316;
    --dark: #2b1023;
    --text: #2f2630;
    --muted: #7c6474;
    --line: rgba(255, 255, 255, 0.28);
    --card: rgba(255, 255, 255, 0.92);
    --soft: #fff7fb;
    --shadow: 0 22px 60px rgba(219, 39, 119, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 8rem, rgba(249, 115, 22, 0.15), transparent 30rem),
        linear-gradient(180deg, #fff2f8 0%, #fff 38%, #fff7ed 100%);
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.96), rgba(244, 63, 94, 0.96), rgba(249, 115, 22, 0.96));
    color: #fff;
    box-shadow: 0 18px 48px rgba(219, 39, 119, 0.26);
    backdrop-filter: blur(14px);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
    font-size: 1.38rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.top-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 8px 8px 8px 12px;
}

.top-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.top-search button {
    padding: 8px 14px;
    color: var(--pink);
    background: #fff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    font-size: 1.55rem;
    background: transparent;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav,
.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-panel a,
.mobile-cats a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #fff;
    background: linear-gradient(135deg, #be185d, #e11d48 45%, #f97316);
}

.hero-slide {
    display: none;
    width: min(1200px, calc(100% - 32px));
    min-height: 590px;
    margin: 0 auto;
    padding: 72px 0 110px;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0 -22vw;
    background:
        linear-gradient(90deg, rgba(36, 10, 38, 0.82), rgba(36, 10, 38, 0.36), rgba(36, 10, 38, 0.08)),
        var(--hero-image) center / cover;
    filter: blur(0px);
    opacity: 0.36;
}

.hero-slide.active {
    display: grid;
    animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.82), rgba(249, 115, 22, 0.82));
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 45px rgba(43, 16, 35, 0.28);
}

.hero-copy p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.22rem;
    line-height: 1.9;
}

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

.hero-tags span,
.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 750;
}

.tag-list span {
    color: #be185d;
    background: #fff0f6;
}

.tag-list.large span {
    font-size: 0.92rem;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.primary-btn {
    color: #be185d;
    background: #fff;
    box-shadow: 0 18px 38px rgba(43, 16, 35, 0.2);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.13);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 35px 100px rgba(43, 16, 35, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

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

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

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

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

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    width: min(1050px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.hero-category-bar a {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.intro-band,
.grid-section,
.category-section,
.split-layout,
.page-hero,
.overview-grid,
.filter-panel,
.ranking-full,
.detail-hero,
.player-section,
.detail-content,
.breadcrumbs {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.intro-band {
    margin-top: 52px;
    padding: 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    text-align: center;
}

.intro-band h1,
.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-band p,
.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.9;
    font-size: 1.05rem;
}

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

.section-heading.compact {
    margin-top: 0;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: var(--dark);
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 42px rgba(219, 39, 119, 0.12);
    transition: 0.2s ease;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.16));
}

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.32);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.movie-info {
    padding: 17px;
}

.movie-meta,
.score-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.movie-meta span,
.detail-meta span {
    color: var(--muted);
    font-size: 0.84rem;
}

.movie-info h3 {
    margin: 10px 0 8px;
    color: var(--dark);
    font-size: 1.08rem;
    line-height: 1.38;
}

.movie-info p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.score-line {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.score-line strong,
.detail-meta strong {
    color: #f97316;
}

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

.category-tile,
.category-overview-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 48px rgba(219, 39, 119, 0.1);
    transition: 0.2s ease;
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 1.18rem;
    font-weight: 900;
}

.category-tile small,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.ranking-panel,
.ranking-full,
.filter-panel,
.player-section,
.detail-content article {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: 16px;
    background: rgba(255, 240, 246, 0.72);
    transition: 0.18s ease;
}

.rank-row:hover {
    background: #fff;
    transform: translateX(3px);
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.16));
}

.rank-no {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-title {
    overflow: hidden;
    color: var(--dark);
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-type {
    color: var(--muted);
    font-size: 0.9rem;
}

.page-hero {
    margin-top: 44px;
    padding: 44px;
    border-radius: 32px;
}

.page-hero.soft {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 251, 0.78)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 24rem);
    box-shadow: var(--shadow);
}

.mini-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.mini-covers img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.16));
}

.filter-panel {
    margin-top: 28px;
    margin-bottom: 26px;
}

.sticky-filter {
    position: sticky;
    top: 84px;
    z-index: 20;
}

.filter-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(219, 39, 119, 0.18);
    border-radius: 999px;
    outline: 0;
    color: var(--dark);
    background: #fff;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--pink);
    background: #fff0f6;
    cursor: pointer;
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.all-list {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 22px;
    padding: 28px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #be185d, #e11d48 48%, #f97316);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(43, 16, 35, 0.24);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.9;
}

.detail-meta span,
.detail-meta strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    margin-top: 34px;
}

.player-section h2,
.detail-content h2 {
    margin-top: 0;
    color: var(--dark);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #150914;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #150914;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(219, 39, 119, 0.18), rgba(21, 9, 20, 0.5));
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 20px 48px rgba(219, 39, 119, 0.38);
}

.player-box.playing .player-overlay {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.detail-content p {
    color: var(--muted);
    line-height: 2;
    font-size: 1.03rem;
}

.related-section {
    margin-bottom: 70px;
}

.site-footer {
    margin-top: 78px;
    color: #fff;
    background: linear-gradient(90deg, #be185d, #e11d48, #f97316);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.2fr;
    gap: 38px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
}

.site-footer a {
    display: inline-flex;
    margin: 0 10px 10px 0;
    color: rgba(255, 255, 255, 0.86);
}

.copyright {
    padding: 18px 16px;
    text-align: center;
    background: rgba(43, 16, 35, 0.16);
}

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

@media (max-width: 980px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-slide {
        gap: 30px;
        padding-top: 50px;
    }

    .hero-poster {
        max-width: 320px;
    }

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

    .ranking-panel {
        margin-top: 28px;
    }

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

@media (max-width: 620px) {
    .nav-shell {
        height: 62px;
    }

    .brand-text {
        font-size: 1.08rem;
    }

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

    .hero-slide {
        min-height: auto;
        padding-bottom: 132px;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-copy p,
    .detail-copy p {
        font-size: 1rem;
    }

    .hero-category-bar {
        border-radius: 22px;
    }

    .intro-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .ranking-full,
    .filter-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .movie-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 34px 46px minmax(0, 1fr) auto;
    }

    .rank-row img {
        width: 46px;
        height: 62px;
    }

    .rank-type {
        display: none;
    }
}
