/* 2026-12-03 用户定：首页「售票海报」停顿 1 秒后原地变预告片（照 Apple TV 的自动预览）。
   规则：
   - 视频盒 = 海报盒（位置/尺寸/圆角由 JS 量海报后写入，手机全幅、桌面 300px 卡片都对齐）；
   - 「阅读」按钮永远压在视频之上，不被覆盖；
   - **没有关闭键**（2026-12-04 用户定）：划走即关闭，停在这再数两秒重播；
   - 手机：静音键在屏幕右上角那组玻璃钮里（`fmc-home-mark.css`），本文件里的键只在桌面出现；
   - 底部渐隐与海报同一条掩膜，切换时不跳。
   首页 CSP 是 style-src 'self'：只能外部样式表，不能内联。 */

.fca-art img { transition: opacity .45s ease; }
.fca-art.is-playing img { opacity: 0; }

.fca-trailer-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.fca-art.is-playing .fca-trailer-stage { opacity: 1; }

.fca-trailer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 竖屏：按海报盒居中裁切 */
  border-radius: inherit;
  background: #000;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .5) 88%, transparent 100%);
}

/* 桌面右上角的音键（手机那一路在 fmc-home-mark.css 的 .fmc-home-sound 里） */
.fca-trailer-sound {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(20, 20, 20, .5);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background .2s ease;
}
.fca-trailer-sound { right: 8px; top: 8px; }
.fca-trailer-sound:hover { background: rgba(20, 20, 20, .72); }
.fca-art.is-playing .fca-trailer-sound {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fca-trailer-sound svg { width: 20px; height: 20px; display: block; }
.fca-trailer-sound .icon-on { display: none; }
.fca-trailer-sound.is-unmuted .icon-on { display: block; }
.fca-trailer-sound.is-unmuted .icon-off { display: none; }

/* 文案层（含「阅读」）永远在视频之上 */
.fca-hero-copy { z-index: 3; }

/* 手机：音键挪到右上角那组玻璃钮（FAQ 左边），这里的那颗不再出现，避免同一颗键画两次 */
@media (max-width: 640px) {
  .fca-trailer-sound { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fca-art img,
  .fca-trailer-stage,
  .fca-trailer-sound { transition: none; }
}

/* 首页「阅读」右侧的圆形 ⓘ（Press kit 入口），照 Apple TV 那种小圆钮：与阅读同高、白描边、半透明 */
.fca-btn-info {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .12s ease;
}
.fca-btn-info:hover { background: rgba(255, 255, 255, .24); }
.fca-btn-info:active { transform: scale(.96); }
.fca-btn-info:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.fca-btn-info svg { width: 18px; height: 18px; display: block; }

/* 手机横过来看：不再裁切，整幅 16:9 完整播放（上下留黑，满宽） */
@media (pointer: coarse) and (orientation: landscape) {
  .fca-trailer-stage {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  .fca-trailer {
    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* 分享成功/复制成功的轻提示（首页 CSP 允许脚本建节点） */
.fmc-share-toast{
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 9999; padding: 10px 16px; border-radius: 999px;
  background: rgba(28,28,30,.92); color: #fff; font-size: 14px; line-height: 1.2;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.fmc-share-toast.is-on{ opacity: 1; }

/* 覆盖站内给 button 的通用描边/焦点环：这颗是视频上的浮层控件，只该有纯白字形，
   不要任何环；焦点环只在键盘导航时出现一次（Apple TV 的焦点高亮也是「当前那一个」才有）。
   注意 appearance-logo.css 有一条给所有 button 的 `color/border-color: var(--fm-action) !important`，
   fmc-site-controls.css 又把 :focus-visible 的 outline 画成 currentColor —— 两处合起来就是那圈蓝。
   所以颜色、描边、焦点环都要在这里用 !important 一次清干净。 */
html body .fca-trailer-sound{
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-tap-highlight-color: transparent;
}
/* 纯白字形，不描边不底；在亮画面上靠一层极轻的投影保证可读 */
html body .fca-trailer-sound svg{
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}
/* 键盘焦点：这里的选择器要比 fmc-site-controls 那条 (0,2,3) 更高，才盖得掉它的 currentColor 环 */
html:root body button.fca-trailer-sound:focus-visible{
  outline: 2px solid rgba(255, 255, 255, .9) !important;
  outline-color: rgba(255, 255, 255, .9) !important;
  outline-offset: 2px;
}

/* 播放时首页左上角的「机构」也让开（视频态只留右上角那组键） */
body.fmc-hero-playing .fmc-page-title{ opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }

/* 2026-12-03：自动播放被浏览器拒绝时（Safari 的站点自动播放设置、低电量模式等），
   给一个明确的播放键。之前是无声退回静态海报——用户只会觉得「预告片坏了」。 */
.fca-trailer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  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 4px 18px rgba(0, 0, 0, .35) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  z-index: 6;
}
.fca-trailer-play svg { width: 26px; height: 26px; display: block; }
.fca-trailer-play:hover { background: rgba(30, 30, 33, .8) !important; }

/* 2026-12-03 用户报：预告片播放时窗口顶上留了一条黑边。
   实测片源（la-bola-negra-hero-landscape-720p.mp4，1280×720）自己就带黑边：
   解码帧第 0–6 行、710–719 行都是纯黑（影片画幅略窄，编码时上下留了 ~7/9 px）。
   `object-fit: cover` 只负责裁两边，不会裁掉这个"内容里的黑边"，所以顶上就露出那一条。
   做法：整体放大 3.5%，把上下黑边推出可视区（内容只多裁约 1.7% 边角）。 */
.fca-trailer {
  transform: scale(1.035);
  transform-origin: 50% 50%;
}
