:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --deep: #111827;
    --muted: #6b7280;
    --line: #f1f5f9;
    --soft: #fff1f2;
    --bg: #fff7fa;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

.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, 63, 94, 0.10);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

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

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    transition: transform 0.22s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--rose);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 48px 0 62px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(236, 72, 153, 0.22), transparent 36%),
        radial-gradient(circle at 78% 18%, rgba(244, 63, 94, 0.22), transparent 34%),
        linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #ffe4e6 100%);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-image {
    position: relative;
    min-height: 610px;
    overflow: hidden;
}

.hero-image::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.05));
}

.hero-image img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    padding: 86px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.94)),
        radial-gradient(circle at 80% 12%, rgba(244, 63, 94, 0.13), transparent 42%);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: 19px;
    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 {
    padding: 6px 11px;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 228, 230, 0.92);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions,
.center-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.primary-btn,
.search-form button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
    color: var(--rose);
    background: #ffffff;
    border: 1px solid #fecdd3;
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.30);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 9px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
}

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

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

.search-band,
.section-wrap,
.category-band,
.player-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 6;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.09);
}

.search-form,
.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    padding: 0 18px;
    color: #111827;
    background: #ffffff;
    outline: none;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.filter-panel select {
    max-width: 180px;
}

.section-wrap,
.category-band {
    padding: 78px 0 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(244, 63, 94, 0.18);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fee2e2;
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.overview-card:hover img {
    transform: scale(1.08);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(17, 24, 39, 0.42);
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.play-dot,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.year-pill {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.meta-row b {
    color: var(--rose);
}

.meta-row em,
.rank-copy em {
    font-style: normal;
}

.card-body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile,
.overview-card {
    position: relative;
    min-height: 180px;
    border-radius: 26px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.11);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: transform 0.5s ease;
}

.category-tile span {
    position: absolute;
    inset: auto 18px 18px 18px;
    color: #ffffff;
}

.category-tile strong,
.overview-copy strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.category-tile em,
.overview-copy em {
    font-style: normal;
    line-height: 1.6;
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(244, 63, 94, 0.16);
}

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

.rank-no {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rank-copy strong {
    font-size: 19px;
}

.rank-copy em {
    color: var(--rose);
    font-weight: 700;
    font-size: 13px;
}

.rank-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.center-action {
    justify-content: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.page-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.20);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.90);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.overview-card {
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.overview-posters {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.overview-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: transform 0.5s ease;
}

.overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.84));
}

.overview-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.category-more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.category-more a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-weight: 800;
}

.detail-hero {
    min-height: 520px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.32;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 58px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 36px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.36);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 820px;
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

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

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 800;
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
}

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

.poster-play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.78));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.poster-play-layer strong {
    font-size: 24px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.big-play {
    width: 78px;
    height: 78px;
    font-size: 24px;
}

.player-shell.is-playing .poster-play-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.article-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

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

.compact-card .card-desc {
    display: none;
}

.site-footer {
    margin-top: 86px;
    padding: 46px 0;
    background: #ffffff;
    border-top: 1px solid #ffe4e6;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: var(--deep);
    font-size: 20px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.7;
}

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

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

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

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

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 22px 60px rgba(17, 24, 39, 0.16);
    }

    body.menu-open .nav-links {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-shell {
        min-height: 720px;
    }

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

    .hero-image {
        min-height: 320px;
    }

    .hero-copy {
        padding: 34px 24px 82px;
    }

    .search-form,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        max-width: none;
    }

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

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

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

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

    .detail-poster {
        width: min(260px, 78vw);
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .search-band,
    .section-wrap,
    .category-band,
    .player-section,
    .detail-inner,
    .page-hero > div,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-shell {
        border-radius: 24px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

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

    .movie-grid,
    .home-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-card {
        grid-template-columns: 78px 1fr;
    }

    .rank-card img {
        width: 78px;
        height: 104px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body strong {
        font-size: 15px;
    }

    .page-hero > div {
        padding: 50px 0;
    }

    .detail-inner {
        padding-bottom: 44px;
    }
}
