/* Creators directory — one quiet list, most published mods first.
   The creators' own artwork does the decorating: each row carries a strip of
   their latest previews, dimmed until the row is hovered. Everything else is
   type, rule lines and space. Tokens come from atlas-core.css. */

/* ==========================================================================
   DO NOT REMOVE. Unlayered component rules beat Tailwind's layered `.hidden`;
   role-based UI is gated with that class. See atlas-core.css.
   ========================================================================== */
[hidden],
.hidden { display: none !important; }

body.am { --am-floor: .75; }

.ac-page { flex: 1; padding-bottom: 5rem; }

/* ------------------------------------------------------------------ head */
.ac-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3.25rem 0 1.75rem;
}
.ac-head h1 {
  margin: 0;
  font: 600 3.75rem/1 var(--am-display);
  letter-spacing: 0;
}
.ac-count {
  min-height: 1.4em;
  margin: .95rem 0 0;
  font: 500 .72rem/1.4 var(--am-mono);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--am-ink-2);
}

.ac-search { position: relative; flex: 0 1 17rem; }
.ac-search svg {
  position: absolute;
  left: .8rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--am-ink-3);
  pointer-events: none;
}
.ac-search input {
  width: 100%;
  height: 2.5rem;
  padding: 0 .9rem 0 2.3rem;
  border: 1px solid var(--am-line);
  border-radius: var(--am-r);
  background: var(--am-panel);
  color: var(--am-ink);
  font: 400 .9rem var(--am-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ac-search input::placeholder { color: var(--am-ink-3); }
.ac-search input:focus {
  outline: none;
  border-color: rgba(var(--am-glow), .55);
  box-shadow: 0 0 0 3px rgba(var(--am-glow), .12);
}

/* ------------------------------------------------------------------ list */
.ac-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--am-line);
}
.ac-row { border-bottom: 1px solid var(--am-line-soft); }

.ac-link {
  display: grid;
  grid-template-columns: 2.25rem 3.25rem minmax(0, 1fr) auto 5.5rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem .75rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s var(--am-ease);
}
.ac-link:hover { background: var(--am-panel); }
.ac-link:focus-visible {
  outline: 2px solid rgba(var(--am-glow), .7);
  outline-offset: -2px;
  background: var(--am-panel);
}

.ac-rank {
  font: 500 .78rem var(--am-mono);
  font-variant-numeric: tabular-nums;
  color: var(--am-ink-3);
}
.ac-row--top .ac-rank { color: var(--am-accent); }

.ac-avatar {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--am-line);
  background: rgba(var(--am-glow), .08);
  font: 600 .95rem var(--am-display);
  color: var(--am-ink-2);
}
.ac-avatar { position: relative; }
.ac-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s var(--am-ease);
}
.ac-avatar img.is-ready { opacity: 1; }

.ac-who { min-width: 0; }
.ac-name {
  display: block;
  overflow: hidden;
  font: 600 1.12rem/1.3 var(--am-display);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .25s var(--am-ease);
}
.ac-link:hover .ac-name { color: var(--am-accent); }
.ac-sub {
  display: block;
  margin-top: .2rem;
  overflow: hidden;
  font-size: .86rem;
  color: var(--am-ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ac-handle { font: 500 .76rem var(--am-mono); color: var(--am-ink-2); }
.ac-handle + .ac-tag::before { content: "·"; margin: 0 .45rem; color: var(--am-ink-3); }

/* Latest work. Dimmed so a page of rows stays calm; full colour on hover. */
.ac-work { display: flex; gap: .4rem; }
.ac-thumb {
  width: 4.6rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
}
.ac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.8) brightness(.8);
  transition: opacity .5s var(--am-ease), filter .35s var(--am-ease), transform .6s var(--am-ease);
}
.ac-thumb img.is-ready { opacity: .8; }
.ac-link:hover .ac-thumb img.is-ready { opacity: 1; filter: none; transform: scale(1.04); }

.ac-total { text-align: right; }
.ac-num {
  display: block;
  font: 500 1.3rem/1.1 var(--am-mono);
  font-variant-numeric: tabular-nums;
  color: var(--am-ink);
}
.ac-unit {
  font: 500 .6rem var(--am-mono);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--am-ink-3);
}

/* --------------------------------------------------------------- states */
.ac-skel {
  height: 5.3rem;
  border-bottom: 1px solid var(--am-line-soft);
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .035) 40%, transparent 80%) 0 0 / 200% 100%;
  animation: ac-shimmer 1.4s linear infinite;
}
@keyframes ac-shimmer { to { background-position: -200% 0; } }

.ac-status {
  margin: 0;
  padding: 2.5rem .75rem 1rem;
  font-size: .95rem;
  color: var(--am-ink-2);
}

.ac-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.ac-status:not(.hidden) + .ac-more { justify-content: flex-start; margin-top: 0; padding-inline: .75rem; }
.ac-more button {
  padding: .6rem 1.1rem;
  border: 1px solid var(--am-line);
  border-radius: var(--am-r);
  background: transparent;
  color: var(--am-ink-2);
  font: 500 .72rem var(--am-mono);
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.ac-more button:hover { color: var(--am-ink); border-color: rgba(255, 255, 255, .22); }
.ac-more button:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 3px; }

.ac-row.is-new { animation: ac-in .5s var(--am-ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ac-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 64rem) {
  .ac-thumb:nth-child(n + 3) { display: none; }
}
@media (max-width: 42rem) {
  .ac-head { flex-direction: column; align-items: stretch; gap: 1.25rem; padding-top: 2.25rem; }
  .ac-head h1 { font-size: 2.5rem; }
  .ac-search { flex-basis: auto; }
  .ac-link { grid-template-columns: 1.6rem 2.75rem minmax(0, 1fr) auto; gap: .85rem; padding: .85rem .35rem; }
  .ac-avatar { width: 2.75rem; height: 2.75rem; }
  .ac-work { display: none; }
  .ac-name { font-size: 1.02rem; }
  .ac-num { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-row.is-new, .ac-skel { animation: none; }
  .ac-thumb img, .ac-avatar img, .ac-link, .ac-name { transition: none; }
}
