:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-hot: #ea580c;
    --line: rgba(146, 64, 14, 0.16);
    --shadow: 0 20px 50px rgba(120, 53, 15, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #4b5563;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--brand-hot);
}

.menu-toggle {
    display: none;
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 22px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #d97706, #f97316 45%, #ef4444);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 900ms ease;
}

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

.hero-slide > img {
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    mix-blend-mode: overlay;
}

.hero-overlay,
.detail-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(120, 53, 15, 0.6), rgba(15, 23, 42, 0.28));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding-top: 30px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.hero-summary,
.detail-one-line,
.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.4vw, 23px);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    color: var(--brand-dark);
    background: #fffbeb;
    border-color: #fde68a;
}

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

.primary-button,
.ghost-button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.search-panel button {
    color: var(--brand-hot);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.14);
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.stats-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 26px 0;
    text-align: center;
}

.stats-grid div {
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.stats-grid strong {
    display: block;
    color: var(--brand-dark);
    font-size: 30px;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 700;
}

.content-section {
    padding: 58px 0 0;
}

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

.section-title p {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-title h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

.section-title > a {
    color: var(--brand-hot);
    font-weight: 900;
}

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

.category-card,
.category-large-card {
    display: block;
    min-height: 130px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(120, 53, 15, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-large-card {
    min-height: 180px;
}

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

.category-card span,
.category-large-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-large-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-large-card b {
    display: inline-flex;
    margin-top: 24px;
    color: var(--brand-hot);
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(120, 53, 15, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.34);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

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

.movie-card p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.ranking-section {
    padding-bottom: 20px;
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.rank-num {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 14px;
    font-weight: 900;
}

.mini-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fed7aa;
    border-radius: 14px;
}

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

.mini-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #ea580c 48%, #ef4444);
    overflow: hidden;
}

.compact-hero {
    padding: 82px 0;
}

.filter-box,
.search-panel {
    display: flex;
    gap: 12px;
    max-width: 760px;
    margin-top: 28px;
}

.filter-box input,
.search-panel input {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    color: #111827;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    outline: none;
    font-size: 16px;
}

.search-panel button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: 0;
    cursor: pointer;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(2px) saturate(1.05);
}

.detail-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    min-height: 620px;
    padding: 48px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fed7aa;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

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

.player-card,
.text-card,
.side-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(120, 53, 15, 0.08);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    border: 0;
    cursor: pointer;
}

.player-cover span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    padding-left: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.42);
    font-size: 36px;
}

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

.text-card,
.side-card {
    padding: 28px;
    margin-top: 24px;
}

.text-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.side-card {
    margin-top: 0;
    position: sticky;
    top: 94px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--brand);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #4b5563;
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fcd34d;
    font-size: 22px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 9px;
    color: #d1d5db;
    line-height: 1.75;
}

.site-footer a:hover {
    color: #fcd34d;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout,
    .detail-hero-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(300px, 80vw);
    }

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

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 10px;
    }

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

    .hero-content {
        align-items: flex-start;
        padding-inline: 0;
    }

    .stats-grid,
    .movie-grid,
    .category-grid,
    .category-large-grid,
    .ranking-list,
    .full-ranking {
        grid-template-columns: 1fr;
    }

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

    .filter-box,
    .search-panel {
        flex-direction: column;
    }

    .compact-hero {
        padding: 58px 0;
    }

    .detail-hero-inner {
        min-height: auto;
        padding: 42px 0;
    }

    .detail-info h1,
    .page-hero h1,
    .hero-content h1 {
        font-size: clamp(38px, 14vw, 58px);
    }

    .mini-card {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }
}
