.youtube-shorts {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  scroll-margin-top: 110px;
}
.youtube-shorts > h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1rem;
}
.youtube-shorts > p {
  max-width: 75ch;
  line-height: 1.7;
}
.youtube-shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.youtube-short {
  min-width: 0;
}
.youtube-short-player {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
  border-radius: 8px;
}
.youtube-short-player > img,
.youtube-short-player > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-short-player > img {
  object-fit: cover;
}
.youtube-short-player > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.youtube-short-player > button[hidden] {
  display: none;
}
.short-play-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #b31d33;
  font-size: 1.5rem;
  padding-left: 4px;
}
.youtube-short-player > button > span:last-child {
  background: #111;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.youtube-short-player > button:focus-visible {
  outline: 3px solid white;
  outline-offset: -6px;
}
.youtube-short .youtube-short-credit {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 1rem 0 0.65rem;
}
.youtube-short h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 0.65rem;
}
.youtube-short-original {
  display: inline-block;
  padding-block: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
}
.youtube-long-videos .youtube-shorts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.youtube-long-videos .youtube-short-player {
  aspect-ratio: 16/9;
}
.youtube-long-videos .youtube-short-player > img {
  object-fit: contain;
}
.youtube-video-context {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 1150px) {
  .youtube-shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .youtube-long-videos .youtube-shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .youtube-shorts-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 300px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding-bottom: 1rem;
  }
  .youtube-short {
    width: 100%;
    scroll-snap-align: start;
  }
  .youtube-long-videos .youtube-shorts-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 2rem;
    overflow: visible;
  }
}
