/* ==========================================================================
   VelveFlix v2 — SEARCH overlay + BROWSE/DISCOVER facets — scoped html.vf-2026
   Источник: VelveFlix.dc.html (SEARCH OVERLAY, BROWSE segmented/chips/grid).
   Переопределяет прод .vf-search-overlay / .vf-page-head / .vf-seg / .vf-facet.
   ========================================================================== */

/* ---------- SEARCH OVERLAY (стекло) ---------- */
html.vf-2026 .vf-search-overlay {
  background: rgba(6,6,8,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html.vf-2026 .vf-search-overlay.is-open,
html.vf-2026 .vf-search-overlay[aria-hidden="false"] { animation: vfUp .3s ease both; }

html.vf-2026 .vf-search-overlay__bar {
  max-width: 1180px; margin: 0 auto; gap: 18px;
}
html.vf-2026 .vf-search-overlay__form {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
html.vf-2026 .vf-search-overlay__input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: var(--vf-font-sans);
  font-size: 20px; font-weight: 600;
}
html.vf-2026 .vf-search-overlay__close {
  width: 54px; height: 54px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05); color: #fff;
  transition: background .2s;
}
html.vf-2026 .vf-search-overlay__close:hover { background: rgba(255,255,255,.16); }

/* ---------- BROWSE / DISCOVER ---------- */
html.vf-2026 .vf-page-head h1,
html.vf-2026 .vf-page-head__title {
  font-family: var(--vf-font-display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.02em;
}

/* segmented (All/Movies/TV) — стекло-контейнер r12 */
html.vf-2026 .vf-seg {
  display: inline-flex; gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 5px;
}
html.vf-2026 .vf-seg > * {
  padding: 8px 18px; border-radius: 8px; border: none;
  font-family: var(--vf-font-sans); font-size: 13.5px; font-weight: 700;
  background: transparent; color: rgba(245,245,247,.6);
  transition: background .2s, color .2s;
}
html.vf-2026 .vf-seg > *[aria-selected="true"],
html.vf-2026 .vf-seg > .is-active,
html.vf-2026 .vf-seg > .is-on,
html.vf-2026 .vf-seg > [aria-pressed="true"] {
  background: #fff; color: #0a0a0c;
}

/* фильтр-чипы — пилюли, активный = акцент */
html.vf-2026 .vf-facet__btn,
html.vf-2026 .vf-chips > * {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-family: var(--vf-font-sans); font-size: 13px; font-weight: 600;
  color: #f5f5f7;
  transition: background .2s, border-color .2s, color .2s;
}
html.vf-2026 .vf-facet__btn:hover { background: rgba(255,255,255,.1); }
html.vf-2026 .vf-facet__btn[aria-pressed="true"],
html.vf-2026 .vf-facet__btn.is-active,
html.vf-2026 .vf-chips > .is-active {
  background: var(--vf-accent); border-color: var(--vf-accent); color: #fff;
}
/* facet с выбранными значениями — акцент-обводка + счётчик-пилюля акцентом */
html.vf-2026 .vf-facet__btn.has-active {
  border-color: var(--vf-accent);
  background: var(--vf-accent-soft);
  color: #fff;
}
html.vf-2026 .vf-facet__btn .vf-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 999px; background: var(--vf-accent); color: #fff;
  font-size: 11px; font-weight: 800;
}
html.vf-2026 .vf-facet__btn .vf-count[hidden] { display: none; }

/* popup-меню фасета — стекло на тёмном */
html.vf-2026 .vf-pop {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16,16,20,.96);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
html.vf-2026 .vf-opt { border-radius: 10px; transition: background .15s; }
html.vf-2026 .vf-opt:hover { background: rgba(255,255,255,.06); }
html.vf-2026 .vf-opt img { border-radius: 6px; }
html.vf-2026 .vf-opt__count { color: rgba(245,245,247,.4); font-weight: 600; }

/* счётчик результатов */
html.vf-2026 .vf-count,
html.vf-2026 .vf-results__count {
  font-size: 13.5px; color: rgba(245,245,247,.5); font-weight: 600;
}

/* empty-state */
html.vf-2026 .vf-grid:empty::after,
html.vf-2026 .vf-disc-empty {
  color: rgba(245,245,247,.5);
}
