:root { color-scheme: dark; }
* { box-sizing: border-box; }

body {
  background: #121212;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #262626;
}
.site-header .brand { color: #eee; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.site-header .tool-name { color: #9aa0a6; font-size: 0.95rem; }

.container { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }

h1 { font-size: 1.4rem; margin-bottom: 4px; }
.subtitle { color: #9aa0a6; margin-top: 0; margin-bottom: 24px; font-size: 0.9rem; }

/* ---- form page ---- */
.lookup-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  background: #1c1c1c;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.lookup-form label { display: block; font-size: 0.8rem; color: #9aa0a6; margin-bottom: 4px; }
.lookup-form input {
  background: #121212;
  border: 1px solid #333;
  color: #eee;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  width: 260px;
}
.lookup-form button {
  background: #5ec8f2;
  border: none;
  color: #0b1b22;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}
.lookup-form button:hover { background: #7ed4f5; }

.error {
  background: #ff808022;
  border: 1px solid #ff808066;
  color: #ff9b9b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.hint { color: #6b7075; font-size: 0.82rem; }
.hint a { color: #7fb2ff; }

.loading-note { color: #7fb2ff; font-size: 0.85rem; margin-top: -6px; }

.info-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #262626;
}
.info-section h2 { font-size: 1rem; margin-bottom: 10px; color: #eee; }
.info-section ul { margin: 0; padding-left: 20px; color: #b8bcc0; font-size: 0.88rem; line-height: 1.6; }
.info-section li { margin-bottom: 6px; }
.info-section li:last-child { margin-bottom: 0; }
.info-section strong { color: #eee; }

/* ---- results page ---- */
.meta-line { color: #9aa0a6; font-size: 0.9rem; margin-bottom: 24px; }
.meta-line a { color: #7fb2ff; }

h2.section { font-size: 1.05rem; margin: 32px 0 6px; }
h2.section.unresolved { color: #ffb85e; }
.section-note { color: #9aa0a6; font-size: 0.85rem; margin-top: -2px; margin-bottom: 14px; }
.empty { color: #9aa0a6; font-style: italic; }

.card {
  display: flex;
  gap: 16px;
  background: #1c1c1c;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.card.unresolved { outline: 1px solid #ffb85e66; }

.cover {
  width: 84px; height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #2a2a2a;
  flex-shrink: 0;
}
.cover.broken { visibility: hidden; }

.info { min-width: 0; flex: 1; }
.new-title { font-size: 1rem; font-weight: 600; color: #eee; margin-bottom: 4px; }
.ids { font-size: 0.78rem; color: #6b7075; margin-bottom: 10px; }
.ids a { color: #7fb2ff; text-decoration: none; }
.ids a:hover { text-decoration: underline; }

.section-label { font-size: 0.78rem; color: #9aa0a6; }
.old-versions { margin-bottom: 10px; }
.old-versions ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.82rem; color: #9aa0a6; }
.old-versions li { margin-bottom: 2px; }
.old-versions a { color: #7fb2ff; text-decoration: none; }
.old-versions a:hover { text-decoration: underline; }

.tracks ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.85rem; color: #ccc; }
.tracks li { margin-bottom: 2px; }

.error-title { font-size: 0.98rem; margin-bottom: 4px; color: #eee; }
.error-msg { font-size: 0.78rem; color: #ffb85e; margin-bottom: 10px; font-family: monospace; word-break: break-word; }

/* ---- lookup progress ---- */
.progress-card { background: #1c1c1c; border-radius: 10px; padding: 18px; }
.progress-text { margin: 0 0 10px; font-size: 0.95rem; }
.progress-track { background: #2a2a2a; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { background: #5ec8f2; height: 100%; width: 4%; transition: width 0.4s ease; }
.progress-note { color: #6b7075; font-size: 0.82rem; margin: 12px 0 0; }
.error a { color: #ffd0d0; }
