/* Apple TV+ 风格首页（iPhone 是基准版式，三端共用这套组件与视觉）。
   2026-12-03：组件与视觉对所有档位生效（@media all）；手机专属的几何/出血规则仍留在
   各自的 (max-width:640px), (pointer: coarse) 块里；regular 档（Mac）在文件末尾单列一块。 */
.fmc-tv-app { display: none; }

/* 2026-12-03 修：首页 hero 有两张图（竖版海报 / 横版剧照）。默认只显示竖版，
   横版只在细指针那一档显式打开（就在下面 regular 块里）。
   ——上一版漏了这条默认隐藏，iPhone 上两张图叠在一起，hero 被撑高 284px，
   文案与按钮被底栏挡住（用户当场发现）。 */
.fca-art > img.fca-art-wide { display: none !important; }

@media all {
  body.fmc-tv-home {
    background: #000 !important;
    background-image: none !important;
  }
  body.fmc-tv-home .fmc-memory-wall { display: none !important; }
  body.fmc-tv-home::before,
  body.fmc-tv-home::after { content: none !important; background: none !important; }
  html body .fmc-tv-app a.fca-btn-primary,
  html body .fmc-tv-app .fca-btn-circle { color: #000 !important; }
  html body .fmc-tv-app .fca-btn-circle { color: #fff !important; }
  body.fmc-tv-home main > :not(.fmc-tv-app) { display: none !important; }
  body.fmc-tv-home .site-header { /* 底部玻璃栏保留 */ }
  .fmc-tv-app {
    display: block;
    margin: 0 calc(-1 * max(20px, env(safe-area-inset-left)));
    background: #000;
    color: #fff !important;
    padding: 8px 0 120px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "FMC Sans SC", sans-serif;
  }
  body.fmc-tv-home .site-header .fmc-language-globe { filter: none; }

  /* 顶部：大标题 + 右侧圆形按钮 */
  .fca-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px;
  }
  .fca-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff !important;
  }
  .fca-head-actions { display: flex; align-items: center; gap: 10px; }
  .fca-head { gap: 12px; }
  .fca-head h1 { flex: 0 0 auto; }
  .fca-lang { margin-right: auto; }
  .fca-lang summary {
    list-style: none;
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 980px;
    background: rgba(255,255,255,.14);
    color: #fff !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    cursor: pointer;
  }
  .fca-lang summary::-webkit-details-marker { display: none; }
  .fca-lang[open] summary { background: rgba(255,255,255,.24); }
  .fca-lang nav {
    position: absolute;
    top: 64px; left: 20px;
    min-width: 190px;
    padding: 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: color-mix(in srgb, #1c1c1e 82%, transparent);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 18px 48px rgba(0,0,0,.5);
    z-index: 70;
  }
  .fca-lang nav a {
    display: flex; align-items: center;
    min-height: 44px; padding: 0 12px;
    border-radius: 12px;
    color: #fff !important;
    font-size: 15px; text-decoration: none !important;
  }
  .fca-lang nav a:hover, .fca-lang nav a:active { background: rgba(255,255,255,.12); }
  .fca-icon-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .fca-avatar {
    width: 44px; height: 44px; border-radius: 999px; overflow: hidden;
    display: grid; place-items: center;
    background: rgba(255,255,255,.14); color: #fff; font-size: 15px; text-decoration: none;
  }

  /* Hero：海报渐隐到黑 + 文案 + 按钮 + 页点 */
  .fca-hero { position: relative; padding: 0 0 8px; }
  .fca-art {
    position: relative;
    height: 46vh; min-height: 300px; max-height: 460px;
    display: grid; place-items: center;
    overflow: hidden;
  }
  .fca-art img {
    width: min(64vw, 300px);
    height: auto;
    display: block;
    border-radius: 6px;
    -webkit-mask-image: linear-gradient(to bottom, #000 44%, transparent 90%);
    mask-image: linear-gradient(to bottom, #000 44%, transparent 90%);
  }
  .fca-hero-copy { margin-top: -26px; padding: 0 24px; text-align: center; position: relative; }
  .fca-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 12px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
  }
  .fca-title {
    margin: 0 0 10px;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff !important;
  }
  .fca-meta {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px; margin: 0 0 6px;
    font-size: 13px; color: #fff !important;
  }
  .fca-tv {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; border-radius: 5px;
    background: #fff !important; color: #000 !important; font-size: 10px; font-weight: 700;
  }
  .fca-mark {
    display: inline-grid; place-items: center;
    min-width: 30px; height: 20px; padding: 0 5px;
    border-radius: 5px;
    background: #fff; color: #000 !important;
    font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
    line-height: 1;
  }
  .fca-rating {
    padding: 1px 5px; border: 1px solid rgba(255,255,255,.55); border-radius: 3px;
    font-size: 11px; line-height: 1.4;
  }
  .fca-caption { margin: 0 0 18px; font-size: 14px; color: #8e8e93; }
  .fca-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
  .fca-btn-read {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 132px;
    min-height: 50px;
    padding: 0 34px;
    border-radius: 980px;
    background: #fff !important; color: #000 !important;
    font-size: 17px; font-weight: 600; letter-spacing: -.01em;
    text-decoration: none !important;
    transition: transform var(--dur-1, .1s) var(--ease-out, ease-out), background-color var(--dur-2, .2s) var(--ease-out, ease-out);
  }
  .fca-btn-read:active { transform: scale(.97); background: #ececec !important; }
  .fca-btn-read:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
  .fca-btn-circle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 999px;
    background: rgba(255,255,255,.16) !important; color: #fff !important;
    font-size: 22px; font-weight: 300; text-decoration: none;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .fca-dots { display: flex; gap: 7px; justify-content: center; }
  .fca-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); }
  .fca-dots i.on { background: #fff; }

  /* 横向卡行 */
  .fca-row { margin-top: 26px; }
  .fca-row h3 {
    margin: 0 0 10px; padding: 0 20px;
    display: flex; align-items: center; gap: 4px;
    font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #fff !important;
  }
  .fca-row h3 span { color: #8e8e93; font-weight: 500; font-size: 20px; }
  .fca-track {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 0 20px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .fca-track::-webkit-scrollbar { display: none; }
  .fca-track--poster { padding-bottom: 8px; }
  .fca-poster {
    position: relative; flex: none;
    width: 42vw; max-width: 190px;
    scroll-snap-align: start;
    border-radius: 12px; overflow: hidden;
    text-decoration: none !important;
    background: #111;
  }
  .fca-poster img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; }
  .fca-poster-title {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 9px 8px;
    font-size: 11.5px; line-height: 1.3; color: #fff !important;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
  }
  .fca-card {
    position: relative; flex: none; width: 62vw; max-width: 300px;
    scroll-snap-align: start;
    border-radius: 12px; overflow: hidden; text-decoration: none;
    background: #111;
  }
  .fca-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
  .fca-card-badge {
    position: absolute; left: 8px; top: 8px;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .fca-card-title {
    position: absolute; left: 10px; right: 10px; bottom: 8px;
    font-size: 13px; font-weight: 500; color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
  }
  .fca-card::after {
    content: ""; position: absolute; inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    pointer-events: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .fca-icon-btn, .fca-btn-circle, .fca-card-badge { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* 去掉顶部"主页"标题与 FMC 标识，让竖版海报接近全屏填充；语言按钮改为右上角浮动小钮 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { padding-top: 0 !important; }
  .fca-head {
    position: absolute !important;
    top: 0; left: 0; right: 0;
    padding: 10px 16px !important;
    justify-content: flex-end !important;
    background: transparent !important;
    z-index: 6;
  }
  .fca-head h1 { display: none !important; }
  .fca-lang { margin-right: 0 !important; }
  .fca-lang summary {
    width: 38px !important; height: 38px !important;
    background: rgba(0,0,0,.35) !important;
  }
  .fca-hero { padding-top: 0 !important; }
  .fca-art {
    height: 70vh !important;
    min-height: 420px !important;
    max-height: none !important;
  }
  .fca-art img { width: min(86vw, 430px) !important; }
  .fca-hero-copy { margin-top: -34px !important; }
}
/* 手机端语言入口移到页脚；hero 上不再放浮动语言钮 */
@media (max-width: 640px), (pointer: coarse) {
  .fca-lang { display: none !important; }
  .fmc-footer-locale {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    font-size: 13px;
  }
  .fmc-footer-locale summary {
    list-style: none;
    color: color-mix(in srgb, currentColor 62%, transparent);
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .fmc-footer-locale summary::-webkit-details-marker { display: none; }
  .fmc-footer-locale nav { display: grid; gap: 2px; padding: 6px 0 10px; }
  .fmc-footer-locale nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 0 8px;
  }
  .fmc-footer-locale nav a[aria-current="page"] { color: var(--fm-action, #0071e3); }
}
/* 真机 Safari：底部浏览器工具栏 + 标签栏都会吃掉可视高度，用 dvh 并收紧 hero */
@media (max-width: 640px), (pointer: coarse) {
  .fca-art {
    height: min(56dvh, 500px) !important;
    min-height: 0 !important;
  }
  .fca-hero-copy { margin-top: -18px !important; padding-bottom: 4px !important; }
  .fca-caption { margin-bottom: 14px !important; }
  .fca-actions { margin-bottom: 10px !important; }
  .fmc-tv-app { padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important; }
}
/* 手机端：内容短时不要把页脚推到底部（会留一大块空白） */
@media (max-width: 640px), (pointer: coarse) {
  /* 页脚对齐改由 fmc-mobile-glass-nav 统一控制 */
}
/* 昼夜切换改为纯自动：仅手机端隐藏手动控件，桌面保留 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-theme-fieldset,
  .fmc-appearance-footer .fmc-theme-fieldset { display: none !important; }
}
/* hero 海报：顶到屏幕最上方（出血），宽度按高度等比，不上下居中 */
@media (max-width: 640px), (pointer: coarse) {
  .fca-hero { padding-top: 0 !important; }
  .fca-art {
    height: 64dvh !important;
    min-height: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .fca-art img {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 0 6px 6px !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%) !important;
  }
}
/* 首页手机端：清掉 main 的顶部内边距，海报才能顶到屏幕上沿 */
@media (max-width: 640px), (pointer: coarse) {
  body.fmc-tv-home main,
  body.fmc-tv-home main.discovery-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body.fmc-tv-home { padding-top: 0 !important; }
}
/* 覆盖站点对首页 main 的 !important 顶部内边距（需同级别选择器） */
@media (max-width: 640px), (pointer: coarse) {
  html body.fmc-tv-home main.discovery-main.discovery-home,
  html body.fmc-tv-home main.discovery-main,
  html body.fmc-tv-home main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}
/* 去掉徽标后收紧 hero；说明文字提高可读性；确保海报顶到屏幕上沿 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { padding-top: 0 !important; }
  .fca-hero, .fca-art { margin: 0 !important; padding-top: 0 !important; }
  .fca-art { height: 66dvh !important; }
  .fca-hero-copy { margin-top: -6px !important; }
  .fca-caption {
    color: #a1a1a6 !important;
    font-size: 15px !important;
    margin-top: 2px !important;
  }
  .fca-meta { font-size: 14px !important; }
}
/* 顶部不再占位：head 绝对定位、hero 从屏幕顶部开始 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { position: relative; }
  .fca-head {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    padding: 8px 16px 0 !important;
    margin: 0 !important;
    z-index: 8;
  }
  .fca-hero { display: block !important; }
  .fca-art { margin-top: 0 !important; padding-top: 0 !important; }
}
/* 放映结束：按年份分组的横向行 */
@media (max-width: 640px), (pointer: coarse) {
  .fca-year { margin: 0 0 18px; }
  .fca-year h4 {
    margin: 0 0 8px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .02em;
    color: #8e8e93 !important;
  }
  .fca-row--years .fca-track { padding-bottom: 0; }
}
/* 让海报延伸到状态栏下面（真正出血到屏幕顶端） */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important; }
  .fca-art {
    margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important;
    height: calc(66dvh + env(safe-area-inset-top, 0px)) !important;
  }
}
/* Hero：整屏铺满（上下左右出血），文案叠加在图上 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important; }
  .fca-hero {
    position: relative !important;
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .fca-art {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .fca-art img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 32% !important;
    border-radius: 0 !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%) !important;
    mask-image: linear-gradient(to bottom, #000 55%, transparent 92%) !important;
  }
  .fca-hero-copy {
    position: absolute !important;
    left: 0; right: 0;
    bottom: calc(var(--fmc-tabbar-height) + var(--fmc-tabbar-bottom) + var(--fmc-content-bottom-gap) + 8px) !important;
    margin: 0 !important;
    padding: 0 24px !important;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 42%) !important;
    padding-top: 40px !important;
  }
}
/* Hero：海报按原始比例铺满整宽（不裁切），从屏幕顶端开始；文案接在下方渐隐区 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important; }
  .fca-hero {
    position: relative !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .fca-art {
    position: relative !important;
    inset: auto !important;
    width: 100vw !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .fca-art img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%) !important;
  }
  .fca-hero-copy {
    position: relative !important;
    left: auto; right: auto; bottom: auto !important;
    margin-top: -70px !important;
    padding: 0 24px 8px !important;
    background: linear-gradient(180deg, transparent, #000 55%) !important;
  }
}
/* Hero 文案叠在海报下沿（不占额外高度），并移除语言按钮 */
@media (max-width: 640px), (pointer: coarse) {
  .fca-hero { position: relative !important; }
  .fca-hero-copy {
    position: absolute !important;
    left: 0; right: 0; bottom: 0 !important;
    margin: 0 !important;
    padding: 56px 24px 14px !important;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.92) 46%) !important;
  }
  .fca-lang, .fca-head { display: none !important; }
  .fca-actions { margin-bottom: 4px !important; }
}
/* 首页手机端：去掉底部残留分隔线，收紧到底部的空白 */
@media (max-width: 640px), (pointer: coarse) {
  body.fmc-tv-home hr,
  body.fmc-tv-home main > section:not(.fmc-tv-app),
  body.fmc-tv-home .fmc-tv-app + * { display: none !important; border: 0 !important; }
  body.fmc-tv-home section,
  body.fmc-tv-home .fca-row,
  body.fmc-tv-home .fca-year { border-top: 0 !important; border-bottom: 0 !important; }
  body.fmc-tv-home .fca-row--years { margin-bottom: 0 !important; }
  body.fmc-tv-home .fca-year:last-child { margin-bottom: 0 !important; }
  body.fmc-tv-home main { padding-bottom: 0 !important; }
}
/* 底部留白只由 body 统一控制，app 自身不再叠加 */
@media (max-width: 640px), (pointer: coarse) {
  .fmc-tv-app { padding-bottom: 0 !important; }
}
/* 相关视频：播放标记 + 全屏播放浮层 */
@media all {
  .fca-play-badge {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(0,0,0,.45); color: #fff; font-size: 15px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .fca-player {
    position: fixed; inset: 0; z-index: 120;
    background: #000;
    display: flex; align-items: center; justify-content: center;
  }
  .fca-player[hidden] { display: none !important; }
  .fca-player-frame { width: 100%; aspect-ratio: 16/9; }
  .fca-player-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
  .fca-player-close {
    position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.18); color: #fff;
    font-size: 22px; line-height: 1;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
}
/* 视频卡：左下角时长、右下角标题（苹果视频控件惯例）
   2026-12-04 修：卡片高度改由 16:9 决定，封面铺满整张卡。
   之前覆盖层图片按 16:9 撑高、卡片却被行内更高的兄弟拉到 ~210（flex align-items: normal → stretch），
   封面下方就露出一条黑边、而且时长/标题掉到黑边上；圆的底角看起来也像一条"奇怪的曲线"。 */
@media all {
  .fca-track { align-items: flex-start; }
  .fca-card.fca-card--video {
    padding: 0; border: 0; color: inherit; text-align: initial;
    aspect-ratio: 16 / 9; align-self: flex-start;
    background: #111 !important;   /* appearance-logo.css 把所有 button 刷成 transparent !important */
  }
  .fca-card.fca-card--video img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  }
  .fca-duration {
    position: absolute; left: 8px; bottom: 8px;
    padding: 2px 7px; border-radius: 6px;
    background: rgba(0,0,0,.62); color: #fff;
    font-size: 11px; font-weight: 600; letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    /* 与影片页视频卡一致：去掉 backdrop-filter（iOS 上它会在圆角裁剪里出接缝/黑边） */
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .fca-video-title {
    position: absolute; right: 8px; bottom: 10px;
    max-width: 62%;
    color: #fff; font-size: 12px; line-height: 1.25;
    text-align: right;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .fca-play-badge { display: none !important; }
  .fca-player-frame video { width: 100%; height: 100%; display: block; background: #000; }
}

/* ============================================================================
   regular 档（Mac / 细指针 ≥641）：同一套 tvOS 版式，只做「加宽」。
   2026-12-03 用户定：三端以 iPhone 为基准，Mac 不再是另一套编辑部版式。
   这里只改三件事——版心加宽、每行多露几张、顶栏替代底栏。
   组件视觉（卡片、海报、按钮、字号阶梯、圆角、阴影）与手机共用上面那份，不复制第二套;
   间距一律走 design-tokens 的 --sp-*，不在这里临时写数字。
   ============================================================================ */
@media (pointer: fine) and (min-width: 641px) {
  /* 视觉底色仍交给流动照片墙，但**画布底色必须是墙自己的颜色**：
     macOS Safari 的橡皮筋会把整页（含 fixed 的墙）一起位移，墙底一离开窗口，
     露出来的就是画布底色。原来是 html 的白色 → 用户看到一条白边（2026-12-03 报）。
     这里用墙的基色 #121713，位移时露出的那一条和墙的暗部同色，不会「断」。 */
  body.fmc-tv-home { background: #121713 !important; }

  /* 文档边界不再做橡皮筋——只能关在根滚动器这一层，别处关不住：
     `position:fixed` 不是"钉住"的例外，合成层的弹性位移会把整页连墙一起拽起来，
     墙/遮罩/页脚都锁不住；JS 的 wheel preventDefault 只能拦住慢速推到边界，
     快速甩动的惯性直接绕过主线程（2026-12-03 实测：同一手势 maxOver 慢 0 / 快 278px）。
     根元素上的 overscroll-behavior-y:none 在 Safari 27.3 有效（实测同一次甩动 278px → 0，
     正常滚轮/惯性不受影响，横向 overscroll 保持 auto 不碰两指返回手势）。
     只作用于 tvOS 首页（`/` 与 `/en/`），手机端不加：那边顶部下拉由 fmc-home-hero-scroll.js 接管。 */
  html:has(> body.fmc-tv-home) { overscroll-behavior-y: none; }
  body.fmc-tv-home .fmc-memory-wall { display: block !important; }
  /* 顶栏已提供全站导航；底栏是手指的产物，桌面上不出现第二份 */
  body.fmc-tv-home #fmc-tabbar { display: none !important; }
  body.fmc-tv-home main.discovery-main,
  body.fmc-tv-home main.discovery-main.discovery-home {
    margin-inline: 0 !important;
    padding: 0 !important;
  }

  /* 照片墙继续留在后面当底子，但压一层暗场，
     否则半透明照片直接贴在正文后面，字读不清（墙本身不改，只加一层遮罩）。
     宽度必须写进 @layer systemReading 才压得住，见文件末尾。 */
  body.fmc-tv-home main.discovery-main {
    background: linear-gradient(180deg, rgba(9, 14, 13, .26), rgba(9, 14, 13, .42)) !important;
  }
  /* 只把「文字那一列」压暗（左到右的渐隐），照片墙整体保持看得清。
     2026-12-03 用户反馈：整页压到 .72–.90 之后，底下的照片墙几乎看不见了。 */
  .fca-hero {
    background: linear-gradient(90deg,
      rgba(9, 14, 13, 0) 26%,
      rgba(9, 14, 13, .58) 44%,
      rgba(9, 14, 13, .72) 100%);
  }

  /* 页脚是压在同一面墙上的最后一条，必须和 main 的遮罩在接缝处同色：
     main 底部是 rgba(9,14,13,.42)，页脚原先完全透明（更亮）+ 一条浅灰 border-top
     （rgb(210,210,215)，1px，横贯整页）→ 看着像墙在这里被切开、露出白边（用户 2026-12-03 报）。
     接缝处取 main 的终点值，页脚不再单独亮一层；分隔线保留但换成暗色发线
     （用户 2026-12-03 定：要分割线，暗色）——12% 的站内米白，落在 .42 的暗场上约 rgb(38,42,41)。 */
  body.fmc-tv-home > footer.fmc-site-end {
    background: rgba(9, 14, 13, .42) !important;
    border-top: 1px solid rgba(248, 245, 238, .12) !important;
  }

  /* 2026-12-03 用户定（第二次）：不要铺满全屏，改成「圆角矩形 + 四周留一点」，
     照影片官网的做法；下面各行与它共用同一条 gutter。 */
  .fmc-tv-app {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto !important;
    padding: var(--sp-2) clamp(var(--sp-6), 4vw, var(--sp-12)) var(--sp-16) !important;
    background: transparent;
  }

  /* Hero：横版定帧图铺满，文案压在下沿的暗角上（tvOS 的招牌版式）。
     2026-12-03 用户定：Mac 是横屏设备，顶部不该再放竖版海报；
     同一部片子换成官方 press kit 的横版剧照，预告片也按原始画幅铺满同一块。 */
  .fca-head { display: none !important; }
  .fca-hero {
    display: block !important;
    position: relative !important;
    /* 高度由外面那条 16:9 的长廊决定（见 .fca-deck），这里不再自己定高 */
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px;
    background: none !important;
  }
  .fca-art {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100%;
    border-radius: 20px;
  }
  /* 同一内容、两种画幅：竖版海报给竖屏，横版剧照给横屏。只显示这一档该用的那张。 */
  .fca-art > img.fca-art-poster { display: none !important; }
  .fca-art > img.fca-art-wide {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 40% !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  /* 预告片：同一块横幅、原始画幅（cover 在 16:9 附近不会变形），去掉手机那条竖版渐隐 */
  .fca-art .fca-trailer {
    border-radius: 20px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .fca-hero-copy {
    position: absolute !important;
    left: 0; right: 0; bottom: 0 !important;
    margin: 0 !important;
    padding: min(30vh, 260px) clamp(var(--sp-6), 4vw, var(--sp-12)) clamp(var(--sp-6), 3vw, var(--sp-10)) !important;
    max-width: none !important;
    text-align: left !important;
    background: linear-gradient(180deg,
      rgba(9, 14, 13, 0) 0%,
      rgba(9, 14, 13, .5) 45%,
      rgba(9, 14, 13, .9) 78%) !important;
  }
  .fca-hero-copy > * { max-width: 760px; }
  /* 行与 hero 共用同一条 gutter（app 的 padding 已经给出） */
  .fca-row, .fca-year { padding-inline: 0; }
  /* 长廊的下沿到「相关」：一档 32，比行间距（48）收一档，视觉上更贴 */
  .fca-deck-wrap + .fca-row { margin-top: var(--sp-8) !important; }
  .fca-title { font-size: clamp(40px, 4.2vw, 72px) !important; }
  .fca-meta { justify-content: flex-start !important; font-size: 17px !important; }
  .fca-caption {
    margin: var(--sp-1) 0 var(--sp-5) !important;
    font-size: 17px !important;
    /* 文案坐在照片墙的暗场上也读得清 */
    color: #c7c7cc !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  }
  .fca-meta, .fca-title { text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
  .fca-actions { justify-content: flex-start !important; margin-bottom: 0 !important; }
  .fca-btn-read {
    min-width: 168px !important;
    min-height: 56px !important;
    padding: 0 var(--sp-10) !important;
    font-size: 19px !important;
  }
  .fca-btn-circle { width: 52px !important; height: 52px !important; }

  /* 横滑行：每行多露两张；指针设备保留横滑（触控板两指横滑是原生操作） */
  .fca-row { margin-top: var(--sp-12) !important; }
  /* 字号交给站点自己的 Apple 字号阶梯（main h3 → 32 档），不在这里另立一档 */
  .fca-row h3 { padding: 0 !important; margin: 0 0 var(--sp-3) !important; }
  .fca-year { margin: 0 0 var(--sp-6) !important; }
  .fca-year h4 { padding: 0 !important; font-size: 16px !important; }
  .fca-track { gap: var(--sp-4) !important; padding: 0 0 var(--sp-2) !important; }
  .fca-poster { width: 232px !important; max-width: 232px !important; }
  .fca-card { width: 384px !important; max-width: 384px !important; }
  .fca-poster, .fca-card { transition: transform var(--dur-2, .2s) var(--ease-out, ease-out); }
  .fca-poster:hover, .fca-card:hover { transform: translateY(-3px); }
}

/* regular 档的窄窗（641–1023 的 Mac 窗口）：hero 改成上下堆叠，
   与 iPhone 的阅读顺序一致（先海报、再文案），只是不做出血。 */
@media (pointer: fine) and (min-width: 641px) and (max-width: 1023px) {
  .fca-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--sp-6) !important;
    min-height: 0 !important;
    padding: var(--sp-8) 0 var(--sp-4) !important;
    /* 堆叠时文字在下方，暗角改成上下方向 */
    background: linear-gradient(180deg, rgba(9, 14, 13, 0) 34%, rgba(9, 14, 13, .62) 72%) !important;
  }
  .fca-art { width: min(300px, 62%) !important; justify-self: start !important; }
  .fca-title { font-size: clamp(34px, 5.4vw, 52px) !important; }
  .fca-poster { width: 200px !important; max-width: 200px !important; }
  .fca-card { width: 320px !important; max-width: 320px !important; }
  .fca-row { margin-top: var(--sp-10) !important; }
}

/* 同一 layer 内的覆盖：manifesto-reference.css 把首页 main 的宽度锁在 @layer systemReading 里
   （层内 !important 压过层外 !important），所以要改宽度必须进同一个 layer。
   这里只放「必须压过站内层内规则」的两条：通栏宽度、hero 标题字号。 */
@layer systemReading {
  @media (pointer: fine) and (min-width: 641px) {
    body.fmc-tv-home main.discovery-main,
    body.fmc-tv-home main.discovery-main.discovery-home {
      width: 100% !important;
      max-width: none !important;
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
    /* hero 标题：站点统一把 main h2 压成 32 档，但 hero 标题在手机上是 clamp(30,9vw,40)≈36，
       桌面上不该比手机小。用层内 !important 拿回来。 */
    body.fmc-tv-home .fmc-tv-app h2.fca-title {
      font-size: clamp(40px, 4.2vw, 72px) !important;
      line-height: 1.04 !important;
    }
  }
}

/* ============================================================================
   页内浮窗播放器（2026-12-03 用户定，取代原来的全屏浮层）
   - 中等大小：宽度封顶 720（720p 素材在 2 倍屏上正好 1:1，不再糊）
   - 永远有下栏：来源（B 站 logo + 名称）｜标题｜原视频 ↗｜关闭
   - 点遮罩、按 Esc、点关闭都能退出
   ============================================================================ */
.fca-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity .18s ease;
}
.fca-lb.is-open { opacity: 1; }
.fca-lb-panel {
  width: min(720px, 100%);
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
  transform: translateY(10px) scale(.985);
  transition: transform .2s var(--ease-out, ease-out);
}
.fca-lb.is-open .fca-lb-panel { transform: none; }
.fca-lb-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fca-lb-stage iframe,
.fca-lb-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
}
.fca-lb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  background: #1c1c1e;
  color: #fff;
}
/* B 站下栏那种「来源 + 状态」：粉色是它的品牌色，这里只用在这一个位置 */
.fca-lb-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: #fb7299 !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-underline-offset: 0 !important;
}
.fca-lb-src svg { width: 17px; height: 17px; display: block; }
.fca-lb-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fca-lb-open {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: none;
  color: rgba(255, 255, 255, .72) !important;
  text-decoration: none !important;
  font-size: 12.5px;
  text-underline-offset: 0 !important;
}
.fca-lb-open svg { width: 14px; height: 14px; display: block; }
.fca-lb-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}
.fca-lb-close svg { width: 15px; height: 15px; display: block; }
.fca-lb-close:hover { background: rgba(255, 255, 255, .24) !important; }

/* ============================================================================
   桌面 hero 横向 deck（2026-12-03 用户定）
   第一屏 = 定帧图 + 预告片；往右滚 = 官方 press kit 的 PDF 页（中文页中文版，其它语言英文版）。
   只在细指针生效（JS 只在 matchMedia 命中时建 deck），触屏不受影响。
   ============================================================================ */
@media (min-width: 641px) and (pointer: fine) {
  .fca-deck-wrap { position: relative; }
  .fca-deck {
    display: flex;
    /* 2026-12-03 用户定：页与页之间不留缝，像影片官网那样连着排 */
    gap: 0;
    /* 整条长廊的高度 = 16:9（预告片 1280×720 的原始比例）。
       这样第一屏不会比 PDF 页矮一截、下面留一块空；PDF 页（1.414:1）按高度对齐，宽度自然缩窄。 */
    aspect-ratio: 16 / 9;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    border-radius: 20px;
  }
  /* 不额外加横向滚动条（2026-12-03 用户定）：翻页靠左右箭头 / 键盘 / 设备提示，
     原生进度靠手势本身。焦点环仍然给键盘用户留着。 */
  .fca-deck { scrollbar-width: none; }
  .fca-deck::-webkit-scrollbar { display: none; }
  .fca-deck:focus-visible { outline: 2px solid var(--fm-action, #0071e3); outline-offset: 4px; }

  /* 左右翻页箭头：不依赖横向手势，滚轮鼠标 / 键盘用户也能翻 */
  .fca-deck-nav {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(20, 20, 22, .55) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 5;
    transition: opacity .18s ease, background-color .18s ease;
  }
  .fca-deck-nav svg { width: 20px; height: 20px; display: block; }
  .fca-deck-nav:hover { background: rgba(30, 30, 33, .8) !important; }
  .fca-deck-nav.prev { left: 14px; }
  .fca-deck-nav.next { right: 14px; }
  .fca-deck-nav[disabled] { opacity: 0; pointer-events: none; }
  .fca-deck > .fca-hero {
    flex: 0 0 100%;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
  }
  .fca-pk-page {
    flex: 0 0 auto;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
  }
  .fca-pk-page:first-of-type, .fca-hero { border-radius: 20px 0 0 20px; }
  .fca-deck { border-radius: 20px; }
  .fca-pk-page img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
  }
  /* 粉色设备提示：妙控鼠标 + 妙控板，动点横向走（这一排是横着滚的） */
  .fca-scroll-hints {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 16px;
    z-index: 3;
    transition: opacity .4s ease, transform .4s ease;
  }
  .fca-scroll-hints.is-gone { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
  .fca-scroll-hint {
    -webkit-appearance: none;
    appearance: none;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #ff5c8a !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: .9;
    transition: opacity .18s ease, transform .18s ease;
  }
  .fca-scroll-hint:hover { opacity: 1; transform: translateY(-1px); }
  .fca-scroll-hint.is-mouse svg { width: 20px; height: 32px; display: block; }
  .fca-scroll-hint.is-trackpad svg { width: 34px; height: 23px; display: block; }
  /* 动点横着走：mouse 的 dot 在 x 上往复，trackpad 的 dot 从左边滑到右边 */
  .fca-scroll-hint.is-mouse .dot { animation: fca-slide-x 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
  .fca-scroll-hint.is-trackpad .dot { animation: fca-slide-x-wide 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
  @keyframes fca-slide-x {
    0%, 100% { transform: translateX(-3.5px); opacity: .55; }
    50% { transform: translateX(3.5px); opacity: 1; }
  }
  @keyframes fca-slide-x-wide {
    0%, 100% { transform: translateX(0); opacity: .4; }
    45% { transform: translateX(16px); opacity: 1; }
    55% { transform: translateX(16px); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .fca-scroll-hint .dot { animation: none !important; }
    .fca-scroll-hints { display: none; }
  }
  /* press kit 已经在 hero 里横排了，桌面不再需要那个 ⓘ 跳转按钮 */
  .fca-actions .fca-btn-info { display: none !important; }
}

/* 中文 PDF 的 CAST / CREW 两页：机翻版式坏了，改用 HTML 重排（用户 2026-12-03 报「没翻译完」）。
   版式照原 PDF：黑底白字、居中标题、左职位右人名。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet {
    /* 和 PDF 页同宽同高（1754×1241），否则按内容宽度缩成一条，字小、右边空 */
    flex: 0 0 auto;
    aspect-ratio: 1754 / 1241;
    height: 100%;
    background: #000 !important;
    color: #fff;
    padding: 44px clamp(36px, 4vw, 64px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
  }
  .fca-pk-sheet h2 {
    margin: 0 0 26px;
    text-align: center;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff !important;
  }
  .fca-pk-sheet dl {
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
  }
  .fca-pk-sheet dl > div { display: contents; }
  /* 必须是 !important：站内有更高权重的 `main dt/dd` 颜色规则，不加就把这两页的字
     刷成 #1d1d1f（深色字 + 黑底 = 看起来像被遮罩/根本没字）。2026-12-03 用户报「还是看不清」就是它。 */
  .fca-pk-sheet dt {
    text-align: right;
    color: rgba(255, 255, 255, .9) !important;
    white-space: nowrap;
  }
  .fca-pk-sheet dd {
    margin: 0;
    color: #fff !important;
    min-width: 0;
  }
  /* 演员表行高更松一点（只有 7 行） */
  .fca-pk-sheet dl { max-width: 1000px; }
  .fca-pk-sheet:first-of-type dl { row-gap: 16px; font-size: 16px; }
  /* 职员表 28 行：一栏会顶出页外（还得在页里再滚一次），改两栏并放大字号 */
  .fca-pk-sheet.is-crew dl {
    display: block;
    column-count: 2;
    column-gap: 40px;
    max-width: 980px;
    font-size: 15px;
    line-height: 1.55;
  }
  .fca-pk-sheet.is-crew dl > div {
    display: flex;
    gap: 12px;
    break-inside: avoid;
    margin: 0 0 9px;
  }
  .fca-pk-sheet.is-crew dt { flex: 0 0 5em; text-align: left; }
  .fca-pk-sheet.is-crew dd { flex: 1 1 auto; }
}

/* 2026-12-03：中文长廊的封面页（原 PDF 第 1 页的文字是英文原文，整页重排）。
   白纸、居中、衬线片名——照原 PDF 的视觉秩序，只是把戛纳那一块与联系人补成中文（原文括注）。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-cover {
    background: #fff !important;
    color: #1d1d1f !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 56px;
    text-align: center;
    font-family: "EB Garamond", "Songti SC", "PingFang SC", serif;
  }
  .fca-pk-sheet.is-cover p { margin: 0; color: #1d1d1f !important; }
  .pk-present { font-size: 13px; letter-spacing: .01em; }
  /* !important：.fca-pk-page img 有一条 width:auto/height:100% 的规则会把月桂放大成整幅 */

  /* 封面片名：.fca-pk-sheet h2 有一条白色 !important，会把白纸上的片名刷成白字（=看不见）。
     这里用更高的特异性压回来。 */
  .fca-pk-sheet.is-cover .pk-filmtitle { color: #1d1d1f !important; }
  .pk-laurel { width: 88px !important; height: auto !important; display: block; margin: 6px 0 2px; }
  .pk-fest { font-size: 15px; font-weight: 700; letter-spacing: .02em; font-family: "Helvetica Neue", "PingFang SC", sans-serif; }
  .pk-fest span { font-weight: 400; font-size: 12px; color: #6e6e73; }
  .pk-fest2 { font-size: 12px; color: #6e6e73 !important; letter-spacing: .02em; }
  .pk-filmtitle {
    margin: 18px 0 6px !important;
    font-size: clamp(28px, 3.4vw, 46px);
    letter-spacing: .06em;
    font-weight: 400;
    color: #1d1d1f !important;
  }
  .pk-line { font-size: 14px; }
  .pk-dur { color: #6e6e73 !important; margin-top: 6px !important; }
  .pk-foot {
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    font-size: 11px;
    color: #1d1d1f;
    text-align: left;
  }
  .pk-foot span { display: block; line-height: 1.5; }
  .pk-foot b { display: block; margin-bottom: 4px; font-weight: 600; }
  .pk-goodfellas { display: block; font-size: 15px; font-style: italic; font-weight: 700; letter-spacing: .01em; margin: 0 0 4px; }
  .pk-foot-r { text-align: right; }
  .fca-pk-sheet.is-cover { position: relative; }
}

/* 2026-12-03：长廊的「文字页 / 整页剧照 / 两栏署名表」——内容来自资料-黑球-长廊-分页.md，
   由 tools/pk-deck.py 编译成 deck-zh.js。白纸页照原 press kit 的观感。 */
@media (min-width: 641px) and (pointer: fine) {
  /* 2026-12-03 用户指正：原 PDF 的文字页是**黑底白字**（只有封面是白纸）。
     这里改正，并照原版的栏式排版走两栏（原版三栏是 1754 宽的页，我们 1069 宽，三栏会太窄）。 */
  .fca-pk-sheet.is-text {
    background: #000 !important;
    color: #fff !important;
    padding: 46px clamp(40px, 4.4vw, 72px);
    overflow: hidden;
    font-family: "EB Garamond", "Songti SC", "PingFang SC", serif;
  }
  .fca-pk-sheet.is-text h2 {
    margin: 0 0 22px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff !important;
    text-align: center;
  }
  .fca-pk-sheet.is-text .pk-body {
    column-count: 2;
    column-gap: clamp(28px, 3vw, 44px);
    font-size: 13.5px;
  }
  /* 只有一段的短页不用分栏 */
  .fca-pk-sheet.is-text .pk-body:has(> p:only-child) { column-count: 1; }
  .fca-pk-sheet.is-text .pk-body p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.72;
    color: #fff !important;
    text-align: justify;
    break-inside: avoid;
  }
  .fca-pk-still { background: #000; }
  .fca-pk-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* 署名表两栏（职员表） */
  .fca-pk-sheet.is-two-col dl {
    display: flex;
    gap: 36px;
    max-width: 100%;
    font-size: 13px;
  }
  /* 必须显式 display:block：上面 `.fca-pk-sheet dl > div { display: contents }` 会把两栏拆成散行，
     行与行横向并排 → 整张表排坏（2026-12-03 用户报「最后一张职员表排版做坏了」）。 */
  .fca-pk-sheet.is-two-col .pk-col { display: block; flex: 1 1 0; min-width: 0; }
  .fca-pk-sheet.is-two-col dl > .pk-col > div {
    display: flex;
    gap: 10px;
    margin: 0 0 8px;
    break-inside: avoid;
  }
  .fca-pk-sheet.is-two-col dt { flex: 0 0 4.8em; text-align: left; }
  .fca-pk-sheet.is-two-col dd { flex: 1 1 auto; }
  .fca-pk-sheet.is-cast dl { font-size: 15px; }
}

/* 2026-12-03：长廊里的「文字+剧照」页——剧照铺满，标题与正文压左下暗部，
   照原 PDF 简介页（吹小号那张）的构图。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-page.is-photo-text { position: relative; background: #000; }
  .fca-pk-page.is-photo-text .pk-still-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 40%; display: block;
  }
  .fca-pk-page.is-photo-text .pk-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: min(34vh, 300px) clamp(36px, 4.4vw, 64px) clamp(32px, 3vw, 48px);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.82) 100%);
    color: #fff;
  }
  .fca-pk-page.is-photo-text h2 {
    margin: 0 0 12px; text-align: left; font-size: 26px; font-weight: 600;
    color: #fff !important; font-family: "EB Garamond", "Songti SC", serif;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
  }
  .fca-pk-page.is-photo-text .pk-body p {
    margin: 0 0 10px; font-size: 15px; line-height: 1.75;
    color: #fff !important; max-width: 34em;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
  }
}

/* 2026-12-03：职员表的「通栏」行（联合制片人一行 8 个双写名字，两栏排不下） */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-two-col .pk-full {
    display: block;
    margin: 0 0 14px;
    font-size: 13px;
  }
  .fca-pk-sheet.is-two-col .pk-full > div { display: flex; gap: 10px; margin: 0 0 6px; }
  .fca-pk-sheet.is-two-col .pk-full dt { flex: 0 0 4.8em; text-align: left; color: rgba(255,255,255,.9) !important; }
  .fca-pk-sheet.is-two-col .pk-full dd { flex: 1 1 auto; margin: 0; color: #fff !important; }
}

/* 2026-12-03 用户指正：原 PDF 的演员表是**居中**的整块（角色名右对齐、演员名左对齐），不是贴左两栏。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-cast dl {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    font-size: 15px;
    column-count: 1 !important;
  }
  .fca-pk-sheet.is-cast dl > div {
    display: flex;
    gap: 16px;
    margin: 0 0 10px;
    justify-content: center;
  }
  .fca-pk-sheet.is-cast dt { flex: 0 0 auto; text-align: right; min-width: 6em; }
  .fca-pk-sheet.is-cast dd { flex: 0 0 auto; text-align: left; margin: 0; }
}

/* 2026-12-03 用户指正：署名表的对齐规矩是「**中缝居中**」——
   标题居中，标签列右对齐收在中轴左侧，名字列左对齐起在中轴右侧；
   不是把整块往外一边摆，也不是整块居中。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-cast dl,
  .fca-pk-sheet.is-crew dl,
  .fca-pk-sheet.is-two-col dl {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    row-gap: 0;
    width: min(880px, 100%);
    max-width: 100%;
    margin: 0 auto !important;
    font-size: 11.5px;
    line-height: 1.36;
    column-count: 1 !important;
  }
  .fca-pk-sheet.is-cast dl > div,
  .fca-pk-sheet.is-crew dl > div,
  .fca-pk-sheet.is-two-col dl > div {
    display: contents !important;
  }
  .fca-pk-sheet.is-cast dt,
  .fca-pk-sheet.is-crew dt,
  .fca-pk-sheet.is-two-col dt {
    grid-column: 1;
    text-align: right !important;
    padding: 1px 0;
    color: rgba(255,255,255,.88) !important;
    white-space: nowrap;
  }
  .fca-pk-sheet.is-cast dd,
  .fca-pk-sheet.is-crew dd,
  .fca-pk-sheet.is-two-col dd {
    grid-column: 2;
    text-align: left !important;
    margin: 0 0 0 6px;
    padding: 1px 0;
    color: #fff !important;
    min-width: 0;
  }
  /* 联合制片人：名字长，占整行 */
  .fca-pk-sheet.is-crew dl > div.pk-wide { display: contents !important; }
  .fca-pk-sheet.is-crew .pk-wide dt { grid-column: 1; }
  .fca-pk-sheet.is-crew .pk-wide dd { grid-column: 2; }
  .fca-pk-sheet.is-cast dl { font-size: 15px; width: min(620px, 100%); }
  .fca-pk-sheet.is-cast dt { white-space: normal; }
  .fca-pk-sheet.is-cast dd { white-space: normal; }
}

@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-crew, .fca-pk-sheet.is-cast { padding-top: 26px; padding-bottom: 22px; }
  .fca-pk-sheet.is-crew h2, .fca-pk-sheet.is-cast h2 { font-size: 26px; margin: 0 0 16px; }
}

/* 署名表：人名按「、」拆块后，换行只发生在人名之间，人名本身与括号里的原文不拆开 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-crew dd, .fca-pk-sheet.is-cast dd { white-space: normal; }
  .fca-pk-sheet.is-crew dd .pk-name, .fca-pk-sheet.is-cast dd .pk-name {
    display: inline-block;
    white-space: nowrap;
    break-inside: avoid;
  }
}

/* 2026-12-03 用户定：职员表分两列写「职位｜人名」对（一列太长会被迫缩小字号），整块居中。 */
@media (min-width: 641px) and (pointer: fine) {
  .fca-pk-sheet.is-crew dl {
    display: block !important;
    width: min(1010px, 100%);
    margin: 0 auto !important;
    font-size: 11.5px;
    line-height: 1.34;
  }
  .fca-pk-sheet.is-crew .pk-cols { display: flex; gap: 44px; }
  .fca-pk-sheet.is-crew .pk-col { flex: 1 1 0; min-width: 0; display: block; }
  .fca-pk-sheet.is-crew .pk-cols { gap: 26px; }
  .fca-pk-sheet.is-crew .pk-col > div,
  .fca-pk-sheet.is-crew .pk-full > div {
    display: flex;
    gap: 9px;
    margin: 0 0 3px;
  }
  .fca-pk-sheet.is-crew .pk-full { margin: 0 0 10px; display: block; font-size: 11.5px; }
  .fca-pk-sheet.is-crew dt { flex: 0 0 5.2em; text-align: right; color: rgba(255,255,255,.88) !important; }
  .fca-pk-sheet.is-crew dd { flex: 1 1 auto; margin: 0; color: #fff !important; min-width: 0; }
}
