:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d7d7;
    --panel: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(127, 29, 29, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 45%, #ffffff 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--rose);
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

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

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 20px;
}

.hero-section {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: #fff;
    padding-top: 32px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
    color: #ffe4e6;
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.85;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 30px rgba(225, 29, 72, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(225, 29, 72, 0.4);
}

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

.btn-soft {
    color: var(--rose);
    background: #ffe4e6;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.quick-search {
    position: relative;
    z-index: 8;
    margin-top: -46px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel input,
.filter-select {
    width: 100%;
    height: 52px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 0 20px;
    color: var(--ink);
    background: #fff;
    font-size: 16px;
    outline: none;
}

.search-panel input:focus,
.filter-select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

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

.section-kicker {
    color: var(--rose);
    font-weight: 900;
    letter-spacing: 0.1em;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-intro,
.detail-title p {
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f2;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h3 a:hover,
.related-list a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 56px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.rating {
    color: var(--orange);
    font-weight: 900;
}

.card-foot a {
    color: var(--rose);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.82), rgba(249, 115, 22, 0.58));
}

.category-card-content {
    position: relative;
    z-index: 2;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 96px 52px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(127, 29, 29, 0.08);
}

.ranking-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

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

.ranking-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 20px;
    font-weight: 900;
}

.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ranking-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    padding: 74px 0 34px;
}

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

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin: 26px 0;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(127, 29, 29, 0.08);
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--rose);
    background: #ffe4e6;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.no-result {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: #fff;
}

.no-result.is-visible {
    display: block;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    gap: 28px;
    align-items: start;
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.video-stage video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.24), rgba(2, 6, 23, 0.82));
    cursor: pointer;
    transition: 0.25s ease;
}

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

.play-circle {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 44px rgba(225, 29, 72, 0.42);
    font-size: 32px;
    transform: translateZ(0);
}

.detail-title {
    margin-top: 26px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: var(--rose);
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
}

.detail-side,
.content-panel {
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(127, 29, 29, 0.08);
}

.detail-side {
    overflow: hidden;
}

.detail-side img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #111827;
}

.detail-side-body {
    padding: 20px;
}

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

.detail-stat div {
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.detail-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.detail-stat span {
    color: var(--muted);
    font-size: 14px;
}

.content-panel {
    padding: 26px;
    margin-top: 28px;
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-panel p {
    color: #374151;
    line-height: 1.95;
}

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

.related-list .movie-card p {
    min-height: auto;
}

.cta-band {
    margin-top: 76px;
    padding: 58px 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-band p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.site-footer {
    margin-top: 86px;
    padding: 42px 0 24px;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.86);
}

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

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

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--rose);
    font-weight: 800;
}

.footer-bottom {
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1040px) {
    .movie-grid,
    .related-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid,
    .ranking-list,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .hero-section {
        height: 560px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

    .section-head,
    .footer-grid {
        display: block;
    }

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

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

    .ranking-item {
        grid-template-columns: 80px 42px 1fr;
        gap: 12px;
    }

    .site-footer {
        margin-top: 56px;
    }
}

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

    .ranking-item {
        grid-template-columns: 70px 1fr;
    }

    .ranking-number {
        position: absolute;
        margin: -12px 0 0 56px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
    }
}
