:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

h1, h2 {
  margin-bottom: 1rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.search-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.search-form input,
.search-form select,
.search-form button {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.search-form button {
  grid-column: 1 / -1;
  cursor: pointer;
}

.results {
  margin-top: 2rem;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: inherit;
}

.error {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pagination a {
  text-decoration: none;
}
