/* ---------- Listing frame (shared by code and perf) ---------- */

.src,
.perf {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #101410 0%, #0d0f0d 110px);
  overflow: hidden;
}

/* One pass of light across the block when it first appears. */
.src::after,
.perf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 30%,
    rgba(233, 236, 233, 0.06) 48%,
    rgba(233, 236, 233, 0.02) 56%,
    transparent 74%);
  transform: translateX(-100%);
  opacity: 0;
}

.js-reveal .src.is-in::after,
.js-reveal .perf.is-in::after {
  animation: src-sheen 1.15s var(--ease-out) 0.2s both;
}

@keyframes src-sheen {
  from { transform: translateX(-100%); opacity: 0; }
  14%  { opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.src + .src { margin-top: 26px; }

.src__head,
.perf__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg,
    rgba(233, 236, 233, 0.05),
    rgba(233, 236, 233, 0) 62%);
}

.src__name,
.perf__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
