:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #111827;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --orange-100: #ffedd5;
    --white: #ffffff;
    --max: 1180px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.18);
    --shadow-orange: 0 18px 40px rgba(249, 115, 22, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 45%, #f1f5f9 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.26);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--max));
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: 14px;
    box-shadow: var(--shadow-orange);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.04em;
}

.brand-text em {
    margin-top: 5px;
    color: var(--slate-300);
    font-size: 12px;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 13px;
    color: var(--slate-300);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: rgba(148, 163, 184, 0.14);
    border: 0;
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--white);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    color: var(--slate-200, #e2e8f0);
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    font-weight: 700;
}

.hero-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(124, 45, 18, 0.86)), var(--hero-image) center / cover no-repeat;
}

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

.hero-backdrop,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 22%, rgba(249, 115, 22, 0.28), transparent 30%), radial-gradient(circle at 78% 18%, rgba(251, 146, 60, 0.22), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.55));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    width: min(100%, var(--max));
    min-height: 620px;
    margin: 0 auto;
    padding: 80px 20px 92px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--orange-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    display: block;
    margin-top: 16px;
    color: var(--orange-400);
    font-size: clamp(24px, 4vw, 42px);
}

.hero-desc,
.page-hero p,
.detail-one-line {
    max-width: 740px;
    margin: 24px 0 0;
    color: #e2e8f0;
    font-size: 19px;
}

.hero-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.36);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.home-search button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: var(--shadow-orange);
    border: 0;
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

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

.hero-poster span,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: var(--shadow-orange);
}

.hero-poster span {
    right: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    font-size: 24px;
}

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

.hero-dot {
    width: 32px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    background: var(--orange-500);
}

.search-strip,
.section-wrap,
.category-band,
.footer-grid,
.footer-bottom {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.search-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 24px;
    margin-top: -52px;
    padding-top: 28px;
    padding-bottom: 28px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

.search-strip h2,
.search-strip p {
    margin: 0;
}

.search-strip p {
    color: var(--slate-300);
}

.home-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--slate-900);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    outline: none;
}

.filter-bar {
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.filter-bar input {
    flex: 1 1 280px;
}

.filter-bar select {
    flex: 0 0 180px;
}

.section-wrap,
.category-band {
    padding-top: 72px;
    padding-bottom: 72px;
}

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

.section-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-head a {
    color: var(--orange-600);
    font-weight: 900;
}

.section-head.light h2,
.section-head.light a {
    color: var(--white);
}

.section-head.compact h2 {
    font-size: 30px;
}

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 7px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.25;
}

.card-meta {
    margin: 0 0 10px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 800;
}

.card-desc {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
}

.card-tags .tag {
    color: var(--orange-600);
    background: #fff7ed;
}

.category-band {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100% - var(--max)) / 2 + 20px));
    padding-right: max(20px, calc((100% - var(--max)) / 2 + 20px));
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #7c2d12 58%, var(--slate-900));
}

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

.category-chip {
    display: flex;
    flex-direction: column;
    min-height: 156px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-chip:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.16);
}

.category-chip strong {
    margin-bottom: 12px;
    font-size: 20px;
}

.category-chip span {
    color: #fed7aa;
    font-size: 14px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 28px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
}

.rank-num {
    color: var(--orange-600);
    font-size: 20px;
    font-weight: 1000;
}

.rank-item img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.compact-card strong {
    display: block;
    overflow: hidden;
    color: var(--slate-900);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy em,
.compact-card em {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.latest-panel {
    padding: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-orange);
}

.compact-grid,
.compact-stack {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
}

.compact-card img {
    width: 58px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.latest-panel .compact-card strong,
.latest-panel .compact-card em {
    color: var(--white);
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 92px max(20px, calc((100% - var(--max)) / 2 + 20px));
    color: var(--white);
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.82)), var(--hero-image) center / cover no-repeat;
}

.page-hero.slim {
    min-height: 300px;
    background: linear-gradient(120deg, var(--slate-900), #7c2d12 60%, var(--slate-900));
}

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

.category-overview-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.category-title-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.category-title-link span {
    font-size: 26px;
    font-weight: 1000;
}

.category-title-link em {
    color: var(--orange-600);
    font-style: normal;
    font-weight: 900;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--slate-600);
}

.category-overview-card .compact-card {
    background: #f8fafc;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

.detail-hero-bg {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(124, 45, 18, 0.74)), var(--hero-image) center / cover no-repeat;
    filter: saturate(1.1);
}

.detail-shell {
    position: relative;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 38px 20px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--slate-300);
    font-size: 14px;
}

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

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

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    max-width: 850px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.detail-meta span {
    padding: 10px 14px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    font-weight: 800;
}

.detail-section h2,
.prose-section h2 {
    margin: 0 0 18px;
    color: var(--slate-900);
    font-size: 30px;
}

.video-player {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
    border: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: 30px;
    box-shadow: var(--shadow-orange);
    font-size: 32px;
}

.play-cover strong {
    font-size: 20px;
}

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

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

.prose-section article {
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.prose-section p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

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

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 0.8fr;
    gap: 34px;
    padding-top: 56px;
    padding-bottom: 42px;
}

.footer-brand strong,
.site-footer h2 {
    color: var(--white);
}

.footer-brand p {
    margin: 8px 0 0;
    max-width: 360px;
    color: var(--slate-300);
    font-size: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

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

.site-footer li,
.site-footer a {
    color: var(--slate-300);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .mobile-panel.is-open {
        grid-template-columns: 1fr;
    }

    .hero-shell,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 28px;
        padding-top: 42px;
        padding-bottom: 86px;
    }

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

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

    .hero-desc,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .search-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
        border-radius: 0;
    }

    .home-search,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        flex-basis: auto;
    }

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

    .section-wrap,
    .category-band {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

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

    .rank-item {
        grid-template-columns: 36px 56px minmax(0, 1fr);
    }
}
