

:root { --primary-rgb: 62, 192, 73; } 


.article-author {
  display: flex;
  align-items: center;
  margin: 14px 0 4px;
  justify-content: center;
  margin: 20px;
}

.article-author-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-author-link:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.18);
  transform: translateY(-1px);
}

.article-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex: 0 0 auto;
}

.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-author-name {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}

.article-author-link:hover .article-author-name {
  color: var(--primary-color);
}


.article-views {
  color: var(--text-muted);
  opacity: 0.85;
}

.article-views::before {
  content: '👁 ';
  margin-right: 3px;
  opacity: 0.7;
}


.av-owner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-actions .btn-danger {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.5);
  color: #ff7b7b;
}

.article-actions .btn-danger:hover {
  background: rgba(220, 60, 60, 0.22);
  border-color: #ff7b7b;
  box-shadow: 0 0 18px rgba(220, 60, 60, 0.25);
}


.article-content .av-figure {
  margin: 26px 0;
}


.article-content .av-delimiter {
  text-align: center;
  letter-spacing: 0.6em;
  color: var(--primary-color);
  opacity: 0.6;
  margin: 34px 0;
  font-size: 18px;
  user-select: none;
}


.av-state {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.av-state p {
  margin: 18px 0;
  letter-spacing: 0.5px;
}

.av-error-code {
  font-size: 64px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.av-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: av-spin 0.8s linear infinite;
}

@keyframes av-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .av-owner-actions { width: 100%; }
  .article-actions .btn-danger,
  .av-owner-actions .btn { flex: 1; }
}


.article-content .av-gen-card {
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 26px rgba(var(--primary-rgb), 0.08);
  position: relative;
}
.article-content .av-gen-card::before {
  content: '✨ Генерация';
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: 'Courier New', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
}
.av-gen-imagewrap {
  display: block;
  cursor: zoom-in;
}
.av-gen-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--bg-darker);
}
.av-gen-prompt {
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  white-space: pre-wrap;
  word-break: break-word;
}
.av-gen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px 16px;
  flex-wrap: wrap;
}
.av-gen-model {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  opacity: 0.85;
}
.av-gen-repeat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 26px;
  background: var(--gradient);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.av-gen-repeat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.32);
}
