/* Pony Duel - the addons page (addons.html, addonbrowser 2026-10-17): the site's own look (site.css) - its bands, its
   type, paper for the details - for a grid of player-made addons. */

.page.addons { grid-template-columns: minmax(0, 1180px); }
.addons .notes { grid-column: 1; }
.lede { margin: 10px 0 0; font-size: 22px; line-height: 1.3; color: rgba(245, 240, 227, 0.78); }
.lede b { color: var(--cream); font-weight: 700; }

/* ---- search, sort, kinds ---- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q sorts" "kinds kinds"; gap: 14px 18px; margin-top: 26px; }
.search {
  grid-area: q;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font: 600 21px/1 var(--font);
}
.search::placeholder { color: rgba(245, 240, 227, 0.45); }
.search:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.sorts { grid-area: sorts; display: flex; gap: 6px; }
.kinds { grid-area: kinds; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 240, 227, 0.78);
  font: italic 800 19px/1 var(--font);
  text-transform: uppercase;
  cursor: pointer;
}
.pill:hover { color: var(--cream); background: rgba(255, 255, 255, 0.13); }
.pill.on { background: var(--slab); color: var(--ink); }
.pill:disabled { opacity: 0.35; cursor: default; }
.pill:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }

.status { margin: 26px 0 0; font-weight: 600; font-size: 24px; color: rgba(245, 240, 227, 0.7); }
.status:empty { display: none; }

/* ---- the cards: the picture, then a band with the name ---- */
.grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.acard-in {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  background: #171c29;
  cursor: pointer;
}
.acard-in:hover .apic img, .acard-in:hover .apic .ini { transform: scale(1.04); }
.acard-in:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.apic, .sheet-pic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--h), 38%, 46%), hsl(var(--h), 38%, 30%));
}
.apic img, .sheet-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.ini { font-weight: 900; font-style: italic; font-size: 72px; color: rgba(255, 255, 255, 0.78); transition: transform 0.25s ease; }
.ameta { display: grid; gap: 2px; padding: 10px 14px 12px; background: linear-gradient(90deg, #232a3c, #1a2030); }
.aname { font-weight: 800; font-style: italic; font-size: 24px; line-height: 1.05; text-transform: uppercase; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aby { display: flex; gap: 10px; font-size: 18px; color: rgba(245, 240, 227, 0.68); white-space: nowrap; }
.aauth { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.arow { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 17px; color: rgba(245, 240, 227, 0.6); }
.akind { font-weight: 700; color: var(--date); text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; }
.adl { margin-left: auto; flex: none; font-size: 16px; color: rgba(245, 240, 227, 0.5); }
.arow .stars { margin-left: auto; }
.stars { display: inline-flex; gap: 3px; }
.stars i { display: block; width: 9px; height: 9px; background: linear-gradient(90deg, #ffd15c calc(var(--f) * 100%), rgba(255, 255, 255, 0.2) 0); }

.pager[hidden] { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; font-weight: 600; font-size: 20px; }

/* ---- one addon: a sheet with a band in its colour, the rest on paper ---- */
.sheet { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink-soft); }
.sheet::backdrop { background: rgba(5, 7, 12, 0.72); }
.sheet-band {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 0 18px 0 30px;
  color: #fff;
  background: linear-gradient(90deg, hsl(var(--h), 45%, 38%), hsl(var(--h), 45%, 28%));
}
.sheet-name { margin: 0; font-weight: 800; font-style: italic; font-size: 38px; line-height: 1; text-transform: uppercase; }
.close { margin-left: auto; width: 44px; height: 44px; border: 0; background: rgba(0, 0, 0, 0.25); color: #fff; font: 700 30px/1 var(--font); cursor: pointer; }
.close:hover { background: rgba(0, 0, 0, 0.4); }
.sheet-body { padding: 24px 30px 26px; }
.sheet-loading { margin: 0; font-size: 20px; }
.sheet-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 20px; }
.facts dt { font-weight: 700; color: var(--ink-faint); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.getit { margin-top: 22px; padding: 16px 20px 18px; background: var(--slab); }
.getit-h { margin: 0 0 4px; font-weight: 800; font-style: italic; font-size: 24px; text-transform: uppercase; color: var(--ink); }
.getit-p { margin: 0 0 10px; font-size: 20px; }
.idrow { display: flex; align-items: center; gap: 10px; }
.aid { padding: 6px 12px; background: #fff; color: var(--ink); font: 600 20px/1.2 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.idrow .pill { background: var(--ink); color: var(--cream); }
.sheet-h { margin: 24px 0 8px; font-weight: 700; font-size: 24px; color: var(--ink); }
.sheet-p { margin: 0 0 8px; font-size: 20px; line-height: 1.38; overflow-wrap: anywhere; }
.caps, .vers { margin: 0; padding-left: 22px; font-size: 19px; line-height: 1.4; }
.caps li::marker, .vers li::marker { color: var(--change); }
.vers b { color: var(--ink); }

@media (max-width: 820px) {
  .filters { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q" "sorts" "kinds"; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .aname { font-size: 20px; }
  .ini { font-size: 54px; }
  .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .sheet-pic { max-width: 260px; }
  .sheet-name { font-size: 28px; }
  .sheet-body { padding: 18px 16px 20px; }
}
.acard, .ameta, .ameta > * { min-width: 0; }
.arow { white-space: nowrap; }
@media (max-width: 480px) {
  .aby { flex-direction: column; gap: 0; }
  .adl { margin-left: 0; }
  .ameta { padding: 8px 10px 10px; }
}
