:root {
    color-scheme: dark;
    --bg: #080b12;
    --bg-soft: #111827;
    --bg-card: rgba(17, 24, 39, 0.82);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --red: #dc2626;
    --red-deep: #991b1b;
    --orange: #fb923c;
    --gold: #f59e0b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.16), transparent 30rem),
        linear-gradient(180deg, #080b12 0%, #111827 52%, #080b12 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.35);
}

.brand-text {
    font-size: clamp(18px, 2vw, 24px);
    background: linear-gradient(90deg, #f97316, #ef4444, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #d1d5db;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.88);
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.2);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 3px;
    background: #fff;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.mobile-panel a,
.mobile-sub-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #e5e7eb;
}

.mobile-panel a:hover,
.mobile-sub-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-subnav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.main-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(239, 68, 68, 0.28), transparent 30rem),
        radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.22), transparent 28rem),
        linear-gradient(110deg, rgba(8, 11, 18, 0.98), rgba(8, 11, 18, 0.75) 45%, rgba(127, 29, 29, 0.42));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(1.18) contrast(1.06);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 44px;
    padding: 76px 0 52px;
}

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

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

.tag,
.hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

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

.button {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.36);
}

.button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-ghost {
    color: #fecaca;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
}

.hero-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.65);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(251, 146, 60, 0.1));
}

.hero-card-meta {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.76);
    backdrop-filter: blur(16px);
}

.hero-card-meta strong {
    display: block;
    font-size: 20px;
}

.hero-card-meta span {
    color: #fca5a5;
    font-size: 14px;
}

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

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

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 26px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.62);
}

.search-bar input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
}

.search-bar input {
    min-height: 44px;
    padding: 0 18px;
}

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

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

.section-head h1,
.section-head h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.section-head p,
.lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 22px 65px rgba(220, 38, 38, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.24), rgba(251, 146, 60, 0.12));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.year-badge,
.rank-num,
.type-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.year-badge {
    right: 12px;
    bottom: 12px;
}

.rank-num {
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, var(--gold), var(--red));
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.32;
}

.card-body h2 a:hover {
    color: #fca5a5;
}

.meta-line,
.card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card-desc {
    margin-top: 10px;
}

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

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

.category-tile {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.2), transparent 9rem),
        linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 28, 0.32));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 113, 113, 0.44);
}

.category-tile h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted-strong);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.54);
}

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

.filter-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.filter-button.is-active {
    border-color: rgba(248, 113, 113, 0.52);
    background: rgba(220, 38, 38, 0.78);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(8, 11, 18, 0.98), rgba(8, 11, 18, 0.82), rgba(127, 29, 29, 0.34)),
        var(--detail-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.95;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    padding: 54px 0 64px;
}

.detail-poster {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fecaca;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.detail-lead {
    max-width: 820px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 20px;
}

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

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

.player-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.3), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 60px rgba(220, 38, 38, 0.45);
    font-size: 34px;
    padding-left: 5px;
}

.video-shell.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-caption {
    padding: 18px 22px;
    color: #d1d5db;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(127, 29, 29, 0.28));
}

.article-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.text-panel,
.side-panel {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p,
.side-panel p {
    color: var(--muted-strong);
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.side-list img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    line-height: 1.25;
}

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

.archive-list {
    columns: 4 220px;
    column-gap: 28px;
}

.archive-list a {
    display: block;
    break-inside: avoid;
    padding: 8px 0;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-list a:hover {
    color: #fca5a5;
}

.site-footer {
    margin-top: 86px;
    padding: 46px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.42);
}

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

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fca5a5;
}

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

    .menu-button {
        display: block;
    }

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

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

    .hero-inner {
        padding-top: 42px;
    }

    .hero-card {
        max-width: 360px;
    }

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

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

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

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

@media (max-width: 620px) {
    .nav-wrap,
    .main-shell,
    .hero-inner,
    .detail-inner,
    .footer-grid {
        width: min(100% - 22px, 1200px);
    }

    .hero {
        min-height: 760px;
    }

    .hero-inner {
        min-height: 760px;
        gap: 24px;
    }

    .search-bar {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

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

    .section-head {
        display: block;
    }

    .detail-copy h1,
    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .mobile-subnav {
        grid-template-columns: 1fr;
    }
}
