/* Xhuo 星火燎原：薪火暖黑与火焰朱橙的独立视觉系统 */
:root {
    --xf-bg: #15110d;
    --xf-bg-deep: #0c0906;
    --xf-surface-1: #1e1812;
    --xf-surface-2: #271e16;
    --xf-surface-3: #33261b;
    --xf-line: #3e2d20;
    --xf-line-soft: #2b2018;
    --xf-text: #f4e8d6;
    --xf-text-soft: #cdb9a1;
    --xf-text-muted: #998677;
    --xf-accent: #ff6a2c;
    --xf-accent-strong: #ff9247;
    --xf-accent-ink: #2a1206;
    --xf-ember: #c23a1e;
    --xf-ash: #5f8f86;
    --xf-flame: linear-gradient(135deg, #ff9247, #ff6a2c 46%, #c23a1e);
    --xf-success: #6fae7a;
    --xf-warning: #e8b45e;
    --xf-danger: #ff5a3c;
    --xf-shell: 1400px;
    --xf-gutter: clamp(12px, 3vw, 40px);
    --xf-radius-sm: 10px;
    --xf-radius-md: 14px;
    --xf-radius-lg: 20px;
    --xf-radius-xl: 28px;
    --xf-shadow-lg: 0 28px 72px rgba(18, 8, 2, .55);
    --xf-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
    --xf-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --xf-ease: cubic-bezier(.16, 1, .3, 1);
}

@supports (color: oklch(50% 0.1 20)) {
    :root {
        --xf-bg: oklch(21% .018 55);
        --xf-bg-deep: oklch(15% .016 55);
        --xf-surface-1: oklch(25% .02 55);
        --xf-surface-2: oklch(29% .024 52);
        --xf-surface-3: oklch(34% .03 50);
        --xf-line: oklch(40% .03 48);
        --xf-line-soft: oklch(33% .024 50);
        --xf-text: oklch(92% .028 78);
        --xf-text-soft: oklch(80% .03 70);
        --xf-text-muted: oklch(66% .022 60);
        --xf-accent: oklch(68% .19 45);
        --xf-accent-strong: oklch(75% .17 52);
        --xf-accent-ink: oklch(24% .06 46);
    }
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--xf-bg);
    color: var(--xf-text);
    font-family: var(--xf-body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 12% -8%, rgba(255, 106, 44, .09), transparent 34%),
        linear-gradient(115deg, transparent 0 72%, rgba(244, 232, 214, .018) 72% 72.2%, transparent 72.2%);
    content: "";
    pointer-events: none;
}
body.xf-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
svg { display: block; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
::selection { background: var(--xf-accent); color: var(--xf-accent-ink); }
:focus-visible { outline: 2px solid var(--xf-accent-strong); outline-offset: 3px; }

.xf-shell, .xf-wrap {
    width: min(calc(100% - (var(--xf-gutter) * 2)), var(--xf-shell));
    margin-inline: auto;
}
/* 公共双层导航 */
.xf-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--xf-line-soft);
    background: rgba(21, 17, 13, .94);
    transition: box-shadow .25s var(--xf-ease), background .25s ease;
}
.xf-header.is-scrolled { background: rgba(21, 17, 13, .985); box-shadow: 0 14px 36px rgba(12, 8, 4, .3); }
.xf-header__primary-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 64px; gap: 12px; }
.xf-brand { display: inline-flex; min-width: 0; align-items: center; justify-self: start; }
.xf-brand__logo { display: block; max-width: 148px; max-height: 46px; object-fit: contain; }
.xf-brand__fallback { display: inline-flex; min-width: 0; align-items: center; gap: 10px; }
.xf-brand__mark {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px 12px 12px 3px;
    background: var(--xf-flame);
    color: #fff5ea;
    box-shadow: 0 4px 16px rgba(255, 106, 44, .4);
    font-family: var(--xf-display);
    font-size: 1.2rem;
    font-weight: 700;
}
.xf-brand__copy { display: grid; min-width: 0; line-height: 1.15; }
.xf-brand__copy strong { max-width: 150px; overflow: hidden; font-family: var(--xf-display); font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.xf-brand__copy small { margin-top: 3px; color: var(--xf-text-muted); font-size: .64rem; letter-spacing: .18em; }
.xf-search { display: flex; align-items: center; border: 1px solid var(--xf-line); background: var(--xf-surface-1); }
.xf-search svg { flex: 0 0 auto; margin-left: 15px; color: var(--xf-text-muted); }
.xf-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--xf-text); }
.xf-search input::placeholder { color: var(--xf-text-muted); opacity: 1; }
.xf-search button { min-width: 64px; align-self: stretch; border: 0; background: var(--xf-accent); color: var(--xf-accent-ink); cursor: pointer; font-weight: 800; }
.xf-search--header { display: none; width: min(46vw, 560px); height: 44px; border-radius: 999px; overflow: hidden; }
.xf-search--header input { flex: 1; height: 100%; padding: 0 12px; }
.xf-search--drawer { width: 100%; min-height: 48px; margin-bottom: 18px; border-radius: 10px; overflow: hidden; }
.xf-search--drawer input { flex: 1; width: 100%; padding: 0 10px; }
.xf-header__actions { display: flex; align-items: center; gap: 6px; }
.xf-icon-action, .xf-menu-btn {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--xf-text-soft);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.xf-icon-action:hover, .xf-menu-btn:hover { background: var(--xf-surface-2); color: var(--xf-accent-strong); }
.xf-icon-action--rank { display: none; }
.xf-header__channels { height: 0; }
.xf-header__channels-inner { height: 100%; }
.xf-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 92;
    display: flex;
    width: min(88vw, 380px);
    padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border-left: 1px solid var(--xf-line);
    background: var(--xf-bg-deep);
    box-shadow: -30px 0 80px rgba(12, 8, 4, .5);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .35s var(--xf-ease), visibility .35s;
}
.xf-nav.is-open { transform: translateX(0); visibility: visible; }
.xf-nav__drawer-head { display: flex; min-height: 48px; margin-bottom: 14px; align-items: center; justify-content: space-between; }
.xf-nav__drawer-head strong { font-family: var(--xf-display); font-size: 1.35rem; }
.xf-nav__drawer-head button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: var(--xf-surface-2); cursor: pointer; }
.xf-nav > a, .xf-nav__link { display: flex; min-height: 46px; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--xf-text-soft); font-weight: 700; }
.xf-nav > a.active, .xf-nav > a:hover, .xf-nav__item.is-active .xf-nav__link { background: var(--xf-surface-2); color: var(--xf-accent-strong); }
.xf-nav__row { display: flex; align-items: center; }
.xf-nav__row .xf-nav__link { flex: 1; }
.xf-nav__toggle { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; cursor: pointer; }
.xf-nav__toggle svg { transition: transform .25s var(--xf-ease); }
.xf-nav__item.is-expanded .xf-nav__toggle svg { transform: rotate(90deg); }
.xf-nav__dropdown { display: none; padding: 6px 8px 12px 20px; }
.xf-nav__item.is-expanded .xf-nav__dropdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.xf-nav__dropdown a { min-height: 40px; padding: 8px; color: var(--xf-text-muted); font-size: .875rem; }
.xf-nav__dropdown a:hover, .xf-nav__dropdown a.active { color: var(--xf-accent-strong); }
.xf-nav__divider { height: 1px; margin: 12px; background: var(--xf-line-soft); }
.xf-drawer-backdrop { position: fixed; inset: 0; z-index: 79; display: block; width: 100vw; height: 100dvh; padding: 0; border: 0; background: rgba(9, 6, 3, .72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s; }
.xf-drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.xf-mobile-dock {
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 78;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    min-height: 60px;
    border: 1px solid var(--xf-line);
    border-radius: 16px;
    background: rgba(30, 24, 18, .98);
    box-shadow: 0 18px 50px rgba(12, 8, 4, .48);
}
.xf-mobile-dock a, .xf-mobile-dock button { display: grid; min-width: 0; min-height: 58px; place-content: center; justify-items: center; gap: 2px; border: 0; background: transparent; color: var(--xf-text-muted); cursor: pointer; font-size: .68rem; }
.xf-mobile-dock svg { font-size: 1.15rem; }
.xf-mobile-dock a.active { color: var(--xf-accent-strong); }

/* 首页首屏 */
.xf-hero { padding: clamp(14px, 3vw, 34px) 0 18px; }
.xf-hero__layout { display: grid; gap: 12px; }
.xf-hero__stage { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--xf-line-soft); border-radius: var(--xf-radius-lg); background: var(--xf-bg-deep); box-shadow: var(--xf-shadow-lg); }
.xf-hero__slides { position: relative; min-height: clamp(300px, 80vw, 430px); touch-action: pan-y; }
.xf-hero__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s var(--xf-ease); }
.xf-hero__slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; }
.xf-hero__media, .xf-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.xf-hero__media img { object-fit: cover; }
.xf-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 4, .97) 2%, rgba(10, 7, 4, .18) 68%), linear-gradient(90deg, rgba(10, 7, 4, .6), transparent 62%); }
.xf-hero__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; max-width: 780px; padding: 22px 18px 54px; }
.xf-hero h1 { max-width: 13ch; margin: 6px 0 8px; font-family: var(--xf-display); font-size: clamp(1.85rem, 7vw, 3.2rem); font-weight: 700; letter-spacing: -.05em; line-height: .98; }
.xf-hero h1 a { display: inline; }
.xf-hero__content > p { max-width: 58ch; margin: 0 0 14px; color: var(--xf-text-soft); display: -webkit-box; overflow: hidden; font-size: .92rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xf-meta { display: flex; margin: 0 0 18px; flex-wrap: wrap; gap: 7px; color: var(--xf-text-soft); }
.xf-meta span, .xf-meta a, .xf-meta strong { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 10px; border: 1px solid var(--xf-line); border-radius: 999px; background: rgba(30, 24, 18, .76); font-size: .78rem; font-style: normal; }
.xf-meta strong { border-color: rgba(255, 106, 44, .38); color: var(--xf-accent-strong); font-variant-numeric: tabular-nums; }
.xf-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.xf-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 800; }
.xf-btn--primary { background: var(--xf-accent); color: var(--xf-accent-ink); }
.xf-btn--ghost { border-color: var(--xf-line); background: rgba(30, 24, 18, .72); color: var(--xf-text); }
.xf-hero__controls { position: absolute; right: 18px; bottom: 20px; left: 20px; z-index: 4; display: flex; align-items: center; gap: 14px; }
.xf-hero__progress { height: 2px; overflow: hidden; flex: 1; background: rgba(244, 232, 214, .22); }
.xf-hero__progress span { display: block; width: 100%; height: 100%; background: var(--xf-accent); transform: scaleX(0); transform-origin: left; }
.xf-hero__progress span.is-running { animation: xf-hero-progress 6.2s linear both; }
.xf-hero__arrows { display: flex; gap: 6px; }
.xf-hero__arrows button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--xf-line); border-radius: 50%; background: rgba(30, 24, 18, .78); cursor: pointer; }
@keyframes xf-hero-progress { to { transform: scaleX(1); } }
.xf-hero__queue { padding: 14px; border: 1px solid var(--xf-line-soft); border-radius: var(--xf-radius-lg); background: var(--xf-surface-1); }
.xf-hero__queue-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.xf-hero__queue-list::-webkit-scrollbar { display: none; }
.xf-hero__queue-item { display: grid; min-width: min(78vw, 265px); min-height: 76px; grid-template-columns: 30px 52px minmax(0, 1fr); align-items: center; gap: 9px; padding: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--xf-text-soft); cursor: pointer; text-align: left; }
.xf-hero__queue-item.is-active { border-color: var(--xf-line); background: var(--xf-surface-2); }
.xf-hero__queue-index { color: var(--xf-text-muted); font-family: Georgia, serif; font-size: .75rem; font-variant-numeric: tabular-nums; }
.xf-hero__queue-item.is-active .xf-hero__queue-index { color: var(--xf-accent-strong); }
.xf-hero__queue-pic { height: 60px; overflow: hidden; border-radius: 7px; background: var(--xf-surface-3); }
.xf-hero__queue-pic img { width: 100%; height: 100%; object-fit: cover; }
.xf-hero__queue-copy { display: grid; min-width: 0; gap: 3px; }
.xf-hero__queue-copy strong, .xf-hero__queue-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf-hero__queue-copy strong { font-size: .88rem; }
.xf-hero__queue-copy em { color: var(--xf-text-muted); font-size: .7rem; font-style: normal; }

/* 首页内容编排 */
.xf-channel-rail { border-block: 1px solid var(--xf-line-soft); background: var(--xf-bg-deep); }
.xf-channel-rail .xf-shell { display: flex; min-height: 60px; align-items: center; gap: 20px; overflow: visible; }
.xf-channel-rail__track { display: flex; min-width: 0; overflow-x: auto; flex: 1; gap: 10px; padding-block: 12px; scrollbar-width: none; scroll-padding-inline: 2px; }
.xf-channel-rail__track::-webkit-scrollbar { display: none; }
.xf-channel-rail a { position: relative; display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--xf-line-soft); border-radius: 999px; background: rgba(30, 24, 18, .5); color: var(--xf-text-soft); font-family: var(--xf-display); font-size: .96rem; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.xf-channel-rail a::after { position: absolute; right: 18px; bottom: 9px; left: 18px; height: 2px; content: ""; border-radius: 2px; background: var(--xf-flame); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--xf-ease); }
.xf-channel-rail a:hover { border-color: rgba(255, 106, 44, .5); background: rgba(255, 106, 44, .08); color: var(--xf-text); }
.xf-channel-rail a:hover::after { transform: scaleX(1); }
.xf-section { padding: clamp(22px, 3.4vw, 44px) 0; }
.xf-section + .xf-section { border-top: 1px solid var(--xf-line-soft); }
.xf-section__head { display: flex; margin-bottom: clamp(14px, 2.2vw, 22px); align-items: end; justify-content: space-between; gap: 16px; }
.xf-section__head h2 { margin: 0; font-family: var(--xf-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.xf-section__head > a { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--xf-text-soft); font-size: .84rem; font-weight: 700; }
.xf-section__head > a span { color: var(--xf-accent-strong); }
.xf-shelf { padding-bottom: clamp(26px, 3vw, 44px); }
.xf-home-sections { padding-top: clamp(22px, 2.4vw, 36px); padding-bottom: clamp(28px, 3vw, 46px); }
.xf-trending__list { display: grid; gap: 8px; }
.xf-trending__item { position: relative; display: grid; min-width: 0; min-height: 78px; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--xf-line-soft); }
.xf-trending__pic { display: none; overflow: hidden; background: var(--xf-surface-2); }
.xf-trending__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--xf-ease); }
.xf-trending__rank { color: var(--xf-text-muted); font-family: Georgia, serif; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.xf-trending__copy { display: grid; min-width: 0; gap: 2px; }
.xf-trending__copy strong { overflow: hidden; font-family: var(--xf-display); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.xf-trending__copy em { overflow: hidden; color: var(--xf-text-muted); font-size: .75rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.xf-trending__score { color: var(--xf-accent-strong); font-family: Georgia, serif; font-size: .95rem; font-variant-numeric: tabular-nums; }
.xf-vod-grid, .xf-card-grid, .xf-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px) clamp(10px, 1.6vw, 18px); container-type: inline-size; }
.xf-vod-card { min-width: 0; }
.xf-vod-card > a { display: block; }
.xf-vod-card__pic { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--xf-surface-2); box-shadow: inset 0 0 0 1px rgba(255, 106, 44, .16); border-radius: var(--xf-radius-md) var(--xf-radius-md) 0 var(--xf-radius-md); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); transition: box-shadow .3s ease; }
.xf-vod-card__pic::after { position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(0deg, rgba(12, 6, 3, .84), rgba(194, 58, 30, .16) 44%, transparent); content: ""; pointer-events: none; }
.xf-vod-card__pic::before { position: absolute; z-index: 2; inset: auto 0 0; height: 66%; content: ""; pointer-events: none; opacity: 0; background-image: radial-gradient(2px 2px at 22% 100%, rgba(255, 146, 71, .95), transparent), radial-gradient(1.6px 1.6px at 46% 100%, rgba(255, 106, 44, .9), transparent), radial-gradient(2px 2px at 64% 100%, rgba(255, 184, 122, .9), transparent), radial-gradient(1.4px 1.4px at 82% 100%, rgba(255, 106, 44, .85), transparent); }
.xf-vod-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--xf-ease), filter .3s ease; }
.xf-vod-card__note, .xf-vod-card__score { position: absolute; z-index: 3; display: inline-flex; align-items: center; font-size: .7rem; font-style: normal; font-weight: 800; }
.xf-vod-card__note { right: 8px; bottom: 8px; min-height: 24px; max-width: calc(100% - 16px); overflow: hidden; padding: 2px 9px; border: 1px solid rgba(95, 143, 134, .5); border-radius: 999px; background: rgba(12, 9, 6, .72); color: var(--xf-ash); text-overflow: ellipsis; white-space: nowrap; }
.xf-vod-card__score { top: 0; left: 10px; bottom: auto; justify-content: center; min-width: 0; height: auto; padding: 4px 10px 7px; border-radius: 0 0 10px 10px; background: var(--xf-flame); color: #fff5ea; font-size: .76rem; letter-spacing: .01em; box-shadow: 0 5px 14px rgba(255, 106, 44, .4); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
.xf-vod-card__score::before { content: "\2605"; margin-right: 4px; font-size: .7rem; }
.xf-vod-card__body { position: relative; display: grid; padding-top: 12px; gap: 2px; }
.xf-vod-card__body::before { position: absolute; top: 0; left: 0; width: 100%; height: 2px; content: ""; border-radius: 2px; background: var(--xf-flame); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--xf-ease); }
.xf-vod-card h3 { margin: 0; overflow: hidden; font-family: var(--xf-display); font-size: .94rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.xf-vod-card p { margin: 0; overflow: hidden; color: var(--xf-text-muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
@keyframes xf-spark-rise { 0% { transform: translateY(8px); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }
@container (min-width: 700px) {
    .xf-vod-card h3 { font-size: 1rem; }
    .xf-vod-card__body { padding-top: 11px; }
}
.xf-home-channel { padding: clamp(20px, 2vw, 30px) 0; border-top: 1px solid var(--xf-line-soft); }
.xf-home-channel:first-child { padding-top: 0; border-top: 0; }
.xf-home-channel .xf-section__head { margin-bottom: clamp(15px, 1.8vw, 22px); }
.xf-home-channel .xf-section__head h2 { font-size: clamp(1.5rem, 2.35vw, 2.2rem); }
.xf-home-channel__body { display: grid; gap: 22px; }
.xf-mini-rank { align-self: start; padding: 18px; border-top: 2px solid var(--xf-accent); background: var(--xf-surface-1); }
.xf-mini-rank h3 { margin: 0 0 12px; font-family: var(--xf-display); font-size: 1.12rem; }
.xf-mini-rank ol { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; gap: 0; list-style: none; }
.xf-mini-rank li a { display: grid; min-height: 45px; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--xf-line-soft); }
.xf-mini-rank li span { color: var(--xf-accent-strong); font-family: Georgia, serif; font-size: .76rem; }
.xf-mini-rank li strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.xf-mini-rank li em { color: var(--xf-text-muted); font-size: .7rem; font-style: normal; }
.xf-home-journal__grid { display: grid; gap: 20px; }
.xf-home-journal__grid > a { display: grid; min-width: 0; gap: 12px; }
.xf-home-journal__pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--xf-radius-md); background: var(--xf-surface-2); }
.xf-home-journal__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--xf-ease); }
.xf-home-journal__copy { display: grid; gap: 6px; }
.xf-home-journal__copy em { color: var(--xf-accent-strong); font-size: .72rem; font-style: normal; }
.xf-home-journal__copy strong { font-family: var(--xf-display); font-size: 1.18rem; line-height: 1.35; }
.xf-home-journal__copy p { margin: 0; color: var(--xf-text-muted); display: -webkit-box; overflow: hidden; font-size: .83rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* 通用列表、筛选和分页 */
.xf-panel, .xf-filter, .xf-rank-card, .xf-art-side-card, .subsite-art-detail { border: 1px solid var(--xf-line-soft); background: var(--xf-surface-1); box-shadow: none; }
.xf-channel-page, .xf-catalog-page, .xf-search-page, .xf-latest-page, .xf-rank-page { min-height: 60vh; }
.xf-channel-page > .xf-section, .xf-catalog-page > .xf-section { padding-top: 10px; }
.xf-latest-page > .xf-section, .xf-rank-page > .xf-section { padding-top: 15px; }
.xf-channel-hero, .xf-search-hero, .xf-latest-hero, .xf-rank-hero { padding: clamp(32px, 6vw, 80px) 0 24px; border-bottom: 1px solid var(--xf-line-soft); background: var(--xf-bg-deep); }
.xf-rank-hero { padding-top: 15px; }
.xf-channel-hero h1, .xf-search-hero h1, .xf-latest-hero h1, .xf-rank-hero h1 { margin: 0; font-family: var(--xf-display); font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1.05; }
.xf-filter { margin-bottom: 24px; padding: 14px; border-radius: var(--xf-radius-md); }
.xf-filter__mobile-toggle { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 4px; border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.xf-filter__body { display: none; padding-top: 12px; }
.xf-filter.is-mobile-open .xf-filter__body { display: block; }
.xf-filter__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--xf-line-soft); }
.xf-filter__row strong { min-height: 36px; padding-top: 6px; color: var(--xf-text-muted); font-size: .76rem; }
.xf-filter__items { display: flex; min-width: 0; overflow-x: auto; flex-wrap: nowrap; gap: 5px; scrollbar-width: none; }
.xf-filter__items::-webkit-scrollbar { display: none; }
.xf-filter__items a { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; padding: 0 11px; border-radius: 999px; color: var(--xf-text-soft); font-size: .78rem; }
.xf-filter__items a:hover, .xf-filter__items a.active { background: var(--xf-accent); color: var(--xf-accent-ink); }
.xf-filter__toggle { min-height: 44px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--xf-line); border-radius: 999px; background: transparent; color: var(--xf-text-soft); cursor: pointer; }
.xf-catalog-toolbar { display: flex; min-height: 58px; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--xf-line-soft); }
.xf-catalog-toolbar h2 { margin: 0; font-family: var(--xf-display); font-size: 1.4rem; }
.xf-catalog-toolbar span { color: var(--xf-text-muted); font-size: .78rem; }
.xf-empty { padding: 64px 20px; text-align: center; }
.xf-pagination { display: flex; margin-top: 36px; justify-content: center; }
.xf-pagination__desktop, .xf-pagination__mobile { align-items: center; gap: 6px; }
.xf-pagination a, .xf-pagination span { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; padding: 0 10px; border: 1px solid var(--xf-line); border-radius: 9px; background: var(--xf-surface-1); }
.xf-pagination .active, .xf-pagination .current { border-color: var(--xf-accent); background: var(--xf-accent); color: var(--xf-accent-ink); }

/* 详情与播放 */
.xf-detail-page { width: 100%; max-width: 100%; overflow: clip; }
.xf-detail-hero { position: relative; isolation: isolate; width: 100%; max-width: 100%; padding: clamp(22px, 3vw, 44px) 0 32px; overflow: hidden; }
.xf-detail-hero__backdrop { position: absolute; inset: 0; z-index: -2; }
.xf-detail-hero__backdrop::after { position: absolute; inset: 0; background: linear-gradient(0deg, var(--xf-bg) 2%, rgba(21, 17, 13, .45) 64%, rgba(21, 17, 13, .8)), linear-gradient(90deg, rgba(21, 17, 13, .95), rgba(21, 17, 13, .2)); content: ""; }
.xf-detail-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76); }
.xf-detail-hero__grid { display: grid; min-width: 0; grid-template-areas: "poster body" "facts facts"; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; align-items: start; }
.xf-detail-poster { grid-area: poster; position: relative; min-width: 0; align-self: start; overflow: hidden; border-radius: 12px; }
.xf-detail-poster img { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; object-fit: cover; box-shadow: 0 24px 60px rgba(12, 8, 4, .45); }
.xf-detail-poster > span { position: absolute; top: auto; right: 6px; bottom: 6px; left: auto; padding: 3px 8px; border-radius: 999px; background: var(--xf-accent); color: var(--xf-accent-ink); font-family: Georgia, serif; font-weight: 700; }
.xf-detail-body { grid-area: body; display: block; min-width: 0; align-self: center; }
.xf-detail-main { min-width: 0; }
.xf-detail-type { color: var(--xf-accent-strong); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.xf-detail-heading { display: flex; min-width: 0; margin: 5px 0 9px; align-items: baseline; gap: 10px; }
.xf-detail-main h1 { min-width: 0; margin: 0; font-family: var(--xf-display); font-size: clamp(1.8rem, 6vw, 4.6rem); letter-spacing: -.045em; line-height: 1.02; }
.xf-detail-summary { display: flex; margin: -1px 0 12px; flex-wrap: wrap; gap: 6px 14px; color: var(--xf-text-soft); font-size: .82rem; }
.xf-detail-year, .xf-detail-origin { display: block; }
.xf-detail-year { flex: 0 0 auto; color: var(--xf-text-soft); font-size: 1rem; font-weight: 600; }
.xf-detail-year::before { content: "（"; }
.xf-detail-year::after { content: "）"; }
.xf-detail-main > p { margin: 0 0 16px; color: var(--xf-text-soft); display: -webkit-box; overflow: hidden; font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xf-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.xf-detail-facts { grid-area: facts; min-width: 0; padding: 16px 0 0; border-top: 1px solid rgba(244, 232, 214, .14); }
.xf-detail-facts dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; gap: 8px 12px; }
.xf-detail-facts dt { color: var(--xf-text-muted); font-size: .76rem; }
.xf-detail-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--xf-text-soft); font-size: .8rem; }
.xf-detail-facts dd a { color: var(--xf-text); }
.xf-detail-side { display: none; }
.xf-detail-page > .xf-section { padding: clamp(24px, 3vw, 46px) 0; }
.xf-shell.xf-detail-stack { width: min(calc(100% - (var(--xf-gutter) * 2)), var(--xf-shell)); }
.xf-detail-stack { display: grid; min-width: 0; max-width: 100%; gap: 18px; }
.xf-detail-stack > *, .xf-panel { width: 100%; min-width: 0; max-width: 100%; }
.xf-panel { padding: clamp(18px, 3vw, 30px); border-radius: var(--xf-radius-lg); }
.xf-panel h2 { margin: 0 0 16px; font-family: var(--xf-display); font-size: clamp(1.35rem, 4vw, 2rem); }
.xf-panel h3 { margin: 20px 0 10px; color: var(--xf-text-soft); font-size: .88rem; }
.xf-copy { width: 100%; min-width: 0; max-width: none; overflow-wrap: anywhere; color: var(--xf-text-soft); font-size: 1rem; line-height: 1.95; }
.xf-play-list { display: flex; flex-wrap: wrap; gap: 8px; }
.xf-play-list a { display: inline-flex; min-width: 56px; min-height: 42px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--xf-line); border-radius: 9px; background: var(--xf-surface-2); color: var(--xf-text-soft); }
.xf-play-list a:hover, .xf-play-list a.active { border-color: var(--xf-accent); background: var(--xf-accent); color: var(--xf-accent-ink); }
.xf-detail-recommend-rail { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 18px); }
.xf-detail-recommend-rail > * { min-width: 0; }
.xf-player-stage { padding: 12px 0 0; background: var(--xf-bg-deep); }
.xf-play-page > .xf-section { padding-top: 20px; }
.xf-player-layout { display: grid; gap: 14px; }
.xf-player-box { position: relative; width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0704; }
.xf-player-box iframe, .xf-player-box video { width: 100% !important; height: 100% !important; min-height: 0 !important; }
.xf-player-sidebar { border: 1px solid var(--xf-line-soft); background: var(--xf-surface-1); }
.xf-player-sidebar__head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--xf-line-soft); }
.xf-player-sidebar__head h2 { margin: 0; font-family: var(--xf-display); font-size: 1.15rem; }
.xf-player-sidebar__body { display: none; max-height: min(56vw, 620px); padding: 14px; overflow-y: auto; }
.xf-player-sidebar.is-open .xf-player-sidebar__body { display: block; }
.xf-episode-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--xf-accent-strong); cursor: pointer; }
.xf-now-playing { padding-block: 20px; border-top: 2px solid var(--xf-accent); }
.xf-now-playing h1 { margin: 0 0 10px; font-family: var(--xf-display); font-size: clamp(1.5rem, 4vw, 2.5rem); }
.xf-play-stack { display: grid; gap: 18px; }

/* 资讯编辑排版 */
.subsite-art-page, .subsite-art-detail-page { min-height: 65vh; }
.subsite-art-page .xf-art-layout, .subsite-art-detail-page .xf-art-layout { padding-top: 10px; }
.xf-art-page-head { padding: clamp(34px, 7vw, 86px) 0 24px; border-bottom: 1px solid var(--xf-line-soft); background: var(--xf-bg-deep); }
.xf-art-page-head h1 { margin: 0 0 20px; font-family: var(--xf-display); font-size: clamp(2.2rem, 7vw, 4.8rem); letter-spacing: -.05em; line-height: 1; }
.xf-art-page-head nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.xf-art-page-head nav::-webkit-scrollbar { display: none; }
.xf-art-page-head nav a { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; padding: 0 12px; border-bottom: 1px solid transparent; color: var(--xf-text-muted); font-size: .82rem; }
.xf-art-page-head nav a.active, .xf-art-page-head nav a:hover { border-color: var(--xf-accent); color: var(--xf-accent-strong); }
.xf-art-layout { display: grid; padding-block: clamp(28px, 5vw, 72px); gap: 28px; }
.xf-art-main { min-width: 0; }
.subsite-art-list .art-list { display: grid; margin: 0; padding: 0; gap: 0; list-style: none; }
.xf-art-card a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--xf-line-soft); border-radius: 0; background: transparent; }
.xf-art-card:first-child a { padding-top: 0; }
.xf-art-card__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: var(--xf-surface-2); }
.xf-art-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.xf-art-card__body { display: grid; min-width: 0; align-content: center; gap: 5px; }
.xf-art-card__body strong { font-family: var(--xf-display); font-size: 1rem; line-height: 1.4; white-space: normal; }
.xf-art-card__body em { color: var(--xf-accent-strong); font-size: .7rem; font-style: normal; }
.xf-art-card__body p { margin: 0; color: var(--xf-text-muted); display: -webkit-box; overflow: hidden; font-size: .78rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xf-art-sidebar { display: grid; align-self: start; gap: 16px; }
.xf-art-side-card { padding: 18px; border-radius: var(--xf-radius-md); }
.xf-art-side-card h2 { margin: 0 0 12px; font-family: var(--xf-display); font-size: 1.25rem; }
.xf-art-side-list { margin: 0; padding: 0; list-style: none; }
.xf-art-side-list li a { display: grid; min-height: 45px; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--xf-line-soft); }
.xf-art-side-list li span { color: var(--xf-accent-strong); font-family: Georgia, serif; }
.xf-art-side-list li strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.xf-art-side-list li em { color: var(--xf-text-muted); font-size: .68rem; font-style: normal; }
.subsite-art-detail { padding: 10px clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); border-radius: var(--xf-radius-lg); }
.subsite-art-detail__header { max-width: 760px; margin-inline: auto; }
.subsite-art-detail__header h1 { margin: 18px 0 12px; font-family: var(--xf-display); font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.045em; line-height: 1.13; }
.subsite-art-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subsite-art-nav a { min-height: 38px; flex: 0 0 auto; padding: 7px 11px; color: var(--xf-text-muted); }
.subsite-art-nav a.active, .subsite-art-nav a:hover { border-color: var(--xf-accent); background: var(--xf-accent); color: var(--xf-accent-ink); font-weight: 800; }
.subsite-art-detail__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--xf-text-muted); font-size: .76rem; }
.subsite-art-detail__content { max-width: none; margin: 36px 0 0; color: var(--xf-text-soft); font-size: 1rem; line-height: 2; }
.subsite-art-detail__content img { height: auto; border-radius: 8px; }
.subsite-art-detail__content h2, .subsite-art-detail__content h3 { color: var(--xf-text); font-family: var(--xf-display); }
.xf-art-neighbor, .xf-art-related { max-width: 760px; margin-inline: auto; }

/* 页脚与认证长尾 */
.xf-footer { position: relative; margin-top: clamp(28px, 6vw, 80px); background: radial-gradient(130% 150% at 50% -34%, rgba(194, 58, 30, .24), transparent 52%), linear-gradient(180deg, #1a130c, #0c0906); }
.xf-footer__hearth { position: relative; height: 30px; overflow: hidden; }
.xf-footer__flame { position: absolute; top: 1px; left: 50%; width: min(680px, 84%); height: 6px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(90deg, transparent, var(--xf-ember) 18%, var(--xf-accent) 50%, #ffb64a 74%, transparent); box-shadow: 0 0 24px rgba(255, 106, 44, .55); animation: xf-flame-flicker 3.4s ease-in-out infinite; }
.xf-footer__logs { position: absolute; right: 0; bottom: 0; left: 0; height: 22px; background: repeating-linear-gradient(102deg, #3a2415 0 24px, #271811 24px 48px); -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000); opacity: .72; }
.xf-footer__grid { display: grid; padding-block: 40px 30px; gap: 26px; }
.xf-footer__brand strong { display: block; margin: 0 0 10px; font-family: var(--xf-display); font-size: 1.9rem; background: var(--xf-flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xf-footer__brand p { max-width: 46ch; margin: 0; color: var(--xf-text-muted); font-size: .84rem; }
.xf-footer__links, .xf-footer__quick, .xf-footer__meta { display: grid; align-content: start; gap: 8px; color: var(--xf-text-muted); font-size: .8rem; }
.xf-footer__links strong, .xf-footer__quick strong, .xf-footer__meta strong { margin-bottom: 5px; color: var(--xf-accent-strong); font-size: .78rem; letter-spacing: .1em; }
.xf-footer__links a, .xf-footer__quick a { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; padding: 1px 10px; border: 1px solid var(--xf-line); border-radius: 999px; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--xf-ease); }
.xf-footer__links a:hover, .xf-footer__quick a:hover { border-color: var(--xf-accent); background: var(--xf-ember); color: #fff5ea; transform: translateX(3px); }
.xf-footer__meta a:hover { color: var(--xf-accent-strong); }
.xf-footer__bottom { border-top: 1px solid var(--xf-line-soft); }
.xf-footer__bottom .xf-shell { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; color: var(--xf-text-muted); font-size: .7rem; }
.xf-footer__top { display: grid; flex: 0 0 auto; width: 40px; height: 40px; margin-left: auto; place-items: center; border: 1px solid var(--xf-line); border-radius: 12px 12px 12px 2px; background: var(--xf-surface-1); color: var(--xf-accent-strong); transition: background .2s ease, color .2s ease, transform .2s var(--xf-ease); }
.xf-footer__top:hover { background: var(--xf-flame); color: #fff5ea; transform: translateY(-3px); }
@keyframes xf-flame-flicker { 0%, 100% { opacity: .82; transform: translateX(-50%) scaleY(1); } 50% { opacity: 1; transform: translateX(-50%) scaleY(1.4); } }
.xf-auth-page { min-height: 70vh; padding: clamp(24px, 6vw, 72px) 0; }
.xf-auth-shell { overflow: hidden; border: 1px solid var(--xf-line); border-radius: var(--xf-radius-xl); background: var(--xf-surface-1); }
.xf-auth-stage { background: var(--xf-bg-deep); }
.xf-auth-stage__copy h1, .xf-auth-panel h1 { font-family: var(--xf-display); }
.xf-auth-field input { border-color: var(--xf-line); background: var(--xf-surface-2); color: var(--xf-text); }
.xf-auth-submit, .xf-auth-send { min-height: 46px; border-radius: 999px; background: var(--xf-accent); color: var(--xf-accent-ink); font-weight: 800; }

@media (min-width: 480px) {
    .xf-vod-grid, .xf-card-grid, .xf-channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xf-home-journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xf-detail-hero__grid { grid-template-columns: 138px minmax(0, 1fr); }
    .xf-detail-recommend-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .xf-mobile-dock { display: none; }
    .xf-filter__mobile-toggle { display: none; }
    .xf-filter__body { display: block; padding-top: 0; }
    .xf-header__primary-inner { min-height: 72px; grid-template-columns: auto minmax(260px, 560px) auto; }
    .xf-search--header { display: flex; width: 100%; justify-self: center; }
    .xf-icon-action--rank { display: grid; }
    .xf-hero__slides { min-height: 440px; }
    .xf-hero__content { padding: 32px 30px 54px; }
    .xf-hero__controls { right: 30px; bottom: 24px; left: 38px; }
    .xf-vod-grid, .xf-card-grid, .xf-channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xf-trending__list { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); grid-template-rows: repeat(6, minmax(46px, auto)); gap: 0 24px; }
    .xf-trending__item:first-child { grid-row: 1 / 7; display: block; min-height: 360px; padding: 0; overflow: hidden; border: 0; border-radius: var(--xf-radius-lg); }
    .xf-trending__item:first-child .xf-trending__pic { position: absolute; inset: 0; display: block; }
    .xf-trending__item:first-child::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 4, .96), transparent 68%); content: ""; }
    .xf-trending__item:first-child .xf-trending__rank { position: absolute; top: 14px; left: 16px; z-index: 2; color: var(--xf-accent-strong); font-size: 1.8rem; }
    .xf-trending__item:first-child .xf-trending__copy { position: absolute; right: 20px; bottom: 18px; left: 20px; z-index: 2; }
    .xf-trending__item:first-child .xf-trending__copy strong { font-family: var(--xf-display); font-size: 1.5rem; }
    .xf-trending__item:first-child .xf-trending__score { position: absolute; right: 18px; bottom: 20px; z-index: 2; }
    .xf-trending__item:not(:first-child) { grid-column: 2; }
    .xf-detail-hero__grid { grid-template-areas: "poster body" "poster facts"; grid-template-columns: 220px minmax(0, 1fr); gap: 22px 34px; }
    .xf-detail-body { display: block; align-self: end; }
    .xf-detail-facts { grid-area: facts; padding-top: 18px; }
    .xf-detail-facts dl { grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; }
    .xf-detail-main > p { font-size: 1rem; -webkit-line-clamp: 3; }
    .xf-detail-recommend-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xf-art-card a { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 20px 0; }
    .xf-art-card__body strong { font-size: 1.3rem; }
    .xf-art-card__body p { font-size: .86rem; }
    .subsite-art-list .art-list > .xf-art-card:first-child a { grid-template-columns: 1fr; padding-bottom: 28px; }
    .subsite-art-list .art-list > .xf-art-card:first-child .xf-art-card__pic { aspect-ratio: 16 / 7; border-radius: var(--xf-radius-lg); }
    .subsite-art-list .art-list > .xf-art-card:first-child .xf-art-card__body strong { font-size: clamp(1.65rem, 3vw, 2.35rem); }
    .xf-footer__grid { grid-template-columns: minmax(0, 1.7fr) minmax(150px, .8fr) minmax(130px, .6fr) minmax(190px, .7fr); padding-block: 64px 46px; }
}

@media (min-width: 1024px) {
    .xf-header__primary-inner { min-height: 76px; }
    .xf-menu-btn, .xf-nav__drawer-head, .xf-search--drawer, .xf-drawer-backdrop { display: none; }
    .xf-header__channels { height: 48px; border-top: 1px solid var(--xf-line-soft); }
    .xf-nav { position: static; display: flex; width: 100%; height: 100%; padding: 0; overflow: visible; flex-direction: row; align-items: center; gap: 1px; border: 0; background: transparent; box-shadow: none; transform: none; visibility: visible; }
    .xf-nav > a, .xf-nav__link { min-height: 47px; padding: 0 13px; border-radius: 0; font-size: .82rem; }
    .xf-nav > a.active, .xf-nav > a:hover, .xf-nav__item.is-active .xf-nav__link { background: transparent; box-shadow: inset 0 -2px var(--xf-accent); }
    .xf-nav__row { height: 48px; }
    .xf-nav__toggle { width: 28px; height: 44px; flex-basis: 28px; }
    .xf-nav__toggle svg { width: .9em; height: .9em; transform: rotate(90deg); }
    .xf-nav__item { position: relative; }
    .xf-nav__dropdown { position: absolute; top: calc(100% - 1px); left: 0; display: grid; width: 260px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; border: 1px solid var(--xf-line); border-radius: 0 0 12px 12px; background: var(--xf-surface-1); box-shadow: var(--xf-shadow-lg); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .25s var(--xf-ease); }
    .xf-nav__item:hover .xf-nav__dropdown, .xf-nav__item:focus-within .xf-nav__dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .xf-nav__divider { width: 1px; height: 20px; margin: 0 8px; }
    .xf-hero__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
    .xf-hero__stage, .xf-hero__queue { min-height: 460px; }
    .xf-hero__slides { min-height: 458px; }
    .xf-hero__queue { display: flex; flex-direction: column; padding: 16px; }
    .xf-hero__queue-list { display: grid; overflow: visible; flex: 1; gap: 5px; }
    .xf-hero__queue-item { min-width: 0; min-height: 0; grid-template-columns: 28px 58px minmax(0, 1fr); }
    .xf-hero__queue-pic { height: 66px; }
    .xf-vod-grid, .xf-card-grid, .xf-channel-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xf-home-channel__body { grid-template-columns: minmax(0, 1fr) 300px; }
    .xf-home-journal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xf-detail-facts dl { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 10px 20px; }
    .xf-detail-recommend-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .xf-player-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
    .xf-player-sidebar { position: relative; min-height: 0; overflow: hidden; }
    .xf-player-sidebar__head { position: absolute; top: 0; right: 0; left: 0; min-height: 62px; }
    .xf-player-sidebar__body { position: absolute; top: 62px; right: 0; bottom: 0; left: 0; display: block; min-height: 0; max-height: none; overflow-y: auto; }
    .xf-episode-toggle { display: none; }
    .xf-art-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
    .xf-art-sidebar { position: sticky; top: 148px; }
}

@media (min-width: 1280px) {
    .xf-brand__logo { max-width: 180px; }
    .xf-brand__copy strong { max-width: 190px; font-size: 1.12rem; }
    .xf-nav > a, .xf-nav__link { padding-inline: 17px; }
    .xf-hero__layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .xf-vod-grid, .xf-card-grid, .xf-channel-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xf-vod-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xf-home-channel__body { grid-template-columns: minmax(0, 1fr) 320px; }
    .xf-player-layout { grid-template-columns: minmax(0, 1fr) 380px; }
    .xf-detail-hero__grid { grid-template-columns: 280px minmax(0, 1fr); column-gap: 46px; }
}

@media (max-width: 1023.98px) {
    .xf-header { overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .xf-header__channels, .xf-header__channels-inner { height: 0; }
    .xf-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 92;
        display: flex;
        width: min(88vw, 380px);
        min-width: 0;
        max-height: none;
        margin: 0;
        padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        border: 0;
        border-left: 1px solid var(--xf-line);
        border-radius: 0;
        background: var(--xf-bg-deep);
        box-shadow: -30px 0 80px rgba(12, 8, 4, .5);
        transform: translate3d(105%, 0, 0);
        visibility: hidden;
        pointer-events: none;
    }
    .xf-nav.is-open {
        display: flex;
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }
    .xf-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 79;
        width: 100vw;
        height: 100dvh;
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 767.98px) {
    .xf-hero { padding-top: 12px; }
    .xf-hero__layout { gap: 0; }
    .xf-hero__stage { min-height: 0; border-radius: 16px; }
    .xf-hero__slides { height: clamp(290px, 78vw, 380px); min-height: 0; }
    .xf-hero__queue { display: none; }
    .xf-hero__content { padding: 22px 16px 64px; }
    .xf-hero h1 { max-width: 12ch; margin: 0 0 10px; font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1; }
    .xf-hero__content > p { display: none; }
    .xf-meta { margin-bottom: 14px; gap: 5px; }
    .xf-meta span, .xf-meta a, .xf-meta strong { min-height: 26px; padding-inline: 8px; font-size: .72rem; }
    .xf-hero__actions { gap: 7px; }
    .xf-btn { min-height: 42px; padding-inline: 14px; }
    .xf-hero__controls { right: 14px; bottom: 12px; left: 16px; gap: 10px; }
    .xf-hero__arrows button { width: 40px; height: 40px; }
    .xf-channel-rail .xf-shell { min-height: 70px; }
    .xf-channel-rail__track { gap: 10px; padding-block: 9px; }
    .xf-channel-rail a { width: max-content; min-width: 0; min-height: 50px; flex: 0 0 auto; justify-content: flex-start; gap: 8px; padding-inline: 12px; white-space: nowrap; }
    .xf-detail-page > .xf-section { padding: 18px 0 28px; }
    .xf-detail-hero { padding: 20px 0 24px; }
    .xf-detail-hero__grid { gap: 16px 14px; }
    .xf-detail-body { align-self: start; }
    .xf-detail-main { display: grid; align-content: start; gap: 6px; }
    .xf-detail-type { width: max-content; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 1.4; }
    .xf-detail-heading { display: contents; }
    .xf-detail-main h1 { margin: 0; font-size: clamp(1.65rem, 7vw, 2.15rem); line-height: 1.08; }
    .xf-detail-year { font-size: .95rem; line-height: 1.45; }
    .xf-detail-year::before, .xf-detail-year::after { content: none; }
    .xf-detail-summary { display: grid; margin: 0; gap: 3px; font-size: .92rem; line-height: 1.45; }
    .xf-detail-main > p { display: none; }
    .xf-detail-facts dl { grid-template-columns: minmax(68px, max-content) minmax(0, 1fr); gap: 8px 10px; }
    .xf-detail-stack { gap: 14px; }
    .xf-detail-stack .xf-panel { overflow: hidden; padding: 16px; border-radius: 14px; }
    .xf-detail-stack .xf-panel h2 { margin-bottom: 13px; font-size: 1.35rem; }
    .xf-source-panel h2 > span:last-child { min-width: 0; overflow-wrap: anywhere; }
    .xf-copy { font-size: .94rem; line-height: 1.8; }
}

@media (max-width: 420px) {
    .xf-hero__slides { height: 300px; }
    .xf-hero__content { padding-right: 12px; padding-left: 12px; }
    .xf-hero__actions .xf-btn--ghost { display: none; }
}

@media (hover: hover) and (pointer: fine) {
    .xf-vod-card:hover .xf-vod-card__pic { box-shadow: inset 0 0 0 1px rgba(255, 106, 44, .5), 0 12px 30px rgba(194, 58, 30, .28); }
    .xf-vod-card:hover .xf-vod-card__pic::before { animation: xf-spark-rise 1.5s ease-in-out infinite; opacity: 1; }
    .xf-vod-card:hover .xf-vod-card__body::before { transform: scaleX(1); }
    .xf-vod-card:hover .xf-vod-card__pic img { transform: scale(1.04); filter: saturate(1.08) brightness(1.04); }
    .xf-vod-card:hover h3, .xf-home-journal__grid > a:hover strong { color: var(--xf-accent-strong); }
    .xf-home-journal__grid > a:hover img, .xf-trending__item:hover .xf-trending__pic img { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* WB-ART-INDENT-20260914 */
/* 资讯正文排版：每个段落首行缩进两个中文字符（2em 即两个汉字宽度） */
.subsite-art-detail__content p {
    text-indent: 2em;
}
/* 纯媒体段落不缩进，避免图片/视频被右推 */
.subsite-art-detail__content p:has(> img:only-child),
.subsite-art-detail__content p:has(> a:only-child),
.subsite-art-detail__content p:has(> iframe:only-child),
.subsite-art-detail__content p:has(> video:only-child) {
    text-indent: 0;
}
