:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --blue-500: #3b82f6;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.42);
}

.brand-text {
    font-size: 1.18rem;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

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

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800) 50%, #7c2d12 100%);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.24;
}

.hero-glow-left {
    left: 6%;
    top: 10%;
    background: var(--orange-500);
}

.hero-glow-right {
    right: 3%;
    bottom: 6%;
    background: var(--blue-500);
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--orange-400);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-intro h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-intro p,
.page-hero p,
.lead-text {
    margin: 20px 0 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 1.13rem;
}

.hero-search {
    display: flex;
    gap: 12px;
    margin: 32px 0 18px;
    max-width: 620px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 12px 14px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.hero-search button,
.primary-button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
    color: #ffffff;
    font-weight: 800;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.28);
    transition: 0.25s ease;
}

.hero-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(234, 88, 12, 0.36);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 14px;
    color: #ffffff;
    padding: 11px 22px;
    font-weight: 800;
    transition: 0.25s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.dark-text {
    color: var(--slate-900);
    border-color: var(--line);
    background: #ffffff;
}

.hero-quick-links,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-quick-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.10);
}

.hero-carousel {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: stretch;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(18px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px) scale(0.98);
    transition: 0.5s ease;
}

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

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
}

.hero-copy p {
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.78);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.16);
    color: var(--orange-400);
}

.hero-tags {
    margin-bottom: 24px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
    background: var(--slate-800);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span,
.play-icon,
.detail-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.36);
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dots button.active {
    width: 28px;
    background: var(--orange-500);
}

.stats-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -48px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stats-strip article {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.stats-strip article:hover {
    transform: translateY(-6px);
}

.stats-strip strong {
    display: block;
    color: var(--slate-900);
    font-size: 1.8rem;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

.light-block {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: #ffffff;
}

.dark-block {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 10px auto 0;
    max-width: 720px;
    color: var(--muted);
}

.section-heading-light h2,
.section-heading-light p {
    color: #ffffff;
}

.category-grid,
.movie-grid,
.compact-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.category-card-main,
.movie-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-card-main {
    padding: 28px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.category-card-main:hover,
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.22);
}

.category-card h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
}

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

.category-entry,
.text-link {
    display: inline-flex;
    color: var(--orange-600);
    font-weight: 800;
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

.category-samples a {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--slate-700);
    font-size: 0.92rem;
}

.category-card h2 a:hover,
.category-entry:hover {
    color: var(--orange-600);
}

.category-samples a:hover {
    transform: none;
    box-shadow: none;
    color: var(--orange-600);
}

.movie-cover {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
}

.movie-card-compact .movie-cover {
    height: 100%;
    min-height: 180px;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34));
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    opacity: 0;
    z-index: 2;
    transition: 0.25s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
}

.movie-card-body {
    padding: 20px;
}

.movie-card-body h2 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: 1.12rem;
    line-height: 1.32;
}

.movie-card-body h2 a:hover {
    color: var(--orange-600);
}

.movie-card-body p {
    min-height: 50px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.tag-row {
    margin-bottom: 14px;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero::before {
    content: "";
    position: absolute;
    right: -100px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.24);
    filter: blur(60px);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0;
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--slate-900);
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    font-weight: 800;
}

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

.detail-hero {
    min-height: 620px;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

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

.detail-poster {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    border-radius: 28px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
    background: var(--slate-800);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
}

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

.detail-tags {
    margin: 20px 0 26px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.detail-meta div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 900;
}

.detail-main {
    padding-top: 48px;
}

.player-card,
.story-card {
    margin-bottom: 42px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    background: var(--slate-950);
}

.player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
    cursor: pointer;
    overflow: hidden;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(1px) saturate(1.08);
}

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

.player-start {
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.38);
}

.player-overlay strong {
    max-width: min(760px, calc(100% - 32px));
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.story-card {
    padding: 34px;
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.6rem;
}

.story-card p {
    margin: 0 0 26px;
    color: #475569;
    font-size: 1.05rem;
}

.related-block {
    margin-top: 34px;
}

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

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

.footer-inner h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.footer-inner p {
    margin: 0;
    max-width: 560px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(249, 115, 22, 0.22);
    color: #ffffff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #94a3b8;
    text-align: center;
}

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

    .menu-button {
        display: block;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 260px;
    }

    .stats-strip,
    .category-grid,
    .category-grid-large,
    .movie-grid,
    .compact-grid,
    .detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster,
    .detail-poster img {
        min-height: 420px;
    }

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

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-shell,
    .section-block,
    .page-hero-inner,
    .detail-hero-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .hero-shell {
        padding: 42px 0 72px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-slide {
        padding: 18px;
    }

    .stats-strip,
    .category-grid,
    .category-grid-large,
    .movie-grid,
    .compact-grid,
    .detail-meta,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        margin-top: -28px;
    }

    .movie-card-compact {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .movie-cover {
        height: 245px;
    }

    .detail-poster,
    .detail-poster img {
        min-height: 360px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
