:root {
    --pink: #db2777;
    --pink-dark: #be185d;
    --purple: #9333ea;
    --purple-dark: #6d28d9;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d4e7;
    --soft: #fff1f8;
    --bg: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(148, 43, 122, 0.14);
    --shadow-strong: 0 24px 70px rgba(124, 58, 237, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7fb 0%, #f9fafb 35%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 10px 30px rgba(219, 39, 119, 0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.26);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    padding: 4px;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 8px 10px 8px 14px;
    color: var(--text);
    background: transparent;
}

.header-search button,
.pill-button,
.primary-button,
.ghost-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

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

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

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

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

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(236, 72, 153, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(88, 28, 135, 0.74) 48%, rgba(219, 39, 119, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 118px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    align-items: center;
    gap: 54px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fdf2f8;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2.4vw, 23px);
    line-height: 1.7;
}

.hero-tags,
.hero-actions,
.filter-actions,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.info-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: #fce7f3;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.primary-button {
    padding: 13px 22px;
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.ghost-button {
    padding: 13px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

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

.hero-card-body {
    position: absolute;
    inset: auto 0 0;
    padding: 26px;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.92));
}

.hero-card-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}

.hero-card-body span {
    color: rgba(255, 255, 255, 0.78);
}

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

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

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

.page-hero {
    padding: 82px 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, var(--pink), var(--purple));
}

.page-hero-inner,
.section,
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

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

.section {
    padding: 64px 24px;
}

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

.section-title h2,
.section-title h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

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

.section-link {
    color: var(--pink-dark);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 58px rgba(219, 39, 119, 0.2);
}

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

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

.movie-card:hover .card-cover img,
.side-card:hover img,
.category-card:hover .category-previews img,
.ranking-cover:hover img {
    transform: scale(1.08);
}

.card-type,
.rank-badge {
    position: absolute;
    top: 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}

.card-type {
    left: 14px;
    padding: 6px 10px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.rank-badge {
    right: 14px;
    min-width: 34px;
    padding: 7px 9px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
    padding: 18px;
}

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

.card-body h2 a:hover,
.ranking-main h2 a:hover,
.side-card:hover strong {
    color: var(--pink-dark);
}

.card-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
}

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

.category-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

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

.category-previews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-previews img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid #fbcfe8;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(219, 39, 119, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 14px;
}

.filter-panel input,
.filter-panel select,
.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    outline: 0;
    padding: 13px 16px;
    color: var(--text);
    background: #ffffff;
}

.pill-button {
    padding: 10px 16px;
    color: #4b5563;
    background: #f3f4f6;
}

.pill-button.active,
.pill-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 96px 58px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-cover img {
    width: 96px;
    height: 128px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ranking-index {
    font-size: 26px;
    font-weight: 950;
    color: var(--pink-dark);
}

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-main p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.65;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 800;
}

.ranking-score {
    font-size: 24px;
    font-weight: 950;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.movie-detail-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(236, 72, 153, 0.34), transparent 28%),
        linear-gradient(135deg, #111827 0%, #581c87 54%, #be185d 100%);
    color: #ffffff;
}

.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 34px;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.player-card,
.detail-card,
.related-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
}

.player-card {
    overflow: hidden;
    margin-bottom: 26px;
    background: #000000;
}

.player-shell {
    position: relative;
    background: #000000;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
    z-index: 3;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 55px rgba(219, 39, 119, 0.42);
}

.detail-card {
    padding: 30px;
    color: var(--text);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-intro {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.detail-content {
    display: grid;
    gap: 26px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.92;
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

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

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

.related-card {
    position: sticky;
    top: 96px;
    padding: 22px;
    color: var(--text);
}

.related-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.side-card:hover {
    background: #fce7f3;
}

.side-card img {
    width: 94px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.side-card em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.horizontal-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 150px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-result-text {
    margin: 0 0 22px;
    color: var(--muted);
    font-weight: 800;
}

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

.site-footer {
    margin-top: 40px;
    background: #ffffff;
    border-top: 1px solid #fbcfe8;
}

.footer-inner {
    padding: 54px 24px 34px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px 24px 28px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

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

    .header-inner {
        justify-content: space-between;
    }

    .menu-button {
        display: block;
    }

    .hero-content,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 420px;
    }

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

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

    .related-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 0 16px;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        padding: 98px 18px 70px;
        gap: 28px;
    }

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

    .hero-card {
        display: none;
    }

    .section,
    .page-hero,
    .detail-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 14px;
    }

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

    .filter-grid,
    .search-box {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: start;
    }

    .ranking-cover img {
        width: 74px;
        height: 100px;
    }

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

    .detail-card {
        padding: 22px;
    }
}
