@import url("asset.php?file=visual-system-final.css");

.vf-global-search,.vf-mobile-command-search{position:relative}
.vf-quick-open{position:absolute;z-index:90;top:calc(100% + 8px);left:0;width:min(620px,calc(100vw - 28px));padding:6px;border:1px solid var(--vf-border,#d7e2e2);border-radius:12px;background:var(--vf-surface,#fff);box-shadow:0 16px 42px rgba(15,23,42,.18);overflow:hidden}
.vf-quick-open[hidden]{display:none!important}
.vf-quick-open-item{width:100%;min-height:48px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.vf-quick-open-item:hover,.vf-quick-open-item.active{background:var(--vf-surface-soft,#f1f7f6)}
.vf-quick-open-copy{min-width:0;display:grid;gap:2px}
.vf-quick-open-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;color:var(--vf-text-strong,#152222)}
.vf-quick-open-copy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--vf-muted,#687777)}
.vf-quick-open-arrow{flex:0 0 auto;color:var(--vf-primary,#0f766e);font-size:13px}
.vf-quick-open-empty{padding:13px 11px;color:var(--vf-muted,#687777);font-size:12px}
.vf-quick-open-all{min-height:34px;margin-top:3px;padding:7px 10px;display:flex;align-items:center;border-top:1px solid var(--vf-line,#e8eeee);color:var(--vf-primary,#0f766e);font-size:11.5px;font-weight:650;text-decoration:none}
.vf-quick-open-all:hover{text-decoration:underline}
@media(max-width:720px){.vf-quick-open{position:fixed;top:68px;left:10px;right:10px;width:auto;max-height:min(62vh,520px);overflow:auto}.vf-quick-open-item{min-height:52px}}

/* Discover is intentionally unsorted; do not expose an inert sort control. */
.vf-workspace-toolbar:has(nav a.active[href*="view=discover"]) .vf-toolbar-controls select[aria-label="排序"],
.vf-workspace-toolbar:has(nav a.active[href*="discover=1"]) .vf-toolbar-controls select[aria-label="排序"]{display:none}

/* Start Popular is itself the popularity ordering; alternate sorting would contradict the active view. */
.vf-workspace-toolbar:has(nav a.active[href*="view=popular"]) .vf-toolbar-controls select[aria-label="排序"]{display:none}

/* Favorite totals are now context-bound and owner-only, so the toolbar badge can remain visible. */

/* Watch status links preserve search/year/genre/rating context while legacy status totals are wider-scope. */
.vf-workspace-toolbar nav a[href*="status="] small{display:none}

/* First-class Watch status totals are contextual through scope/kind/search, but year/genre/rating are applied after they are built. */
.vf-watch-library-page .vf-watch-statuses a[href*="year="] small,
.vf-watch-library-page .vf-watch-statuses a[href*="genre="] small,
.vf-watch-library-page .vf-watch-statuses a[href*="rating="] small{display:none}

/* First-class Watch type totals are scope-level; hide them whenever preserved Watch context narrows the click destination. */
.vf-watch-library-page .vf-watch-facets a[href*="q="] small,
.vf-watch-library-page .vf-watch-facets a[href*="status="] small,
.vf-watch-library-page .vf-watch-facets a[href*="year="] small,
.vf-watch-library-page .vf-watch-facets a[href*="genre="] small,
.vf-watch-library-page .vf-watch-facets a[href*="rating="] small{display:none}

/* Project state-chip counts are scope-accurate only; hide them when q/kind narrows the click destination. */
.vf-project-action-page .vf-subject-chips a[href*="q="] small,
.vf-project-action-page .vf-subject-chips a[href*="kind="] small{display:none}

/* Topic/Course category counts are scope-accurate; search is applied after those counts are built. */
.vf-topic-library-page .vf-subject-chips a[href*="q="] small,
.vf-course-library-page .vf-course-chips a[href*="q="] small{display:none}

/* Tag counts are scope-accurate but become wider than click results when a search query is preserved. */
.vf-tag-cloud a[href*="q="] small{display:none}

/* Sidebar category/kind counts are scope-accurate only; hide them when links preserve a narrower result context. */
.vf-category-tree a[href*="q="] em,
.vf-category-tree a[href*="view=favorite"] em,
.vf-category-tree a[href*="view=recent"] em,
.vf-category-tree a[href*="status="] em,
.vf-category-tree a[href*="year="] em,
.vf-category-tree a[href*="genre="] em,
.vf-category-tree a[href*="rating="] em,
.vf-category-tree a[href*="background=1"] em,
.vf-category-tree a[href*="discover=1"] em,
.vf-category-tree a[href*="os="] em,
.vf-category-tree a[href*="facet="] em,
.vf-category-tree a[href*="state="] em,
.vf-category-tree a[href*="provider="] em{display:none}

/* Scope totals describe the whole resource domain; hide them when the scope link preserves a narrower result filter. */
.vf-sidebar-scope a[href*="q="] b,
.vf-sidebar-scope a[href*="category="] b,
.vf-sidebar-scope a[href*="kind="] b,
.vf-sidebar-scope a[href*="view=favorite"] b,
.vf-sidebar-scope a[href*="view=recent"] b,
.vf-sidebar-scope a[href*="view=discover"] b,
.vf-sidebar-scope a[href*="tag="] b,
.vf-sidebar-scope a[href*="status="] b,
.vf-sidebar-scope a[href*="year="] b,
.vf-sidebar-scope a[href*="genre="] b,
.vf-sidebar-scope a[href*="rating="] b,
.vf-sidebar-scope a[href*="background=1"] b,
.vf-sidebar-scope a[href*="discover=1"] b,
.vf-sidebar-scope a[href*="os="] b,
.vf-sidebar-scope a[href*="facet="] b,
.vf-sidebar-scope a[href*="state="] b,
.vf-sidebar-scope a[href*="provider="] b{display:none}

/* Channel type totals are pre-product-filter; hide them when preserved Channel context narrows the click result. Provider-facet totals stay visible because they are computed from the current contextual asset set. */
.vf-channel-facets:not(.vf-channel-platforms) a[href*="q="] small,
.vf-channel-facets:not(.vf-channel-platforms) a[href*="background=1"] small,
.vf-channel-facets:not(.vf-channel-platforms) a[href*="discover=1"] small,
.vf-channel-facets:not(.vf-channel-platforms) a[href*="provider="] small{display:none}


/* V2.47.232 Production search overlay guard.
 * Subject pages use the shared Quick Open runtime, so the popup must remain an
 * overlay and never participate in the masthead search form flex layout. */
.vf-global-search>.vf-quick-open,
.vf-mobile-command-search>.vf-quick-open{
  z-index:120!important;
  display:block;
  flex:none!important;
}
.vf-global-search>.vf-quick-open[hidden],
.vf-mobile-command-search>.vf-quick-open[hidden]{display:none!important}
.vf-quick-open>.vf-quick-open-item{
  display:flex!important;
  width:100%!important;
  border:0!important;
  background:transparent!important;
}
.vf-quick-open>.vf-quick-open-all{display:flex!important}
@media(min-width:721px){
  .vf-global-search>.vf-quick-open,
  .vf-mobile-command-search>.vf-quick-open{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    left:0!important;
    width:min(620px,calc(100vw - 28px))!important;
    max-width:620px!important;
  }
}
