.feed-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-section {
  margin-bottom: var(--space-lg);
}

.feed-composer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-composer__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feed-composer__fake-input {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: var(--space-sm) 0;
  color: var(--color-text-muted);
  text-decoration: none;
}

.feed-composer__fake-input:hover {
  color: var(--color-text);
}

.feed-composer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.6875rem;
  flex-shrink: 0;
  overflow: hidden;
}

.feed-composer__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-composer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-sm);
}

.feed-composer__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}

.feed-composer__action svg {
  width: 14px;
  height: 14px;
}

.feed-composer__action--post {
  color: #0369a1;
  background-color: #e0f2fe;
  border-color: #bae6fd;
}

.feed-composer__action--danger {
  color: #c2410c;
  background-color: #ffedd5;
  border-color: #fed7aa;
}

.feed-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-lg) 0;
}

.feed-author {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.feed-author__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
}

.feed-author__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-author__meta {
  display: flex;
  flex-direction: column;
}

.feed-author__name {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.feed-author__submeta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.feed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.feed-card__body {
  margin: 0;
}

.feed-card__read-more {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.875rem;
  align-self: flex-start;
}

.feed-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: flex-start;
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
}

.feed-card__badge svg {
  width: 12px;
  height: 12px;
}

.feed-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text);
}

.feed-card__map:empty {
  display: none;
}

.feed-card__map img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.feed-card__radius {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.feed-card__engagement {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.feed-card__engagement--full {
  padding-bottom: var(--space-md);
}

.feed-card__engagement-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-card__engagement-action svg {
  width: 21px;
  height: 21px;
}

a.feed-card__engagement-action:hover,
button.feed-card__engagement-action:hover {
  color: var(--color-brand);
}

.feed-card__engagement-action--static {
  cursor: default;
}

.feed-card__engagement-action--static:hover {
  color: var(--color-text-muted);
}

.vote-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-widget__form {
  display: contents;
}

.vote-widget__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 26px;
  border: none;
  background: none;
  padding: 0;
  color: var(--color-text-muted);
  cursor: pointer;
}

.vote-widget__btn svg {
  width: 100%;
  height: 100%;
}

.vote-widget__btn:hover {
  color: var(--color-text);
}

.vote-widget__btn--up.vote-widget__btn--active {
  color: var(--color-map-green);
}

.vote-widget__btn--down.vote-widget__btn--active {
  color: var(--color-danger-text);
}

.vote-widget__score {
  min-width: 1.3em;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
  .feed-composer,
  .feed-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 499px) {
  .feed-card__engagement {
    justify-content: space-between;
  }
}
