.video-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--video-radius-md);
  background: var(--video-color-surface);
  isolation: isolate;
}

.video-poster__layout {
  display: grid;
  gap: var(--video-space-4);
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  align-items: start;
}

.video-poster__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--video-radius-sm);
}

.video-poster__media > a {
  display: block;
  color: inherit;
}

.video-poster img,
.video-poster__poster,
.video-poster__placeholder {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(145deg, var(--video-color-surface-raised), var(--video-color-bg));
}

.video-poster__overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: var(--video-space-2);
  padding: var(--video-space-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.94));
}

.video-poster__title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.video-poster__body {
  min-width: 0;
}

.video-poster__meta {
  display: grid;
  gap: var(--video-space-2);
  margin: 0;
}

.video-poster__meta > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--video-space-2);
  align-items: start;
}

.video-poster__meta dt {
  margin: 0;
  color: var(--video-color-muted);
  font-weight: 600;
}

.video-poster__meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.video-poster__synopsis {
  margin: var(--video-space-4) 0 0;
}

.video-poster__synopsis-title {
  margin: 0 0 var(--video-space-2);
  font-size: 1.05rem;
  font-weight: 700;
}

.video-poster__synopsis-text {
  margin: 0;
  color: var(--video-color-text);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.video-poster__summary {
  display: none;
}

/* Detail primary: compact poster beside meta + synopsis */
.video-poster[data-detail-enrichment="primary"] .video-poster__layout {
  grid-template-columns: minmax(0, 13.75rem) minmax(0, 1fr);
  gap: var(--video-space-6);
}

.video-poster[data-detail-enrichment="primary"] .video-poster__media {
  width: 100%;
  max-width: 13.75rem;
  justify-self: start;
}

.video-poster[data-detail-enrichment="primary"]:not(:has(.video-poster__layout)) > a {
  display: block;
  max-width: 13.75rem;
}

@media (max-width: 720px) {
  .video-poster__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-poster[data-detail-enrichment="primary"] .video-poster__media,
  .video-poster[data-detail-enrichment="primary"]:not(:has(.video-poster__layout)) > a {
    max-width: min(11.5rem, 46vw);
    margin-inline: auto;
  }
}
