@charset "UTF-8";
.topfeed-page {
  box-sizing: border-box;
  overflow-x: clip;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 1024px) {
  .topfeed-page {
    padding: 0 64px;
  }
}

.topfeed-page > .topfeed-hero,
.topfeed-page > .liquid-glass.hero-text.novinki-hero.topfeed-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-inline: 0;
  margin-bottom: 28px;
}

.topfeed-page .wide-cards {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.topfeed-page .wide-cards .wide-cards-cont {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

.topfeed-page .topfeed-break {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 28px;
  /* Не clip на всю обёртку: у «Рвутся вверх» cards-grid bleed/peek уходит в padding. */
}

/* Горизонтальный скролл страницы даёт только full-bleed карусели, не mini-grid. */
.topfeed-page .topfeed-break > .novinki-discovery,
.topfeed-page .topfeed-break > .novinki-video-reel {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

.topfeed-page .topfeed-break > .novinki-rising {
  overflow: visible;
}

.topfeed-page .topfeed-break > .novinki-discussion {
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .topfeed-page .novinki-comment {
    flex: 0 0 min(100%, 330px);
  }
  .topfeed-page .novinki-discussion__thread,
  .topfeed-page .novinki-discussion__more {
    margin-inline: 0;
  }
}
/* AJAX вставляет подборки/моды между секциями wide-cards — без обёртки margin не было. */
.topfeed-page > .liquid-glass,
.topfeed-page > .slider-wrap {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 28px;
}

.topfeed-page .topfeed-break > .liquid-glass,
.topfeed-page .topfeed-break > .slider-wrap {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.topfeed-page .topfeed-break > .novinki-splash,
.topfeed-page .topfeed-break > .novinki-discovery {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Карточки подборок в своей сетке — не резать max-width ряда топа. */
.topfeed-page .wide-cards .wide-cards-cont .grid--collections-compact article {
  max-width: none;
  width: 100%;
}

.topfeed-page .wide-cards .wide-cards-cont .novinki-splash article {
  max-width: none;
  width: auto;
  flex: initial;
}

/* Слайд discovery — на всю ширину вьюпорта, как в Новинках. Иначе wide-cards режет article до ~33% и карточки стоят в ряд. */
.topfeed-page .wide-cards .wide-cards-cont .novinki-discovery article.novinki-discovery-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* Перебить .wide-cards .wide-cards-cont article { max-width: calc(33% - 16px) } у lead обсуждения. */
.topfeed-page .wide-cards .wide-cards-cont article.novinki-discussion__lead {
  max-width: none;
  width: 100%;
  flex: 1 1 auto;
}

.topfeed-page .novinki-discussion__grid {
  align-items: stretch;
}

.topfeed-page .novinki-discussion__lead {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
}

.topfeed-page .novinki-discussion__thread {
  flex: 1 1 auto;
}

.topfeed-page .topfeed-rank__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.topfeed-page .topfeed-rank__delta {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary, #5f6779);
}

.topfeed-page .topfeed-rank__delta--up {
  color: var(--accent, #ff8a00);
}

.topfeed-page .topfeed-rank__delta--new {
  font-weight: 700;
}

/*# sourceMappingURL=topfeed.css.map */
