.home-video-player {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}

.home-video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #000;
}

.home-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a962, #b8860b);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.home-video-player.is-playing .home-big-play {
  display: none;
}

.home-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* 沒有明確層級時 <video> 會蓋住控制列，按鈕點不到 */
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-video-player:hover .home-video-controls,
.home-video-player.show-controls .home-video-controls {
  opacity: 1;
}

.home-ctrl-btn {
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.home-time {
  color: #fff;
  font-size: 12px;
  min-width: 42px;
  text-align: center;
}

.home-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.home-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #e5cf96, #b8860b);
}

.home-volume {
  width: 88px;
}

.home-video-caption {
  display: block;
  width: min(780px, 100%);
  margin: 14px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-55);
  text-decoration: none;
}

.home-video-caption:hover {
  color: var(--primary-jade);
}

@media (max-width: 599px) {
  /* 影片框寬度由版面決定、不隨字級放大，
     控制列與大播放鍵若跟著 main 的 zoom 變大就會擠出影片框外。 */
  .home-video-controls,
  .home-big-play {
    zoom: calc(1 / var(--font-scale, 1));
  }

  .home-video-controls {
    gap: 8px;
    padding: 8px 10px;
  }

  /* 手機用機身音量鍵調整，滑桿只會佔掉控制列的寬度 */
  .home-volume {
    display: none;
  }

  .home-big-play {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
