:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel2: #1c2230;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #7c5cff;
  --accent2: #2ea043;
  --border: #2a313c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1a2030 0%, var(--bg) 55%);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 96px;
}
.hero { max-width: 820px; margin: 0 auto; padding: 48px 20px 8px; text-align: center; }
.hero h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.5px; }
.tag { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.tag em { color: var(--text); font-style: italic; }

.searchbar { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.searchbar input {
  flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-size: 16px; outline: none;
}
.searchbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.searchbar button {
  padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
  color: #fff; background: linear-gradient(180deg, #8b6bff, var(--accent));
}
.searchbar button:hover { filter: brightness(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px auto 0; max-width: 700px; }
.chip {
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

main { max-width: 820px; margin: 0 auto; padding: 8px 20px; }
.status { color: var(--muted); font-size: 14px; min-height: 22px; margin: 18px 2px 10px; }
.status code { color: var(--accent); }
.dim { opacity: .7; }
.demo-banner { background: rgba(210,153,34,.15); color: #e3b341; border: 1px solid rgba(210,153,34,.4); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.card {
  display: flex; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel); transition: border-color .15s, transform .05s;
}
.card:hover { border-color: #3a4150; }
.art { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--panel2); }
.art.ph { background: linear-gradient(135deg, #232a38, #161b22); }
.body { min-width: 0; flex: 1; }
.meta { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.ep { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
.snippet { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.play:hover:not([disabled]) { border-color: var(--accent2); color: #fff; }
.play[disabled] { opacity: .45; cursor: not-allowed; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.badge.kw { background: rgba(46,160,67,.15); color: #56d364; border: 1px solid rgba(46,160,67,.4); }
.badge.vec { background: rgba(124,92,255,.15); color: #b39dff; border: 1px solid rgba(124,92,255,.4); }
.src { color: var(--muted); font-size: 12px; text-decoration: none; margin-left: auto; }
.src:hover { color: var(--text); }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: rgba(22,27,34,.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.player.hidden { display: none; }
.np { min-width: 0; flex: 0 0 auto; max-width: 38%; }
.np-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player audio { flex: 1; height: 38px; }
