:root {
  --bg: #0d0e1a;
  --panel: #171827;
  --panel-border: #2a2c45;
  --accent: #ff2e63;
  --accent-2: #08d9d6;
  --text: #eaeaea;
  --muted: #8a8ca8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(8, 217, 214, 0.4);
}

.tagline {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.search-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: end;
}

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

.search-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-form input,
.search-form select {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.6rem;
}

.search-form input:focus,
.search-form select:focus {
  outline: none;
  border-color: var(--accent-2);
}

.optional-tag {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-form button {
  background: var(--accent-2);
  border: none;
  border-radius: 4px;
  color: #06131f;
  font-family: inherit;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.search-form button:hover {
  box-shadow: 0 0 16px rgba(8, 217, 214, 0.45);
}

.search-form button:active {
  transform: translateY(1px);
}

.search-form button:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.filter-hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

.applied-filters {
  color: var(--accent-2);
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.bat-note {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.status-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.error-note {
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0.9rem;
  margin: 1.5rem 0;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.result-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 1.25rem;
}

.result-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--accent-2);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.stat-tile {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.source-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--panel-border);
}

.source-breakdown .source-error {
  color: var(--accent);
}

.listing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listing-list li {
  border-top: 1px solid var(--panel-border);
  padding-top: 0.5rem;
  font-size: 0.85rem;
}

.listing-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.listing-list a {
  color: var(--text);
  text-decoration: none;
}

.listing-list a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.listing-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.no-listings {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.site-footer a {
  color: var(--muted);
}
