/* Лайк Cibomio — одно сердце на весь сайт: зелёное с белым внутри, пустое — контур цвета текста.
   Рисунок меняется здесь: --like-on и --like-off используют все кнопки с сердцем. */
:root {
  --like-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-9-5.6-9-11.5A5.2 5.2 0 0 1 12 6.4a5.2 5.2 0 0 1 9 3.1C21 15.4 12 21 12 21Z' fill='%2340c497' stroke='%2340c497' stroke-opacity='.38' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath transform='translate(12 13.6) scale(.56) translate(-12 -13.6)' d='M12 21s-9-5.6-9-11.5A5.2 5.2 0 0 1 12 6.4a5.2 5.2 0 0 1 9 3.1C21 15.4 12 21 12 21Z' fill='%23fff'/%3E%3C/svg%3E");
  --official-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2340c497' stroke='%2340c497' stroke-opacity='.38' stroke-width='3'/%3E%3Cpath d='m7.4 12.3 3.1 3.1 6.1-6.6' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --like-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-9-5.6-9-11.5A5.2 5.2 0 0 1 12 6.4a5.2 5.2 0 0 1 9 3.1C21 15.4 12 21 12 21Z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* сердце внутри кнопки */
.like-mark { display: block; width: 1.25em; height: 1.25em; }
.like-mark.is-off { background: currentColor; -webkit-mask: var(--like-off) center/contain no-repeat; mask: var(--like-off) center/contain no-repeat; }
.like-mark.is-on { background: var(--like-on) center/contain no-repeat; }

/* лайк на эфире: кнопка с числом и сердца, которые всплывают над ней */
.like-stack { position: absolute; z-index: 4; right: 14px; bottom: 64px; display: grid; justify-items: center; gap: 3px; }
.like-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #111b18b8; color: #fff; font-size: 24px; cursor: pointer; backdrop-filter: blur(6px); transition: transform .12s ease; }
.like-btn:hover { background: #1b2a25d9; }
.like-btn:active { transform: scale(.9); }
.like-btn:focus-visible { outline: 2px solid #40c497; outline-offset: 2px; }
.like-count { min-height: 16px; padding: 0 6px; border-radius: 8px; background: #111b18b8; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.like-count:empty { visibility: hidden; }
.like-floats { position: absolute; left: 50%; bottom: 40px; width: 0; height: 0; pointer-events: none; }
.like-float { position: absolute; left: var(--like-x, 0); bottom: 0; width: var(--like-size, 30px); height: var(--like-size, 30px); margin-left: calc(var(--like-size, 30px) / -2); background: var(--like-on) center/contain no-repeat; opacity: 0; animation: like-rise var(--like-time, 2.2s) ease-out var(--like-delay, 0s) forwards; }
@keyframes like-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.45); }
  14% { opacity: 1; transform: translate(calc(var(--like-drift, 0px) * .2), -24px) scale(1); }
  70% { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--like-drift, 0px), calc(var(--like-rise, 190px) * -1)) scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .like-float { display: none; }
  .like-btn { transition: none; }
}
@media (max-width: 720px) {
  .like-stack { right: 8px; bottom: auto; top: 52px; }
  .like-btn { width: 42px; height: 42px; font-size: 21px; }
  .like-floats { bottom: auto; top: 40px; }
  .like-float { --like-rise: 110px; }
}

/* галочка официального аккаунта и знак качества мастера */
.official-mark { display: inline-block; width: 1.05em; height: 1.05em; margin-left: .3em; vertical-align: -.16em; background: var(--official-mark) center/contain no-repeat; }
.cibomio-pick { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; color: #25a377; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.cibomio-pick .like-mark { width: 14px; height: 14px; }
body:not([data-live-theme="light"]) .cibomio-pick { color: #5fd6ab; }
