.vx-category .category-site-header {
  border-bottom: 1px solid var(--border);
  background: var(--navbar-bg);
}

.vx-category .category-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.vx-category .category-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.vx-category .category-page-nav a {
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: .82rem;
}

.vx-category .category-page-nav a:hover,
.vx-category .category-page-nav a[aria-current="page"] {
  background: var(--bg-3);
  color: var(--text);
}

.vx-category .category-theme-button {
  flex: 0 0 auto;
}

.vx-category .article-header-inner,
.vx-category .article-content {
  max-width: 1100px;
}

.vx-category .documentary-card a {
  height: 240px;
  min-height: 0;
}

.vx-category .documentary-card img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 35%;
}

.vx-category .documentary-card-body {
  min-width: 0;
  overflow: hidden;
}

.vx-category .documentary-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vx-category .documentary-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vx-category .category-list-intro {
  color: var(--text-2);
}

.vx-category .category-count {
  margin-top: 1.5rem;
  color: var(--text-3);
  font-size: .9rem;
}

.vx-category .category-search {
  max-width: 32rem;
  margin: 1.5rem 0 1rem;
}

.vx-category .category-search label {
  display: block;
  margin-bottom: .45rem;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 600;
}

.vx-category .category-search-input {
  width: 100%;
  min-height: 46px;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}

.vx-category .category-search-input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vx-category .category-no-results {
  padding: 1rem 0;
  color: var(--text-3);
}

.vx-category .category-page-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.vx-category .category-page-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .vx-category .category-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .vx-category .category-page-nav {
    gap: .2rem;
  }

  .vx-category .documentary-card a {
    display: block;
    height: auto;
  }

  .vx-category .documentary-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
