/* ═══════════════════════════════════════════
   vb-player.css  v5
   - 修复灰色重影（压制浏览器原生控件）
   - 控制栏完全镂空透明，无阴影无黑底
   - 移动端静音 + 保留音量按钮
   ═══════════════════════════════════════════ */

/* ── 压制所有浏览器原生 video 控件 ── */
video::-webkit-media-controls            { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel     { display: none !important; }
video::--webkit-media-controls-overlay-cast-button { display: none !important; }
video::-moz-media-controls              { display: none !important; }

.vb-video {
  /* 同样用 CSS 属性双保险 */
  -webkit-appearance: none;
}

/* ── 容器 ── */
.vb-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.vb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.vb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 1;
  pointer-events: none;
}

.vb-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ══ 大中心按钮══ */
.vb-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 96px;
  height: 96px;
  border: none;
  outline: none;
  background: transparent !important;  
  box-shadow: none !important;           
  border-radius: 0 !important;           
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.80;
  transition: opacity .2s, transform .18s;
}
.vb-big-play:hover { opacity: 0.70; transform: translate(-50%, -50%) scale(1.06); }

/*css focus 规则 */
.vb-big-play:focus,
.vb-big-play:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.vb-big-play svg   { width: 78px; height: 78px; fill: #fff; margin-left: 6px; }
.vb-big-play svg.vb-svg-pause { margin-left: 0; }
.vb-big-play.vb-gone { display: none; }

/* ══ 控制栏══ */
.vb-chrome {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  background: transparent;          /* 完全透明 */
  padding: 0 16px 12px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  box-sizing: border-box;
}
.vb-chrome.vb-show {
  opacity: 1;
  pointer-events: auto;
}

/* ── 进度条行 ── */
.vb-progress-row {
  padding: 6px 0 4px;
  cursor: pointer;
}

.vb-prog-wrap {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

/* 缓冲层 */
.vb-prog-buf {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255,255,255,0.30);
  border-radius: 1px;
  width: 0%;
  pointer-events: none;
  transition: width .3s;
}

/* 白色进度条，抖音细线 */
.vb-prog {
  position: relative;
  width: 100%;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.22);
  border-radius: 1px;
  cursor: pointer;
  z-index: 1;
  transition: height .15s;
  accent-color: #fff;
}
.vb-prog-wrap:hover .vb-prog { height: 4px; }

.vb-prog::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.vb-prog-wrap:hover .vb-prog::-webkit-slider-thumb { opacity: 1; }
.vb-prog::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* ── 按钮行 ── */
.vb-btn-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.vb-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: .88;
  transition: opacity .15s;
  position: relative;
}
.vb-btn:hover { opacity: 1; }
.vb-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* 时间 */
.vb-time {
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  white-space: nowrap;
  margin: 0 8px;
  letter-spacing: .03em;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.vb-time-sep { opacity: .5; margin: 0 2px; }

.vb-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }

/* ── 音量（PC hover 展开，移动端显示图标不展开滑块） ── */
.vb-vol-area { display: flex; align-items: center; }
.vb-vol-wrap {
  overflow: hidden;
  max-width: 0;
  transition: max-width .2s ease;
  display: flex;
  align-items: center;
}
/* PC 端 hover 展开 */
@media (min-width: 769px) {
  .vb-vol-area:hover .vb-vol-wrap,
  .vb-vol-area:focus-within .vb-vol-wrap { max-width: 68px; }
}
.vb-vol {
  width: 60px; height: 2px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.25);
  border-radius: 1px; cursor: pointer;
  accent-color: #fff;
  margin-right: 4px;
}
.vb-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%; background: #fff;
}

/* ── Tooltip ── */
.vb-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.80);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 20;
}
.vb-btn[data-tip]:hover::after { opacity: 1; }

/* ── 三点菜单 ── */
.vb-menu-wrap { position: relative; }
.vb-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(20,20,20,0.96);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  z-index: 20;
  overflow: hidden;
}
.vb-menu.vb-open { display: block; }

.vb-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background .12s;
  box-sizing: border-box;
}
.vb-menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vb-menu-item svg { width: 15px; height: 15px; fill: currentColor; opacity: .75; flex-shrink: 0; }
.vb-menu-item .vb-chevron {
  margin-left: auto; opacity: .4;
  width: 13px; height: 13px;
  transition: transform .2s;
}
.vb-menu-item.vb-expanded .vb-chevron { transform: rotate(90deg); }

.vb-speed-list {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.vb-speed-list.vb-open { display: block; }
.vb-speed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 16px 9px 30px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  cursor: pointer;
  transition: background .12s;
  box-sizing: border-box;
}
.vb-speed-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vb-speed-item.vb-active { color: #fff; font-weight: 500; }
.vb-speed-item.vb-active::after { content: '✓'; font-size: 11px; }

.vb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 19;
}
.vb-backdrop.vb-open { display: block; }

/* ══ 移动端 ══ */
@media (max-width: 768px) {
  .vb-section { height: 56vw; min-height: 240px; }
  /* 移动端控制栏默认隐藏 */
  .vb-chrome { padding: 0 10px 8px; }
  /* 移动端不隐藏音量按钮，但滑块不展开 */
  .vb-vol-wrap { display: none; }
  .vb-big-play { width: 78px; height: 78px; }
  .vb-big-play svg { width: 60px; height: 60px; }
  .vb-time { font-size: 11px; margin: 0 5px; }
  .vb-btn svg { width: 18px; height: 18px; }
  .vb-btn { padding: 5px; }
  .vb-btn[data-tip]::after { display: none; }
}

/* ══ 全屏时强制显示控件 ══ */
:fullscreen .vb-chrome,
:-webkit-full-screen .vb-chrome {
  opacity: 1 !important;
  pointer-events: auto !important;
}