.kg24-author-page__profile {
  margin: 0 0 36px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.kg24-author-page__head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kg24-author-page__photo-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.kg24-author-page__photo {
  display: inline-flex;
  line-height: 0;
}

.kg24-author-page__photo img,
.kg24-author-page__photo .avatar {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--kg24-accent);
}

.kg24-author-page__photo-hint {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kg24-author-page__meta {
  min-width: 0;
}

.kg24-author-page__name {
  margin: 0 0 8px;
  font-family: var(--kg24-font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kg24-author-page__position {
  margin: 0 0 6px;
  color: var(--kg24-accent);
  font-size: 16px;
  font-weight: 500;
}

.kg24-author-page__count {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.kg24-author-page__bio {
  margin-top: 22px;
  max-width: 760px;
  color: #333;
  font-size: 17px;
  line-height: 1.65;
}

.kg24-author-page__bio p {
  margin: 0 0 12px;
}

.kg24-author-page__bio p:last-child {
  margin-bottom: 0;
}

.kg24-author-page__rating {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.kg24-author-page__rating-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--kg24-font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.kg24-author-page__rating-title::after {
  content: "";
  flex: 1 1 auto;
  height: 4px;
  background: var(--kg24-accent);
}

.kg24-author-page__rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kg24-author-page__vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.kg24-author-page__vote:hover {
  border-color: rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.kg24-author-page__vote.is-active {
  border-color: var(--kg24-accent);
  background: rgba(227, 30, 36, 0.06);
}

.kg24-author-page__vote.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.kg24-author-page__vote-emoji {
  font-size: 20px;
  line-height: 1;
}

.kg24-author-page__vote-label {
  font-size: 14px;
  font-weight: 500;
}

.kg24-author-page__vote-count {
  min-width: 1.5em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 600;
}

.kg24-author-page__vote.is-active .kg24-author-page__vote-count {
  background: rgba(227, 30, 36, 0.12);
}

.kg24-author-page__rating-summary {
  margin: 14px 0 0;
  color: #666;
  font-size: 14px;
}

.kg24-author-page__posts-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--kg24-font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.kg24-author-page__posts-title::after {
  content: "";
  flex: 1 1 auto;
  height: 4px;
  background: var(--kg24-accent);
}

.kg24-author-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.kg24-author-lightbox[hidden] {
  display: none;
}

.kg24-author-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.kg24-author-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 720px);
  max-height: 92vh;
}

.kg24-author-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.kg24-author-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

html.kg24-author-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .kg24-author-page__profile {
    padding: 20px;
  }

  .kg24-author-page__head {
    flex-direction: column;
    text-align: center;
  }

  .kg24-author-page__photo img,
  .kg24-author-page__photo .avatar {
    width: 128px;
    height: 128px;
  }

  .kg24-author-page__rating-actions {
    justify-content: center;
  }
}
