.frontend-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.frontend-search-results-toolbar {
  display: flex;
  flex-direction: column;
}

.frontend-search-results-toolbar-main {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.frontend-search-sort-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.frontend-search-sort-group-label {
  color: var(--theme-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.frontend-search-sort-shell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--theme-frontend-glass-border) 84%, var(--theme-frontend-card-border));
  border-radius: 9999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-surface-overlay-strong) 92%, #ffffff 8%) 0%, color-mix(in srgb, var(--theme-frontend-glass-background) 94%, var(--theme-surface-muted) 6%) 100%);
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
}

.frontend-search-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: color-mix(in srgb, var(--theme-text-secondary) 72%, var(--theme-text-soft));
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  opacity: 0.82;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.frontend-search-sort-pill:not(.frontend-search-sort-pill-active):hover {
  border-color: color-mix(in srgb, var(--theme-frontend-card-border-hover) 80%, transparent);
  background: color-mix(in srgb, var(--theme-brand-surface) 16%, rgba(255, 255, 255, 0.44));
  color: var(--theme-text-primary);
  opacity: 1;
  transform: translateY(-1px);
}

.frontend-search-sort-pill-active {
  border-color: rgba(14, 165, 233, 0.24);
  background: var(--theme-brand-surface);
  box-shadow: 0 12px 24px -20px rgba(14, 165, 233, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.54);
  color: var(--theme-brand-text);
  font-weight: 600;
  opacity: 1;
}

.frontend-search-placeholder {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--theme-frontend-glass-border) 78%, var(--theme-frontend-card-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-frontend-glass-background) 92%, transparent) 0%, color-mix(in srgb, var(--theme-surface-overlay) 92%, var(--theme-brand-surface) 8%) 48%, color-mix(in srgb, var(--theme-frontend-card-background) 94%, var(--theme-brand-surface) 6%) 100%);
  box-shadow: 0 26px 52px -40px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
}

.frontend-search-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.frontend-search-placeholder::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 9999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-brand-surface) 72%, transparent) 0%, transparent 72%);
  pointer-events: none;
}

.frontend-search-placeholder-grid {
  display: grid;
  gap: 0.875rem;
}

.frontend-search-placeholder-item {
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--theme-frontend-glass-border) 82%, var(--theme-frontend-card-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-surface-overlay-strong) 92%, #ffffff 8%) 0%, color-mix(in srgb, var(--theme-frontend-glass-background) 94%, var(--theme-surface-muted) 6%) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

@media (min-width: 768px) {
  .frontend-search-results-toolbar {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .frontend-search-sort-group {
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .frontend-search-placeholder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .frontend-post-list {
    gap: 1.25rem;
  }

  .frontend-post-list .frontend-post-card {
    padding: 2rem;
  }
}
