:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --orange: #fb923c;
    --amber: #f59e0b;
    --blue: #2563eb;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f1f5f9;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 36%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    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: 28px;
    font-size: 15px;
    color: #374151;
}

.nav-links a {
    position: relative;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--rose-dark);
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
    position: relative;
    height: 600px;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    bottom: -180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.50), rgba(251, 146, 60, 0.20) 42%, transparent 72%);
    filter: blur(4px);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    width: min(680px, 100%);
    padding-top: 18px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
}

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

.hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.72;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
}

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

.button-primary,
.button-secondary,
.button-light,
.button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.button-light {
    color: var(--rose-dark);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.button-text {
    color: var(--rose-dark);
    background: #fff1f2;
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover,
.button-text:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.20);
}

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

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

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

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 50%, #fffbeb 100%);
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

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

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

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

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

.poster-year,
.poster-score {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(10px);
}

.poster-year {
    left: 12px;
}

.poster-score {
    right: 12px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

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

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-meta a {
    color: var(--rose-dark);
    font-weight: 800;
}

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

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.text-link:hover {
    color: var(--rose-dark);
}

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

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
}

.category-pills,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    box-shadow: var(--shadow-soft);
    font-weight: 800;
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
    color: var(--rose-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 94px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.rank-cover {
    display: block;
    width: 94px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 18px;
    background: #ffedd5;
}

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

.rank-body h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-body p {
    margin: 0 0 9px;
    color: var(--muted);
    line-height: 1.58;
    font-size: 14px;
}

.rank-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.rank-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
}

.page-hero {
    padding: 74px 0 56px;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fffbeb 100%);
    border-bottom: 1px solid rgba(244, 63, 94, 0.08);
}

.page-hero h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.78;
    font-size: 18px;
}

.search-panel {
    margin-top: 28px;
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-input,
.filter-select {
    min-height: 48px;
    border: 1px solid #ffe4e6;
    border-radius: 16px;
    background: #ffffff;
    color: #374151;
    outline: none;
    font-size: 15px;
}

.search-input {
    flex: 1 1 280px;
    padding: 0 18px;
}

.filter-select {
    flex: 0 0 160px;
    padding: 0 14px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    min-height: 220px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(251, 146, 60, 0.20));
}

.category-card h2 {
    position: relative;
    margin: 0 0 12px;
    font-size: 28px;
}

.category-card p {
    position: relative;
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.72;
}

.category-samples {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 13px;
}

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

.library-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.library-link img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffedd5;
}

.library-link strong {
    display: block;
    margin-bottom: 4px;
}

.library-link span {
    color: var(--muted);
    font-size: 13px;
}

.detail-hero {
    padding: 34px 0 58px;
    background: linear-gradient(135deg, #111827, #4c0519 54%, #9a3412 100%);
    color: #ffffff;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.player-panel {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22));
}

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

.player-button {
    position: relative;
    z-index: 4;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.34);
    cursor: pointer;
    transition: transform 0.22s ease;
}

.player-button:hover {
    transform: scale(1.08);
}

.detail-info {
    padding-top: 26px;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-info p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.78;
}

.detail-side {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
}

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

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

.detail-side-body h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
}

.article-content {
    max-width: 880px;
}

.article-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

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

.article-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.92;
    font-size: 16px;
}

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

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

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

.footer-brand p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-block h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-block a {
    color: var(--muted);
}

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

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 20px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

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

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

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

@media (max-width: 760px) {
    .site-nav {
        min-height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .nav-links a.active,
    .nav-links a:hover {
        background: #fff1f2;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        height: 620px;
        min-height: 620px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 88px;
    }

    .section {
        padding: 54px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }

    .rank-cover {
        width: 74px;
        border-radius: 14px;
    }

    .detail-side {
        display: block;
    }

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

@media (max-width: 520px) {
    .container,
    .site-nav,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .site-logo,
    .footer-logo {
        font-size: 24px;
    }

    .hero {
        height: 640px;
    }

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

    .movie-card {
        border-radius: 20px;
    }

    .page-hero {
        padding: 50px 0 42px;
    }

    .filter-select {
        flex: 1 1 100%;
    }

    .article-card {
        padding: 24px;
    }
}
