/**
 * News hub (Newswire + Community News) — layout with home-desktop-fandom + wiki-explore-recommendations.
 */

/* style.css: body { background !important } — иначе под хабом проступает «полоска» другого цвета до футера */
html:has(.nw-hub-shell),
body:has(.nw-hub-shell) {
  background-color: #1a1a22 !important;
}

html[data-vc-rail="light"]:has(.nw-hub-shell),
html[data-vc-rail="light"] body:has(.nw-hub-shell) {
  background-color: #e8eaef !important;
}

/* desktop-fandom-chrome sets html { overflow-x: clip } — breaks position:sticky for wiki rail */
@media (min-width: 1025px) {
  html:has(.nw-hub-shell) {
    overflow-x: visible !important;
  }
}

/* style.css задаёт body Inter и h1–h6 Space Grotesk; в хабе возвращаем Rubik/Inter как до глобальных заголовков */
.nw-hub-shell,
.nw-hub-shell h1,
.nw-hub-shell h2,
.nw-hub-shell h3,
.nw-hub-shell h4,
.nw-hub-shell p,
.nw-hub-shell .wiki-rec-heading,
.nw-hub-shell .wiki-rec-tile__label,
.nw-hub-shell .wiki-rec-surface {
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif);
}

.nw-hub-shell {
  box-sizing: border-box;
  max-width: min(1680px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 1.1vw, 20px) clamp(28px, 3vw, 48px);
}

@media (min-width: 1025px) {
  .nw-hub-shell {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 100%;
  }
}

.nw-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nw-main__inset {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.9vw, 14px);
  padding-left: clamp(12px, 1.1vw, 20px);
  padding-right: clamp(12px, 1.1vw, 20px);
  margin-top: clamp(20px, 1.75vw, 32px);
  flex: 1 1 auto;
  min-height: 0;
}

@media (min-width: 1025px) {
  .nw-main__inset {
    padding-left: clamp(22px, 2.6vw, 48px);
    padding-right: clamp(22px, 2.6vw, 48px);
    padding-bottom: clamp(24px, 2.5vw, 40px);
  }
}

@media (max-width: 1024px) {
  .nw-main__inset {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Hero: flush with peach bar + rail column; desktop = title left / share+stats right ─ */
.nw-hero {
  position: relative;
  border-radius: 0;
  border: 1px solid var(--hc-border);
  border-top: none;
  border-left: none;
  background: var(--hc-bg-elev);
  box-shadow: none;
  overflow: hidden;
  margin: 0;
}

@media (min-width: 1025px) {
  .nw-hub-shell .nw-main > .nw-hero {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: none;
  }
}

@media (max-width: 1024px) {
  .nw-hero {
    border-radius: var(--hc-radius, 3px);
    border: 1px solid var(--hc-border);
    margin-top: clamp(8px, 1.5vw, 12px);
  }
}

html[data-vc-rail="light"] .nw-hero {
  box-shadow: none;
}

.nw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

html[data-vc-rail="light"] .nw-hero::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}

/* Hub: flat hero + wiki rail — same solid as left vc-rail (no purple wash) */
.nw-hub-shell .nw-hero::before {
  display: none !important;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-main > .nw-hero,
html[data-vc-rail="light"] .nw-hub-shell .nw-wiki-rail.wiki-explore-rec-sidebar {
  background: #ffffff !important;
}

html:not([data-vc-rail="light"]) .nw-hub-shell .nw-main > .nw-hero,
html:not([data-vc-rail="light"]) .nw-hub-shell .nw-wiki-rail.wiki-explore-rec-sidebar {
  background: var(--vc-rail-bg, #2a1530) !important;
}

.nw-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 1.1vw, 18px);
  padding: clamp(14px, 1.2vw, 22px) clamp(14px, 1.35vw, 26px) clamp(16px, 1.35vw, 26px);
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .nw-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 1.5vw, 28px);
    align-items: start;
    padding-top: clamp(22px, 2vw, 36px);
    padding-bottom: clamp(26px, 2.2vw, 42px);
    padding-left: clamp(22px, 2.6vw, 48px);
    padding-right: clamp(22px, 2.6vw, 48px);
  }

  .nw-hero__stack {
    align-items: flex-end;
    text-align: right;
    width: auto;
    max-width: min(340px, 36vw);
    margin-left: auto;
  }

  .nw-hero__stats {
    justify-content: flex-end;
    width: 100%;
  }

  .nw-share-row {
    justify-content: flex-end;
    width: 100%;
  }
}

.nw-hero__top {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.5vw, 10px);
  min-width: 0;
}

.nw-hero__title {
  margin: 0;
  font-family: var(--hc-font, "Rubik", sans-serif);
  font-size: clamp(30px, 2.85vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--hc-text);
}

.nw-hero__lead {
  margin: 0;
  max-width: 72ch;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.5;
  color: var(--hc-muted);
}

/* Keep hero descriptions compact and consistently readable. */
.nw-hub-shell .nw-hero__top .nw-hero__lead {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 0.9vw, 14px);
}

.nw-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nw-stat-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--hc-border);
  background: rgba(0, 0, 0, 0.14);
  padding: 6px 12px 6px 8px;
  box-sizing: border-box;
}

html[data-vc-rail="light"] .nw-stat-pill {
  background: rgba(255, 255, 255, 0.55);
}

.nw-stat-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  flex-shrink: 0;
}

html[data-vc-rail="light"] .nw-stat-pill__icon {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.nw-stat-pill__icon .lucide-icon,
.nw-stat-pill__icon [data-lucide] {
  width: 14px;
  height: 14px;
}

.nw-stat-pill__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.nw-stat-pill__value {
  font-family: var(--hc-font, "Rubik", sans-serif);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 800;
  color: var(--hc-text);
  line-height: 1.1;
}

.nw-stat-pill__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hc-muted);
  line-height: 1.2;
}

.nw-share-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.nw-share-row .share-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--hc-border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--hc-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

html[data-vc-rail="light"] .nw-share-row .share-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
}

.nw-share-row .share-btn:hover {
  border-color: var(--hc-border-strong);
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

html[data-vc-rail="light"] .nw-share-row .share-btn:hover {
  background: #eef2ff;
  color: #312e81;
}

.nw-share-row .share-btn .nw-share-row__glyph {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nw-share-row .share-btn .nw-share-row__glyph i {
  font-size: 17px;
  line-height: 1;
  display: block;
  text-align: center;
}

.nw-share-row .share-btn .nw-share-row__glyph--x {
  width: 22px;
  height: 22px;
}

.nw-share-row .share-btn .nw-share-row__glyph--x svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* ── Filters в шапке: горизонтальные отступы = .nw-hero__inner (Official Media — фильтры в контенте, не трогаем) ─ */
.nw-hub-shell:not(.nw-official-media-hub) .nw-hero .nw-hero__filters.nw-filters-inline.filters-section {
  margin: 0;
  border: none;
  border-top: 1px solid var(--hc-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  padding: clamp(10px, 0.85vw, 14px) clamp(14px, 1.35vw, 26px) clamp(12px, 1.05vw, 18px);
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .nw-hub-shell:not(.nw-official-media-hub) .nw-hero .nw-hero__filters.nw-filters-inline.filters-section {
    padding-left: clamp(22px, 2.6vw, 48px);
    padding-right: clamp(22px, 2.6vw, 48px);
    padding-top: clamp(10px, 0.85vw, 14px);
    padding-bottom: clamp(12px, 1.05vw, 18px);
  }
}

html[data-vc-rail="light"] .nw-hub-shell:not(.nw-official-media-hub) .nw-hero .nw-hero__filters.nw-filters-inline.filters-section {
  box-shadow: none;
}

.nw-hub-shell .nw-filters-inline .filters-grid {
  gap: clamp(10px, 0.85vw, 14px);
  overflow: visible;
}

@media (min-width: 1025px) {
  .nw-hub-shell .nw-filters-inline .filters-grid.nw-category-filters-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nw-hub-shell .nw-filters-inline .filter-label {
  color: var(--hc-muted);
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nw-hub-shell .nw-filters-inline .select-selected {
  border-color: var(--hc-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--hc-text);
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 600;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-filters-inline .select-selected {
  background: #fff;
  color: #111118;
}

.nw-hub-shell .nw-filters-inline .filters-form-content {
  overflow: visible;
}

.nw-hub-shell .nw-filters-inline .filter-group {
  overflow: visible;
  position: relative;
  z-index: 0;
}

.nw-hub-shell .nw-filters-inline .filter-group:has(.select-items.active) {
  z-index: 30;
}

.nw-hub-shell .nw-filters-inline .custom-select {
  position: relative;
  z-index: 1;
}

.nw-hub-shell .nw-filters-inline .custom-select:has(.select-items.active) {
  z-index: 40;
}

.nw-hub-shell .nw-filters-inline .select-items {
  border-color: var(--hc-border);
  background: var(--hc-bg-elev);
  z-index: 50;
}

.nw-hub-shell .nw-filters-inline .select-item {
  color: var(--hc-text);
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(13px, 0.9vw, 15px);
}

.nw-hub-shell .nw-filters-inline .select-item:hover {
  background: rgba(99, 102, 241, 0.12);
}

.nw-hub-shell .nw-filters-inline .results-count {
  color: var(--hc-muted);
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(12px, 0.85vw, 14px);
}

.nw-hub-shell .nw-filters-inline .results-count strong {
  color: var(--hc-text);
}

.nw-hub-shell .nw-filters-inline .newswire-reset-filters {
  color: #a5b4fc;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-filters-inline .newswire-reset-filters {
  color: #4f46e5;
}

@media (min-width: 1025px) {
  .nw-hub-shell .newswire-filters-trigger {
    display: none;
  }

  .nw-hub-shell .filters-section .filters-form-content {
    display: block;
  }
}

/* ── Feed mini cards (wiki article rec style) ────────────────────────── */
.nw-hub-shell .nw-feed-mini-card.wiki-rec-news-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hc-radius, 3px);
  border: 1px solid var(--hc-border);
  background: var(--hc-bg-elev);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-feed-mini-card.wiki-rec-news-card {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nw-hub-shell .nw-feed-mini-card.wiki-rec-news-card:hover {
  border-color: var(--hc-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

html[data-vc-rail="light"] .nw-hub-shell .nw-feed-mini-card.wiki-rec-news-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--hc-border);
  background: #0c0c12;
  overflow: hidden;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__media {
  background: #d8dce4;
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px 11px;
  min-width: 0;
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-muted);
}

html[data-vc-rail="light"] .nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__date {
  color: #5c2e0a;
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__title {
  margin: 0;
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--hc-text);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-hub-shell .nw-feed-mini-card .wiki-rec-news-card__excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: var(--hc-muted);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Rail: hub section title (hub only; legacy article rail unchanged by mobile block) ─ */
.nw-hub-shell .nw-wiki-rail .wiki-rec-heading--hub {
  font-size: clamp(16px, 1.18vw, 21px);
  font-weight: 800;
  letter-spacing: 0.035em;
  margin-top: clamp(6px, 0.55vw, 12px);
  margin-bottom: clamp(10px, 0.85vw, 14px);
  padding-bottom: 8px;
}

@media (max-width: 1024px) {
  .nw-hub-shell .nw-wiki-rail .wiki-rec-heading.wiki-rec-heading--hub {
    font-size: clamp(16px, 4vw, 21px);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    margin-top: clamp(4px, 1.2vw, 10px);
    margin-bottom: 12px;
  }
}

/* ── Feed header ─────────────────────────────────────────────────────── */
.nw-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hc-border);
}

.nw-feed-head__title {
  margin: 0;
  font-family: var(--hc-font, "Rubik", sans-serif);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-text);
}

.nw-feed-head__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--hc-muted);
  min-height: 0;
}

.nw-feed-head__hint:empty {
  display: none;
}

/* ── Empty / loading ──────────────────────────────────────────────────── */
.nw-hub-shell .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 24px);
  border-radius: var(--hc-radius, 3px);
  border: 1px dashed var(--hc-border);
  color: var(--hc-muted);
}

.nw-hub-shell .no-results h3 {
  margin: 0.5rem 0;
  color: var(--hc-text);
}

#content-left.loading {
  opacity: 0.55;
  pointer-events: none;
  min-height: 40vh;
  position: relative;
}

#content-left.loading::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: nw-hub-spin 0.75s linear infinite;
}

@keyframes nw-hub-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Wiki rail: full-height column; inner surface sticky until footer (shell end) ─ */
@media (min-width: 1025px) {
  .nw-hub-shell .nw-wiki-rail.wiki-explore-rec-sidebar {
    position: relative;
    align-self: stretch;
    z-index: 6;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 1px solid var(--hc-border);
    background: var(--hc-bg-elev);
    box-sizing: border-box;
    min-height: 0;
  }

  .nw-hub-shell .nw-wiki-rail .wiki-rec-surface {
    position: sticky;
    top: calc(var(--vc-header-h, 56px) + 12px);
    bottom: clamp(20px, 2.8vw, 36px);
    align-self: flex-start;
    width: 100%;
    flex: 0 1 auto;
    margin: 0;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: clamp(18px, 1.55vw, 28px) clamp(16px, 1.5vw, 28px) clamp(12px, 1vw, 16px)
      clamp(16px, 1.5vw, 28px);
    box-sizing: border-box;
  }

  .nw-hub-shell .wiki-rec-tiles--hub-four {
    gap: clamp(8px, 0.72vw, 12px);
  }
}

/* Hub pages: footer flush with shell (no stripe above) */
body:has(.nw-hub-shell) .main-footer.vc-footer {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .nw-hub-shell {
    display: flex !important;
    flex-direction: column;
    padding: clamp(12px, 2vw, 16px);
    gap: clamp(16px, 2.5vw, 22px);
  }

  .nw-hub-shell .nw-wiki-rail {
    order: 10;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}

.nw-feed-footer {
  margin-top: clamp(8px, 1vw, 14px);
}

.nw-feed-footer .pagination {
  justify-content: center;
}

/* Pagination: stronger non-active digits on dark hub backgrounds */
.nw-hub-shell .pagination .page-btn:not(.active):not(.disabled) {
  font-weight: 600;
  color: color-mix(in srgb, var(--dark, #1e293b) 88%, transparent);
  border-color: color-mix(in srgb, var(--gray-dark, #64748b) 45%, transparent);
}

.nw-hub-shell .pagination .page-dots {
  color: color-mix(in srgb, var(--gray-dark, #64748b) 92%, transparent);
  font-weight: 600;
}

[data-theme="dark"] .nw-hub-shell .pagination .page-btn:not(.active):not(.disabled) {
  color: rgba(248, 250, 252, 0.94);
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
}

[data-theme="dark"] .nw-hub-shell .pagination .page-btn:not(.active):not(.disabled):hover {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(51, 65, 85, 0.75);
}

[data-theme="dark"] .nw-hub-shell .pagination .page-dots {
  color: rgba(203, 213, 225, 0.85);
}

/* Exploration: “soon” tile matches home-style grid cells */
.nw-hub-shell .hc-wiki-tile--soon {
  cursor: default;
  opacity: 0.92;
}

.nw-hub-shell .hc-wiki-tile--soon:hover {
  transform: none;
  box-shadow: none;
}

.nw-hub-shell .nw-category-page-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

html[data-vc-rail="light"] .nw-hub-shell .nw-category-page-badge {
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.45);
}

@media (min-width: 1025px) {
  .nw-hub-shell .nw-explore-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nw-hub-shell .nw-explore-empty.exploration-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 32px);
  text-align: center;
}

.nw-hub-shell .nw-explore-empty .exploration-no-results-icon {
  width: clamp(48px, 4vw, 64px);
  height: clamp(48px, 4vw, 64px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary, #6366f1) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(12px, 1.2vw, 18px);
}

.nw-hub-shell .nw-explore-empty .exploration-no-results-icon i {
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--primary, #6366f1);
  opacity: 0.95;
}

.nw-hub-shell .nw-explore-empty .exploration-no-results-title {
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  font-weight: 600;
  color: var(--dark, #1e293b);
  margin: 0 0 0.35em;
}

.nw-hub-shell .nw-explore-empty .exploration-no-results-text {
  font-size: 0.95rem;
  color: var(--gray-dark, #64748b);
  margin: 0;
  max-width: 28rem;
}

[data-theme="dark"] .nw-hub-shell .nw-explore-empty .exploration-no-results-title {
  color: rgba(248, 250, 252, 0.96);
}

[data-theme="dark"] .nw-hub-shell .nw-explore-empty .exploration-no-results-text {
  color: rgba(203, 213, 225, 0.88);
}

.nw-content-left {
  min-width: 0;
}

/* ── Official Media: align with hub/category visual language ───────────── */
.nw-official-media-hub .nw-hero__title,
.nw-official-media-hub .nw-hero__lead,
.nw-official-media-hub .nw-feed-head__title,
.nw-official-media-hub .trailers-subsection__title {
  font-family: var(--hc-font, "Rubik", "Inter", system-ui, -apple-system, sans-serif) !important;
}

.nw-official-media-hub .trailers-content-section {
  border-radius: var(--hc-radius, 3px);
  border: 1px solid var(--hc-border);
  background: var(--hc-bg-elev);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  padding: clamp(10px, 0.9vw, 14px);
}

.nw-official-media-hub .trailers-container .filters-section.nw-filters-inline {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius, 3px);
  background: transparent;
  box-shadow: none;
  padding: clamp(10px, 0.9vw, 14px) !important;
}

.nw-official-media-hub .trailers-container .category-filters-trigger {
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--hc-text);
}

.nw-official-media-hub .trailers-container .category-filters-trigger:hover {
  border-color: var(--hc-border-strong);
  background: rgba(99, 102, 241, 0.2);
}

.nw-official-media-hub .trailers-container .filters-section .select-selected {
  border-color: var(--hc-border);
  background: rgba(15, 23, 42, 0.48) !important;
  color: var(--hc-text);
  font-weight: 700;
}

.nw-official-media-hub .trailers-container .filters-section .select-items {
  border-color: var(--hc-border);
  background: var(--hc-bg-elev);
}

.nw-official-media-hub .trailers-container .filters-section .select-item {
  color: var(--hc-text);
}

.nw-official-media-hub .trailers-container .filters-section .select-item:hover {
  background: rgba(99, 102, 241, 0.12);
}

.nw-official-media-hub .trailers-container .filters-section .results-count,
.nw-official-media-hub .trailers-container .filters-section .results-count strong {
  color: var(--hc-text);
}

.nw-official-media-hub .trailers-container .filter-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--hc-muted) !important;
  font-size: clamp(10px, 0.72vw, 11px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.nw-official-media-hub .trailers-container .filter-label .lucide-icon,
.nw-official-media-hub .trailers-container .filter-label [data-lucide] {
  width: 14px !important;
  height: 14px !important;
}

.nw-official-media-hub .trailers-subsection__title {
  color: var(--hc-text) !important;
}

.nw-official-media-hub .trailers-container .empty-state,
.nw-official-media-hub .trailers-container .empty-state h3,
.nw-official-media-hub .trailers-container .empty-state p {
  color: var(--hc-text);
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card {
  border: 1px solid var(--hc-border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hc-bg-elev) 92%, #1f2937 8%) 0%, var(--hc-bg-elev) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary, #6366f1) 65%, var(--hc-border) 35%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__image-wrap {
  position: relative;
  border-bottom: 1px solid var(--hc-border);
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
  pointer-events: none;
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__body {
  padding: 10px 12px 12px;
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__footer {
  border-top: 1px solid color-mix(in srgb, var(--hc-border) 78%, transparent);
  padding-top: 8px;
  margin-top: 8px;
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__title,
.nw-official-media-hub .trailers-home-grid--videos .home-news-card__desc,
.nw-official-media-hub .trailers-home-grid--videos .home-news-card__date {
  color: var(--hc-text);
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__views {
  color: color-mix(in srgb, var(--primary, #6366f1) 80%, #c7d2fe 20%);
  font-weight: 700;
}

.nw-official-media-hub .trailers-home-grid--videos .home-news-card__read-more {
  color: color-mix(in srgb, var(--primary, #6366f1) 88%, #e0e7ff 12%);
  font-weight: 800;
}

html[data-vc-rail="light"] .nw-official-media-hub .trailers-content-section {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

html[data-vc-rail="light"] .nw-official-media-hub .trailers-container .category-filters-trigger,
html[data-vc-rail="light"] .nw-official-media-hub .trailers-container .filters-section .select-selected {
  background: #fff;
  color: #111118;
}

html[data-vc-rail="light"] .nw-official-media-hub .trailers-container .filter-label {
  color: rgba(30, 41, 59, 0.76) !important;
}

html[data-vc-rail="light"] .nw-official-media-hub .trailers-home-grid--videos .home-news-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fd 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

html[data-vc-rail="light"] .nw-official-media-hub .trailers-home-grid--videos .home-news-card:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .nw-official-media-hub .trailers-container .filters-section .select-selected {
  background: rgba(15, 23, 42, 0.62) !important;
  border-color: rgba(148, 163, 184, 0.36) !important;
  color: rgba(248, 250, 252, 0.95) !important;
}

[data-theme="dark"] .nw-official-media-hub .trailers-subsection__title,
[data-theme="dark"] .nw-official-media-hub .trailers-container .results-count,
[data-theme="dark"] .nw-official-media-hub .trailers-container .results-count strong {
  color: rgba(248, 250, 252, 0.96) !important;
}
