/* =========================================================
   ★ 字体声明（单独成文件，供非阻塞加载）
   ========================================================= */
/* ★ 字体：自托管，随站点 / APK / 热更包一起分发，不依赖任何第三方 CDN
   （此文件由 index.html 等以非阻塞方式引入，避免 1.9MB 中文字体抢首屏带宽）
，随站点 / APK / 热更包一起分发，不依赖任何第三方 CDN
     · Inter Variable      → 拉丁字母 + 数字，现代、克制，做 UI 基底
     · JetBrains Mono Var  → 版本号 / 集数 / 时长 / 热度等「数据位」，极客感
   中文【不】打包字体：思源/苹方整包 3MB+，会把热更包从 0.9MB 撑到 4MB+，
   而国产 ROM（小米/华为/OPPO/vivo）系统字体本身已是 MiSans/HarmonyOS Sans，
   再塞一份收益接近零。改为 --font-cn 按优先级挑系统里最好那款，缺字逐字回退。
   两个 woff2 都用 unicode-range 限定拉丁区段 → 中文字符根本不会去下载/匹配它们。
   ========================================================= */
@font-face {
    font-family: 'InterVariable';
    src: url('../fonts/inter-latin-var.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrainsMonoVariable';
    src: url('../fonts/jetbrains-mono-latin-var.woff2') format('woff2-variations');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074,
        U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ★ 中文正文：HarmonyOS Sans SC **UI 子集**（2026-10-07 包体优化）。
   只收 1015 个 UI 字符（顶栏/底部导航 + 全部 JS 文案），约 123KB/字重；
   原 GB2312 全集 956KB/字重已移至 tools/font-src/（仅作重切种子，不部署）。
   子集外文字（影片名/演员名等动态数据）逐字回退 --font-cn 系统字体，不出豆腐块。
   UI 文案改动后重跑：bash tools/make-font-subset.sh（需 pip3 install fonttools brotli）。 */
@font-face {
    font-family: 'HarmonyOS Sans SC Web';
    src: url('../fonts/hm-sans-sc-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+2E80-303F, U+31C0-33FF, U+3400-4DBF, U+4E00-9FFF,
        U+F900-FAFF, U+FE10-FE4F, U+FF00-FFEF, U+00A0, U+00B7, U+2010-2027;
}
@font-face {
    font-family: 'HarmonyOS Sans SC Web';
    src: url('../fonts/hm-sans-sc-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+2E80-303F, U+31C0-33FF, U+3400-4DBF, U+4E00-9FFF,
        U+F900-FAFF, U+FE10-FE4F, U+FF00-FFEF, U+00A0, U+00B7, U+2010-2027;
}
