/* ==========================================================================
   Fangfang · deck（结构层：令牌 / 布局 / 通用组件）
   --------------------------------------------------------------------------
   设计语系：倒带回放（VHS）—— 说明书米纸底 + 磁带黑卡片 + 录像红点缀。
   只放「全站复用」的东西：容器、按钮、标签、序号牌、录像机顶栏、区块头、
   磁带卡、行式条目、面包屑、分页、片尾字幕页脚。
   类名族：ff- = 结构组件；ffm- = 页面版式（见 ff-screens.css）。
   ========================================================================== */

:root {
    /* ---- 说明书米纸与磁带墨 ---------------------------------------------- */
    --ff-paper: #eae2d3;          /* 页面底：录像带说明书米灰 */
    --ff-paper-2: #e0d6c3;        /* 层叠底：页脚前段 / 深色区域的浅缘 */
    --ff-surface: #faf5e9;        /* 卡面：录像带标签纸 */
    --ff-surface-2: #f1e9d8;      /* 次级面：标签底 / 表头 / 输入框 */
    --ff-surface-3: #d8cebb;      /* 图占位 / 骨架 */
    --ff-ink: #1c1915;            /* 磁带黑 */
    --ff-ink-2: #555047;
    --ff-ink-3: #8b8273;
    --ff-line: #ded4c1;           /* 1px 分隔线：纸纤维 */
    --ff-line-2: #c4b79d;         /* 强线（输入框 / 表头） */

    /* ---- 磁带壳（主色，替换旧 navy 令牌，值已换） ------------------------- */
    --ff-navy: #24211b;
    --ff-navy-d: #3d372e;
    --ff-navy-ink: #f8f1e2;
    --ff-navy-s: rgba(36, 33, 27, .08);
    --ff-navy-s2: rgba(36, 33, 27, .16);

    /* ---- 录像红（点缀：当前态 / 评分 / 主行动） --------------------------- */
    --ff-orange: #c0442d;
    --ff-orange-d: #9e3420;
    --ff-orange-ink: #fff7ec;
    --ff-orange-s: rgba(192, 68, 45, .12);

    /* ---- 荧光屏绿（只用于「放映中 / 在线」指示，不做大面积填充） ---------- */
    --ff-screen: #3f8f71;
    --ff-screen-ink: #7fd0ae;
    --ff-screen-s: rgba(63, 143, 113, .16);

    /* 提示态：不引进第三种彩色 */
    --ff-warn-s: rgba(192, 68, 45, .14);
    --ff-danger: #9e3420;
    --ff-danger-s: rgba(158, 52, 32, .09);

    /* 磁带色带：卡顶 / 选中态共用的三色条 */
    --ff-snowline: linear-gradient(90deg, #24211b 0%, #c0442d 52%, #24211b 100%);
    --ff-tape-edge: repeating-linear-gradient(90deg, rgba(28, 25, 21, .22) 0 6px, rgba(28, 25, 21, 0) 6px 12px);

    /* ---- 字号（最大标题 24px：沿用需求方硬约束「不能超大字号」） ---------- */
    --ff-fs-2xs: 11px;
    --ff-fs-xs: 12px;
    --ff-fs-sm: 13px;
    --ff-fs-base: 14px;
    --ff-fs-md: 15px;
    --ff-fs-lg: 17px;
    --ff-fs-xl: 19px;
    --ff-fs-h1: 22px;
    --ff-fs-max: 24px;
    --ff-lh: 1.6;
    --ff-lh-tight: 1.3;

    /* ---- 字体：正文一套无衬线；标签 / 计数走等宽 ------------------------- */
    --ff-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --ff-mono: "Cascadia Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    /* ---- 容器与间距（紧凑是身份，不要放大） ------------------------------ */
    --ff-shell: 1340px;
    --ff-gutter: clamp(12px, 1.5vw, 20px);
    --ff-gap: 14px;
    --ff-gap-xs: 8px;
    --ff-pad: clamp(12px, 1.1vw, 16px);

    /* ---- 圆角：磁带壳上圆下平（壳顶 9px，落架边 3px） -------------------- */
    --ff-r-xs: 2px;
    --ff-r-sm: 3px;
    --ff-r-md: 6px;
    --ff-r-lg: 10px;
    --ff-r-drift: 9px 9px 3px 3px;
    --ff-r-pill: 999px;

    /* ---- 阴影：纸面轻影 + 磁带壳压边 ------------------------------------- */
    --ff-sh-1: 0 1px 2px rgba(28, 25, 21, .06);
    --ff-sh-2: 0 12px 26px -16px rgba(28, 25, 21, .58), 0 0 0 1px rgba(28, 25, 21, .12);
    --ff-sh-tape: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(28, 25, 21, .22);

    --ff-ease: cubic-bezier(.22, .61, .36, 1);
    --ff-t: .18s;

    --ff-header-h: 60px;
    --ff-anchor-offset: 74px;

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   1. 容器
   -------------------------------------------------------------------------- */
.ff-shell {
    width: 100%;
    max-width: var(--ff-shell);
    margin-inline: auto;
    padding-inline: var(--ff-gutter);
}
.ff-main { padding-block: var(--ff-gap); min-height: 45vh; }
.ff-main > .ff-shell > * + * { margin-top: var(--ff-gap); }

/* --------------------------------------------------------------------------
   2. 按钮 / 标签 / 序号牌
   -------------------------------------------------------------------------- */
.ff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 15px;
    border-radius: var(--ff-r-sm);
    background: var(--ff-navy);
    color: var(--ff-navy-ink);
    font-size: var(--ff-fs-base);
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: var(--ff-sh-tape);
    transition: background var(--ff-t) var(--ff-ease), color var(--ff-t) var(--ff-ease), border-color var(--ff-t) var(--ff-ease);
}
.ff-btn:hover { background: var(--ff-orange); color: var(--ff-orange-ink); }
.ff-btn svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.ff-btn--orange { background: var(--ff-orange); color: var(--ff-orange-ink); }
.ff-btn--orange:hover { background: var(--ff-orange-d); }
.ff-btn--ghost {
    background: var(--ff-surface);
    color: var(--ff-ink);
    border: 1px solid var(--ff-line-2);
    box-shadow: none;
}
.ff-btn--ghost:hover { border-color: var(--ff-orange); color: var(--ff-orange); background: var(--ff-orange-s); }
.ff-btn--sm { height: 28px; padding: 0 11px; font-size: var(--ff-fs-sm); }

/* 标签：做成录像带贴纸的样子（直角、等宽、字距略松） */
.ff-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--ff-r-sm);
    background: var(--ff-surface-2);
    border: 1px solid var(--ff-line);
    color: var(--ff-ink-2);
    font-size: var(--ff-fs-sm);
    line-height: 1;
    white-space: nowrap;
    transition: background var(--ff-t) var(--ff-ease), color var(--ff-t) var(--ff-ease), border-color var(--ff-t) var(--ff-ease);
}
.ff-chip:hover { border-color: var(--ff-orange); color: var(--ff-orange); background: var(--ff-orange-s); }
.ff-chip.is-active {
    background: var(--ff-navy);
    border-color: var(--ff-navy);
    color: var(--ff-navy-ink);
    font-weight: 700;
}
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 序号牌：录像带计数窗（红底米字，等宽数字） */
.ff-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--ff-r-xs);
    background: var(--ff-orange);
    color: var(--ff-orange-ink);
    font: 700 var(--ff-fs-2xs)/1 var(--ff-mono);
    letter-spacing: .08em;
}
.ff-index--fill { background: var(--ff-navy); color: var(--ff-navy-ink); }
.ff-index--orange { background: var(--ff-surface-2); color: var(--ff-orange); border: 1px solid var(--ff-line-2); }

/* --------------------------------------------------------------------------
   3. 顶栏（录像机面板：磁带黑底 + 录像红指示）
   -------------------------------------------------------------------------- */
.ff-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #1b1814;
    border-bottom: 1px solid #322c24;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.ff-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(192, 68, 45, .1), #c0442d 34%, #efe4cd 50%, #c0442d 66%, rgba(192, 68, 45, .1));
    opacity: .9;
    pointer-events: none;
}
.ff-header__bar {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    height: var(--ff-header-h);
}
.ff-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}
/* 品牌记号：一枚小录像带（双卷盘 + 红标签条） */
.ff-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 23px;
    border-radius: var(--ff-r-sm);
    border: 1px solid #c9bda5;
    border-bottom: 4px solid var(--ff-orange);
    background-color: #efe4cd;
    background-image:
        radial-gradient(circle at 28% 44%, #1b1814 3.1px, rgba(27, 24, 20, 0) 3.6px),
        radial-gradient(circle at 72% 44%, #1b1814 3.1px, rgba(27, 24, 20, 0) 3.6px);
    color: transparent;
    font-size: 0;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.ff-brand__name {
    font-size: var(--ff-fs-lg);
    font-weight: 800;
    letter-spacing: .05em;
    color: #f3e9d6;
    white-space: nowrap;
}
.ff-header__nav { flex: 1 1 auto; min-width: 0; }

.ff-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: var(--ff-header-h);
}
.ff-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.ff-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding: 0 11px;
    font-size: var(--ff-fs-md);
    font-weight: 600;
    color: #d6cbb8;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--ff-t) var(--ff-ease), border-color var(--ff-t) var(--ff-ease), background var(--ff-t) var(--ff-ease);
}
.ff-nav__link:hover { color: #fff4e2; background: rgba(255, 255, 255, .06); }
.ff-nav__link.is-active { color: #fff4e2; border-bottom-color: var(--ff-orange); }
.ff-nav__caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ff-nav__item:hover .ff-nav__caret,
.ff-nav__item:focus-within .ff-nav__caret { transform: rotate(180deg); }

/* 子分类浮层：悬停 / 键盘聚焦展开（触发条目必须 relative，否则会认到 sticky 顶栏） */
.ff-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 70;
    width: max-content;
    max-width: 460px;
    padding: 7px;
    background: var(--ff-surface);
    border: 1px solid var(--ff-line-2);
    border-top: 2px solid var(--ff-orange);
    border-radius: 0 0 var(--ff-r-sm) var(--ff-r-sm);
    box-shadow: var(--ff-sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--ff-t) var(--ff-ease), transform var(--ff-t) var(--ff-ease), visibility var(--ff-t);
}
.ff-nav__item:hover > .ff-nav__sub,
.ff-nav__item:focus-within > .ff-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.ff-nav__sub nav { display: flex; flex-wrap: wrap; gap: 3px; max-width: 448px; }
.ff-nav__sub a {
    padding: 5px 9px;
    border-radius: var(--ff-r-xs);
    font-size: var(--ff-fs-sm);
    color: var(--ff-ink-2);
    white-space: nowrap;
}
.ff-nav__sub a:hover { background: var(--ff-orange-s); color: var(--ff-orange); }
.ff-nav__sub a.is-active { background: var(--ff-navy); color: var(--ff-navy-ink); font-weight: 600; }

.ff-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.ff-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    background: #2a251e;
    border: 1px solid #3d362c;
    border-radius: var(--ff-r-sm);
    transition: border-color var(--ff-t) var(--ff-ease), background var(--ff-t) var(--ff-ease);
}
.ff-search:focus-within { border-color: var(--ff-orange); background: #322c24; }
.ff-search svg { width: 14px; height: 14px; fill: none; stroke: #a99c86; stroke-width: 2; flex: 0 0 auto; }
.ff-search input {
    width: 168px;
    border: 0;
    background: none;
    outline: none;
    font-size: var(--ff-fs-sm);
    color: #f2e8d5;
}
.ff-search input::placeholder { color: #948873; }
.ff-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--ff-r-sm);
    color: #cbbfab;
    transition: background var(--ff-t) var(--ff-ease), color var(--ff-t) var(--ff-ease);
}
.ff-iconbtn:hover { background: rgba(255, 255, 255, .08); color: var(--ff-orange-ink); }
.ff-iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ff-header__burger { display: none; }

/* 浅底页面里的搜索框（搜索页大框） */
.ffm-searchbox .ff-search,
.ff-search--light {
    background: var(--ff-surface-2);
    border-color: var(--ff-line-2);
}
.ffm-searchbox .ff-search svg,
.ff-search--light svg { stroke: var(--ff-ink-3); }
.ffm-searchbox .ff-search input,
.ff-search--light input { color: var(--ff-ink); }
.ffm-searchbox .ff-search input::placeholder,
.ff-search--light input::placeholder { color: var(--ff-ink-3); }

/* 窄屏抽屉：仍是标签纸浅色 */
.ff-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 17, 13, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ff-t) var(--ff-ease), visibility var(--ff-t);
}
.ff-drawer.is-open { opacity: 1; visibility: visible; }
.ff-drawer__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(88vw, 340px);
    background: var(--ff-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .24s var(--ff-ease);
    border-left: 3px solid var(--ff-orange);
}
.ff-drawer.is-open .ff-drawer__panel { transform: translateX(0); }
.ff-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #1b1814;
    color: #f3e9d6;
}
.ff-drawer__head strong { font-size: var(--ff-fs-md); letter-spacing: .04em; }
.ff-drawer__head .ff-iconbtn { color: #d6cbb8; }
.ff-drawer__search { padding: 10px 14px; border-bottom: 1px solid var(--ff-line); }
.ff-drawer__search .ff-search { width: 100%; background: var(--ff-surface-2); border-color: var(--ff-line-2); }
.ff-drawer__search .ff-search input { width: 100%; color: var(--ff-ink); }
.ff-drawer__search .ff-search svg { stroke: var(--ff-ink-3); }
.ff-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px 20px; }
.ff-drawer__body .ff-nav { display: block; height: auto; }
.ff-drawer__body .ff-nav__item { display: block; height: auto; }
.ff-drawer__body .ff-nav__link {
    height: auto;
    padding: 10px 2px;
    border-bottom: 1px solid var(--ff-line);
    font-size: var(--ff-fs-md);
    color: var(--ff-ink);
}
.ff-drawer__body .ff-nav__link.is-active { border-bottom-color: var(--ff-line); color: var(--ff-orange); }
.ff-drawer__body .ff-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    max-width: none;
    padding: 4px 0 8px;
    border: 0;
    box-shadow: none;
    background: none;
}
.ff-drawer__body .ff-nav__sub nav { max-width: none; gap: 4px; }
.ff-drawer__body .ff-nav__caret { display: none; }

/* --------------------------------------------------------------------------
   4. 页面头（面包屑条：录像带标签纸）
   -------------------------------------------------------------------------- */
.ff-pagehead {
    background: var(--ff-surface);
    border: 1px solid var(--ff-line);
    border-left: 4px solid var(--ff-orange);
    border-radius: var(--ff-r-sm);
    padding: 9px var(--ff-pad);
    box-shadow: var(--ff-sh-1);
}
.ff-pagebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ff-pagebar__side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ff-pagebar__hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--ff-fs-xs);
    color: var(--ff-ink-3);
}
.ff-pagebar__hint b { color: var(--ff-orange); font-weight: 700; }
.ff-pagebar__hint i { font-style: normal; color: var(--ff-line-2); }

.ff-crumb {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: var(--ff-fs-xs);
    color: var(--ff-ink-3);
    min-width: 0;
}
.ff-crumb a { color: var(--ff-ink-2); }
.ff-crumb a:hover { color: var(--ff-orange); text-decoration: underline; text-underline-offset: 2px; }
.ff-crumb svg { width: 11px; height: 11px; fill: none; stroke: var(--ff-line-2); stroke-width: 2.4; flex: 0 0 auto; }
.ff-crumb [aria-current="page"] { color: var(--ff-ink); font-weight: 600; }

/* 通用小页码标记（「SIDE A」这类英文小标） */
.ff-kicker {
    font: 700 var(--ff-fs-2xs)/1.4 var(--ff-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ff-orange);
}

/* --------------------------------------------------------------------------
   5. 区块（section）与区块头
   ⚠️ 区块头旁边**不放**解释性说明文字，只保留「编号 + 标题 + 可选的 更多 → 」。
   -------------------------------------------------------------------------- */
.ff-sec {
    background: var(--ff-surface);
    border: 1px solid var(--ff-line);
    border-top: 2px solid var(--ff-ink);
    border-radius: var(--ff-r-sm);
    padding: var(--ff-pad);
    box-shadow: var(--ff-sh-1);
}
.ff-sec--flush { padding: 0; overflow: hidden; }
.ff-sec__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--ff-line-2);
}
.ff-sec--flush .ff-sec__head { margin: 0; padding: 10px var(--ff-pad); border-bottom: 1px solid var(--ff-line); }
.ff-sec__head h2 { font-size: var(--ff-fs-lg); letter-spacing: -.01em; }
.ff-sec__head h2 a:hover { color: var(--ff-orange); }
.ff-sec__more {
    margin-left: auto;
    font-size: var(--ff-fs-xs);
    color: var(--ff-orange);
    white-space: nowrap;
}
.ff-sec__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.ff-panel {
    background: var(--ff-surface);
    border: 1px solid var(--ff-line);
    border-radius: var(--ff-r-sm);
    padding: var(--ff-pad);
}

/* --------------------------------------------------------------------------
   6. 磁带卡（首页楼层 / 频道 / 筛选 / 搜索 / 详情推荐 全站共用）
   -------------------------------------------------------------------------- */
.ff-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.ff-grid--list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 磁带壳：深色壳体包住海报，底部是米色标签纸 */
.ff-card {
    position: relative;
    background: #262219;
    border: 1px solid #15120e;
    border-radius: var(--ff-r-drift);
    padding: 5px 5px 6px;
    overflow: hidden;
    box-shadow: var(--ff-sh-tape);
    transition: border-color var(--ff-t) var(--ff-ease), box-shadow var(--ff-t) var(--ff-ease), background var(--ff-t) var(--ff-ease);
}
/* 卡顶磁带色带（默认就有一道细的，悬停变亮） */
.ff-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 3;
    background: var(--ff-snowline);
    opacity: .5;
    transition: opacity var(--ff-t) var(--ff-ease);
}
/* 悬停 OSD：录像机屏显「PLAY ▶」 */
.ff-card::after {
    content: "PLAY \25B6";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 2px 6px;
    border-radius: var(--ff-r-xs);
    background: rgba(20, 17, 13, .72);
    color: #f5ecd8;
    font: 700 9px/1.5 var(--ff-mono);
    letter-spacing: .12em;
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
    transition: opacity var(--ff-t) var(--ff-ease), transform var(--ff-t) var(--ff-ease);
}
.ff-card:hover { border-color: rgba(192, 68, 45, .72); box-shadow: 0 14px 26px -16px rgba(28, 25, 21, .7), 0 0 0 1px rgba(192, 68, 45, .22); }
.ff-card:hover::before { opacity: 1; }
.ff-card:hover::after { opacity: 1; transform: translateY(0); }
.ff-card > a { display: block; }
.ff-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background-color: #1b1814;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.ff-card__pic img { width: 100%; height: 100%; object-fit: cover; }
/* 磁迹干扰：一道极细的横向扫描纹与轻微提亮，只改 opacity / background-position */
.ff-card__pic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
        linear-gradient(180deg, rgba(192, 68, 45, 0) 55%, rgba(192, 68, 45, .22) 100%);
    background-size: 100% 100%, 100% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ff-ease);
}
.ff-card:hover .ff-card__pic::after { opacity: .55; }
/* 角标预算 = 2 个：左上「评分贴纸」+ 右下「状态标签」 */
.ff-card__score {
    position: absolute;
    left: 6px;
    top: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: var(--ff-r-xs);
    background: #f7efdd;
    border: 1px solid rgba(28, 25, 21, .35);
    box-shadow: 1px 1px 0 rgba(28, 25, 21, .35);
    color: var(--ff-orange-d);
    font: 700 var(--ff-fs-2xs)/1.5 var(--ff-mono);
    transform: rotate(-2deg);
}
.ff-card__score i { font-style: normal; font-size: 9px; opacity: .7; margin-left: 1px; }
.ff-card__note {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 2px 7px;
    border-radius: var(--ff-r-xs);
    background: var(--ff-orange);
    color: var(--ff-orange-ink);
    font-size: var(--ff-fs-2xs);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(28, 25, 21, .3);
}
/* ⚠️ 必须显式 block：这是 span（inline）装 h3/p（块级）的结构 */
.ff-card__body {
    display: block;
    padding: 7px 8px 9px;
    background: #f8f2e4;
    border-top: 1px solid #d9cebb;
    box-shadow: inset 0 1px 0 #fffdf7;
}
.ff-card__body h3 {
    font-size: var(--ff-fs-sm);
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ff-card:hover .ff-card__body h3 { color: var(--ff-orange); }
/* 元信息前挂一个红色小方点，像标签上的打孔记号 */
.ff-card__meta {
    margin-top: 4px;
    font-size: var(--ff-fs-2xs);
    color: var(--ff-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ff-card__meta::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    background: var(--ff-orange);
    vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   7. 行式榜 / 行式条目（文本密度主力）
   -------------------------------------------------------------------------- */
.ff-rows li + li { border-top: 1px dashed var(--ff-line); }
.ff-rows a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    font-size: var(--ff-fs-sm);
}
.ff-rows a:hover { color: var(--ff-orange); }
.ff-num {
    flex: 0 0 auto;
    width: 20px;
    font: 600 var(--ff-fs-xs)/1 var(--ff-mono);
    color: var(--ff-ink-3);
    text-align: right;
}
.ff-rows li:nth-child(-n+3) .ff-num { color: var(--ff-orange); }
.ff-rows a > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ff-rows em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: var(--ff-fs-2xs);
    color: var(--ff-ink-3);
}

/* 缩略图 + 文字的行（侧栏 / 相关推荐 / 资讯） */
.ff-vrow {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
}
.ff-vrow + .ff-vrow { border-top: 1px dashed var(--ff-line); }
.ff-vrow__pic {
    flex: 0 0 auto;
    width: 46px;
    aspect-ratio: 2 / 3;
    border-radius: var(--ff-r-xs);
    overflow: hidden;
    background-color: var(--ff-surface-3);
    border: 2px solid #262219;
}
.ff-vrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.ff-vrow__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ff-vrow__copy b {
    font-size: var(--ff-fs-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ff-vrow:hover .ff-vrow__copy b { color: var(--ff-orange); }
.ff-vrow__copy i { font-style: normal; font-size: var(--ff-fs-2xs); color: var(--ff-ink-3); }

/* 大信息行（频道页 / 搜索结果：标题 + 元信息 + 摘要） */
.ff-linerow {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}
.ff-linerow + .ff-linerow { border-top: 1px solid var(--ff-line); }
.ff-linerow__pic {
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: var(--ff-r-xs);
    overflow: hidden;
    background-color: #262219;
    border: 3px solid #262219;
    box-shadow: var(--ff-sh-tape);
}
.ff-linerow__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.ff-linerow__copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ff-linerow__copy b { font-size: var(--ff-fs-md); font-weight: 700; }
.ff-linerow__copy b a:hover { color: var(--ff-orange); }
.ff-linerow__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: var(--ff-fs-xs);
    color: var(--ff-ink-3);
}
.ff-linerow__meta a { color: var(--ff-orange); }
.ff-linerow__meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ff-linerow__meta em {
    font-style: normal;
    color: var(--ff-orange-ink);
    background: var(--ff-orange);
    padding: 0 5px;
    border-radius: var(--ff-r-xs);
    font-size: var(--ff-fs-2xs);
    line-height: 1.7;
}
/* 摘要前用一条红竖线压头，像录像带上贴的手写标签 */
.ff-linerow__copy p {
    font-size: var(--ff-fs-sm);
    line-height: 1.68;
    color: var(--ff-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ff-linerow__cast {
    font-size: var(--ff-fs-xs);
    color: var(--ff-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. 资料表（详情页资料带 / 播放页本片信息）
   -------------------------------------------------------------------------- */
.ff-facts { display: grid; gap: 4px 14px; }
.ff-facts > div { display: flex; gap: 8px; min-width: 0; }
.ff-facts dt {
    flex: 0 0 auto;
    width: 52px;
    color: var(--ff-ink-3);
    font-size: var(--ff-fs-xs);
    line-height: 1.7;
}
.ff-facts dd {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--ff-fs-sm);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.ff-facts--inline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 18px;
}
.ff-facts--inline > div { border-right: 1px dashed var(--ff-line); padding-right: 12px; }
.ff-facts--inline > div:last-child { border-right: 0; }

/* --------------------------------------------------------------------------
   9. 统计条 / 分页 / 空态
   -------------------------------------------------------------------------- */
.ff-resultbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 2px;
    font-size: var(--ff-fs-xs);
    color: var(--ff-ink-3);
}
.ff-resultbar b { color: var(--ff-orange); font: 700 var(--ff-fs-sm)/1 var(--ff-mono); }

.ff-pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ff-line);
}
.ff-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--ff-line-2);
    border-radius: var(--ff-r-xs);
    font-size: var(--ff-fs-sm);
    color: var(--ff-ink-2);
    transition: background var(--ff-t) var(--ff-ease), color var(--ff-t) var(--ff-ease), border-color var(--ff-t) var(--ff-ease);
}
.ff-pager a:hover { border-color: var(--ff-orange); color: var(--ff-orange); background: var(--ff-orange-s); }
.ff-pager a.is-active { background: var(--ff-navy); border-color: var(--ff-navy); color: var(--ff-navy-ink); font-weight: 700; }
.ff-pager a.is-disabled { color: var(--ff-ink-3); opacity: .5; pointer-events: none; }
.ff-pager__meta { margin-left: auto; font-size: var(--ff-fs-xs); color: var(--ff-ink-3); font-family: var(--ff-mono); }

.ff-empty {
    padding: 34px 16px;
    text-align: center;
    background: var(--ff-surface);
    border: 1px dashed var(--ff-line-2);
    border-radius: var(--ff-r-sm);
}
.ff-empty h2 { font-size: var(--ff-fs-lg); }
.ff-empty p { margin-top: 6px; font-size: var(--ff-fs-sm); color: var(--ff-ink-2); }
.ff-empty .ff-btn { margin-top: 14px; }
.ff-empty--inline {
    padding: 12px 2px;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: var(--ff-fs-sm);
    color: var(--ff-ink-3);
}

/* --------------------------------------------------------------------------
   10. 正文块（简介 / 文章正文）
   -------------------------------------------------------------------------- */
.ff-copy {
    font-size: var(--ff-fs-base);
    line-height: 1.85;
    color: var(--ff-ink-2);
    overflow-wrap: anywhere;
}
.ff-copy p + p { margin-top: 8px; }
.ff-copy a { color: var(--ff-orange); text-decoration: underline; text-underline-offset: 2px; }
.ff-copy img { margin: 10px 0; border-radius: var(--ff-r-xs); }

/* --------------------------------------------------------------------------
   11. 页脚（片尾字幕：标签条码带 + 居中 credits + THE END）
   -------------------------------------------------------------------------- */
.ff-foot {
    position: relative;
    margin-top: calc(var(--ff-gap) + 26px);
    background: #15120e;
    color: #b6aa95;
    font-size: var(--ff-fs-xs);
}
/* 顶部标签条：米色带 + 红色压边，像录像带盒脊 */
.ff-foot__ribbon {
    background: #efe5d1;
    color: #241f18;
    border-bottom: 3px solid var(--ff-orange);
}
.ff-foot__ribbon-in {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding-block: 8px;
    flex-wrap: wrap;
}
.ff-foot__barcode {
    flex: 0 0 auto;
    width: 96px;
    height: 20px;
    background-image: repeating-linear-gradient(90deg, #241f18 0 2px, rgba(36, 31, 24, 0) 2px 4px, #241f18 4px 5px, rgba(36, 31, 24, 0) 5px 8px, #241f18 8px 11px, rgba(36, 31, 24, 0) 11px 13px);
}
.ff-foot__ribbon-t {
    font: 700 12px/1 var(--ff-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #241f18;
}
.ff-foot__ribbon-t b { color: var(--ff-orange-d); font-weight: 700; }
.ff-foot__ribbon-m {
    margin-left: auto;
    font: 600 10px/1 var(--ff-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b6252;
}
.ff-foot__wordmark {
    padding-top: 26px;
    text-align: center;
}
.ff-foot__brandline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--ff-fs-xl);
    font-weight: 800;
    letter-spacing: .12em;
    color: #f3e9d6;
}
.ff-foot__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 23px;
    border-radius: var(--ff-r-sm);
    border: 1px solid #c9bda5;
    border-bottom: 4px solid var(--ff-orange);
    background-color: #efe4cd;
    background-image:
        radial-gradient(circle at 28% 44%, #1b1814 3.1px, rgba(27, 24, 20, 0) 3.6px),
        radial-gradient(circle at 72% 44%, #1b1814 3.1px, rgba(27, 24, 20, 0) 3.6px);
    color: transparent;
    font-size: 0;
    overflow: hidden;
}
.ff-foot__mark svg { display: none; }
.ff-foot__brandline a { color: #f3e9d6; }
.ff-foot__brandline a:hover { color: var(--ff-orange-ink); text-decoration: underline; text-underline-offset: 4px; }
.ff-foot__wordmark p {
    max-width: 640px;
    margin: 10px auto 0;
    line-height: 1.9;
    color: #a89c86;
    text-align: center;
}
.ff-foot__credits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 34px;
    max-width: 1000px;
    margin: 24px auto 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(243, 233, 214, .12);
}
.ff-foot__col { min-width: 0; text-align: center; }
.ff-foot h3 {
    margin-bottom: 12px;
    font: 700 10px/1.4 var(--ff-mono);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #8f8370;
}
.ff-foot__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 10px;
}
.ff-foot__links--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-foot__links a {
    line-height: 1.7;
    color: #c6baa4;
    overflow-wrap: anywhere;
    transition: color var(--ff-t) var(--ff-ease);
}
.ff-foot__links a:hover { color: var(--ff-orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.ff-foot__meta { display: flex; flex-direction: column; gap: 7px; line-height: 1.7; align-items: center; }
.ff-foot__meta li { min-width: 0; overflow-wrap: anywhere; }
.ff-foot__meta a {
    color: #c6baa4;
    text-decoration: underline;
    text-decoration-color: rgba(243, 233, 214, .25);
    text-underline-offset: 3px;
    transition: color var(--ff-t) var(--ff-ease), text-decoration-color var(--ff-t) var(--ff-ease);
}
.ff-foot__meta a:hover { color: var(--ff-orange-ink); text-decoration-color: currentColor; }

.ff-foot__end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 16px 0 22px;
    text-align: center;
    font-size: var(--ff-fs-2xs);
    color: #8b7f6c;
}
.ff-foot__endline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font: 700 10px/1.4 var(--ff-mono);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #a99b83;
}
.ff-foot__endline i { font-style: normal; color: #5f5545; }
.ff-foot__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(243, 233, 214, .22);
    border-radius: var(--ff-r-xs);
    color: #c6baa4;
    font: 600 10px/1 var(--ff-mono);
    letter-spacing: .14em;
    transition: border-color var(--ff-t) var(--ff-ease), color var(--ff-t) var(--ff-ease), background var(--ff-t) var(--ff-ease);
}
.ff-foot__top:hover { border-color: var(--ff-orange); color: var(--ff-orange-ink); background: rgba(192, 68, 45, .16); }
.ff-foot__bottom { max-width: 76ch; margin-inline: auto; line-height: 1.8; }
.ff-foot__bottom span { display: block; }
.ff-foot__bottom span + span { margin-top: 3px; }

/* --------------------------------------------------------------------------
   12. 断点
   ⚠️ 列数只取 6 / 4 / 3 / 2：模板取数固定 24（楼层）与 48（列表），
      24 与 48 都能被这四个数整除 —— 任何断点都不会露半行残卡。
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .ff-grid, .ff-grid--list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ff-header__nav { display: none; }
    .ff-header__burger { display: inline-flex; }
    .ff-search input { width: 120px; }
    .ff-foot__credits { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
    .ff-foot__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    :root { --ff-shell: 100%; --ff-gap: 12px; --ff-gap-xs: 6px; }
    .ff-grid, .ff-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ff-search { display: none; }
    .ff-drawer__search .ff-search { display: flex; }
    .ff-facts--inline { grid-template-columns: minmax(0, 1fr); }
    .ff-facts--inline > div { border-right: 0; border-bottom: 1px dashed var(--ff-line); padding: 4px 0; }
    .ff-facts--inline > div:last-child { border-bottom: 0; }
    .ff-linerow__pic { width: 74px; }
    .ff-foot { margin-top: calc(var(--ff-gap) + 20px); }
    .ff-foot__ribbon-m { margin-left: 0; }
    .ff-foot__credits { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ff-foot__col:last-child { grid-column: auto; }
    .ff-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ff-pager__meta { width: 100%; margin-left: 0; }
    .ff-brand__name { font-size: var(--ff-fs-md); }
}
@media (max-width: 479.98px) {
    .ff-grid, .ff-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ff-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
