:root {
    --page-bg: #fff7fb;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: rgba(236, 72, 153, 0.18);
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --shadow: 0 20px 50px rgba(190, 24, 93, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 36rem),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 34rem),
        linear-gradient(180deg, #fff7fb 0%, #fff 45%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
    z-index: -1;
}

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

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

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

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

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

.nav-link,
.nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 16px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-chip:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.quick-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.nav-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 14px;
    background: rgba(253, 242, 248, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.18);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fdf2f8;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #be123c;
}

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

.hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 58px;
    color: #fff;
    background: #111827;
}

.hero-slide {
    display: none;
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(190, 24, 93, 0.72), rgba(17, 24, 39, 0.25)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 25rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 40px;
    padding: 64px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 24px 0 18px;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero p {
    max-width: 680px;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

.btn-soft {
    color: #be123c;
    background: #ffe4e6;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.hero-side-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.96), transparent);
}

.hero-side-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: calc((100vw - min(1180px, calc(100vw - 32px))) / 2);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    width: 36px;
    background: #fff;
}

.section {
    margin: 0 auto 54px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-title span:first-child {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
}

.section-header p,
.category-hero p,
.ranking-hero p,
.detail-copy p {
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--panel-strong);
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.72), transparent 55%);
    opacity: 0.92;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: all 0.28s ease;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.corner-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--red));
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: #f43f5e;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.movie-card p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(190, 24, 93, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.14);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(239, 68, 68, 0.14));
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    min-height: 76px;
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
}

.category-hero,
.ranking-hero,
.detail-hero {
    margin: 38px auto 34px;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at right top, rgba(236, 72, 153, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.88));
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 114, 182, 0.16);
}

.category-hero h1,
.ranking-hero h1,
.detail-hero h1 {
    margin: 18px 0 14px;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.14);
}

.search-panel input {
    flex: 1;
    min-height: 48px;
    border: 0;
    outline: 0;
    color: #111827;
    font-size: 16px;
    padding: 0 8px;
    background: transparent;
}

.search-panel span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(244, 114, 182, 0.12);
    box-shadow: 0 10px 26px rgba(190, 24, 93, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-num {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-poster {
    width: 112px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: #ffe4e6;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 950;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.rank-stat {
    color: #be123c;
    font-weight: 950;
    white-space: nowrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 26px;
    margin-bottom: 44px;
}

.player-card,
.detail-side,
.detail-copy,
.related-panel {
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(190, 24, 93, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.14);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(190, 24, 93, 0.42)),
        var(--poster-bg, none);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.video-overlay.hidden {
    display: none;
}

.video-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    color: #be123c;
    background: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.player-info {
    padding: 22px;
}

.player-info h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 950;
}

.player-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.side-info {
    padding: 22px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.side-info dt {
    color: #be123c;
    font-weight: 900;
}

.side-info dd {
    margin: 0;
    color: #374151;
}

.detail-copy {
    padding: 28px;
    margin-bottom: 34px;
}

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

.detail-copy p + h2 {
    margin-top: 28px;
}

.related-panel {
    padding: 28px;
    margin-bottom: 54px;
}

.related-panel h2 {
    margin: 0 0 22px;
    font-size: 30px;
    font-weight: 950;
}

.breadcrumb {
    margin: 30px 0 0;
    color: #be123c;
    font-weight: 800;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.site-footer {
    margin-top: 68px;
    padding: 46px 0;
    color: #e5e7eb;
    background: #111827;
}

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

.footer-logo {
    color: #fff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

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

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-content,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        justify-content: flex-start;
    }

    .quick-nav {
        padding-bottom: 10px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0 78px;
    }

    .hero-side-card {
        display: none;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 26px;
    }

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

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

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

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

    .rank-stat {
        grid-column: 3;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .rank-poster {
        width: 82px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-soft {
        width: 100%;
    }
}
