/* Preserve Ava's compact glass cards. Telegram leads through contrast and placement. */
.social-grid .channel-card.telegram-feature {
  --platform-color: #91d7f8;
  grid-column: auto;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  min-height: 78px;
  padding: 10px 12px 10px 10px;
  column-gap: 10px;
  border: 1px solid rgba(145, 215, 248, 0.66);
  border-radius: 12px;
  color: #f4f1ec;
  background:
    radial-gradient(ellipse at 5% 50%, rgba(72, 160, 200, 0.17), transparent 74%),
    rgba(15, 21, 27, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(145, 215, 248, 0.045),
    0 0 20px rgba(72, 160, 200, 0.12);
  text-decoration: none;
}

.social-grid .channel-card.telegram-feature:hover,
.social-grid .channel-card.telegram-feature:focus-visible {
  padding: 10px 12px 10px 10px;
  border-color: #b8e7fc;
  color: #f4f1ec;
  box-shadow:
    inset 0 0 0 1px rgba(145, 215, 248, 0.1),
    0 0 24px rgba(72, 160, 200, 0.2);
}

.social-grid .telegram-feature:focus-visible {
  outline: 2px solid #b8e7fc;
  outline-offset: 4px;
}

.social-grid .telegram-feature .channel-icon {
  width: 48px;
  height: 48px;
  scale: 1;
  border-radius: 13px;
  border-color: rgba(145, 215, 248, 0.36);
  background:
    radial-gradient(circle at 30% 20%, rgba(145, 215, 248, 0.23), transparent 72%),
    rgba(145, 215, 248, 0.055);
}

.social-grid .telegram-feature .brand-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(145, 215, 248, 0.4));
}

.social-grid .telegram-feature .channel-copy {
  gap: 5px;
  overflow: visible;
}

.social-grid .telegram-feature .link-name {
  overflow: visible;
  color: #f4f1ec;
  font: 650 1.16rem/1.1 var(--sans);
  letter-spacing: -0.02em;
  text-overflow: clip;
  white-space: nowrap;
}

.social-grid .telegram-feature .channel-handle {
  display: block;
  overflow: visible;
  color: #b5def0;
  font: 500 0.72rem/1.35 var(--sans);
  letter-spacing: 0;
  white-space: normal;
  text-overflow: clip;
}

.social-grid .telegram-feature .channel-stat {
  display: none;
}

.social-grid .telegram-feature .link-arrow {
  display: block;
  color: #b8e7fc;
  font-size: 1.15rem;
}

/* Follow counters yield space before names do on narrow desktop cards. */
@media (min-width: 861px) and (max-width: 1199px) {
  .social-grid .channel-card:not(.telegram-feature) {
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    column-gap: 8px;
  }

  .social-grid .channel-card:not(.telegram-feature) .channel-stat {
    display: none;
  }

  .social-grid .channel-card:not(.telegram-feature) .channel-icon {
    width: 42px;
    height: 42px;
    scale: 1;
  }

  .social-grid .channel-card:not(.telegram-feature) .link-name {
    font-size: 1rem;
  }

  .social-grid .channel-card.telegram-feature {
    grid-template-columns: 44px minmax(0, 1fr) 14px;
    padding: 9px;
    column-gap: 8px;
  }

  .social-grid .channel-card.telegram-feature:hover,
  .social-grid .channel-card.telegram-feature:focus-visible {
    padding: 9px;
  }

  .social-grid .telegram-feature .channel-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 860px) {
  .social-grid .channel-card.telegram-feature {
    min-height: 76px;
    border-radius: 16px;
  }

  .social-grid .telegram-feature::before {
    border-radius: 15px;
  }

  .social-grid .telegram-feature .link-name {
    font-size: 1.25rem;
  }

  .social-grid .telegram-feature .channel-handle {
    font-size: 0.78rem;
  }
}

/* TikTok's suspension remains explicit and responds with a sad face. */
.social-grid .channel-card.tiktok-suspended {
  --platform-color: #ff8eb6;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.social-grid .tiktok-suspended .link-name {
  color: #c8b9c0;
  text-decoration: line-through;
  text-decoration-color: #ff8eb6;
  text-decoration-thickness: 2px;
}

.social-grid .tiktok-suspended .channel-copy {
  overflow: visible;
}

.social-grid .tiktok-suspended .channel-handle {
  display: block;
  overflow: visible;
  color: #ffb2cf;
  font: 500 0.68rem/1.3 var(--sans);
  letter-spacing: 0;
  white-space: normal;
  text-overflow: clip;
}

.social-grid .tiktok-suspended .channel-stat {
  display: none;
}

.tiktok-suspended .channel-icon .brand-icon {
  opacity: 0.35;
}

.social-grid .tiktok-suspended .channel-icon::before,
.social-grid .tiktok-suspended .channel-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: #ff8eb6;
  box-shadow: none;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

.social-grid .tiktok-suspended .channel-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tiktok-feedback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffb2cf;
  font: 400 36px/1 system-ui, sans-serif;
  opacity: 0;
}

.suspended-mark {
  color: #ff8eb6;
  font: 400 1.5rem/1 var(--sans);
}

.social-grid .tiktok-suspended.is-sad .channel-icon::before,
.social-grid .tiktok-suspended.is-sad .channel-icon::after,
.tiktok-suspended.is-sad .channel-icon .brand-icon {
  opacity: 0;
}

.tiktok-suspended.is-sad .tiktok-feedback {
  opacity: 1;
}
