:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #1e293b;
    --panel-2: #0f172a;
    --line: #334155;
    --muted: #94a3b8;
    --text: #f8fafc;
    --red: #dc2626;
    --red-2: #ef4444;
    --orange: #f97316;
    --blue: #38bdf8;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.38);
}

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

.desktop-nav a {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 700;
    padding: 24px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ef4444;
    border-color: #ef4444;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(100deg, #7f1d1d 0%, #991b1b 42%, #9a3412 100%);
}

.hero-bg,
.hero-layer,
.hero-fade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    opacity: 0.28;
    background-size: cover;
    background-position: center;
    filter: saturate(1.12);
    transform: scale(1.02);
}

.hero-layer {
    background: radial-gradient(circle at 75% 32%, rgba(249, 115, 22, 0.28), transparent 34%), linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(127, 29, 29, 0.52), rgba(15, 23, 42, 0.54));
}

.hero-fade {
    top: auto;
    height: 120px;
    background: linear-gradient(0deg, #0f172a, transparent);
}

.hero-inner {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    align-items: center;
    gap: 44px;
    padding: 56px 0 72px;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.065em;
}

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

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

.section-kicker {
    color: #ef4444;
}

.section-kicker.orange {
    color: #fb923c;
}

.section-kicker.blue {
    color: #38bdf8;
}

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

.hero-tags span,
.tag-row span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
    color: #fff;
    background: #dc2626;
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.35);
}

.btn.primary:hover {
    background: #b91c1c;
}

.btn.glass,
.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn.ghost {
    background: rgba(15, 23, 42, 0.36);
}

.hero-search,
.search-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(640px, 100%);
    padding: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    height: 44px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0 16px;
}

.hero-search input::placeholder,
.search-panel input::placeholder {
    color: #94a3b8;
}

.hero-search button {
    min-width: 98px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #f97316);
    cursor: pointer;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.spotlight {
    position: relative;
    min-height: 340px;
    padding: 24px;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}

.spotlight img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
    transition: transform 0.5s ease;
}

.spotlight:hover img {
    transform: scale(1.08);
}

.spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
}

.spotlight div {
    position: relative;
    z-index: 1;
}

.spotlight span {
    color: #fecaca;
    font-size: 13px;
    font-weight: 800;
}

.spotlight h2 {
    margin: 10px 0;
    font-size: 28px;
}

.spotlight p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

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

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

.wide-band {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.9));
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

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

.section-head h2,
.recommend-panel h2,
.article-content h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.section-head a {
    color: #ef4444;
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0f172a;
}

.movie-card.compact .poster-wrap {
    height: 160px;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 12px;
    right: auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.78);
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-body {
    padding: 20px;
}

.movie-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.list-card:hover h3 {
    color: #f87171;
}

.movie-body p {
    margin: 0 0 14px;
    min-height: 44px;
    color: #94a3b8;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 12px;
}

.meta-row i {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #64748b;
}

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

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.84;
}

.gradient-1::after { background: linear-gradient(135deg, #991b1b, #f97316); }
.gradient-2::after { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.gradient-3::after { background: linear-gradient(135deg, #047857, #10b981); }
.gradient-4::after { background: linear-gradient(135deg, #7e22ce, #ec4899); }
.gradient-5::after { background: linear-gradient(135deg, #334155, #dc2626); }

.category-tile span {
    font-size: 28px;
    font-weight: 900;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.list-stack,
.recommend-list,
.rank-list {
    display: grid;
    gap: 14px;
}

.recommend-panel {
    position: sticky;
    top: 96px;
    padding: 26px;
    border-radius: 28px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.list-card {
    display: grid;
    grid-template-columns: auto 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-list .list-card,
.recommend-list .list-card {
    grid-template-columns: auto 78px minmax(0, 1fr);
}

.list-card:hover {
    transform: translateX(4px);
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(30, 41, 59, 0.9);
}

.list-card img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-list .list-card img,
.recommend-list .list-card img {
    width: 78px;
    height: 78px;
}

.list-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.list-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.list-card p {
    margin: 0 0 8px;
    color: #94a3b8;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card span {
    color: #64748b;
    font-size: 13px;
}

.page-shell,
.detail-shell {
    min-height: 70vh;
}

.page-hero {
    margin-top: 46px;
    padding: 56px;
    border-radius: 34px;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.28), transparent 38%), linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.small-hero .search-panel,
.controls-block .search-panel {
    width: 100%;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
}

.search-panel select {
    max-width: 180px;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.search-panel option {
    background: #0f172a;
}

.filter-chip {
    cursor: pointer;
    color: #e2e8f0;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: #ef4444;
    background: rgba(220, 38, 38, 0.32);
}

.chip-row {
    margin-top: 18px;
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 18px;
    color: #94a3b8;
    font-size: 14px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

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

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.38);
    font-size: 30px;
    padding-left: 5px;
}

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

.detail-title-block {
    padding: 28px 0 0;
}

.detail-title-block h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-title-block p {
    max-width: 850px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.78;
}

.detail-side {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border-radius: 28px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

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

.detail-side dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    margin: 0;
    padding: 24px;
}

.detail-side dt {
    color: #94a3b8;
}

.detail-side dd {
    margin: 0;
    color: #f8fafc;
    font-weight: 800;
}

.article-content {
    padding-top: 56px;
}

.article-content p {
    margin: 14px 0 28px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 42px;
    padding: 54px 0 28px;
    background: #0b1120;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #64748b;
    text-align: center;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-layout,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-panel,
    .recommend-panel,
    .detail-side {
        position: static;
    }

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-bar {
        height: 64px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 70px;
    }

    .hero-search,
    .search-panel {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .hero-search button,
    .search-panel select {
        width: 100%;
        max-width: none;
    }

    .spotlight {
        min-height: 280px;
    }

    .section-block {
        padding: 48px 0;
    }

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

    .movie-grid,
    .featured-grid,
    .rank-grid,
    .related-grid,
    .category-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .page-hero {
        margin-top: 24px;
        padding: 28px;
        border-radius: 24px;
    }

    .list-card,
    .hero-list .list-card,
    .recommend-list .list-card {
        grid-template-columns: auto 72px minmax(0, 1fr);
    }

    .list-card img,
    .hero-list .list-card img,
    .recommend-list .list-card img {
        width: 72px;
        height: 72px;
    }

    .detail-side img {
        height: 320px;
    }
}
