:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --line: #222;
  --accent: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.35 -apple-system, system-ui, sans-serif; }
.search {
  display: flex; gap: 8px; padding: 12px;
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.search input {
  flex: 1; border: 0; border-radius: 8px; padding: 10px 12px;
  background: #1a1a1a; color: var(--fg);
}
.search button {
  border: 0; border-radius: 8px; padding: 10px 14px;
  background: var(--accent); color: #111; font-weight: 600;
}
.msg { padding: 8px 12px; color: var(--muted); }
.heading { margin: 4px 12px 8px; font-size: 22px; font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0 0 40px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.row img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: #222; }
.meta { flex: 1; min-width: 0; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl {
  width: 40px; height: 40px; border: 0; border-radius: 20px;
  background: transparent; color: var(--fg); font-size: 18px; cursor: pointer;
}
.dl:disabled { opacity: 0.4; cursor: default; }
.spin {
  width: 18px; height: 18px; border: 2px solid #444; border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; margin: 11px;
}
@keyframes spin { to { transform: rotate(360deg); } }
