/* Preview cards are rendered as items inside the #videos list (live tab),
   so the list's own flex/gap/padding handles their layout. */
.preview-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.preview-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.preview-card video.preview-media {
  pointer-events: none;
}

.preview-iframe {
  pointer-events: none;
  transform: scale(1.12);
  transform-origin: center center;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background-color: #ff0000;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: white;
  animation: preview-live-pulse 1.5s ease-in-out infinite;
}

.preview-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.preview-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.preview-title {
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes preview-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
