:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #fb923c;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 28%, #f9fafb 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
    font-size: 16px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 650;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    background: #fff1f2;
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--rose);
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--soft-shadow);
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: grid;
    align-items: center;
    padding: 62px 0 46px;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.22), transparent 34%), radial-gradient(circle at 80% 22%, rgba(251, 146, 60, 0.18), transparent 30%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 52%, #fff7ed 100%);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 34px 8% auto auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.14);
    filter: blur(12px);
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
    gap: 34px;
    align-items: center;
    padding: 54px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 690px;
    margin: 0 0 24px;
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 17px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 16px 28px rgba(244, 63, 94, 0.28);
}

.btn-secondary {
    color: var(--rose);
    background: white;
    border-color: #fecdd3;
}

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

.hero-visual {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    transform: rotate(2deg);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

.hero-rank {
    position: absolute;
    left: -18px;
    bottom: 26px;
    width: min(260px, 88%);
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: var(--soft-shadow);
}

.hero-rank strong {
    display: block;
    margin-bottom: 8px;
}

.hero-dots {
    position: absolute;
    left: 54px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
    cursor: pointer;
}

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

.search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 14px;
    padding: 18px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow);
}

.search-card input,
.search-card select {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    padding: 0 16px;
    color: var(--gray-700);
    background: white;
    font-size: 15px;
    outline: none;
}

.section {
    padding: 64px 0 0;
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
}

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

.movie-card,
.category-card,
.rank-card,
.info-box,
.related-card {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--soft-shadow);
}

.poster-link {
    position: relative;
    display: block;
    background: #f3f4f6;
    overflow: hidden;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 8px;
}

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

.movie-card h3 a:hover,
.related-title:hover,
.rank-card a:hover {
    color: var(--rose);
}

.movie-card p,
.category-card p,
.related-card p,
.rank-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.inline-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    padding: 22px;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card .category-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--rose);
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 74px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 900;
}

.rank-thumb img {
    width: 76px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--gray-100);
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hot-score {
    color: var(--rose);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 70px 0 28px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    margin-bottom: 18px;
    font-size: 14px;
}

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

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 17px;
}

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

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: 0.2s ease;
}

.player-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.36);
    font-size: 32px;
    cursor: pointer;
}

.content-card,
.side-card {
    margin-top: 26px;
    padding: 26px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.82);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.content-card p {
    color: var(--gray-700);
    line-height: 1.9;
    margin: 0 0 16px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: var(--gray-100);
}

.detail-facts {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.detail-facts div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.detail-facts strong {
    color: var(--gray-900);
}

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

.related-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.related-cover img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--gray-100);
}

.related-title {
    display: block;
    margin: 4px 0 8px;
    font-weight: 850;
    line-height: 1.35;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 800;
}

.site-footer {
    margin-top: 76px;
    padding: 48px 0 24px;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    border-top: 1px solid rgba(229, 231, 235, 0.88);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    color: var(--gray-600);
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--gray-600);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 14px;
}

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

    .menu-button {
        display: grid;
        place-items: center;
    }

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

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

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

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

    .rank-card {
        grid-template-columns: 46px 70px minmax(0, 1fr);
    }

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

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

@media (max-width: 620px) {
    .hero {
        min-height: auto;
        padding-top: 28px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero-dots {
        left: 28px;
    }

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

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .related-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .page-hero {
        padding-top: 42px;
    }
}
