/* ==========================================================================
   KINOZORI — v22 «Reactions: pills, not circles»
   v10 pinned the like/dislike controls to 46x46 circles and v11 repainted
   them dark, so the first screen read as «one pill, two dots». Now the
   reactions reuse the exact geometry of the bookmark pill (.kb-fav in
   kb-inline-v26): 7px/13px padding, 999px radius, 13px label, neutral dark
   surface and a gold hover (soft red for the dislike half). No media query:
   the pills read the same on phones and desktop, where v10's fixed 46px
   squares are overridden below.
   ========================================================================== */

.page__rating-likes {
  gap: 8px !important;
}

.page__rating-likes a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 999px !important;
  background-color: rgba(255, 255, 255, .04) !important;
  color: var(--kb-dim) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s, color .16s, background-color .16s;
}

/* kb-inline-v26 paints the second control red by default; the pill stays
   neutral until hover, exactly like the bookmark control */
.page__rating-likes a + a {
  margin-left: 0 !important;
  border-color: rgba(255, 255, 255, .16) !important;
  background-color: rgba(255, 255, 255, .04) !important;
  color: var(--kb-dim) !important;
}

.page__rating-likes a:hover,
.page__rating-likes a:focus-visible {
  opacity: 1 !important;
  border-color: rgba(255, 201, 26, .55) !important;
  background-color: rgba(255, 201, 26, .1) !important;
  color: var(--kb-gold) !important;
}

.page__rating-likes a + a:hover,
.page__rating-likes a + a:focus-visible {
  border-color: rgba(240, 82, 107, .55) !important;
  background-color: rgba(240, 82, 107, .1) !important;
  color: #FF9FB0 !important;
}

/* icon size follows the 14px bookmark glyph */
.page__rating-likes a .fal {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* phones: a hair tighter so «IMDb + закладки + лайк + дизлайк» fit one row */
@media (max-width: 480px) {
  .page__rating-likes {
    gap: 6px !important;
  }
  .page__rating-likes a {
    padding: 7px 11px !important;
  }
}
