/* 由 php/tools/build-assets.cjs 生成，请勿手改。
   改动样式请改 client/src 下对应的 .vue / .css 源文件后重新执行生成脚本。
   注意：这里按组件作用域重建了选择器（等价于 Vue 的 <style scoped>），
   对应 class 已经写在各模板的根元素上，挪动模板时不要漏掉。 */

/* ---- views/Videos.vue  →  作用域 .page-videos ---- */
.page-videos .channel-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 56px;
}
.page-videos .ch-qr {
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-bg);
}
.page-videos .ch-qr img { width: 100%; height: 100%; object-fit: cover; }
.page-videos .qr-ph { font-size: 12px; color: var(--gray-light); text-align: center; padding: 0 10px; }
.page-videos .badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.page-videos .ch-body h2 { font-size: 22px; margin-bottom: 10px; }
.page-videos .ch-desc { color: var(--gray); font-size: 15px; line-height: 1.7; }
.page-videos .ch-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.page-videos .vhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}
.page-videos .vhead h2 { font-size: 22px; padding-left: 14px; border-left: 4px solid var(--brand); }
.page-videos .count { color: var(--gray-light); font-size: 14px; }
.page-videos .sync { margin-left: auto; color: var(--gray-light); font-size: 13px; }
.page-videos .plays { margin-top: 8px; color: var(--gray-light); font-size: 13px; }

/* 合集分组块 */
.page-videos .vsection { margin-bottom: 44px; }
.page-videos .vsection:last-child { margin-bottom: 0; }
.page-videos .col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.page-videos .col-flag {
  width: 4px;
  height: 18px;
  background: var(--brand);
  border-radius: 2px;
  display: inline-block;
}
.page-videos .col-head h3 { font-size: 18px; font-weight: 600; }
.page-videos .col-count { color: var(--gray-light); font-size: 14px; }

.page-videos .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.page-videos .chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gray);
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.page-videos .chip:hover { border-color: var(--brand); color: var(--brand); }
.page-videos .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.page-videos .vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.page-videos .vcard {
  display: block;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.page-videos .vcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.page-videos .vcard.disabled { cursor: default; opacity: 0.75; }
.page-videos .cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1c2733; }
.page-videos .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-videos .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}
.page-videos .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.page-videos .play svg { width: 22px; height: 22px; margin-left: 2px; }
.page-videos .vcard:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.page-videos .vmeta { padding: 18px 20px 22px; }
.page-videos .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.page-videos .vmeta h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.page-videos .vmeta p { color: var(--gray); font-size: 14px; line-height: 1.6; }

.page-videos .empty { text-align: center; color: var(--gray-light); padding: 60px 0; }

.page-videos .pv {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-videos .pv iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* 醒目的全屏按钮：压在画面上，播放时一直可见（不必悬停才出现）
   尺寸都乘 --fs-k：手机端整站被等比缩小，JS 按 1/scale 放大这个系数抵消掉 */
.page-videos .pv-fs {
  position: absolute;
  top: calc(14px * var(--fs-k, 1));
  right: calc(14px * var(--fs-k, 1));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--fs-k, 1));
  padding: calc(10px * var(--fs-k, 1)) calc(18px * var(--fs-k, 1)) calc(10px * var(--fs-k, 1)) calc(14px * var(--fs-k, 1));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.92);
  color: #fff;
  font-size: calc(14px * var(--fs-k, 1));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.page-videos .pv-fs svg { width: calc(18px * var(--fs-k, 1)); height: calc(18px * var(--fs-k, 1)); flex-shrink: 0; }
.page-videos .pv-fs:hover { background: #d8133a; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.page-videos .pv-fs:active { transform: translateY(0); }
.page-videos .pv-fs:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 原生全屏：画面 + 标题操作条一起铺满，退出按钮仍在画面里 */
.page-videos .pv:fullscreen { width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.page-videos .pv:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.page-videos .pv:fullscreen iframe, .page-videos .pv:-webkit-full-screen iframe { flex: 1 1 auto; min-height: 0; height: auto; aspect-ratio: auto; }
/* 全屏后 B 站播放器顶部会常驻一排「点赞/投币/分享」图标，把按钮下移让开，别互相压住 */
.page-videos .pv:fullscreen .pv-fs, .page-videos .pv:-webkit-full-screen .pv-fs { top: calc(64px * var(--fs-k, 1)); }
/* 降级：拿不到原生全屏（iOS Safari 上 iframe 容器不行）时铺满视口 */
.page-videos .pv.pv-zoom {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 600;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.page-videos .pv.pv-zoom iframe { flex: 1 1 auto; min-height: 0; height: auto; aspect-ratio: auto; }

.page-videos .pv-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 14px 18px;
}
.page-videos .pv-title {
  font-size: 15px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-videos .pv-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.page-videos .pv-actions a { font-size: 14px; color: var(--brand); }
.page-videos .pv-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 20px;
}
.page-videos .pv-close:hover { border-color: var(--brand); color: var(--brand); }

.page-videos .mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.page-videos .lb {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px 24px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.page-videos .lb img { width: 240px; height: 240px; object-fit: contain; display: block; margin: 0 auto 16px; }
.page-videos .lb-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.page-videos .lb-note { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.page-videos .lb-close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 20px;
}
.page-videos .lb-close:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 1000px) {
  .page-videos .vgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .page-videos .channel-card { flex-direction: column; text-align: center; padding: 26px 20px; gap: 20px; }
  .page-videos .ch-note { border-left: none; padding-left: 0; }
  .page-videos .vgrid { grid-template-columns: 1fr; }
}
