/* 页头视频 */

/* 毛玻璃弹框背景 */
.head-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .4s;
  z-index: 9999;
}
.head-modal-overlay.active{ opacity: 1; visibility: visible; }

/* 弹框内容 */
.head-modal-box{
  position: relative;
  width: 90%;
  max-width: 800px;
  background: rgba(255,255,255,.85);
  border-radius: 20px;
  padding: 25px 30px 35px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  transform: scale(.9);
  transition: .4s;
}
.head-modal-overlay.active .head-modal-box{ transform: scale(1); }

.head-modal-close{
  position: absolute;
  right: 20px; top: 15px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
}
.head-modal-close:hover{ color: #000; }

.head-modal-title{
  text-align: center;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #3a3a3a;
}

/* 视频区域 */
.head-video-wrapper{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.head-video-wrapper video{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.head-modal-desc{
  text-align: center;
  margin-top: 15px;
  font-size: .95rem;
  color: #555;
}

/* 页尾视频 */
/* 让比例容器先出高度，避免 0 px */
.video-box{
  border-radius: 20px;
  overflow: hidden;
  background: #000;          /* 黑底，海报未加载时也不白屏 */
}

/* 视频必须 100% 撑满比例框 */
.video-box video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 播放按钮 */
.play-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #b98d54;
  cursor: pointer;
  transition: opacity .3s;
}
.play-overlay.hide{
  opacity: 0;
  pointer-events: none;
}