/* RAQFI 站点扩展样式：视频、筛选、文章补充 */

[hidden] {
  display: none !important;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters .filter {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 180ms ease;
}

.filters .filter:hover,
.filters .filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-thumb {
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(11, 21, 38, 0.72);
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(3px);
}

.video-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.video-poster .play-badge {
  width: auto;
  height: auto;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.video-note {
  color: var(--muted);
  font-size: 13px;
}

.wechat-qr {
  max-width: 260px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.wechat-qr img {
  width: 100%;
  height: auto;
}

.empty-note {
  color: var(--muted);
}

@media (max-width: 900px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}
