:root {
  --site-width: 1100px;
  --site-gap: 16px;
  --bg: #0e0f13;
  --bg-soft: #151720;
  --card: #121420;
  --text: #2a333e;
  --muted: #a7adbb;
  --stroke: #262938;
  --accent: #6aa9ff;
  --accent-2: #9f7aea;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
}

/* Обёртка страницы-хаба */
.hub-page {
  max-width: var(--site-width, 1100px);
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 28px) var(--site-gap, 16px);
  color: var(--text);
}

/* Заголовок */
.hub-page__title {
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem);
  letter-spacing: 0.2px;
}
.hub-page__subtitle {
  margin: 4px 0 18px;
  color: var(--muted, #a7adbb);
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.05rem);
}

/* Бейджи-метаданные (платформы/жанры/студии) */
.hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.hub-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--stroke, #262938);
  border-radius: var(--r-sm, 8px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.06)
  );
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hub-meta__badge:hover {
  border-color: #7fb1ff;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.08)
  );
}

/* Сетка 2-колонки: список + сайдбар */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: clamp(16px, 2vw, 22px);
}
@media (max-width: 1000px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Список постов */
.hub-list #allEntries {
  display: grid;
  gap: 2rem;
}
.postitem {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 720px) {
  .postitem {
    grid-template-columns: 1fr;
  }
}

/* Превью 16:9 */
.postitem__media {
  position: relative;
  aspect-ratio: 16/9;
  background: #0b0d14;
}
.postitem__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.postitem__body{
	display: flex;
	flex-direction: column;
}
/* Контент карточки */
.postitem__title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: clamp(1rem, 1.1vw + 0.6rem, 1.25rem);
}
.postitem__title a {
  color: var(--text);
  text-decoration: none;
}
.postitem__title a:hover {
  color: var(--accent);
}
.postitem__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
	margin: 0 0 12px;
}
.postitem__text {
color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  text-wrap: wrap;
}

/* Сайдбар и виджеты */
.hub-aside {
  display: grid;
  gap: 14px;
}
.widget {
  border: 1px solid var(--stroke, #262938);
  background: var(--bg-soft, #151720);
  border-radius: var(--r-md, 12px);
  padding: 12px;
}
.widget__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--stroke, #262938);
  background: var(--bg-soft, #151720);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: linear-gradient(180deg, #3a8bff, #8663ff);
  border-color: #2b67c6;
}

/* Опциональный хиро-блок */
.hub-hero {
  position: relative;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  margin: 4px 0 16px;
  border: 1px solid var(--stroke, #262938);
}
.hub-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.hub-hero__grad {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.hub-hero__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
}
