/* Kalam Aflam — center IMDb and companion source badges on individual articles.
   :has() works without JS; .ka-imdb-badge-row is the progressive fallback. */
body.single-post p.has-text-align-center:has(> a.kads-provider-imdb),
body.single-post p:has(> a.kads-provider-imdb),
body.single-post .ka-imdb-badge-row {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  align-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 26px auto !important;
  padding-inline: 10px !important;
  text-align: center !important;
  direction: ltr !important;
  float: none !important;
  clear: both !important;
}
body.single-post p:has(> a.kads-provider-imdb) > a.kads-provider-icon,
body.single-post .ka-imdb-badge-row > a.kads-provider-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  margin: 0 !important;
  max-width: 100% !important;
  vertical-align: middle !important;
}
@media (max-width: 560px) {
  body.single-post p:has(> a.kads-provider-imdb),
  body.single-post .ka-imdb-badge-row {
    gap: 10px !important;
    padding-inline: 6px !important;
  }
}
