.ct-share {
  --ct-share-accent: var(--channel-accent, #9754e9);
  --ct-share-accent-bright: var(--channel-accent-bright, #c14bff);
  --ct-share-gradient: var(--gradient-primary, linear-gradient(to right, #c14bff, #9754e9, #6c5dd3));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0 20px;
  padding: 10px 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #263244;
}

.ct-share--top {
  margin-top: 8px;
  margin-bottom: 18px;
}

.ct-share--bottom {
  margin-top: 24px;
  margin-bottom: 8px;
}

.ct-share__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  color: #5d3fa8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.ct-share__label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(151, 84, 233, 0.12);
  color: var(--ct-share-accent);
  font-size: 13px;
}

.ct-share__buttons {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ct-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(151, 84, 233, 0.34);
  border-radius: 10px;
  background: #ffffff;
  color: #4a2b83;
  box-shadow: 0 2px 8px rgba(34, 25, 52, 0.06);
  cursor: pointer;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.ct-share__button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}

.ct-share__button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ct-share__button:hover,
.ct-share__button:focus-visible {
  border-color: rgba(193, 75, 255, 0.72);
  background: var(--ct-share-gradient);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(151, 84, 233, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.ct-share__button:active {
  transform: translateY(0);
}

.ct-share__button--copy.is-copied {
  border-color: rgba(25, 103, 211, 0.5);
  background: rgba(25, 103, 211, 0.1);
  color: #1967d3;
}

body.ctdm-dark .ct-share,
body.dark-mode .ct-share {
  color: #f3f6fb;
}

body.ctdm-dark .ct-share__label,
body.dark-mode .ct-share__label {
  color: #f4e8ff;
}

body.ctdm-dark .ct-share__label-icon,
body.dark-mode .ct-share__label-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #d7b8ff;
}

body.ctdm-dark .ct-share__button,
body.dark-mode .ct-share__button {
  border-color: rgba(151, 84, 233, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
}

body.ctdm-dark .ct-share__button:hover,
body.ctdm-dark .ct-share__button:focus-visible,
body.dark-mode .ct-share__button:hover,
body.dark-mode .ct-share__button:focus-visible {
  border-color: rgba(193, 75, 255, 0.86);
  background: var(--ct-share-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

body.ctdm-dark .ct-share__button--copy.is-copied,
body.dark-mode .ct-share__button--copy.is-copied {
  border-color: rgba(193, 75, 255, 0.75);
  background: rgba(151, 84, 233, 0.22);
  color: #ffffff;
}

@media (max-width: 600px) {
  .ct-share {
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 18px;
  }

  .ct-share__label {
    flex-basis: 100%;
    min-height: 24px;
  }

  .ct-share__buttons {
    flex-basis: 100%;
    gap: 8px;
  }

  .ct-share__button {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-share__button {
    transition: none;
  }

  .ct-share__button:hover,
  .ct-share__button:focus-visible {
    transform: none;
  }
}
