:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #fee2e2;
    --soft: #fff7ed;
    --paper: #ffffff;
    --shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1220px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.brand-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--rose);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--rose);
    background: #fff1f2;
    cursor: pointer;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(249, 115, 22, 0.76) 48%, rgba(17, 24, 39, 0.34));
}

.hero-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 170px;
    background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(1220px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 710px;
    color: #fff;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--rose);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffe4e6;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero p {
    margin: 0 0 30px;
    color: #ffe4e6;
    font-size: clamp(17px, 2vw, 22px);
    max-width: 680px;
}

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

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

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

.btn-primary {
    color: var(--rose);
    background: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.09);
}

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

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 10;
    width: min(1220px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

.content-section,
.page-main {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

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

.section-head h2,
.page-head h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-head p,
.category-intro {
    color: var(--muted);
    max-width: 780px;
    margin: 10px 0 0;
}

.section-more {
    color: var(--rose);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(225, 29, 72, 0.10);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.02));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.card-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rose);
    background: #fff;
    opacity: 0;
    font-weight: 900;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--rose);
}

.movie-desc {
    display: -webkit-box;
    min-height: 46px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 30px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.band {
    padding: 62px 0;
    background: linear-gradient(135deg, #ffedd5, #ffe4e6);
}

.band-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

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

.category-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.10);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    background: #fff;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-card span,
.category-card p {
    color: var(--muted);
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(225, 29, 72, 0.10);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 950;
}

.rank-title {
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.rank-meta {
    color: var(--muted);
    font-size: 14px;
}

.rank-score {
    color: var(--rose);
    font-weight: 950;
}

.search-box {
    width: min(720px, 100%);
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 999px;
    outline: none;
    background: #fff;
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
}

.search-box input:focus {
    border-color: var(--rose);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 44px;
    color: #fff;
    background: #260b16;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(249, 115, 22, 0.72));
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 820px;
    color: #ffe4e6;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-weight: 800;
}

.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 50px auto 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
}

.player-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.20), rgba(3, 7, 18, 0.42));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: var(--rose);
    background: #fff;
    font-size: 28px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
}

.article-block {
    width: min(980px, calc(100% - 32px));
    margin: 44px auto;
    padding: 32px;
    border: 1px solid rgba(225, 29, 72, 0.10);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.06);
}

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

.article-block p {
    color: #374151;
    font-size: 17px;
}

.breadcrumb {
    width: min(1220px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 14px;
}

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

.site-footer {
    margin-top: 42px;
    border-top: 1px solid rgba(225, 29, 72, 0.12);
    background: #fff;
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-brand {
    color: var(--rose);
    font-size: 22px;
    font-weight: 950;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 86px;
        display: none;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid rgba(225, 29, 72, 0.14);
        border-radius: 24px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .menu-toggle {
        display: block;
    }

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

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

@media (max-width: 640px) {
    .hero,
    .hero-inner {
        min-height: 570px;
    }

    .movie-grid,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster {
        max-width: 260px;
    }

    .rank-item {
        grid-template-columns: 56px 1fr;
    }

    .rank-score {
        grid-column: 2;
    }

    .search-box {
        flex-direction: column;
    }
}
