:root {
    --pink: #db2777;
    --rose: #f43f5e;
    --orange: #f97316;
    --yellow: #facc15;
    --ink: #18181b;
    --muted: #71717a;
    --soft: #fff7ed;
    --line: #f3e8ff;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(190, 24, 93, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(219, 39, 119, 0.28);
}

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

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

.nav-link {
    padding: 10px 16px;
    color: #52525b;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #fbcfe8;
    border-radius: 14px;
}

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

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

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: center;
    padding: 112px 0 132px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(88, 28, 135, 0.65) 46%, rgba(15, 23, 42, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--pink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fbcfe8;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #be185d;
    background: #fce7f3;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero-actions,
.detail-info .primary-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 14px 34px rgba(219, 39, 119, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(219, 39, 119, 0.34);
}

.hero-panel {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(620px, 100%);
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #27272a;
    background: #ffffff;
    border: 1px solid #fce7f3;
    border-radius: 16px;
    outline: none;
    box-shadow: 0 10px 28px rgba(244, 114, 182, 0.08);
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.hero-search button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    border: 0;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
}

.hero-search-results {
    display: none;
    width: min(620px, 100%);
    max-height: 360px;
    margin-top: 10px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #fbcfe8;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #fdf2f8;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item img {
    width: 56px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #fdf2f8;
}

.search-result-item strong {
    display: block;
    margin-bottom: 4px;
    color: #18181b;
}

.search-result-item span {
    color: var(--muted);
    font-size: 13px;
}

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

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

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

.section-block {
    padding: 82px 0;
}

.soft-bg {
    background: rgba(255, 255, 255, 0.42);
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading a {
    color: var(--pink);
    font-weight: 900;
}

.inline-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(190, 24, 93, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(244, 114, 182, 0.38);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fdf2f8;
    aspect-ratio: 2 / 3;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-score,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    min-width: 42px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(219, 39, 119, 0.94);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.26);
}

.card-score {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #18181b;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.28;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--pink);
}

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

.card-desc {
    display: -webkit-box;
    min-height: 46px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: #52525b;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card.compact {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.movie-card.compact .poster-link {
    aspect-ratio: auto;
    min-height: 178px;
}

.movie-card.compact .card-desc {
    -webkit-line-clamp: 3;
}

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

.category-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(190, 24, 93, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 160px;
    overflow: hidden;
}

.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 20px;
}

.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.category-card-body p {
    min-height: 70px;
    margin: 0 0 16px;
    color: #52525b;
    line-height: 1.7;
}

.category-card-body span {
    color: var(--pink);
    font-weight: 900;
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

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

.page-hero {
    position: relative;
    padding: 74px 0 48px;
    background:
        radial-gradient(circle at 16% 10%, rgba(244, 114, 182, 0.23), transparent 30%),
        radial-gradient(circle at 90% 22%, rgba(251, 191, 36, 0.28), transparent 34%),
        rgba(255, 255, 255, 0.64);
    border-bottom: 1px solid rgba(244, 114, 182, 0.14);
}

.compact-hero p {
    max-width: 760px;
    color: #52525b;
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #71717a;
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 170px 170px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(190, 24, 93, 0.08);
}

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

.empty-state {
    padding: 36px;
    color: #71717a;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.12);
    opacity: 0.46;
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 78% 12%, rgba(251, 191, 36, 0.25), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(76, 29, 149, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 56px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    max-width: 820px;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.player-section {
    padding-bottom: 48px;
}

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

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    color: #ffffff;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.46));
}

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

.play-icon,
.player-cover strong {
    position: relative;
    z-index: 2;
}

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 20px 50px rgba(219, 39, 119, 0.4);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 950;
}

.player-copy {
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.18), rgba(249, 115, 22, 0.12));
}

.player-copy h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.player-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.detail-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.detail-copy-grid article {
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(190, 24, 93, 0.08);
}

.detail-copy-grid h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.detail-copy-grid p {
    margin: 0;
    color: #3f3f46;
    font-size: 17px;
    line-height: 1.95;
}

.detail-neighbor {
    padding: 0 0 72px;
}

.neighbor-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.neighbor-links a {
    display: inline-flex;
    max-width: 48%;
    padding: 14px 18px;
    color: var(--pink);
    background: #ffffff;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    font-weight: 900;
}

.site-footer {
    padding: 44px 0;
    color: #52525b;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(244, 114, 182, 0.16);
}

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

.footer-links {
    display: flex;
    gap: 16px;
    font-weight: 800;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #fbcfe8;
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 12vw, 60px);
    }

    .hero-summary {
        font-size: 17px;
    }

    .section-heading,
    .footer-inner,
    .neighbor-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .catalog-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-grid,
    .split-layout,
    .detail-layout,
    .detail-copy-grid {
        grid-template-columns: 1fr;
    }

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

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

    .neighbor-links a {
        max-width: 100%;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

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

    .hero-carousel {
        min-height: 620px;
    }

    .hero-slide {
        padding: 86px 0 140px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

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

    .movie-card.compact {
        grid-template-columns: 104px 1fr;
    }

    .movie-card.compact .poster-link {
        min-height: 160px;
    }

    .section-block {
        padding: 56px 0;
    }

    .page-hero {
        padding: 52px 0 38px;
    }

    .detail-hero-inner {
        padding: 42px 0 50px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .player-cover strong {
        text-align: center;
    }
}
