.page-header {
  padding: 42px 0 10px;
  text-align: center;
}

main > div {
  padding: 0 0 30px 0;
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 44px);
}

.page-header .tag {
  color: var(--muted);
}

.yt-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.yt-wrap.small {
  padding-top: 56.25%;
  box-shadow: none;
}

.yt-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.yt-load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
  color: #fff;
  border: 0;
  cursor: pointer;
}

.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.yt-cta {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: #0b0f16;
  font-weight: 800;
  padding: 0.6rem 0.9rem;
  border-radius: 0.55rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.video-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
