.yt-gallery {
  max-width: 1200px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 800px) {
  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .yt-grid {
    grid-template-columns: 1fr;
  }
}

.yt-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.yt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.yt-thumb-wrap {
  position: relative;
  display: block;
  line-height: 0;
  width: 100%;
  aspect-ratio: 16/9.9;
  background: transparent;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
@supports not (aspect-ratio: 1/1) {
  .yt-thumb-wrap::before {
    content: "";
    display: block;
    padding-top: 61.875%;
  }
}
.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-chip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: .9;
  pointer-events: none;
}

.yt-body {
  padding: 16px 18px;
}
.yt-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
}
.yt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}
.yt-cta {
  font-weight: 600;
  text-decoration: none;
}
.yt-cta:hover {
  text-decoration: underline;
}

/* Skeletons */
.yt-skel-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}
.yt-skel-thumb {
  position: relative;
}
.yt-skel-thumb::before {
  content: "";
  display: block;
  padding-top: 61.875%;
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
  background-size: 400% 100%;
  animation: shimmer_c2dd7803 1.3s infinite;
}
.yt-skel-body {
  padding: 16px 18px;
}
.yt-skel-line {
  height: 12px;
  margin: 10px 0;
  border-radius: 6px;
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
  background-size: 400% 100%;
  animation: shimmer_c2dd7803 1.3s infinite;
}
.yt-skel-line.tall {
  height: 16px;
}
.yt-skel-line.short {
  width: 60%;
}
@keyframes shimmer_c2dd7803 {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.yt-note {
  margin: 10px 4px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
