/* Videos List */

.videos-list {
  margin-top: 2rem;
}

.videos-list .views-row {
  margin: 0;
}

.video-list-teaser {
  padding: 1rem 0;
  border-top: 1px solid var(--bisbat-color-border);
}

.video-list-teaser__inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.video-list-teaser__media-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-list-teaser__media-link {
  display: block;
  text-decoration: none;
}

.video-list-teaser__media {
  overflow: hidden;
  border-radius: var(--bisbat-radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--bisbat-color-gray-400);
}

.video-list-teaser__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Correcció per thumbnails verticals/shorts o imatges amb bandes */
.video-list-teaser__media .field-content,
.video-list-teaser__media span {
  display: block;
  width: 100%;
  height: 100%;
}

.video-list-teaser__date {
  font-size: 0.95rem;
  line-height: var(--bisbat-leading-tight);
  font-weight: 600;
  color: var(--bisbat-color-text-muted);
}

.video-list-teaser__content {
  min-width: 0;
}

.video-list-teaser__title {
  margin: 0 0 1rem;
  font-size: var(--bisbat-title-md);
  line-height: var(--bisbat-leading-tightest);
  font-weight: 800;
  color: #101820;
}

.video-list-teaser__title a {
  color: inherit;
  text-decoration: none;
}

.video-list-teaser__title a:hover,
.video-list-teaser__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  color: var(--bisbat-color-blue-700);
}

.video-list-teaser__subtitle {
  font-size: 1.15rem;
  line-height: var(--bisbat-leading-normal);
  font-weight: 400;
  color: var(--bisbat-color-text-muted);
}

@media (max-width: 900px) {
  .video-list-teaser__inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .video-list-teaser__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 700px) {
  .video-list-teaser {
    padding: 1.5rem 0;
  }

  .video-list-teaser__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-list-teaser__media-col {
    max-width: 420px;
  }

  .video-list-teaser__title {
    font-size: 1.75rem;
  }

  .video-list-teaser__subtitle {
    font-size: 1.05rem;
  }
}