:root {
    --pink: #db2777;
    --pink-soft: #fce7f3;
    --purple: #7c3aed;
    --blue: #2563eb;
    --orange: #ea580c;
    --green: #16a34a;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3e8ff;
    --shell: 1180px;
    --radius: 24px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.nav-shell {
    max-width: var(--shell);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
    transform: translateZ(0);
}

.brand-text {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 22px 18px;
    border-top: 1px solid #f3e8ff;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: #4b5563;
    font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--pink);
    background: #fdf2f8;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #ec4899 0%, #8b5cf6 48%, #2563eb 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(4px);
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 78px 22px 70px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 46px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.85rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

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

.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: var(--purple);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

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

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-media {
    position: relative;
    min-height: 430px;
}

.hero-poster-frame {
    position: relative;
    width: min(410px, 100%);
    margin-left: auto;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
    transform: rotate(2deg);
}

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

.hero-info-card {
    position: absolute;
    left: 0;
    bottom: 28px;
    max-width: 320px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.hero-info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

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

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

.section {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 62px 22px;
}

.section.white {
    max-width: none;
    background: #ffffff;
}

.section.white > .section-inner {
    max-width: var(--shell);
    margin: 0 auto;
}

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

.section-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 740px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 14px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    font-weight: 900;
}

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

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.32;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 0.82rem;
}

.movie-meta-row span {
    padding: 5px 8px;
    border-radius: 10px;
    background: #f9fafb;
}

.tag-row span {
    color: #7c3aed;
    background: #f3e8ff;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: var(--category-tone);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -64px;
    bottom: -64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-main-link {
    position: relative;
    z-index: 1;
    display: block;
}

.category-main-link h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.category-main-link p {
    max-width: 480px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.category-main-link span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.category-preview-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.category-preview-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 700;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.75fr);
    gap: 30px;
    align-items: start;
}

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

.rank-row,
.side-item {
    display: grid;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-row {
    grid-template-columns: 54px 104px minmax(0, 1fr) auto;
    padding: 14px;
}

.rank-row img {
    width: 104px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-num {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #db2777);
    font-weight: 900;
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

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

.rank-score {
    padding: 8px 12px;
    border-radius: 14px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 900;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.side-card h2 {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: 1.2rem;
}

.side-item {
    grid-template-columns: auto 72px minmax(0, 1fr);
    padding: 10px;
    margin-bottom: 12px;
}

.side-item img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.side-item strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    line-height: 1.35;
}

.side-item em {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1.45;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(120deg, #ec4899, #7c3aed, #2563eb);
}

.page-hero .section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.75;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    color: #111827;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(249, 168, 212, 0.24);
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

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

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    font-size: 2.2rem;
    transform: translateX(3px);
}

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.04em;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3e8ff;
}

.detail-badges span {
    padding: 8px 12px;
    border-radius: 14px;
    background: #f9fafb;
    color: #4b5563;
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.info-grid div {
    padding: 14px;
    border-radius: 18px;
    background: #f9fafb;
}

.info-grid span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.info-grid strong {
    color: #111827;
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.25rem;
}

.content-block p {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.85;
}

.review-box {
    padding: 20px;
    border-left: 5px solid #ec4899;
    border-radius: 18px;
    background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-cover {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    background: linear-gradient(135deg, #fdf2f8, #faf5ff, #eff6ff);
}

.footer-shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 48px 22px 24px;
}

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 28px;
}

.footer-columns h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-columns a {
    color: #6b7280;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    color: #6b7280;
    font-size: 0.92rem;
}

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

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

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

    .hero-poster-frame {
        margin: 0;
    }

    .hero-info-card,
    .side-card,
    .detail-side {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-shell {
        padding-top: 56px;
        padding-bottom: 52px;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-info-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .section,
    .page-hero .section {
        padding: 42px 18px;
    }

    .section-head {
        display: block;
    }

    .text-link {
        display: inline-flex;
        margin-top: 12px;
    }

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

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

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

    .rank-row img {
        width: 82px;
        height: 70px;
    }

    .rank-score {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

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

@media (max-width: 480px) {
    .nav-shell {
        padding: 0 16px;
    }

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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