*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #f1f1f1;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

header {
  text-align: center;
  margin-bottom: 36px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

header p {
  margin-top: 8px;
  color: #aaa;
  font-size: 1rem;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 32px;
}

.search-bar input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #f1f1f1;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #ff0000;
}

.search-bar button {
  padding: 14px 28px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-bar button:hover {
  background: #cc0000;
}

.search-bar button:disabled {
  background: #555;
  cursor: not-allowed;
}

/* Status message */
.status-msg {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #aaa;
}

.status-msg.error {
  color: #ff6b6b;
}

.status-msg.hidden {
  display: none;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 28px;
}

.filter-bar.hidden {
  display: none;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #333;
  background: transparent;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #ff0000;
  color: #fff;
}

.filter-btn.selected {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.filter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.filter-btn .count {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.filter-btn.selected .count {
  background: rgba(255,255,255,0.3);
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Creator card */
.card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #ff0000;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #222;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #ff0000;
  font-weight: 500;
}

.card-body p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}
