.ts-hero {
  padding: 8rem 2rem 1.5rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.ts-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ts-hero h1 span {
  color: var(--text-primary);
}

.ts-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.ts-search {
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

#ts-filter {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  font-family: var(--font-body, inherit);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  outline: none;
}

#ts-filter:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.ts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ts-filter-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.ts-filter-btn:hover {
  border-color: var(--surface-border-hover);
  color: var(--text-primary);
}

.ts-filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.ts-count {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ts-list {
  max-width: 900px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.ts-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--rad);
  padding: 1.5rem 1.75rem;
}

.ts-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.ts-item p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.ts-item code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--visual-bg, rgba(0, 0, 0, 0.05));
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.ts-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-blue);
  background: var(--terminal-bg, #0d1117);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  white-space: pre;
}

.ts-expected {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.ts-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
}
