:root {
    --site-bg: #fff7ed;
    --site-bg-deep: #ffedd5;
    --paper: rgba(255, 255, 255, 0.92);
    --paper-solid: #ffffff;
    --ink: #111827;
    --soft-ink: #374151;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #fed7aa;
    --gold: #f59e0b;
    --red: #ef4444;
    --pink: #ec4899;
    --blue: #0ea5e9;
    --shadow-sm: 0 8px 24px rgba(234, 88, 12, 0.10);
    --shadow-md: 0 16px 44px rgba(234, 88, 12, 0.16);
    --shadow-lg: 0 26px 80px rgba(124, 45, 18, 0.22);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.16), transparent 26rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.06);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.logo-title {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--brand-dark), var(--gold));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

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

.primary-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft-ink);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.mobile-nav a:hover,
.primary-nav a.is-active,
.mobile-nav a.is-active {
    color: var(--brand-dark);
    background: #ffedd5;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--brand-dark);
    background: #ffedd5;
}

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

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

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

.hero {
    position: relative;
    overflow: hidden;
    margin: 24px auto 48px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(234, 88, 12, 0.72)),
        radial-gradient(circle at 78% 30%, rgba(251, 191, 36, 0.42), transparent 22rem);
    box-shadow: var(--shadow-lg);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -150px;
    right: 12%;
    background: rgba(255, 237, 213, 0.22);
    filter: blur(4px);
}

.hero::after {
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: 8%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-slider {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    min-height: 580px;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 42px;
    padding: 58px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-movie-title {
    margin: 18px 0 0;
    color: #fff7ed;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    font-weight: 900;
}

.hero-copy {
    max-width: 700px;
    margin-top: 18px;
    color: rgba(255, 247, 237, 0.92);
    font-size: 18px;
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--brand-dark);
    background: #fff7ed;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

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

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 490px;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.62));
}

.hero-card-meta {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    color: #fff;
}

.hero-card-meta strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 38px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
    background: #fff7ed;
}

.section {
    margin: 54px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: var(--shadow-sm);
}

.section h2,
.section h1,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-lead,
.page-title p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.more-link {
    color: var(--brand-dark);
    font-weight: 850;
}

.more-link:hover {
    text-decoration: underline;
}

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

.movie-grid.large-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 88, 12, 0.36);
    box-shadow: var(--shadow-md);
}

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

.movie-cover-link img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

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

.badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.badge.hot {
    background: linear-gradient(135deg, var(--red), var(--pink));
}

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

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--brand-dark);
}

.card-desc {
    margin: 9px 0 0;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: var(--soft-ink);
    font-size: 12px;
    font-weight: 750;
}

.card-meta span,
.tag-row span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7ed;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(251, 146, 60, 0.20);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.88));
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.category-mini img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(251, 146, 60, 0.20);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--gold));
    font-weight: 950;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #ffedd5;
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-extra {
    color: var(--brand-dark);
    font-weight: 900;
}

.page-title {
    margin: 36px 0 26px;
    padding: 30px;
    border: 1px solid rgba(251, 146, 60, 0.20);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 213, 0.82));
    box-shadow: var(--shadow-sm);
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(251, 146, 60, 0.20);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.search-field {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.search-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid rgba(251, 146, 60, 0.24);
    color: var(--soft-ink);
    background: #fff;
    cursor: pointer;
}

.filter-chip.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--gold));
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: var(--muted);
    background: #fff7ed;
    text-align: center;
}

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

.player-card,
.detail-aside,
.story-card {
    border: 1px solid rgba(251, 146, 60, 0.20);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(124, 45, 18, 0.42));
    cursor: pointer;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
    transform: scale(1.06);
    box-shadow: 0 30px 62px rgba(0, 0, 0, 0.42);
}

.player-info {
    padding: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.breadcrumb a:hover {
    color: var(--brand-dark);
}

.detail-title {
    margin: 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.detail-subtitle {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff7ed;
    font-weight: 850;
}

.story-card {
    padding: 26px;
    margin-top: 26px;
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.story-card p {
    margin: 0 0 18px;
    color: var(--soft-ink);
    font-size: 16px;
    line-height: 1.9;
}

.detail-aside {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.aside-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    background: #ffedd5;
}

.aside-cover img {
    height: 100%;
    object-fit: cover;
}

.aside-title {
    margin: 18px 0 12px;
    font-size: 22px;
    font-weight: 950;
}

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: #fff7ed;
}

.related-item img {
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    padding: 36px 0;
    border-top: 1px solid rgba(251, 146, 60, 0.22);
    color: var(--muted);
    background: rgba(255, 247, 237, 0.72);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--brand-dark);
    font-weight: 950;
}

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

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

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

    .hero-visual {
        min-height: 360px;
    }

    .hero-dots {
        left: 34px;
        bottom: 24px;
    }

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

    .detail-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .page-main,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .logo-title {
        font-size: 20px;
    }

    .hero {
        border-radius: 24px;
        margin-top: 14px;
    }

    .hero-slide {
        min-height: auto;
        padding: 26px;
    }

    .hero-actions,
    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-visual {
        min-height: 300px;
    }

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

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

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

    .rank-extra {
        grid-column: 3;
    }
}
