/* ===== FEED CONTAINER ===================================================== */
.mt-feed-container {
  max-width: var(--container); /* 1440px из переменных */
  margin: 0 auto;
}

/* ===== FEED HEADER (Desktop) ============================================== */
.mt-feed-header {
  text-align: center;
  padding: 56px 0 40px;
}

.mt-feed-title {
  font-family: var(--font-display);
  font-size: 70px;
  line-height: 1;
  letter-spacing: 1px;
  margin: 0;
}

.mt-feed-meta {
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 600px; /* Ограничиваем ширину мета-блока */
}

.mt-feed-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.mt-feed-stats span {
  font-size: 16px;
  line-height: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.mt-feed-stats b {
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 6px;
}

.mt-feed-btn-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--accent-bg);
  color: var(--accent-fg);
  border: none;
  cursor: pointer;
  transition: background-color .15s ease;
}

.mt-feed-btn-profile:hover {
  background: var(--accent-hover);
}

.mt-feed-btn-profile-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mt-feed-btn-profile-secondary:hover {
  background: var(--neutral-200);
}

/* Mobile summary row (скрыт на десктопе) */
.mt-feed-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  gap: 16px;
}

/* ===== FEED GRID (Адаптивная сетка) ======================================= */
.mt-feed-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
  column-gap: var(--grid-gap); /* 16px */
  row-gap: 32px;
  padding-bottom: 64px;
}

.mt-feed-post {
  /* Убираем лишние отступы, сетка сама управляет промежутками */
}

.mt-feed-post-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mt-feed-post-user {
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mt-feed-post-user:hover {
  color: var(--text-accent);
}

.mt-feed-post-time {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ===== CARD =============================================================== */
.mt-feed-card {
  position: relative;
  aspect-ratio: 1/1; /* Квадратные карточки в сетке */
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  background: var(--card-bg-dark);
  color: var(--card-title);
  background-size: cover;
  background-position: center;
}

.mt-feed-card.feed-card-yelow {
  background: var(--card-bg-accent);
  color: var(--neutral-900);
}

/* Градиент для читаемости на фото-карточках */
.mt-feed-card.feed-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(30,30,30,0) 45%, rgba(30,30,30,.85) 100%);
}

.mt-feed-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.mt-feed-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mt-feed-card-title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  max-width: 52%;
}

.mt-feed-card-badge {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: .78;
  color: var(--accent-hover);
  white-space: nowrap;
  text-align: right;
  flex: none;
}

.feed-card-yelow .mt-feed-card-badge {
  color: var(--card-rate-primary);
}

.mt-feed-card-badge:empty {
  display: none;
}

.mt-feed-wrapper-1 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mt-feed-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mt-feed-card-info-line {
  font-size: 16px;
  line-height: 22px;
  color: var(--card-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mt-feed-card-info-line:empty {
  display: none;
}

.feed-card-yelow .mt-feed-card-info-line {
  color: var(--neutral-900);
}

/* ===== ТВОЯ ABSOLUTE-ПЛАШКА (оставляем как есть) ========================== */
.mt-feed-card-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  z-index: 3; /* Выше градиента */
}

.mt-feed-card-actions .act {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.mt-feed-card-actions svg {
  width: 16px;
  height: 16px;
}

/* ===== RESPONSIVE ========================================================= */
/* Планшет: 2 колонки */
@media (max-width: 1024px) {
  .mt-feed-feed {
    grid-template-columns: repeat(2, 1fr);
  }
  .mt-feed-meta {
    max-width: 100%;
  }
}

/* Мобилка: 1 колонка + показываем .mt-feed-summary */
@media (max-width: 600px) {
  .mt-feed-header {
    display: none; /* Скрываем десктопный заголовок */
  }
  
  .mt-feed-summary {
    display: flex; /* Показываем мобильный */
  }
  
  .mt-feed-feed {
    grid-template-columns: 1fr; /* 1 колонка */
    row-gap: 24px;
  }
  
  .mt-feed-card {
    aspect-ratio: 1/1; /* Оставляем квадратными */
  }
}

@media (max-width: 768px) {
  .mt-feed-container {
        margin-top: 75px;
  }
}
