.author-box {
  background: #1a001a;
  border-block: 1px solid rgba(249, 168, 212, 0.26);
  color: #ffffff;
  padding: clamp(0.9rem, 2.4vw, 1.25rem) 1rem;
}

.author-box-5777 {
  --author-avatar-size: 88px;
}

.author-box-card {
  background: linear-gradient(135deg, rgba(61, 26, 36, 0.98), rgba(26, 0, 26, 0.96));
  border: 1px solid rgba(249, 168, 212, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 0, 26, 0.28);
  margin-inline: auto;
  max-width: 1120px;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  position: relative;
}

.author-box-card::before {
  background: linear-gradient(90deg, #fb7185, #f9a8d4, #fff7ed);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.author-box-main {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.author-avatar {
  align-items: center;
  background: #fff7ed;
  border: 3px solid #f9a8d4;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(251, 113, 133, 0.22);
  display: flex;
  flex: 0 0 auto;
  height: var(--author-avatar-size, 72px);
  justify-content: center;
  overflow: hidden;
  width: var(--author-avatar-size, 72px);
}

.author-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.author-box-label {
  color: #f9a8d4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.28rem;
}

.author-box-name {
  color: #ffffff;
  font-size: clamp(1.12rem, 2.2vw, 1.36rem);
  font-weight: 900;
  line-height: 1.22;
  margin: 0;
}

.author-box-role {
  color: #f9a8d4;
  font-weight: 900;
}

.author-box-desc {
  color: rgba(255, 244, 249, 0.9);
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 0.3rem 0 0;
}

.author-box-trust-row,
.author-box-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.72rem;
}

.author-box-trust-row span,
.author-box-meta span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(249, 168, 212, 0.24);
  border-radius: 999px;
  color: #ffe4f0;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.34rem 0.62rem;
}

.author-box-meta span {
  color: rgba(255, 244, 249, 0.76);
  font-size: 0.78rem;
}

.author-box-actions {
  justify-self: end;
}

.author-link {
  align-items: center;
  background: linear-gradient(135deg, #fb7185, #f9a8d4);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(251, 113, 133, 0.24);
  color: #1a001a;
  display: inline-flex;
  font-weight: 900;
  min-height: 40px;
  padding: 0.55rem 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.author-link:hover {
  color: #1a001a;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .author-box-main {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .author-box-actions {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .author-box {
    padding-inline: 0.65rem;
  }

  .author-box-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .author-avatar {
    --author-avatar-size: 76px;
  }

  .author-box-actions {
    grid-column: auto;
  }
}