/* 样片 / 教程 页视频展示与弹窗播放 */

.videos-page {
  padding: 120px 0 80px;
  min-height: 60vh;
}

.videos-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.videos-page .page-header {
  margin-bottom: 40px;
}

.videos-page .page-title {
  font-size: 36px;
  font-weight: 700;
  margin: 16px 0 12px;
}

.videos-page .page-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
}

.videos-page .video-section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--text-primary);
}

.videos-page .video-section-title:first-of-type {
  margin-top: 0;
}

[data-video-no-download] video::-webkit-media-controls-enclosure,
.video-player-overlay--no-download video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

[data-video-no-download] video::-webkit-media-controls-download-button,
.video-player-overlay--no-download video::-webkit-media-controls-download-button {
  display: none !important;
}

.video-wrapper--native video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}

.video-card {
  cursor: pointer;
}

.video-card .video-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .videos-page .page-title {
    font-size: 28px;
  }
}

/* 播放弹层 */
.video-player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-player-overlay.is-open {
  display: flex;
}

.video-player-box {
  position: relative;
  width: min(960px, 100%);
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.video-player-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 40px 12px 0;
  word-break: break-all;
}

.video-player-box video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 8px;
  display: block;
}

.video-player-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-player-close:hover {
  color: #fff;
}

.video-player-stage {
  position: relative;
}

.video-player-overlay--no-download video {
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.video-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 4px 0;
}

.video-player-play,
.video-player-mute {
  flex: none;
  width: 36px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 32px;
  padding: 0;
}

.video-player-play:hover,
.video-player-mute:hover {
  background: rgba(255, 255, 255, 0.16);
}

.video-player-seek {
  flex: 1;
  min-width: 0;
  height: 6px;
  accent-color: #7c5cff;
  cursor: pointer;
}

.video-player-time {
  flex: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
