:root {
    --bg: #fff7fb;
    --bg-soft: #fff1f6;
    --text: #151827;
    --muted: #6b7280;
    --line: rgba(244, 114, 182, 0.18);
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --brand: #e11d48;
    --brand-dark: #be123c;
    --accent: #06b6d4;
    --gold: #f59e0b;
    --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.32), transparent 32rem),
        radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.22), transparent 34rem),
        linear-gradient(135deg, #fff7fb 0%, #fff1f6 46%, #ecfeff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.66);
    background: rgba(255, 247, 251, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
}

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

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

.logo-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #e11d48, #fb7185 42%, #06b6d4);
    box-shadow: 0 12px 25px rgba(225, 29, 72, 0.34);
}

.logo-text {
    font-size: 1.22rem;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #fb7185);
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(190, 18, 60, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-panel {
    border-top: 1px solid rgba(225, 29, 72, 0.12);
    padding: 10px 16px 18px;
    background: rgba(255, 255, 255, 0.94);
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-link {
    display: block;
    margin: 4px auto;
    width: min(1180px, 100%);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 28px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.62fr);
    align-items: stretch;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: saturate(1.1);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68) 52%, rgba(15, 23, 42, 0.2)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 70px 64px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #ffe4e6;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 720px;
    font-size: clamp(2.4rem, 5vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #fb7185);
    box-shadow: 0 20px 38px rgba(225, 29, 72, 0.34);
}

.btn-soft {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.poster-frame {
    position: relative;
    width: min(330px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    aspect-ratio: 2 / 3;
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 64px;
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

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

.section {
    padding: 48px 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--brand);
    font-weight: 900;
}

.section h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.view-all {
    color: var(--brand);
    font-weight: 900;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 48px rgba(190, 18, 60, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(225, 29, 72, 0.26);
    box-shadow: 0 28px 70px rgba(190, 18, 60, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fecdd3, #cffafe);
}

.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);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(225, 29, 72, 0.92);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 900;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span,
.meta-pill,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #9f1239;
    background: #ffe4e6;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 228, 230, 0.72));
    box-shadow: 0 16px 42px rgba(190, 18, 60, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 62px rgba(190, 18, 60, 0.16);
}

.category-card::after {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 108px;
    height: 108px;
    content: "";
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.23), rgba(6, 182, 212, 0.23));
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.32rem;
}

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

.category-count {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 900;
}

.page-hero {
    padding: 58px 0 28px;
}

.page-title {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 32px;
    padding: clamp(28px, 5vw, 52px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 228, 230, 0.72), rgba(207, 250, 254, 0.54));
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--brand);
    font-weight: 900;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 38px rgba(190, 18, 60, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
    min-width: min(380px, 100%);
    border-radius: 18px;
    padding: 10px 14px;
    background: #ffffff;
}

.search-box span {
    color: var(--brand);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: #9f1239;
    background: #ffe4e6;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(190, 18, 60, 0.09);
}

.rank-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    border-radius: 15px;
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 2 / 3;
    background: #ffe4e6;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

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

.detail-hero {
    padding: 44px 0 24px;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 34px;
    padding: clamp(20px, 4vw, 44px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 228, 230, 0.72), rgba(207, 250, 254, 0.52));
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: #ffe4e6;
    box-shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

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

.detail-copy h1 {
    margin-bottom: 14px;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.detail-copy p {
    color: #4b5563;
    line-height: 1.85;
}

.player-section {
    padding: 24px 0 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.3);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.55), rgba(225, 29, 72, 0.22));
    z-index: 2;
}

.player-cover.hidden {
    display: none;
}

.player-button {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #fb7185);
    box-shadow: 0 24px 48px rgba(225, 29, 72, 0.38);
    cursor: pointer;
    font-size: 2rem;
}

.player-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 3;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    font-weight: 900;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.prose-card,
.side-card {
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 26px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(190, 18, 60, 0.1);
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

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

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

.side-link {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffe4e6;
}

.side-link strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
}

.side-link span {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(244, 114, 182, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
}

.footer-grid p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: var(--brand);
    font-weight: 900;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 114, 182, 0.14);
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-copy {
        padding: 48px 28px 20px;
    }

    .hero-poster {
        align-items: start;
        padding: 0 28px 72px;
    }

    .poster-frame {
        width: min(250px, 72vw);
    }

    .hero-dots {
        left: 28px;
        bottom: 28px;
    }

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

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

    .section-header,
    .list-toolbar,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-cover {
        max-width: 320px;
    }

    .rank-row {
        grid-template-columns: 48px 72px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 2 / -1;
    }
}

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

    .hero {
        padding-top: 20px;
    }

    .hero-shell,
    .page-title,
    .detail-shell,
    .player-shell {
        border-radius: 24px;
    }

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

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

    .card-body {
        padding: 13px;
    }

    .card-body p {
        min-height: auto;
        font-size: 0.86rem;
    }

    .rank-row {
        grid-template-columns: 42px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .player-button {
        width: 72px;
        height: 72px;
    }
}
