/* Ad slots: styled like the content cards so they sit naturally in grids and sidebars. */
.hc-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  padding: 26px 10px 10px;
  max-width: 100%;
  background: #1f2335;
  border: 1px solid rgba(183, 92, 213, 0.18);
  border-radius: 6px;
  overflow: hidden;
}
.hc-ad iframe { display: block; border: 0; max-width: 100%; }
.hc-ad-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8fa8;
}
/* Fills a grid column at the height of the neighbouring thumbnails. */
.hc-ad-tile { height: calc(100% - 20px); min-height: 290px; margin: 10px 0; }
.hc-ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 10px 0 20px; }
.hc-ad-row .hc-ad { margin: 0; }
@media (max-width: 991px) { .hc-ad-row .hc-ad:nth-child(n+2) { display: none; } }
@media (max-width: 1199px) { .hc-ad-row .hc-ad:nth-child(n+3) { display: none; } }

/* Shown over the player while a video is paused. */
.hc-pause-ad {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: none;
}
.hc-pause-ad.is-visible { display: block; }
.hc-pause-ad .hc-ad { margin: 0; background: rgba(24, 27, 40, 0.92); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.hc-pause-ad-close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 1;
  border: 0;
  background: none;
  color: #c9cbe0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.hc-pause-ad-close:hover { color: #fff; }
@media (max-width: 575px) { .hc-pause-ad { display: none !important; } }
