
div.video-card {
  display: flex;
  flex-direction: column;
  width: 305px;
  cursor: pointer;
}

div.video-card > div:first-child {
  position: relative;
  width: 305px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

div.video-card > div:first-child > div:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

div.video-card > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

div.video-card > div:first-child .video-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
  text-align: center;
  border: 1px solid var(--color-border-dark);
}

div.video-card > div:last-child {
  display: flex;
  flex-direction: column;
  padding: 10px 0 0 0;
  gap: var(--space-4);
}

div.video-card > div:last-child > div:first-child > h3 {
  margin: 0 0 4px 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-dark);
  line-height: var(--leading-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

div.video-card > div:last-child > div:first-child > p {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: var(--font-normal);
  color: var(--color-gray-light);
  line-height: var(--leading-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  div.video-card {
    width: 305px;
  }
  div.video-card > div:first-child {
    width: 305px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  div.video-card {
    width: min(305px, calc(100vw - 32px));
  }
  div.video-card > div:first-child {
    width: min(305px, calc(100vw - 32px));
    height: auto;
    aspect-ratio: 16/9;
  }
}
