:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #2563eb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --small-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

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

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

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-dark);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 18px;
    background: var(--white);
}

.mobile-panel.open {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--soft);
    color: var(--rose-dark);
}

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

.hero-slider,
.hero-slide,
.hero-slide::after {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.4vw, 24px);
}

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 18px 28px rgba(244, 63, 94, 0.25);
}

.btn-soft {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

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

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

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

.main-section {
    padding: 72px 0;
}

.section-gradient {
    background: linear-gradient(135deg, #fff1f2, #fff7ed, #fffbeb);
}

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

.section-head.center {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    color: var(--rose-dark);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--small-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: #111827;
}

.movie-grid.featured .poster {
    height: 300px;
}

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

.movie-card:hover .poster img,
.compact-card:hover img,
.rank-cover:hover img {
    transform: scale(1.08);
}

.score {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

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

.movie-card-title {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 800;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.category-pill {
    display: inline-flex;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--white);
    color: #374151;
    font-weight: 900;
    box-shadow: var(--small-shadow);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
    color: var(--rose-dark);
    background: #fff7ed;
    transform: translateY(-3px);
}

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

.rank-list.full {
    grid-template-columns: 1fr;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 112px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--small-shadow);
}

.rank-number {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rank-info a {
    display: inline-block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 19px;
    font-weight: 900;
}

.rank-info a:hover {
    color: var(--rose-dark);
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    color: var(--muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cta-band {
    padding: 72px 0;
    color: var(--white);
    text-align: center;
    background: linear-gradient(90deg, var(--rose-dark), var(--orange), var(--amber));
}

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

.cta-band p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

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

.category-box {
    display: block;
    min-height: 190px;
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--small-shadow);
    position: relative;
    overflow: hidden;
}

.category-box::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.16));
}

.category-box h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 28px;
}

.category-box p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 0 18px;
    color: var(--muted);
}

.mini-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-list span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 800;
}

.page-title {
    padding: 58px 0 34px;
}

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

.breadcrumb a:hover {
    color: var(--rose-dark);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--small-shadow);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--text);
    background: #fff;
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 24px;
    background: var(--white);
    color: var(--muted);
    text-align: center;
    box-shadow: var(--small-shadow);
}

.empty-state.show {
    display: block;
}

.detail-hero {
    padding: 48px 0 28px;
    background: linear-gradient(135deg, #111827, #3f0f1b 55%, #7c2d12);
    color: var(--white);
}

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

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

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
}

.player-section {
    padding: 42px 0 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050816;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.78));
    cursor: pointer;
    z-index: 2;
}

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

.play-button {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 45px rgba(244, 63, 94, 0.35);
    cursor: pointer;
}

.play-button svg {
    width: 42px;
    height: 42px;
    margin-left: 5px;
    fill: currentColor;
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 38px 0 72px;
}

.article-card,
.side-card {
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--small-shadow);
}

.article-card {
    padding: 32px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 17px;
}

.side-card {
    padding: 22px;
    align-self: start;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    color: #111827;
    font-weight: 900;
}

.compact-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.35s ease;
}

.site-footer {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.footer-grid a:hover {
    color: var(--rose-dark);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px;
    text-align: center;
    color: var(--muted);
}

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

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

    .category-overview,
    .detail-grid,
    .content-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.56));
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.featured {
        grid-template-columns: 1fr;
    }

    .poster,
    .movie-grid.featured .poster {
        height: 330px;
    }

    .rank-item {
        grid-template-columns: 44px 90px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-cover {
        width: 90px;
        height: 90px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

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

    .main-section {
        padding: 54px 0;
    }
}
