#content { box-sizing: border-box; }
#topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; }
#topline .spacer { flex: 1; }
table { border-collapse: collapse; width: 100%; margin: 0; }
th, td { border: 1px solid var(--line); text-align: left; padding: 5px; vertical-align: top; }
th { background: var(--panel); }
#filters { table-layout: fixed; }
#filters td { vertical-align: middle; }
#filters select { width: 100%; }
#count { padding: 6px 8px; }
/* the results can be wider than the screen: they scroll sideways inside their own frame, so the player bar and the
   filter row keep the screen width; rows stay one line high. The Play column stays in view at the right. */
#result { margin: 0; overflow-x: auto; }
#result table { width: max-content; min-width: 100%; }
#result th, #result td { white-space: nowrap; }
#result th:nth-child(5), #result td:nth-child(5) { white-space: normal; min-width: 12em; max-width: 28em; }
#result td:last-child, #result th:last-child { width: 3em; min-width: 3em; padding: 3px 4px; position: sticky; right: 0; box-shadow: -1px 0 0 var(--line); }
#result td:last-child { background: var(--bg); }
#result th:last-child { background: var(--panel); }
#result tr.playing td:last-child { background: var(--hl); }
.play-link {
  display: block; width: 100%; text-align: center; padding: 6px 0; background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: 5px; min-height: 36px;
}
tr.playing td { background: var(--hl); }
