/* === Videos =================================================================
   The shape people already read a video library in: 16:9 posters, running time
   burned into the corner, title under, date beneath.
   ========================================================================== */

.icrt-vpage__heading {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.icrt-vpage__all { margin: 2.5rem 0 3rem; }

/* --- the poster ---------------------------------------------------------- */

.icrt-vposter {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .16) 0 2rem, transparent 2.1rem),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
}

.icrt-vposter[data-video] { cursor: pointer; }
.icrt-vposter__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icrt-vposter__frame { width: 100%; height: 100%; border: 0; display: block; }

.icrt-vposter__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* The play badge is the affordance the whole grid turns on. */
.icrt-vposter__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 19, 0.66);
  color: #fff;
  transition: transform .15s ease, background .15s ease;
}

.icrt-vposter__play svg { width: 22px; height: 22px; margin-left: 2px; }

.icrt-vcard:hover .icrt-vposter__play,
.icrt-vfeature:hover .icrt-vposter__play {
  transform: translate(-50%, -50%) scale(1);
  background: var(--icrt-accent);
}

/* Hidden once the player is in, or it floats over the video's own controls. */
.icrt-vposter[data-playing="true"] .icrt-vposter__play,
.icrt-vposter[data-playing="true"] .icrt-vposter__time { display: none; }

.icrt-vposter__time {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(10, 13, 19, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- the newest, at width ------------------------------------------------ */

.icrt-vfeature {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 2.25rem 0 0;
}

@media (min-width: 60rem) {
  .icrt-vfeature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}

/* Without a cap the poster grows with the column and leaves its own caption
   stranded against a wall of gradient. */
.icrt-vfeature__poster { max-height: 30rem; }

.icrt-vfeature__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
}

.icrt-vfeature__title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.icrt-vfeature__title a { color: var(--icrt-ink); text-decoration: none; }
.icrt-vfeature__title a:hover { color: var(--icrt-accent); }

.icrt-vfeature__blurb {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--icrt-ink-soft);
}

.icrt-vfeature__meta { margin: 0.7rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--icrt-muted); }

/* --- the wall ------------------------------------------------------------ */

.icrt-vgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.icrt-vcard { min-width: 0; }
.icrt-vcard__body { padding: 0.65rem 0.15rem 0; }

.icrt-vcard__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  /* Two lines, like every video wall: a long title must not push the date of
     one card out of line with its neighbours. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.icrt-vcard__title a { color: var(--icrt-ink); text-decoration: none; }
.icrt-vcard__title a:hover { color: var(--icrt-accent); }
.icrt-vcard__meta { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--icrt-muted); }

.icrt-vgrid__none {
  margin: 0;
  padding: 1.4rem 1.2rem;
  background: var(--icrt-mist);
  border-radius: 0.8rem;
  color: var(--icrt-ink-soft);
}
