/*
 * top-100.html: search the Q-dance Hardstyle Top 100 ballot by artist. Built on
 * css/app.css and css/ui.css; the colours come from their tokens, in light and dark.
 */

/* You can only vote on q-dance.com while logged in, so this stands out. */
.top100-login {
  max-width: 62ch; margin: 14px 0 0; padding: 11px 14px; border-radius: 12px;
  background: var(--warn-soft); box-shadow: inset 3px 0 0 var(--warn);
  font-size: 13.5px; line-height: 1.5;
}
.top100-login b { display: block; margin-bottom: 2px; font-size: 14px; }

/* ---------- search ---------- */
.top100-search { max-width: 560px; margin: 8px 0 0; }
.top100-input { position: relative; display: block; }
.top100-input input { padding-right: 44px; font-size: 17px; }
.top100-input input::-webkit-search-cancel-button { display: none; }
.top100-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--muted); font-size: 22px; line-height: 1;
}
.top100-clear:hover { background: var(--chip); color: var(--ink); }
.top100-summary { margin: 10px 0 14px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.top100-summary[data-tone="error"] { padding: 9px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); }

/* ---------- quick picks ---------- */
.top100-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.top100-picks .pill { margin-left: 2px; }

/* ---------- an artist and their tracks ---------- */
.top100-results { display: grid; gap: 14px; }
@media (min-width: 1100px) {
  .top100-results.is-several { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.top100-artist { margin: 0; }
.top100-artist-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 13px 14px 11px; border-bottom: 1px solid var(--line-strong);
}
.top100-artist-head h3 {
  margin: 0; min-width: 0; overflow-wrap: anywhere;
  font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase;
}
.top100-artist-head .count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.top100-artist-head .inline-link { margin-left: auto; font-size: 13px; }

.top100-tracks { margin: 0; padding: 0; list-style: none; }
.top100-track {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 14px;
}
.top100-track + .top100-track { border-top: 1px solid var(--line-strong); }
.top100-cover { width: 48px; height: 48px; border-radius: 8px; background: var(--chip); object-fit: cover; display: block; }
.top100-track-title { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.top100-track-artists { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
/* Collaborators are buttons: tapping one searches for that artist. */
.top100-track-artists button { color: var(--accent); font-weight: 600; font-size: inherit; text-align: left; }
.top100-track-artists button:hover { text-decoration: underline; }
.top100-track-actions { display: flex; align-items: center; gap: 4px; }
.top100-copy { min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.top100-copy.is-done { background: var(--ink); color: var(--app); }
.top100-spotify { color: var(--muted); }
.top100-spotify:hover { color: var(--ink); }

/* On a phone the buttons go under the title, so long titles keep their width. */
@media (max-width: 520px) {
  .top100-track { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; }
  .top100-cover { width: 44px; height: 44px; }
  .top100-track-actions { grid-column: 2; }
}

/* ---------- tracks added since voting opened, one fold-out per day ---------- */
.top100-added-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.top100-added details > .top100-tracks { margin: 0; padding: 0; color: var(--ink); border-top: 1px solid var(--line-strong); }

.top100-more { margin: 0; color: var(--muted); font-size: 13px; }
.top100-source { margin: 14px 0 0; max-width: 64ch; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Which Top 100: Q-dance Hardstyle or Masters of Hardcore. Big enough to tap. */
.top100-ballots { margin: 14px 0 0; max-width: 100%; }
.top100-ballots button { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.top100-login[hidden] { display: none; }
