.yt-feed--grid,
.yt-feed__gallery {
  display: grid;
  grid-template-columns: repeat(var(--yt-cols, 3), minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .yt-feed--grid,
  .yt-feed__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.yt-feed--gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.yt-feed__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yt-feed__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.yt-feed__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.yt-feed__thumb:hover img,
.yt-feed__thumb:focus-visible img {
  transform: scale(1.04);
}

.yt-feed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  pointer-events: none;
}
.yt-feed__thumb:hover .yt-feed__play {
  background: rgba(204, 0, 0, 0.9);
}
.yt-feed__play::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.yt-feed__thumb--featured .yt-feed__play {
  width: 88px;
  height: 88px;
}
.yt-feed__thumb--featured .yt-feed__play::before {
  border-width: 14px 0 14px 22px;
  margin-left: 6px;
}

.yt-feed__featured-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.yt-feed__title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.6rem 0 0.25rem;
  word-break: break-word;
}
.yt-feed__title a {
  color: inherit;
  text-decoration: none;
}
.yt-feed__title a:hover {
  text-decoration: underline;
}
.yt-feed__title--featured {
  font-size: 1.35rem;
}

.yt-feed__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.yt-feed-error {
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border-left: 4px solid #f0b400;
  color: #5a4500;
  font-family: monospace;
}
.yt-feed-empty {
  padding: 1rem;
  opacity: 0.7;
}
