/**
 * 视频卡片样式 - 参考 xnxx.com
 */

/* 视频卡片 */
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  cursor: pointer;
}

.video-card:hover {
  transform: scale(1.02);
}

/* 缩略图容器 */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

/* 无缩略图 - 渐变动画背景 */
.video-thumbnail.no-thumb {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
}

/* thumb-placeholder-gradient div 样式 */
.thumb-placeholder-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.video-thumbnail .thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 时长标签 */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* 外链标记 */
.external-link-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,153,0,0.9);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* 视频信息 */
.video-info {
  padding: 12px 0;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #999;
}

.video-author {
  color: #666;
}

.video-stats {
  color: #666;
}
