* { box-sizing: border-box; }
body {
  margin: 0; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f3f3f3; color: #222;
}
header, main, footer { max-width: 960px; margin: 0 auto; padding: 12px 16px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h1 { font-size: 22px; margin: 8px 0; }
h2 { font-size: 16px; margin: 0 0 10px; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 14px; margin-bottom: 14px; }
.muted { color: #777; }
.small { font-size: 13px; }
#now { display: flex; gap: 16px; align-items: flex-start; }
#cover { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; background: #eee; flex: none; }
.now-info { flex: 1; min-width: 0; }
.label { font-size: 12px; text-transform: uppercase; color: #888; letter-spacing: .04em; }
.title { font-size: 20px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.badge { background: #e8e8e8; color: #555; border-radius: 3px; padding: 0 5px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.badge.queue { background: #dcefdc; color: #2b6b2b; }
.progress { height: 4px; background: #e5e5e5; border-radius: 2px; margin: 10px 0 4px; overflow: hidden; }
#bar { height: 100%; width: 0; background: #444; }
.times { display: flex; justify-content: space-between; font-size: 12px; }
.controls { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
button {
  font: inherit; padding: 5px 12px; border: 1px solid #bbb; border-radius: 4px;
  background: #fafafa; cursor: pointer;
}
button:hover:not(:disabled) { background: #eee; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: #333; color: #fff; border-color: #333; min-width: 70px; }
button.primary:hover { background: #111; }
button.link { border: 0; background: none; color: #555; text-decoration: underline; padding: 0; }
button.small { padding: 1px 8px; font-size: 13px; }
.volume { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; margin-left: auto; }
input[type=search] { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #bbb; border-radius: 4px; }
#search-info { margin: 6px 0; min-height: 18px; }
table { width: 100%; border-collapse: collapse; }
td { padding: 5px 6px; border-top: 1px solid #eee; vertical-align: middle; }
td.t { font-weight: 500; }
td.d, td.a { white-space: nowrap; text-align: right; }
td.al { color: #777; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols .card { margin-bottom: 0; }
ol { margin: 0; padding-left: 26px; }
ol li { padding: 3px 0; border-top: 1px solid #f0f0f0; }
ol li:first-child { border-top: 0; }
li .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
li .meta { min-width: 0; overflow-wrap: anywhere; }
footer { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding-bottom: 30px; }
footer a { color: #555; }
#toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: #333; color: #fff; padding: 8px 14px; border-radius: 4px; max-width: 90%;
}
#toast.error { background: #a33; }
@media (max-width: 700px) {
  .cols { grid-template-columns: 1fr; }
  td.al { display: none; }
  #cover { width: 80px; height: 80px; }
  .volume { margin-left: 0; }
}
.toggle { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #444; cursor: pointer; }
.badge.news { background: #fde2c8; color: #8a4a10; }
.badge.segment { background: #e9d8fb; color: #5b2a86; }
.badge.explicit { background: #f6d2d2; color: #8a1f1f; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { margin: 0; }
details.card > summary h2::before { content: "\25B8  "; color: #888; }
details.card[open] > summary h2::before { content: "\25BE  "; }
.ctl-group { border-top: 1px solid #eee; margin-top: 12px; padding-top: 10px; }
.ctl-group h3 { font-size: 14px; margin: 0 0 8px; }
.ctl-label { margin: 6px 0 4px; }
.ctl-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.ctl-group .toggle { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 14px; font-size: 13px; background: #f4f4f4; }
.chip[aria-pressed="true"] { background: #333; color: #fff; border-color: #333; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper b { min-width: 18px; text-align: center; }
#filter-info.warn { color: #a33; }
