/* The Mods panel (app/mods-gallery.js). */

.mods-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.mg-head { flex: none; display: flex; align-items: center; padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.mg-title { font-size: 15px; }

.mg-body { flex: 1; min-height: 0; display: grid; align-content: start; gap: 20px; overflow-y: auto; padding: 12px 14px 18px; }
.mg-section { display: grid; gap: 10px; }
.mg-section-head { display: flex; align-items: center; justify-content: space-between; }
.mg-section-title { margin: 0; font-size: 13px; font-weight: 600; }
.mg-all { color: var(--text-muted); font-size: 12.5px; }
.mg-all:hover { color: var(--text); }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }

.mg-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .15s ease; }
.mg-card:hover, .mg-card:focus-within { border-color: var(--text-muted); }
.mg-open { display: block; width: 100%; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.mg-open:focus-visible { outline: 2px solid var(--accent, #14b8a6); outline-offset: -2px; border-radius: 14px; }
.mg-thumb { display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; color: var(--text); background: rgba(127, 127, 127, 0.05); }
.mg-thumb svg { display: block; width: 100%; height: 100%; }
.mg-text { display: grid; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid var(--border); }
.mg-tags { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12px; color: var(--text-muted); }
.mg-new { font-weight: 600; color: var(--accent, #14b8a6); }
.mg-tag.is-premium { color: #d9a514; }
.mg-tag.is-free { color: #14b8a6; }
.mg-on { color: var(--text); }
.mg-card.is-active { border-color: var(--accent, #14b8a6); }
.mg-lock { display: inline-flex; width: 13px; height: 13px; }
.mg-lock svg { width: 100%; height: 100%; }
.mg-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mg-meta { font-size: 12.5px; color: var(--text-muted); }

.mg-star { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface); color: var(--text-muted); opacity: .85; }
.mg-star:hover { opacity: 1; color: var(--text); }
.mg-star svg { width: 16px; height: 16px; fill: none; }
.mg-star.is-on { color: #f59e0b; opacity: 1; }
.mg-star.is-on svg { fill: currentColor; }
