@layer retech-block {
  /* retech/video-facade —— 原型 `assets/css/solutions.css` §19.5「视频门面」+ §23.2
     「视频兜底面板」逐条搬运(类名加 `retech-x-` 前缀,原型变量换成本站 token)。

     对照表(原型 → 本站 token):
       --steel-2 → --retech-x-steel-2      --line-dark → --retech-x-line-dark
       --line    → --retech-x-line          --green     → --retech-x-flow
       --r-lg    → --retech-x-r-lg          --fs-sm     → 14px
       --r-xs    → --retech-x-r-xs          --r-pill    → --retech-x-r-pill
       --w90     → --retech-x-w90           --w72       → --retech-x-w72
       --dur     → --retech-x-dur           --ease-ui   → --retech-x-ease-ui
       --dur-fast→ --retech-x-dur-fast

     刻意**没有**搬的一条:原型 `.sec--light .vfacade` / `.vfacade-wrap .sol-note`
     是后代选择器 —— 本块可以单独放进任意容器,所以改成门面自身的
     `.retech-x-vfacade--light` 修饰类(`tone` 属性),不依赖祖先有没有 `.sec--light`。
     `.vfacade-wrap .sol-note` 对应的是「播放器下方小字」,那属于
     retech/video-detail 的 `aside.vid-meta .sol-note`,在那边搬运。 */

  .retech-x-vfacade {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--retech-x-steel-2);
    border: 1px solid var(--retech-x-line-dark);
    border-radius: var(--retech-x-r-lg);
    overflow: hidden;
  }
  .retech-x-vfacade--light { border-color: var(--retech-x-line); }
  .retech-x-vfacade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.72; }
  .retech-x-vfacade iframe { width: 100%; height: 100%; border: 0; display: block; }

  .retech-x-vfacade-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;                 /* 原型 §19.13 播放器微调:gap 14px → 16px */
    padding: 0 24px;           /* 同上 */
    background: linear-gradient(180deg, rgba(17,23,28,0.28), rgba(17,23,28,0.62));
    border: 0;
    cursor: pointer;
    color: #fff;
  }
  .retech-x-vfacade-icon {
    position: relative;
    flex: 0 0 auto;            /* 同上:字重/行高变化时不压缩圆形按钮 */
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(17,23,28,0.62);
    border: 1.5px solid rgba(255,255,255,0.78);
    backdrop-filter: blur(4px);
    transition: background-color var(--retech-x-dur) var(--retech-x-ease-ui),
                transform var(--retech-x-dur) var(--retech-x-ease-ui);
  }
  .retech-x-vfacade-icon::after {
    content: "";
    position: absolute;
    left: 53%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
  }
  .retech-x-vfacade-btn:hover .retech-x-vfacade-icon {
    background: var(--retech-x-flow);
    border-color: var(--retech-x-flow);
    transform: scale(1.04);
  }
  .retech-x-vfacade-label {
    font-size: 14px;           /* 原型 --fs-sm */
    font-weight: 700;
    line-height: 1;            /* 原型 §19.13 */
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  }

  /* ── 「在 YouTube 上观看」直达链接(原型 §23.2)────────────────────────
     嵌入播放失败时用户仍有一条能看到视频的路 —— 这条链接不是装饰。 */
  .retech-x-vfacade-watch {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--retech-x-r-pill);
    background: rgba(17, 23, 28, 0.66);
    color: var(--retech-x-w90);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: background-color var(--retech-x-dur-fast) var(--retech-x-ease-ui),
                border-color var(--retech-x-dur-fast) var(--retech-x-ease-ui);
  }
  .retech-x-vfacade-watch:hover {
    background: var(--retech-x-flow);
    border-color: var(--retech-x-flow);
    color: #fff;
  }

  /* ── 兜底面板(原型 §23.2 `.vfacade.is-fallback` + `.vfallback*`)────────
     blocks/view.js 在 YouTube API 加载失败 / 播放被拒 / file:// 打开时把门面内容
     换成这块面板。两个类名都认:`.retech-x-vfacade--fallback` 是本块的约定,
     `.is-fallback` 是原型类名(便于与原型逐字对照)。 */
  .retech-x-vfacade--fallback,
  .retech-x-vfacade.is-fallback { aspect-ratio: auto; }
  .retech-x-vfallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 30px 28px;
    border: 1px solid var(--retech-x-line-dark);
    border-radius: var(--retech-x-r-lg);
    background: var(--retech-x-steel);
  }
  .retech-x-vfacade--light .retech-x-vfallback {
    background: var(--retech-x-gray-light);
    border-color: var(--retech-x-line);
  }
  .retech-x-vfallback-title { color: #fff; font-size: 14px; font-weight: 700; }
  .retech-x-vfacade--light .retech-x-vfallback-title { color: var(--retech-x-ink); }
  .retech-x-vfallback-msg { color: var(--retech-x-w72); font-size: 13px; line-height: 1.7; max-width: 68ch; }
  .retech-x-vfacade--light .retech-x-vfallback-msg { color: var(--retech-x-ink-2); }
}

@layer retech-responsive {
  /* 原型 §19.10:767px 以下缩小播放圆钮并同步三角形比例 */
  @media (max-width: 767px) {
    .retech-x-vfacade-icon { width: 60px; height: 60px; }
    .retech-x-vfacade-icon::after { border-width: 10px 0 10px 16px; }
  }

  /* 原型 §19.11:动效克制 —— 减少动效时不放大圆钮 */
  @media (prefers-reduced-motion: reduce) {
    .retech-x-vfacade-btn:hover .retech-x-vfacade-icon { transform: none; }
  }
}
