/* The Glaze Machine's own parts. Everything else (colours, type, buttons,
   cards, tables) comes from site.css; the accent is data-feature="glaze". */

/* ---------- Search row: league, name, Glaze, Options ---------- */
.options-button { display: inline-flex; align-items: center; gap: 6px; }
.options-button .count {
  min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 0.7rem; line-height: 18px; text-align: center;
  background: var(--accent); color: var(--surface);
}
.options-button .count[hidden] { display: none; }

/* What's changed from the defaults, shown while the panel is closed. */
.changed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.8rem; }
.changed[hidden] { display: none; }
.chip { padding: 2px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--text); }

/* ---------- Options panel ---------- */
.options-panel { margin-top: 12px; padding: 4px 16px; }
.options-panel[hidden] { display: none; }
.option-row {
  display: grid; grid-template-columns: 9rem 1fr; gap: 6px 16px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.option-row:first-child { border-top: 0; }
.option-name { padding-top: 6px; font-size: 0.85rem; font-weight: 600; }
.option-help { margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.option-row .segmented { flex-wrap: wrap; }
.checks { display: grid; gap: 8px; padding-top: 4px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 0.9rem; }
.checks input { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.checks.inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label.disabled { cursor: default; opacity: 0.5; }
.checks small { display: block; color: var(--muted); font-size: 0.8rem; }
.inline-select { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; }
.options-foot { display: flex; justify-content: flex-end; padding: 10px 0 8px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .option-row { grid-template-columns: 1fr; }
  .option-name { padding-top: 0; }
}

/* ---------- Results ---------- */
.summary { margin: 28px 0 12px; color: var(--muted); font-size: 0.9rem; }
.result { position: relative; margin-bottom: 14px; overflow: hidden; }
.result[hidden] { display: none; }
.result .card-body { padding-right: 52px; }
.sentence { font-weight: 600; }
/* Where a card leaves out entries between the top and the player's rank. */
table.data tr.gap td { color: var(--muted); font-size: 0.8rem; padding-top: 3px; padding-bottom: 3px; }

/* Show more / fewer, under the cards. */
.more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 24px; }
.more[hidden], .more .btn[hidden] { display: none; }
.more-count { color: var(--muted); font-size: 0.8rem; width: 100%; text-align: center; }
