
:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-400: #f87171;
    --orange-500: #f97316;
    --blue-500: #3b82f6;
    --green-500: #22c55e;
    --text: #111827;
    --muted: #64748b;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);
    --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.28);
}

.header-inner {
    max-width: 1280px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--red-500), var(--orange-500));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.36);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fecaca, #ffffff, #fca5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.main-nav,
.category-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.92);
}

.category-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 22px 12px;
    overflow-x: auto;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, #7f1d1d 0%, var(--slate-950) 45%, #111827 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.1s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(8px);
    transform: scale(1.08);
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.78), rgba(127, 29, 29, 0.78));
}

.hero-bg img,
.detail-bg img {
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 22px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
    align-items: center;
    gap: 48px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.24);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

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

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red-500), var(--orange-500));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

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

.hero-poster {
    position: relative;
    max-width: 410px;
    margin-left: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    z-index: 1;
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: all 0.22s ease;
}

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

.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 22px;
}

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

.quick-card {
    min-height: 132px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-card strong {
    display: block;
    font-size: 26px;
    margin-bottom: 10px;
}

.quick-card span {
    color: rgba(255, 255, 255, 0.82);
}

.quick-red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.quick-blue {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.quick-green {
    background: linear-gradient(135deg, #22c55e, #047857);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 28px;
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-400), rgba(248, 113, 113, 0));
}

.section-more {
    color: var(--red-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
}

.card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.card-cover-wide {
    aspect-ratio: 16 / 10;
}

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

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
}

.card-type,
.rank-num {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.card-type {
    right: 10px;
    padding: 4px 9px;
    background: rgba(239, 68, 68, 0.94);
}

.rank-num {
    left: 10px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-wide .card-body h3 {
    min-height: auto;
}

.card-body p {
    min-height: 42px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.sub-hero {
    position: relative;
    color: #ffffff;
    padding: 88px 22px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(239, 68, 68, 0.42), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.sub-hero-red {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.36), transparent 34%), linear-gradient(135deg, #7f1d1d, var(--slate-950));
}

.sub-hero-dark {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.32), transparent 30%), linear-gradient(135deg, #020617, #111827, #7f1d1d);
}

.sub-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -0.06em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.75;
}

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

.category-card,
.category-overview-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-900);
}

.category-cover-stack img {
    height: 138px;
    object-fit: cover;
}

.filter-bar {
    position: sticky;
    top: 124px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.filter-input {
    flex: 1;
    min-height: 46px;
    min-width: 200px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
}

.filter-input:focus {
    border-color: var(--red-400);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 13px;
    color: #475569;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-actions button:hover,
.filter-actions button.active {
    color: #ffffff;
    background: var(--red-500);
}

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

.detail-hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    background: var(--slate-950);
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    filter: blur(5px);
    transform: scale(1.04);
}

.detail-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 22px 70px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 19px;
    line-height: 1.75;
}

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

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

.tag-row-large {
    margin-bottom: 26px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.player-panel.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red-500), var(--orange-500));
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.32);
    font-size: 32px;
}

.article-card {
    margin-top: 28px;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 24px;
}

.article-card p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
    gap: 28px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p {
    margin: 0;
    max-width: 560px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.footer-links a {
    padding: 8px 11px;
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.88);
}

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

@media (max-width: 1160px) {
    .poster-grid,
    .all-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow-lg);
    }

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

    .hero-content {
        min-height: 640px;
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 58px;
    }

    .hero-poster {
        max-width: 260px;
        margin: 0;
    }

    .quick-panel,
    .footer-inner,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .category-cover-stack img {
        height: 120px;
    }
}

@media (max-width: 680px) {
    .brand-text {
        font-size: 19px;
    }

    .category-nav-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        min-height: 690px;
    }

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

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

    .page-section {
        padding: 40px 14px;
    }

    .sub-hero {
        padding: 68px 14px;
    }

    .detail-inner {
        padding: 24px 14px 48px;
    }

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

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