:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #60a5fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --paper: #ffffff;
    --line: #edf2f7;
    --shadow: 0 20px 55px rgba(31, 41, 55, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f9fafb;
    line-height: 1.6;
}

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, .95);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.nav-wrap {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 10px 20px rgba(236, 72, 153, .28);
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, #f472b6, #a78bfa, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #4b5563;
    font-weight: 600;
}

.nav-links a,
.mobile-nav a {
    transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--pink);
}

.nav-toggle {
    display: none;
    border: 0;
    color: #4b5563;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: white;
    background: radial-gradient(circle at 15% 20%, rgba(244, 114, 182, .85), transparent 32%), linear-gradient(135deg, #f9a8d4 0%, #c4b5fd 48%, #93c5fd 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, #f9fafb, rgba(249, 250, 251, 0));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 680px;
    margin: 0 auto;
    padding: 76px 22px 116px;
}

.hero-slide {
    position: absolute;
    inset: 76px 22px 116px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
}

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

.hero-copy h1 {
    margin: 16px 0 20px;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .92);
    font-size: 21px;
}

.hero-eyebrow,
.detail-eyebrow,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, .82);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(190, 24, 93, .12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 28px rgba(31, 41, 55, .14);
}

.btn-light {
    color: var(--pink-dark);
    background: white;
}

.btn-pink {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.hero-tags span,
.detail-tags span,
.chip-row span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
}

.hero-poster {
    position: relative;
    display: block;
    max-width: 360px;
    justify-self: center;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, .22);
    box-shadow: 0 30px 70px rgba(31, 41, 55, .32);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: white;
    background: rgba(236, 72, 153, .86);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 22px;
    bottom: 66px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, .86);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 12px !important;
    height: 12px !important;
    padding: 0;
    background: rgba(255, 255, 255, .5) !important;
}

.hero-dot.is-active {
    width: 34px !important;
    background: white !important;
}

.hero-blob {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 999px;
    mix-blend-mode: multiply;
    filter: blur(55px);
    opacity: .35;
    animation: blob 11s infinite;
}

.hero-blob-a {
    top: 70px;
    left: 5%;
    background: #ec4899;
}

.hero-blob-b {
    top: 150px;
    right: 8%;
    background: #8b5cf6;
    animation-delay: 2s;
}

.hero-blob-c {
    bottom: 20px;
    left: 45%;
    background: #60a5fa;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -45px) scale(1.08);
    }
    66% {
        transform: translate(-28px, 35px) scale(.92);
    }
}

.section-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 78px 22px;
}

.soft-section {
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
}

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

.section-head.center {
    align-items: center;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(31, 41, 55, .08);
    transition: transform .28s ease, box-shadow .28s ease;
}

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

.movie-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
}

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

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

.movie-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--pink);
    font-size: 34px;
    background: rgba(0, 0, 0, .36);
    opacity: 0;
    transition: opacity .28s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
}

.movie-year {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, .72);
    font-size: 12px;
    font-weight: 700;
}

.movie-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.movie-body strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.movie-card:hover .movie-body strong {
    color: var(--pink);
}

.movie-body small {
    color: var(--pink-dark);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-desc {
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.compact .movie-body strong {
    font-size: 16px;
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 14px 16px 14px 76px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.rank-card img {
    width: 72px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-card strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 16px;
}

.rank-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-number {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    transform: translateY(-50%);
}

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

.category-tile,
.category-panel {
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 24px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-panel-title {
    color: var(--pink-dark);
    font-size: 22px;
    font-weight: 900;
}

.category-tile span,
.category-panel p {
    color: var(--muted);
    margin: 0;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 5px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

.page-hero > div {
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 22px 82px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 20px;
}

.catalog-controls {
    display: grid;
    grid-template-columns: 1fr 180px 160px auto;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
}

.catalog-controls label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.catalog-controls input,
.catalog-controls select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #f9fafb;
    outline: none;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, .12);
}

.catalog-controls button {
    align-self: end;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px 70px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: white;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: end;
    gap: 36px;
}

.detail-cover {
    width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .9);
    font-size: 20px;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 26px;
    align-items: start;
}

.player-card,
.article-card {
    border-radius: 28px;
    background: white;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .08);
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(3, 7, 18, .16), rgba(3, 7, 18, .68));
    cursor: pointer;
}

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

.play-circle {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, .92);
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.player-overlay strong {
    font-size: 20px;
}

.article-card {
    padding: 28px;
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 22px;
    color: #4b5563;
}

.info-table {
    display: grid;
    gap: 10px;
}

.info-table div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.info-table span {
    color: var(--muted);
}

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

.site-footer {
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 22px 34px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer p {
    color: var(--muted);
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 30px;
    color: var(--muted);
    border-top: 1px solid rgba(236, 72, 153, .12);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

    .nav-toggle {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        inset: 48px 22px 106px;
        gap: 28px;
    }

    .hero-poster {
        width: min(310px, 78vw);
        justify-self: start;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .rank-grid,
    .category-grid,
    .category-panel-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-controls {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-cover {
        width: 240px;
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 20px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 17px;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .rank-grid,
    .category-grid,
    .category-panel-grid,
    .rank-list,
    .catalog-controls {
        grid-template-columns: 1fr;
    }

    .section-wrap {
        padding: 54px 16px;
    }

    .nav-wrap,
    .page-hero > div,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rank-card {
        grid-template-columns: 64px 1fr;
        padding-left: 66px;
    }

    .rank-card img {
        width: 64px;
        height: 86px;
    }
}
