/* IMUTV playlists page (imu-watch plugin). Loaded with imu-live.css, which supplies the page frame,
   the heading and the 5 / 4 / 3 / 2 column grid. One card per playlist. */
.imul .imupl-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; color: #f2f2f2; border-radius: 12px; }
.imul .imupl-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The cover: the first video's picture, with two edges above it so it reads as a stack of videos. */
.imupl-cover { position: relative; display: block; padding-top: 12px; margin-bottom: 8px; transition: transform .14s ease; }
.imupl-cover::before, .imupl-cover::after { content: ""; position: absolute; height: 6px; border-radius: 8px 8px 0 0; }
.imupl-cover::before { top: 0; left: 9%; right: 9%; background: rgba(255,255,255,.12); }
.imupl-cover::after { top: 6px; left: 4%; right: 4%; background: rgba(255,255,255,.22); }
a.imupl-card:hover .imupl-cover { transform: translateY(-2px); }
.imupl-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background-color: #1d1e25; }
.imupl-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.imupl-tr { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; }
.imupl-cnt { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.imupl-cnt svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.imupl-play { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; font-weight: 700; opacity: 0; transition: opacity .14s ease; }
.imupl-play svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
a.imupl-card:hover .imupl-play, a.imupl-card:focus-visible .imupl-play { opacity: 1; }

.imupl-t { font-size: 16px; line-height: 1.3; font-weight: 700; color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.imupl-card:hover .imupl-t { color: var(--gold); }
.imupl-s { font-size: 13px; line-height: 1.3; color: #a3a3ad; }
.imupl-card.is-empty .imupl-t { color: #cfcfd6; }

@media (max-width: 640px) {
  .imupl-cover { padding-top: 10px; }
  .imupl-cover::before, .imupl-cover::after { height: 5px; }
  .imupl-cover::after { top: 5px; }
  .imupl-cnt { right: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; }
  .imupl-t { font-size: 15px; }
}
@media (hover: none) { .imupl-play { display: none; } }
@media (prefers-reduced-motion: reduce) { .imupl-cover, .imupl-play { transition: none; } }
