.social-preview {
  --sp-accent: #364780;
  --sp-tint: #eef0fa;
  --sp-edge: #e1e4ef;
  --sp-ink: #20243c;
  --sp-muted: #5b627b;
  width: min(100%, 386px);
  min-width: 0;
  margin-inline: auto;
  align-self: start;
  color: var(--sp-ink);
  font-family: var(--sans, Inter, sans-serif);
}
.sp-x { --sp-accent: #35445d; --sp-tint: #edf0f6; }
.sp-facebook { --sp-accent: #234d83; --sp-tint: #eaf0fc; }
.sp-instagram { --sp-accent: #7a3a64; --sp-tint: #f7edf5; }
.sp-youtube { --sp-accent: #89374c; --sp-tint: #f9eef1; }
.sp-tiktok { --sp-accent: #265555; --sp-tint: #e7f2f0; }

.sp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0 1px 9px;
}
.sp-heading h2 {
  margin: 0;
  color: var(--navy, #181c3d);
  font: 400 21px/1.2 var(--serif, Georgia, serif);
}
.sp-network {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--sp-accent);
  background: var(--sp-tint);
  font-size: 11px;
  font-weight: 700;
}
.sp-network > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.sp-network small { font-size: 10px; font-weight: 590; }
.sp-network small::before { content: "·"; margin-right: 4px; }
.sp-icon { width: 17px; height: 17px; display: block; flex: none; }
.sp-network .sp-icon { width: 14px; height: 14px; }

.sp-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #cdd2e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #181c3d14;
}
.sp-author {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}
.sp-avatar {
  display: block;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: 50%;
  border: 1px solid #27305026;
  object-fit: cover;
  object-position: center;
}
.sp-author-text { min-width: 0; display: grid; gap: 2px; }
.sp-author-text strong, .sp-author-text span { min-width: 0; overflow-wrap: anywhere; }
.sp-author-text strong { font-size: 13px; line-height: 1.28; font-weight: 720; }
.sp-author-text span, .sp-schedule { color: var(--sp-muted); font-size: 11px; line-height: 1.35; }
.sp-schedule { display: block; overflow-wrap: anywhere; }

.sp-caption {
  margin: 0;
  color: var(--sp-ink);
  font-size: 13px;
  line-height: 1.56;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.sp-caption-empty { color: var(--sp-muted); }
.sp-caption-token { color: var(--sp-accent); font-weight: 630; }
.sp-caption-toggle {
  min-height: 44px;
  width: fit-content;
  padding: 0 8px;
  margin-inline-start: -8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--sp-accent);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 680;
}
.sp-caption-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-caption-toggle:focus-visible { outline-offset: -4px; }

.sp-gallery { min-width: 0; }
.sp-media-frame {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf0f7;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.sp-slide { grid-area: 1 / 1; min-width: 0; min-height: 0; margin: 0; display: grid; }
.sp-card [hidden] { display: none; }
.sp-slide > img, .sp-slide > video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.sp-slide > video { background: #171a33; }
.sp-media-play:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(64px, 23cqi, 96px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: transparent;
  transform: translate(-50%, -50%);
}
.sp-media-play .sp-icon {
  width: 100%;
  height: 100%;
  opacity: .18;
  filter: drop-shadow(0 1px 4px #0a1022c9);
}
.sp-media-play[data-playing] .sp-icon { opacity: 0; }
.sp-media-play:focus-visible {
  outline: 3px solid var(--yellow, #fbc70c);
  outline-offset: 2px;
  background: #171a3388;
}
.sp-media-play:not([data-playing]):focus-visible .sp-icon { opacity: .9; }
.sp-media-error {
  margin: 0;
  padding: 8px 12px;
  background: var(--sp-tint);
  color: var(--sp-ink);
  font-size: 12px;
}
.sp-placeholder {
  grid-area: 1 / 1;
  place-self: center;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px;
  color: var(--sp-muted);
  text-align: center;
  font-size: 12px;
}
.sp-placeholder .sp-icon { width: 24px; height: 24px; color: var(--sp-accent); }
.sp-gallery-controls {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--sp-muted);
  background: #fff;
}
.sp-gallery-progress {
  min-width: 36px;
  font-size: 11px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.sp-gallery-arrow {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--sp-accent);
  background: transparent;
}
.sp-gallery-arrow:enabled:hover { background: var(--sp-tint); }
.sp-gallery-arrow:focus-visible { outline-offset: -4px; }
.sp-gallery-arrow:disabled { opacity: .4; }
.sp-gallery-arrow .sp-icon { width: 15px; height: 15px; }

.sp-mosaic {
  display: grid;
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
  gap: 3px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e0e3ed;
}
.sp-mosaic-2 { grid-template-rows: minmax(0, 1fr); aspect-ratio: 3 / 2; }
.sp-feed-facebook .sp-mosaic-3 > button:first-child { grid-column: span 2; }
.sp-feed-x .sp-mosaic-3 > button:first-child { grid-row: span 2; }
.sp-feed-x .sp-mosaic { aspect-ratio: 16 / 10; border-radius: 8px; }
.sp-mosaic > button {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--sp-tint);
}
.sp-mosaic > button:focus-visible { outline-offset: -5px; }
.sp-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-mosaic > button > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #171a3380;
  font-size: 22px;
  font-weight: 700;
}
.sp-gallery-viewer .sp-media-frame .sp-slide > img { object-fit: contain; }
.sp-viewer-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.sp-viewer-actions .sp-caption-toggle { margin: 0; }

.sp-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--sp-accent);
  overflow-wrap: anywhere;
}
.sp-link > span { display: grid; gap: 2px; min-width: 0; }
.sp-link strong { font-size: 12px; font-weight: 680; }
.sp-link small { color: var(--sp-muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.sp-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.sp-link-card { padding: 8px 10px; border: 1px solid var(--sp-edge); border-radius: 8px; background: #f5f6fb; }
.sp-link-inline { justify-content: flex-start; width: fit-content; min-height: 34px; }
.sp-link-inline .sp-icon { width: 14px; height: 14px; }

.sp-metrics {
  display: flex;
  gap: 8px 13px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  color: var(--sp-muted);
  font-variant-numeric: tabular-nums;
}
.sp-metric { display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; white-space: nowrap; }
.sp-metric .sp-icon { color: var(--sp-accent); width: 16px; height: 16px; }
.sp-metric-value { font-size: 11px; font-weight: 670; }
.sp-metric-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sp-disclaimer { margin: 7px 1px 0; color: var(--sp-muted); font-size: 11px; line-height: 1.35; }
