/* Cards */

/* ----- card shell ----- */
.card, .ocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: fade .3s var(--ease) both; }

/* ----- image area ----- */
.media { position: relative; aspect-ratio: 1 / 1; background: var(--surface2); }
.thumb { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:focus-visible { outline-offset: -4px; }

/* ----- favourite heart button (top-right of the image) ----- */
.fav {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: transform .15s var(--ease), color .15s;
}
.fav:active { transform: scale(.88); }
.fav.on { color: #e0436f; }
.fav.on svg { fill: currentColor; }
.fav.big { top: 12px; right: 12px; width: 44px; height: 44px; }

/* ----- "xN" worn / "New" badge ----- */
.badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--accent); color: var(--accent-contrast); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* ----- text block ----- */
.meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.meta h3 { font-size: .98rem; font-weight: 650; line-height: 1.25; display: -webkit-box; ; -webkit-box-orient: vertical; overflow: hidden; }
.meta h3 .linklike { font-weight: 650; }
.sub { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.sub .dot { margin-right: 6px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; vertical-align: -1px; }

/* ----- buttons row at the bottom of a card ----- */
.card-actions { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; min-width: 0; padding: 0 8px; gap: 5px; white-space: nowrap; font-size: .85rem; }
.card-actions .icon-btn { width: 34px; height: 34px; }
