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

.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;
}

.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;
}
