:root {
    --orange: #fb923c;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #7c3aed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --card: rgba(255, 255, 255, 0.9);
    --shadow: 0 22px 55px rgba(126, 34, 206, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 42%, #ffffff 100%);
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.92));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(6deg);
}

.brand-name {
    font-size: 22px;
    background: linear-gradient(90deg, var(--orange-dark), var(--pink-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #4b5563;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

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

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--pink-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
}

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

.mobile-link {
    padding: 12px 14px;
}

main {
    padding-top: 68px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink) 48%, var(--purple));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    opacity: 0.9;
}

.hero::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    min-height: 640px;
    padding: 54px 0;
    align-items: center;
}

.hero-stage {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy {
    max-width: 680px;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.section-kicker {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.08);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 16px 0 12px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
}

.hero p,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.tag-row span {
    color: var(--orange-dark);
    background: #fff7ed;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    font-weight: 800;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
    color: var(--pink-dark);
    background: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

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

.hero-media {
    position: relative;
    display: block;
    height: 460px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.hero-media img,
.poster-link img,
.detail-poster img,
.category-feature img,
.ranking-item img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.42));
}

.hero-play {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

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

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

.hero-side {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.side-title {
    display: block;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 900;
}

.mini-grid {
    display: grid;
    gap: 14px;
}

.section {
    padding: 62px 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--pink-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
}

.compact-grid .poster-link,
.mini-grid .poster-link {
    height: 210px;
}

.poster-link img {
    height: 100%;
    transition: transform 0.3s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.poster-action {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

.movie-meta-line,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line a {
    color: var(--pink-dark);
    font-weight: 800;
}

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

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

.card-foot {
    margin-top: 14px;
}

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

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

.category-card,
.category-overview-card,
.rank-panel,
.detail-side-card,
.filter-panel,
.detail-article {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.09);
}

.category-card {
    padding: 20px;
}

.category-card span,
.category-overview-title,
.rank-head span {
    color: var(--pink-dark);
    font-size: 18px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rank-head a {
    color: var(--orange-dark);
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff7ed, #fdf2f8);
}

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

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink) 55%, var(--purple));
}

.slim-hero .container,
.category-hero-inner {
    position: relative;
    z-index: 1;
    padding: 86px 0;
}

.category-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: center;
}

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

.category-feature {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.category-feature span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 14px;
    outline: 0;
    background: #fff;
}

.search-box input {
    padding: 0 14px;
}

.filter-panel select {
    min-width: 160px;
    padding: 0 12px;
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

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

.category-overview-card {
    padding: 22px;
}

.category-sample {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.category-sample a {
    color: var(--text);
    font-weight: 700;
}

.category-enter {
    color: var(--pink-dark);
    font-weight: 900;
}

.ranking-table {
    display: grid;
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px 56px minmax(0, 1fr) minmax(160px, 0.45fr) 90px;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.ranking-item img {
    width: 56px;
    height: 72px;
    border-radius: 12px;
}

.ranking-number {
    color: var(--pink-dark);
    font-size: 20px;
    font-weight: 900;
}

.ranking-title {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-genre,
.ranking-score {
    color: var(--muted);
}

.detail-main {
    background: linear-gradient(180deg, #fff7ed, #fff);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    filter: blur(6px) saturate(1.12);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    padding: 74px 0;
    align-items: end;
}

.detail-poster {
    height: 390px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #050505;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.play-overlay.is-hidden {
    display: none;
}

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

.detail-article {
    padding: 28px;
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-article p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.second-kicker {
    margin-top: 30px;
}

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

.detail-side-card h2 {
    margin: 0 0 18px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.detail-side-card dt {
    color: var(--muted);
}

.detail-side-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.prev-next {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.prev-next a {
    color: var(--pink-dark);
    font-weight: 800;
    line-height: 1.5;
}

.site-footer {
    margin-top: 30px;
    padding: 44px 0;
    color: #fff;
    background: linear-gradient(135deg, #111827, #312e81 48%, #831843);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
    gap: 28px;
    align-items: start;
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1100px) {
    .hero-inner,
    .split-section,
    .category-hero-inner,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stage {
        min-height: 560px;
    }

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

    .hero-media {
        height: 300px;
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        display: block;
        padding: 44px 0;
    }

    .hero-stage {
        min-height: 670px;
    }

    .hero-side {
        display: none;
    }

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

    .filter-panel,
    .footer-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    .ranking-item {
        grid-template-columns: 42px 52px minmax(0, 1fr);
    }

    .ranking-genre,
    .ranking-score {
        display: none;
    }

    .detail-poster {
        width: min(260px, 100%);
        height: 350px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand-name {
        font-size: 19px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 28px;
    }

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

    .poster-link,
    .compact-grid .poster-link,
    .mini-grid .poster-link {
        height: 260px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .play-overlay span {
        width: 74px;
        height: 74px;
    }
}
