:root {
    color-scheme: light;
    --bg: #f9fafb;
    --paper: #ffffff;
    --paper-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --accent: #facc15;
    --danger: #dc2626;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand {
    color: var(--primary);
    font-size: 24px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--danger));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary);
    background: #fff7ed;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--primary);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-link {
    display: block;
    padding: 15px 24px;
    border-radius: 0;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 20%, rgba(250, 204, 21, 0.32), transparent 28%),
        linear-gradient(120deg, #c2410c 0%, #dc2626 45%, #7f1d1d 100%);
}

.hero-stage {
    position: relative;
    width: min(100% - 32px, var(--max));
    min-height: 640px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 56px;
    padding: 82px 0 96px;
    opacity: 0;
    transform: translateX(36px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fde68a;
}

.hero-copy h1 {
    margin: 18px 0 20px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.hero-actions,
.detail-actions,
.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-primary {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #fffbeb;
}

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

.hero-poster {
    position: relative;
    z-index: 2;
    min-height: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: max(18px, calc((100vw - var(--max)) / 2 - 68px));
}

.hero-next {
    right: max(18px, calc((100vw - var(--max)) / 2 - 68px));
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-glow-one {
    right: 10%;
    top: 10%;
    background: #facc15;
}

.hero-glow-two {
    left: -120px;
    bottom: -140px;
    background: #fb923c;
}

.stats-strip,
.content-section {
    padding: 68px 0;
}

.stats-strip {
    background: #ffffff;
}

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

.stat-card,
.category-tile,
.movie-card,
.player-card,
.detail-side,
.article-block {
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 26px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.soft-bg {
    background: #fff7ed;
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

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

.section-more {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 900;
}

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

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

.category-tile {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    transform: translateZ(0);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transition: transform 0.45s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.82));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile div {
    position: absolute;
    inset: auto 20px 20px 20px;
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-tile p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.category-tile div span {
    font-weight: 900;
    color: #fde68a;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.45fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fb7185);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55));
}

.poster-year,
.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.poster-year {
    top: 12px;
    left: 12px;
    background: rgba(17, 24, 39, 0.65);
}

.poster-type {
    right: 12px;
    bottom: 12px;
    background: var(--primary);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, #facc15, #ea580c);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--primary);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 28px;
    margin-top: 18px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(250, 204, 21, 0.28), transparent 26%),
        linear-gradient(120deg, #ea580c, #dc2626);
}

.page-hero-inner {
    padding: 84px 0;
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.page-hero .kicker {
    color: #fde68a;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(5px);
    transform: scale(1.03);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.78));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.detail-content {
    padding-top: 52px;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-side,
.article-block {
    border-radius: 24px;
    padding: 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #030712;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #030712;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.68));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    z-index: 4;
}

.play-cover.is-hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    font-size: 32px;
    padding-left: 5px;
}

.player-card h2,
.detail-side h2,
.article-block h2 {
    margin: 20px 0 10px;
    font-size: 26px;
    line-height: 1.25;
}

.player-card p,
.article-block p {
    color: #4b5563;
    margin: 0;
}

.article-block p + h2 {
    margin-top: 30px;
}

.detail-side dl {
    margin: 0;
}

.detail-side div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

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

.detail-side a {
    color: var(--primary);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer p {
    margin: 10px 0 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1080px) {
    .hero-slide {
        grid-template-columns: 1fr 340px;
        gap: 34px;
    }

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

    .filter-panel,
    .detail-main-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-slider,
    .hero-stage {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 54px;
        padding-bottom: 86px;
    }

    .hero-poster {
        width: min(100%, 360px);
        min-height: 420px;
        transform: none;
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .rank-grid,
    .filter-panel,
    .detail-layout,
    .detail-main-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-layout {
        align-items: start;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, var(--max));
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-slider,
    .hero-stage {
        min-height: 740px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-nav {
        display: none;
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .rank-grid,
    .filter-panel,
    .detail-layout,
    .detail-main-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-inner,
    .detail-hero-inner {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .detail-copy h1 {
        font-size: 36px;
    }

    .detail-copy p {
        font-size: 17px;
    }

    .content-section,
    .stats-strip {
        padding: 46px 0;
    }
}
