/* 视频弹窗样式 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .video-container {
  transform: scale(1);
}

video {
  width: 100%;
  display: block;
  background: #000;
}

.video-controls {
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  transition: all 0.2s;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}

.progress-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: #ff4081;
  border-radius: 4px;
  width: 0%;
  transition: width 0.2s;
}

.time-display {
  font-size: 0.9rem;
  color: #ddd;
  min-width: 100px;
  text-align: center;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 70px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4081;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.close-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.video-modal-title {
  position: absolute;
  top: -40px;
  left: 0;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .video-controls {
    padding: 10px;
    gap: 8px;
  }

  .control-btn {
    font-size: 1rem;
    padding: 6px;
    width: 36px;
    height: 36px;
  }

  .time-display {
    min-width: 80px;
    font-size: 0.8rem;
  }

  .volume-control {
    display: none;
  }
}