:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --pink: #db2777;
    --blue: #2563eb;
    --purple: #7c3aed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-container {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-icon {
    filter: drop-shadow(0 6px 10px rgba(220, 38, 38, 0.24));
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--red);
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-search input {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: white;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 180px;
    padding: 9px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.nav-search button,
.mobile-search button,
.filter-chips button {
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: white;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button {
    padding: 9px 15px;
}

.nav-search button:hover,
.mobile-search button:hover,
.filter-chips button:hover,
.primary-button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

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

.mobile-menu {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 14px 18px 18px;
    background: white;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 10px 4px;
    color: var(--gray-700);
    font-weight: 700;
}

.mobile-link:hover {
    color: var(--red);
}

.mobile-search {
    margin-top: 10px;
}

.mobile-search input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
}

.mobile-search button {
    padding: 11px 16px;
}

.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 0;
}

.hero-carousel {
    margin-bottom: 34px;
}

.hero-frame {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: var(--radius-xl);
    background: var(--gray-900);
    box-shadow: var(--shadow);
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    min-height: 520px;
}

.hero-slide.is-active {
    display: block;
}

.hero-bg {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 22%, rgba(220, 38, 38, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(28px, 7vw, 80px);
    width: min(720px, calc(100% - 48px));
    color: white;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 950;
    text-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

.hero-content h2 + p,
.hero-content h1 + h2 {
    margin-top: 10px;
}

.hero-content p {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 900;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: var(--red);
    color: white;
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.34);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.13);
    color: white;
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.dark-ghost {
    border-color: var(--gray-200);
    color: var(--gray-900);
    background: white;
}

.dark-ghost:hover {
    border-color: var(--red);
    color: var(--red);
    background: white;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

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

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

.category-ribbon {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
    min-height: 128px;
    padding: 20px;
}

.category-tile:before,
.category-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(124, 58, 237, 0.10));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile:hover:before,
.category-card:hover:before {
    opacity: 1;
}

.category-tile span,
.category-card h2 {
    position: relative;
    display: block;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 950;
}

.category-tile em,
.category-card p,
.movie-card-body p,
.section-heading p,
.page-hero p,
.detail-one-line,
.detail-text p,
.site-footer p {
    color: var(--gray-500);
}

.category-tile em {
    position: relative;
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 14px;
}

.content-section {
    margin-bottom: 48px;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 6px 0 0;
    max-width: 680px;
}

.section-heading a {
    color: var(--red);
    font-weight: 900;
    white-space: nowrap;
}

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background: var(--gray-200);
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img,
.compact-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.score-badge,
.play-badge,
.rank-index {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.score-badge {
    top: 10px;
    left: 10px;
    min-width: 44px;
    height: 28px;
    background: rgba(245, 158, 11, 0.94);
    font-size: 13px;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.32;
}

.movie-card-body h3 a:hover {
    color: var(--red);
}

.movie-meta {
    gap: 6px;
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span:not(:last-child):after {
    content: "·";
    margin-left: 6px;
    color: #cbd5e1;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 0;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    background: var(--gray-100);
    color: var(--gray-700);
}

.gradient-section,
.editor-section {
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 30px;
    color: white;
    box-shadow: var(--shadow);
}

.gradient-section {
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.editor-section {
    background: linear-gradient(135deg, var(--pink), var(--red));
}

.light-heading h2,
.light-heading p,
.light-heading a {
    color: white;
}

.gradient-section .movie-card,
.editor-section .movie-card {
    background: rgba(255, 255, 255, 0.96);
}

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

.compact-card {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card a {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.compact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-card span:not(.rank-index) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.rank-index {
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: var(--red);
    font-size: 12px;
}

.page-hero,
.detail-hero {
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 34px;
    box-shadow: var(--shadow);
}

.page-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: clamp(28px, 6vw, 58px);
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, var(--red), var(--pink));
    color: white;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 950;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.category-hero {
    background: linear-gradient(135deg, var(--red), var(--pink));
}

.rank-hero {
    background: linear-gradient(135deg, #f59e0b, var(--red));
}

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

.category-card {
    padding: 28px;
}

.category-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--red);
    color: white;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(220, 38, 38, 0.24);
}

.category-card h2,
.category-card p,
.category-card strong {
    position: relative;
}

.category-card h2 {
    margin: 18px 0 8px;
}

.category-card p {
    margin: 0 0 18px;
}

.category-card strong {
    color: var(--red);
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: white;
    padding: 18px;
    box-shadow: var(--soft-shadow);
}

.filter-search {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 900;
}

.filter-search input {
    width: 100%;
    padding: 13px 16px;
}

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

.filter-chips button {
    padding: 9px 14px;
    background: var(--gray-100);
    color: var(--gray-700);
}

.filter-chips button.is-active {
    background: var(--red);
    color: white;
}

.filter-empty {
    display: none;
    margin: 24px 0 0;
    border-radius: var(--radius-md);
    background: white;
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
    box-shadow: var(--soft-shadow);
}

.filter-empty.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: stretch;
    background: white;
    padding: 28px;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 430px;
    background: var(--gray-200);
    box-shadow: var(--soft-shadow);
}

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

.detail-score {
    top: 14px;
    left: 14px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 950;
}

.detail-one-line {
    margin: 18px 0 0;
    font-size: 18px;
}

.detail-meta {
    margin-top: 18px;
}

.detail-meta span {
    background: var(--gray-100);
    color: var(--gray-700);
}

.detail-tags span {
    background: #fee2e2;
    color: var(--red-dark);
}

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

.player-section {
    margin-bottom: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 32px;
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.42);
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-text {
    border-radius: var(--radius-xl);
    background: white;
    padding: 30px;
    box-shadow: var(--soft-shadow);
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-text h2:not(:first-child) {
    margin-top: 26px;
}

.detail-text p {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 64px;
    background: var(--gray-900);
    color: white;
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer h2 {
    color: #f87171;
    font-size: 24px;
}

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-list a {
    color: #9ca3af;
}

.footer-list a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 16px;
    text-align: center;
    color: #9ca3af;
}

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

    .nav-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

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

@media (max-width: 860px) {
    .nav-container,
    .page-main,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

    .nav-search {
        display: none;
    }

    .hero-frame,
    .hero-slide,
    .hero-bg {
        min-height: 540px;
    }

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

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

    .large-grid,
    .category-grid,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .gradient-section,
    .editor-section,
    .detail-text {
        padding: 20px;
    }

    .detail-cover {
        min-height: auto;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 20px;
    }

    .page-main {
        padding-top: 20px;
    }

    .hero-frame,
    .hero-slide,
    .hero-bg {
        min-height: 560px;
    }

    .hero-content {
        left: 18px;
        bottom: 54px;
        width: calc(100% - 36px);
    }

    .hero-actions {
        gap: 9px;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .category-ribbon,
    .movie-grid,
    .category-page-grid,
    .large-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card .poster-link {
        aspect-ratio: 16 / 10;
    }

    .page-hero {
        min-height: 240px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
    }
}
