/**
 * 视频详情页样式
 */

/* 视频播放器居中 */
.video-player-center {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.video-player-wrap {
  width: 100%;
  max-width: 900px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

#mainVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CMS后台配置: videoTitle */
.video-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #222222;
  margin: 20px 0 12px;
  line-height: 1.4;
}

/* CMS后台配置: videoDesc */
.video-detail-desc {
  font-size: 14px;
  color: #222222;
  line-height: 1.8;
  margin: 0;
}

/* 相关推荐 */
.related-videos {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #222222;
  margin: 0;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #222222;
  text-decoration: none;
  transition: color 0.3s;
}

.section-more:hover {
  color: #2563eb;
}

.related-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-video-card {
  text-decoration: none;
  color: inherit;
}

.related-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.related-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
}

.related-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
}

.related-video-card:hover .related-video-thumb img {
  transform: scale(1.05);
}

.related-video-card:hover .related-video-overlay {
  opacity: 1;
}

.related-video-info {
  padding: 12px 0;
}

.related-video-name {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  margin: 0 0 4px;
  line-height: 1.4;
}

.related-video-views {
  font-size: 12px;
  color: #999;
}

/* 响应式 */
@media (max-width: 1024px) {
  .related-videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .related-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .video-player-center {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .related-videos-grid {
    grid-template-columns: 1fr;
  }
}
