/* 首页 hero 视频播放进度条样式：只新增底部进度条，不改动卡片其他样式。 */
.home-hero-visual {
  --hero-progress-track: rgba(15, 23, 42, 0.14);
  --hero-progress-fill: linear-gradient(90deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
}

.home-hero-visual .hero-video-progress {
  position: absolute;
  right: 16px;
  bottom: 10px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  height: 10px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.home-hero-visual .hero-video-progress[hidden] {
  display: none;
}

/* 进度条热区与静音按钮底部有 4px 重叠，确保按钮点击优先，不改变按钮外观。 */
.home-hero-visual .home-video-sound {
  z-index: 4;
}

.home-hero-visual .hero-video-progress-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hero-progress-track);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  transition: height 0.18s ease;
}

.home-hero-visual .hero-video-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--hero-progress-fill);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.35);
  transition: width 0.12s linear;
}

.home-hero-visual .hero-video-progress:hover .hero-video-progress-track,
.home-hero-visual .hero-video-progress:focus-visible .hero-video-progress-track,
.home-hero-visual .hero-video-progress.is-dragging .hero-video-progress-track {
  height: 6px;
}

.home-hero-visual .hero-video-progress:focus-visible .hero-video-progress-track {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-visual .hero-video-progress-track,
  .home-hero-visual .hero-video-progress-fill {
    transition: none;
  }
}
