/* ═══════════════════════════════════════
   Social Buttons — Telegram & YouTube
   ═══════════════════════════════════════ */

@keyframes tgPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,136,204,.6), 0 8px 28px rgba(0,136,204,.25); }
  55%     { box-shadow: 0 0 0 18px rgba(0,136,204,0), 0 8px 28px rgba(0,136,204,.45); }
}
@keyframes ytPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55), 0 8px 28px rgba(220,38,38,.22); }
  55%     { box-shadow: 0 0 0 18px rgba(220,38,38,0), 0 8px 28px rgba(220,38,38,.42); }
}
@keyframes socialShimmer {
  0%   { left: -90%; }
  100% { left: 130%; }
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-3px) scale(1.15); }
}

/* ── List: горизонтально, по центру ── */
ul.social.tm-social {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px !important;
  list-style: none !important;
  padding: 20px 0 0 !important;
  margin-bottom: 38px !important;
}

ul.social.tm-social li {
  display: block;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Button ── */
.tm-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, filter .22s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

/* Shimmer */
.tm-social__btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -90%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: socialShimmer 3s 1.5s ease-in-out infinite;
  pointer-events: none;
}

.tm-social__btn:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.12);
  text-decoration: none !important;
}

/* ── Telegram ── */
.tm-social__item--tg .tm-social__btn {
  background: linear-gradient(135deg, #0077b5 0%, #00a8e6 60%, #29d0f5 100%);
  color: #fff !important;
  animation: tgPulse 2.4s ease-in-out infinite;
}

/* ── YouTube ── */
.tm-social__item--yt .tm-social__btn {
  background: linear-gradient(135deg, #a80000 0%, #e60000 55%, #ff4444 100%);
  color: #fff !important;
  animation: ytPulse 2.4s .5s ease-in-out infinite;
}

/* ── Icon circle ── */
.tm-social__icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-social__icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  display: block;
  animation: iconFloat 2.2s ease-in-out infinite;
}

.tm-social__item--yt .tm-social__icon svg {
  animation-delay: .5s;
}

/* ── Label ── */
.tm-social__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  ul.social.tm-social {
    gap: 12px !important;
  }
  .tm-social__btn {
    padding: 14px 24px;
    gap: 10px;
  }
  .tm-social__label {
    font-size: 13px;
  }
}
