.social-section {
  border-bottom: 1px solid var(--line);
}
.social-section .section-heading {
  align-items: center;
}
.social-intro {
  max-width: 355px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.social-intro .text-link {
  margin-top: 12px;
  color: var(--red);
}
.social-switcher {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.social-ready .social-switcher {
  display: flex;
}
.social-switcher button {
  min-height: 46px;
  padding: 11px 22px;
  background: var(--warm);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  transition:
    background 0.2s,
    color 0.2s;
}
.social-switcher button:hover {
  background: var(--rose);
}
.social-switcher button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.social-grid:empty {
  display: none;
}
.social-card {
  position: relative;
  min-width: 0;
}
.social-card > a.social-open {
  display: block;
  min-height: 0;
  color: var(--ink);
}
.social-open {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--warm);
}
.social-open > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}
.social-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  margin-left: 3px;
}
.social-open:hover .social-play {
  background: var(--red);
  color: var(--paper);
}
.social-play-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  border-radius: 4px;
  padding: 8px 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.social-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin-top: 18px;
  min-height: 54px;
  max-width: 30ch;
}
.social-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
}
.social-card > a:hover {
  color: var(--red);
  text-decoration: underline;
}
.social-card > a .icon {
  width: 16px;
  height: 16px;
}
.social-swipe {
  display: none;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}
.social-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-block: 24px;
}
.social-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  font-size: 14px;
}
.social-ready .social-fallback {
  display: none;
}
.social-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 13px;
}
.social-profile-link {
  display: none;
}
.social-ready .social-profile-link {
  display: inline-flex;
}
.social-bottom > a {
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
}
.social-viewer {
  margin: 36px auto 0;
  padding: 25px;
  background: var(--warm);
  border-radius: var(--radius);
  max-width: 760px;
  scroll-margin-top: 110px;
}
.social-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.social-viewer-header h3 {
  font-size: 22px;
  line-height: 1.4;
  max-width: 500px;
}
.social-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
}
.social-close:hover {
  color: var(--red);
}
.social-frame {
  max-width: 500px;
  margin-inline: auto;
  background: var(--paper);
}
.social-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}
.social-view-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .social-grid {
    gap: 16px;
  }
  .social-play {
    width: 48px;
    height: 48px;
  }
  .social-play-label {
    right: 10px;
    bottom: 10px;
    padding: 7px 8px;
  }
  .social-card h3 {
    font-size: 17px;
    min-height: 72px;
  }
}
@media (max-width: 600px) {
  .social-intro {
    max-width: none;
    margin-top: 18px;
    font-size: 14px;
  }
  .social-switcher {
    gap: 6px;
  }
  .social-switcher button {
    padding-inline: 18px;
    font-size: 13px;
  }
  .social-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px 3px 16px;
    scroll-padding-inline: 3px;
  }
  .social-card {
    flex: 0 0 calc(84vw - 40px);
    max-width: 320px;
    scroll-snap-align: start;
  }
  .social-card h3 {
    font-size: 18px;
    min-height: 54px;
    margin-top: 14px;
  }
  .social-ready .social-swipe {
    display: block;
  }
  .social-bottom {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 12px;
  }
  .social-viewer {
    padding: 18px 13px;
    scroll-margin-top: 90px;
  }
  .social-viewer-header {
    gap: 12px;
  }
  .social-viewer-header h3 {
    font-size: 18px;
  }
  .social-close {
    padding-inline: 10px;
  }
  .social-frame iframe {
    height: 620px;
  }
}
