.pbfh { container-type: inline-size; container-name: pbfh; }

.pbfh-head__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pbfh-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #9294a3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pbfh-total .bx { color: #4fea9f; font-size: 16px; }
.pbfh-total b { color: #f4f5f8; font-size: 13px; font-weight: 800; }

.pbfh-body { display: flex; flex-direction: column; gap: 20px; }

.pbfh-section { display: flex; flex-direction: column; gap: 12px; }

.pbfh-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b6b8c4;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pbfh-section__head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .09), transparent);
}

.pbfh-section__head em {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(79, 234, 159, .12);
  color: #4fea9f;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0;
}

.pbfh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pbfh-grid > .pbfh-card:only-child { grid-column: 1 / -1; }

.pbfh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pbfh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 234, 159, .32);
  box-shadow: 0 16px 34px -18px rgba(34, 184, 119, .5);
}

.pbfh-card.is-fresh::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, #4fea9f, transparent);
}

.pbfh-card__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 12px;
  color: inherit;
  text-decoration: none;
}

.pbfh-card__main:hover,
.pbfh-card__main:focus { color: inherit; text-decoration: none; }

.pbfh-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7);
}

.pbfh-card__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pbfh-card__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }

.pbfh-card__name {
  overflow: hidden;
  color: #f4f5f8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .2s ease;
}

.pbfh-card__main:hover .pbfh-card__name { color: #4fea9f; }

.pbfh-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: #9294a3;
  font-size: 12.5px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pbfh-card__go {
  flex: 0 0 auto;
  color: #6e7084;
  font-size: 22px;
  transition: transform .2s ease, color .2s ease;
}

.pbfh-card__main:hover .pbfh-card__go { color: #4fea9f; transform: translateX(3px); }

.pbfh-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}

.pbfh-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #9294a3;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pbfh-card__stats .bx { color: #6e7084; font-size: 14px; }
.pbfh-card__stats b { color: #dfe1ea; font-weight: 800; }

.pbfh-last {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-top: auto;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .16);
}

.pbfh-last__ava {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  line-height: 0;
}

.pbfh-last__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  background: #23232b;
}

.pbfh-last__frame {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.pbfh-last__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }

.pbfh-last__topic {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: #e3e5ee;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.pbfh-last__topic:hover,
.pbfh-last__topic:focus { color: #4fea9f; text-decoration: none; }

.pbfh-last__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #6e7084;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pbfh-last__meta a {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  text-decoration: none;
}

.pbfh-last__meta a:hover { text-decoration: underline; }
.pbfh-last__meta time { flex: 0 0 auto; }

.pbfh-fresh {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(79, 234, 159, .14);
  color: #4fea9f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pbfh-last--empty { color: #6e7084; font-size: 12.5px; font-weight: 600; }
.pbfh-last--empty .bx { color: #4fea9f; font-size: 20px; opacity: .7; }

.pbfh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 12px;
  color: #9294a3;
  font-size: 13px;
  font-weight: 600;
}

.pbfh-empty .bx { color: #6e7084; font-size: 34px; }

@container pbfh (max-width: 640px) {
  .pbfh-grid { grid-template-columns: minmax(0, 1fr); }
  .pbfh-head__side { width: 100%; }
  .pbfh-head__side .pbg_news_all { margin-left: auto; }
}

@container pbfh (max-width: 420px) {
  .pbfh-total span { display: none; }
  .pbfh-card__main { padding: 14px 14px 10px; }
  .pbfh-card__stats,
  .pbfh-last { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbfh-card,
  .pbfh-card__go { transition: none; }
}
