:root {
    color-scheme: light;
    --page-bg: #fff7ed;
    --paper: #ffffff;
    --paper-soft: #fffbeb;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-deep: #ea580c;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(251, 146, 60, 0.12);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.22s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.header-search,
.mobile-search,
.page-search form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    flex: 1;
    max-width: 430px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.page-search input,
.filter-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 15px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.filter-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    border-radius: 14px;
    padding: 12px 17px;
    color: #ffffff;
    font-weight: 800;
    background: var(--brand);
    cursor: pointer;
}

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

.desktop-nav a,
.mobile-panel nav a {
    color: #374151;
    font-weight: 750;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
    color: var(--brand-deep);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.hero {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: #0f172a;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.hero-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.93) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.hero-content > * {
    max-width: 660px;
}

.hero-eyebrow,
.page-hero > p,
.section-heading p,
.rank-head p,
.detail-eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.055em;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.38);
}

.hero-summary {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-line,
.genre-links,
.footer-years,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.genre-links a,
.filter-chips button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.82);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.28);
}

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

.primary-button:hover {
    background: var(--brand-deep);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 30px;
    background: var(--brand);
}

.category-ribbon {
    margin-top: -34px;
    position: relative;
    z-index: 6;
}

.ribbon-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ribbon-inner a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid rgba(254, 215, 170, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.ribbon-inner span {
    color: var(--ink);
    font-weight: 900;
}

.ribbon-inner strong {
    color: var(--brand-deep);
}

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

.content-section {
    padding-top: 62px;
}

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

.section-heading h2,
.rank-head h2,
.detail-article h2,
.info-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-more,
.rank-head a {
    color: var(--brand-deep);
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(124, 45, 18, 0.15);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

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

.year-badge,
.card-play {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: var(--brand);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card-link:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

.rank-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel ol {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.rank-link {
    display: grid;
    grid-template-columns: 34px 54px 1fr;
    gap: 12px;
    align-items: center;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    border-radius: 10px;
    background: var(--brand);
    font-weight: 900;
}

.rank-link img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    font-weight: 900;
    line-height: 1.35;
}

.rank-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: grid;
    align-content: center;
    margin-top: 26px;
    padding: 38px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(154, 52, 18, 0.9)), radial-gradient(circle at top right, rgba(251, 146, 60, 0.85), transparent 42%);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero .crumbs,
.detail-layer .crumbs {
    margin-top: 18px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.page-search {
    max-width: 680px;
    margin-top: 28px;
}

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

.category-card a {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: #111827;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.35s ease;
}

.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.86));
}

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

.category-card span,
.category-card h2,
.category-card p,
.category-card strong {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.86);
    font-weight: 900;
}

.category-card h2 {
    margin: 76px 0 12px;
    font-size: 28px;
    font-weight: 950;
}

.category-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card strong {
    font-size: 18px;
}

.filter-box {
    margin-top: 28px;
    max-width: 760px;
}

.filter-chips {
    margin-top: 12px;
}

.filter-chips button {
    border: 0;
    cursor: pointer;
}

.flat-filter {
    max-width: none;
    margin-top: 0;
    margin-bottom: 22px;
}

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

.ranking-row a {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.07);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    font-size: 18px;
    font-weight: 950;
}

.ranking-row img {
    width: 76px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
    display: block;
}

.ranking-info strong {
    font-size: 18px;
    font-weight: 950;
}

.ranking-info em,
.ranking-info small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.ranking-tags {
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 800;
}

.detail-main {
    margin-top: 0;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.06);
    opacity: 0.52;
    transform: scale(1.04);
}

.detail-layer {
    position: relative;
    z-index: 2;
    min-height: 640px;
    padding: 34px 0 54px;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(15, 23, 42, 0.76));
}

.detail-layer > .crumbs,
.detail-hero-grid,
.detail-section,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

.detail-poster {
    width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.meta-line {
    margin: 18px 0;
}

.meta-line span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.large-tags span {
    padding: 7px 12px;
}

.player-panel {
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    z-index: 3;
}

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

.player-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.36);
}

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

.detail-article,
.info-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-article p {
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
}

.info-card {
    position: sticky;
    top: 88px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    margin: 22px 0;
}

.info-card dt {
    color: var(--muted);
    font-weight: 700;
}

.info-card dd {
    margin: 0;
    font-weight: 850;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 800;
}

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

.site-footer {
    margin-top: 78px;
    color: #d1d5db;
    background: linear-gradient(135deg, #1f2937, #111827);
}

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

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.site-footer p {
    max-width: 620px;
    line-height: 1.75;
}

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

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #d1d5db;
}

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

.footer-years a {
    display: inline-flex;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.center-actions {
    justify-content: flex-start;
}

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

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

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

    .rank-panel,
    .info-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .hero {
        height: 620px;
    }

    .hero-layer {
        align-items: end;
        padding-bottom: 76px;
        background: linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.92));
    }

    .hero-arrow {
        display: none;
    }

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

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

    .detail-poster {
        width: min(260px, 72vw);
    }

    .ranking-row a {
        grid-template-columns: 42px 66px minmax(0, 1fr);
    }

    .ranking-tags {
        display: none;
    }

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

@media (max-width: 620px) {
    .brand-name {
        display: none;
    }

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

    .hero h1,
    .hero h2,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .content-section,
    .page-main,
    .detail-layer > .crumbs,
    .detail-hero-grid,
    .detail-section,
    .detail-layout {
        width: min(100% - 24px, 1180px);
    }

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

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

    .movie-card h3 {
        font-size: 14px;
    }

    .movie-card p {
        font-size: 12px;
    }

    .ribbon-inner {
        grid-template-columns: 1fr 1fr;
        width: min(100% - 24px, 1180px);
    }

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

    .page-hero {
        padding: 28px 22px;
        border-radius: 22px;
    }

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

    .player-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
