:root {
    --pink: #ec4899;
    --rose: #fb7185;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --green: #22c55e;
    --orange: #f97316;
    --purple: #8b5cf6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.18);
    --card: rgba(255, 255, 255, 0.86);
    --glass: rgba(255, 255, 255, 0.72);
    --shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
    --soft-shadow: 0 14px 34px rgba(31, 41, 55, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 5%, rgba(236, 72, 153, 0.18), transparent 26rem),
        radial-gradient(circle at 92% 12%, rgba(59, 130, 246, 0.18), transparent 24rem),
        linear-gradient(135deg, #fff7fb 0%, #eef6ff 48%, #f2fff7 100%);
    min-height: 100vh;
}

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

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

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

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 26px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
    border: 2px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 11px 16px;
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(236, 72, 153, 0.58);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.card-action,
.section-more {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.card-action {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.18);
}

.header-search button,
.mobile-search button {
    padding: 11px 16px;
}

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.card-action:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 999px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

.mobile-panel-inner {
    padding: 16px 0 22px;
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    font-weight: 800;
}

.mobile-link.is-active {
    color: var(--pink);
}

.hero {
    padding: 34px 0 56px;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 36px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 560px;
    isolation: isolate;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: stretch;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.70) 42%, rgba(17, 24, 39, 0.22)),
        radial-gradient(circle at 26% 24%, rgba(236, 72, 153, 0.24), transparent 22rem);
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: 70px 0 70px 64px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #be185d;
    background: rgba(252, 231, 243, 0.86);
}

.hero-copy h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-art {
    position: relative;
    min-height: 560px;
    padding: 46px 44px 46px 0;
    display: flex;
    align-items: center;
}

.hero-art::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 10%;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.26);
    filter: blur(50px);
}

.hero-poster {
    position: relative;
    z-index: 2;
    width: min(380px, 86%);
    margin-left: auto;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 38px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

main {
    padding-bottom: 60px;
}

.section {
    margin-bottom: 62px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    display: inline-flex;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.78);
    padding: 11px 18px;
    border: 1px solid rgba(236, 72, 153, 0.14);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.10);
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.65));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

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

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

.movie-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

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

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

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

.tag-row span,
.detail-tags span,
.meta-pill {
    padding: 7px 10px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.82);
}

.card-action {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56));
    box-shadow: var(--soft-shadow);
}

.category-main-link {
    display: block;
    padding: 24px;
}

.category-name {
    display: block;
    color: var(--pink);
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin: 10px 0;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    padding: 0 24px 24px;
    display: grid;
    gap: 8px;
}

.category-samples a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.category-samples a:hover {
    color: var(--pink);
}

.feature-band {
    border-radius: 34px;
    padding: 34px;
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.18), rgba(236, 72, 153, 0.16), rgba(59, 130, 246, 0.14));
    box-shadow: var(--soft-shadow);
}

.rank-panel {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 62px 88px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.10);
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    width: 88px;
    height: 120px;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-score {
    color: var(--pink);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    padding: 44px 0;
}

.page-card {
    border-radius: 34px;
    padding: 42px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.page-card h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-card p,
.detail-title p {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--pink);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side {
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: var(--soft-shadow);
}

.detail-main {
    padding: 28px;
}

.detail-side {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.74)),
        radial-gradient(circle at center, rgba(236, 72, 153, 0.24), transparent 22rem);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-stack {
    display: grid;
    justify-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 900;
}

.play-orb {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.30);
}

.detail-content {
    margin-top: 26px;
}

.detail-title {
    margin-bottom: 24px;
}

.detail-meta {
    margin-top: 18px;
}

.detail-content h2,
.detail-side h2 {
    margin: 26px 0 12px;
    font-size: 25px;
}

.detail-content p {
    color: #374151;
    line-height: 1.95;
    font-size: 16px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

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

.side-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.side-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 62px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
}

.side-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.side-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid rgba(236, 72, 153, 0.14);
    background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    color: #4b5563;
    font-weight: 700;
}

.footer-inner p {
    color: var(--muted);
    margin: 0;
}

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

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

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-slide.is-active {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 56px 36px 20px;
    }

    .hero-art {
        min-height: 360px;
        padding: 0 36px 74px;
    }

    .hero-poster {
        margin: 0 auto;
        width: min(300px, 84%);
    }

    .hero-dots {
        left: 36px;
    }

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

    .hero-stage,
    .hero-slide {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy h2 {
        font-size: 30px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .section-head,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .rank-row {
        grid-template-columns: 44px 68px 1fr;
    }

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

    .rank-thumb img {
        width: 68px;
        height: 94px;
    }

    .page-card {
        padding: 28px;
    }

    .detail-main {
        padding: 18px;
    }
}

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

    .hero-copy {
        padding: 42px 24px 12px;
    }

    .hero-art {
        padding: 0 24px 70px;
    }

    .page-card h1,
    .detail-title h1 {
        font-size: 34px;
    }
}
