:root {
  --bg: #0f1419;
  --card: #1a2230;
  --text: #e8edf3;
  --muted: #9aa7b8;
  --accent: #4da3ff;
  --low: #2ecc71;
  --med: #f39c12;
  --high: #e74c3c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
header {
  text-align: center;
  padding: 28px 16px 12px;
}
header h1 { margin: 0 0 8px; font-size: 1.6rem; }
header .sub { color: var(--muted); margin: 0 auto; max-width: 520px; font-size: 0.95rem; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 32px; }
.hidden { display: none !important; }

#dropzone {
  border: 2px dashed #3a4a61;
  border-radius: 14px;
  background: var(--card);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
#dropzone:hover, #dropzone.dragover {
  border-color: var(--accent);
  background: #1f2a3d;
}
.dz-icon { font-size: 2.4rem; margin-bottom: 8px; }
.dz-text { font-size: 1.05rem; }
.dz-hint { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
#file-info {
  margin-top: 12px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

#progress-section { margin-top: 18px; }
.progress-label { font-weight: 600; margin-bottom: 8px; }
.progress-bar {
  background: #2a3547;
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 8px;
  transition: width .3s;
}
.progress-sub { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

#verdict-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin: 6px 0 18px;
}
#verdict-badge {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 26px;
  border-radius: 999px;
  margin-bottom: 10px;
  color: #fff;
}
#verdict-badge.low { background: var(--low); }
#verdict-badge.med { background: var(--med); }
#verdict-badge.high { background: var(--high); }
#verdict-reason { color: var(--muted); font-size: 0.95rem; }

h2 { font-size: 1.1rem; margin: 20px 0 10px; }
.match {
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--high);
}
.match .song { font-weight: 700; font-size: 1rem; }
.match .artist { color: var(--muted); font-size: 0.9rem; }
.match .time { font-family: monospace; font-size: 0.85rem; color: var(--accent); margin-top: 4px; }
.match .risk-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--high);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.no-match {
  background: var(--card);
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}
.fixes { padding-left: 20px; }
.fixes li { margin-bottom: 8px; }
.disclaimer {
  background: #2a2410;
  border: 1px solid #6b5d2a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin: 18px 0;
  color: #e8d9a0;
}
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn:active { opacity: 0.85; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tab {
  flex: 1;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  background: #141b2c;
  border: 1px solid #222d40;
  border-radius: 10px;
  cursor: pointer;
}
.tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
#yt-url {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  font-size: 1rem;
  color: var(--text);
  background: #0e1424;
  border: 1px solid #222d40;
  border-radius: 10px;
  margin-bottom: 12px;
}
#yt-error {
  background: #3a1d1d;
  border: 1px solid #7a2e2e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #f0b0b0;
  margin-top: 12px;
}

#how { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
#how h2 { color: var(--text); }
#how ol { padding-left: 20px; }
#how li { margin-bottom: 6px; }
#how .note { font-size: 0.82rem; }
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 16px;
  border-top: 1px solid #222d40;
}
