.social-flyout {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  top: auto;
  left: auto;
  z-index: 51;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: min(18.5rem, calc(100vw - 1.5rem));
  max-width: min(20.5rem, calc(100vw - 1.5rem));
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    155deg,
    rgba(18, 20, 32, 0.97) 0%,
    rgba(10, 12, 22, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.social-flyout-timer {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}

.social-flyout-timer-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.45),
    var(--accent-soft)
  );
  animation: social-flyout-timer-drain 3s linear forwards;
}

@keyframes social-flyout-timer-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.social-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-flyout-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 210, 230, 0.75);
}

.social-flyout-x {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.3rem;
  background: transparent;
  color: rgba(170, 180, 200, 0.45);
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.social-flyout-x:hover {
  color: rgba(240, 244, 255, 0.95);
  background: rgba(255, 255, 255, 0.04);
}

.social-flyout-x:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: -2px;
}

.social-flyout-x svg {
  display: block;
}

.social-flyout-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.2rem 0 0.45rem;
}

.social-flyout-links .social-flyout-link + .social-flyout-link {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-flyout-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e8ecf5;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.14s ease;
}

.social-flyout-link[href].social-flyout-link--placeholder,
button.social-flyout-link--placeholder {
  color: rgba(200, 210, 230, 0.55);
  cursor: default;
}

a.social-flyout-link:hover:not(.social-flyout-link--placeholder) {
  background: rgba(var(--accent-rgb), 0.08);
}

button.social-flyout-link:hover:not([disabled]) {
  background: rgba(var(--accent-rgb), 0.08);
}

.social-flyout-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(220, 230, 255, 0.9);
}

.social-flyout-icon.tiktok {
  background: rgba(0, 0, 0, 0.28);
  color: #e8e8f0;
}

.social-flyout-icon.youtube {
  background: rgba(196, 48, 43, 0.18);
  color: #ff6b5e;
}

.social-flyout-link-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.social-flyout-link-name {
  line-height: 1.2;
}

.social-flyout-link-pill {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(160, 175, 200, 0.55);
}
