/* Top 97.0: a track as a row, in the search results, the vote list and the motivations. */

.picks { display: flex; flex-direction: column; gap: 8px; }

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: #fff;
}

.pick.is-chosen { border-color: var(--red); background: #fff8f8; }

.pick__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--red) url('/assets/theme/tukker/logo-white.png') center / 76% no-repeat;
}

.pick__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pick__text { flex: 1 1 auto; min-width: 0; }
.pick__text strong { display: block; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pick__text span { display: block; font-size: 14px; color: var(--text-3); overflow-wrap: anywhere; }

.pick__text .pick__tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: var(--pill);
  background: var(--surface-muted);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 700;
}

.pick__btn {
  flex: none;
  min-width: 122px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

/* Keyboard focus and "scroll into view" stop above the vote bar and the radio player, not underneath them. */
.vote .pick,
.vote .pick__btn,
.vote__free-status { scroll-margin-bottom: calc(var(--player-h) + 96px); }

.pick__btn:hover { filter: brightness(0.93); }
.pick__btn--remove { background: var(--pink); color: var(--red-dark); }
.pick__btn--ghost { background: #fff; border: 1px solid var(--line-2); color: var(--red-dark); line-height: 42px; }
.pick__btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; }
.pick__btn.is-busy { opacity: 0.7; cursor: progress; }

/* A list to read back: the position in the list instead of a button. */
.picks--numbered { counter-reset: pick; }
.picks--numbered .pick { counter-increment: pick; }

.picks--numbered .pick::before {
  content: counter(pick);
  flex: 0 0 26px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--red-dark);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Motivations: the track row opens a text field underneath. */
.story details { border-radius: var(--radius-s); }
.story summary { cursor: pointer; list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: var(--red); }
.story details[open] .pick__btn--ghost { background: var(--pink); border-color: var(--pink); }

.story__text {
  display: block;
  min-height: 96px;
  border-color: var(--red);
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@media (max-width: 480px) {
  .pick { gap: 10px; }
  .pick__thumb { flex-basis: 40px; width: 40px; height: 40px; }
  .pick__btn { min-width: 0; padding: 0 14px; }
}

/* The visible question above each motivation field (spec p. 4). */
.story__label {
  display: block;
  padding: 10px 12px 6px;
  border: 1px solid var(--red);
  border-top: 0;
  border-bottom: 0;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
}
