.video-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.video-list__eyebrow {
  margin-block: 0 0.25rem;
  color: var(--nnw-primary, #8e2035);
  font-size: 0.8rem;
  font-weight: 600;
}

.video-list__heading {
  margin-block: 0;
}

.video-list__button {
  padding-block: 0.75rem;
  padding-inline: 1.25rem;
  border-radius: var(--nnw-radius, 0.5rem);
  background: var(--nnw-primary, #8e2035);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.video-list__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-block-start: 2rem;
}

.video-list__featured {
  flex: 3 1 26rem;
  min-inline-size: 0;
  color: inherit;
  text-decoration: none;
}

.video-list__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--nnw-border, #e4d8d3);
  border-radius: var(--nnw-radius, 0.5rem);
  background: color-mix(in srgb, var(--nnw-primary, #8e2035) 8%, var(--nnw-surface, #fffaf9));
}

.video-list__thumb img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.video-list__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 4.5rem;
  block-size: 4.5rem;
  border-radius: 50%;
  background: var(--nnw-primary, #8e2035);
  color: #fff;
}

.video-list__thumb--small {
  flex: 0 0 9rem;
}

.video-list__thumb--small .video-list__play {
  inline-size: 2.5rem;
  block-size: 2.5rem;
}

.video-list__featured .video-list__title {
  display: block;
  margin-block-start: 1rem;
  font-family: var(--nnw-heading-font, var(--nnw-body-font, sans-serif));
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
}

.video-list__meta {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--nnw-muted, #7e6870);
  font-size: 0.9rem;
}

.video-list__more {
  flex: 2 1 18rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border-block-end: 1px solid var(--nnw-border, #e4d8d3);
  list-style: none;
}

.video-list__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-block-start: 1px solid var(--nnw-border, #e4d8d3);
  color: inherit;
  text-decoration: none;
}

.video-list__row .video-list__title {
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .video-list__featured:hover .video-list__title,
  .video-list__row:hover .video-list__title {
    color: var(--nnw-primary, #8e2035);
  }
}

/* Grid: every video as a card, for a full list of a channel (Phase 35). */
.video-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 2rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.video-list__card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-list__card .video-list__title {
  display: block;
  margin-block-start: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

/* With a thumbnail, the play button is small and sits over the picture. */
.video-list__play--small,
.video-list__thumb:has(img) .video-list__play {
  inline-size: 2.75rem;
  block-size: 2.75rem;
}

.video-list__thumb:has(img) .video-list__play {
  opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .video-list__card:hover .video-list__title {
    color: var(--nnw-primary, #8e2035);
  }
}
