* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

.filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #16213e;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filters h1 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.filters select {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #eee;
  min-width: 8rem;
}

.filters .checkbox {
  cursor: pointer;
}

.filters .checkbox input {
  margin: 0;
}

.count {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
}

.card {
  background: #0f3460;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.card:hover {
  transform: scale(1.2);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-info {
  padding: 0.5rem 0.6rem;
}

.card-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.card-reg {
  font-size: 0.7rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.card-meta {
  color: #94a3b8;
  font-size: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid #0f3460;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: #94a3b8;
}
.site-footer a:hover {
  color: #fff;
}
