/* Game Library — GameVault-style presentation over the downloads file-server. Scoped to .gv-* so it
   never leaks into the rest of the forum. Cover art fills a 3:4 poster box; missing art degrades to a
   readable title placeholder. */

/* library picker */
.gv-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.gv-lib { display: block; padding: 16px; border: 1px solid var(--bd, #333a47); border-radius: 10px; background: rgba(127,127,127,.06); text-decoration: none; color: inherit; transition: border-color .12s, transform .06s; }
.gv-lib:hover { border-color: #6ea8fe; transform: translateY(-1px); }
.gv-lib-name { font-weight: 700; font-size: 16px; }
.gv-lib-meta { font-size: 12px; opacity: .7; margin-top: 4px; }

/* A–Z shelves */
.gv-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 14px; }
.gv-letter { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1/1; border: 1px solid var(--bd, #333a47); border-radius: 10px; background: rgba(127,127,127,.06); text-decoration: none; color: inherit; transition: border-color .12s, transform .06s; }
.gv-letter:hover { border-color: #6ea8fe; transform: translateY(-1px); }
.gv-letter-l { font-size: 26px; font-weight: 800; line-height: 1; }
.gv-letter-n { font-size: 11px; opacity: .65; margin-top: 4px; }

/* cover grid */
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.gv-card { text-decoration: none; color: inherit; }
.gv-cover { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; background-color: #1c2029; border: 1px solid var(--bd, #333a47); transition: transform .07s, box-shadow .12s; }
.gv-card:hover .gv-cover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.4); border-color: #6ea8fe; }
.gv-cover-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; background: linear-gradient(135deg, #2a2f3a, #1c2029); }
.gv-cover-ph span { font-size: 13px; font-weight: 700; opacity: .85; line-height: 1.2; }
.gv-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(20,22,28,.8); color: #7fd67f; }
.gv-card-t { font-size: 12px; font-weight: 600; margin-top: 6px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* detail */
.gv-detail { margin-top: 14px; }
.gv-detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.gv-detail-cover { flex: 0 0 150px; width: 150px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; background-color: #1c2029; border: 1px solid var(--bd, #333a47); }
.gv-detail-info { flex: 1 1 260px; min-width: 260px; }
.gv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.gv-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(127,127,127,.16); }
.gv-dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.gv-dl-size { font-weight: 500; opacity: .8; font-size: 12px; }
.gv-nomatch { margin-top: 10px; font-size: 12px; }

/* screenshot carousel */
.gv-shots { position: relative; margin: 18px 0; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--bd, #333a47); }
.gv-shots-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.gv-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .18s; }
.gv-shot.on { opacity: 1; }
.gv-shot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: 0; background: rgba(20,22,28,.55); color: #fff; font-size: 26px; cursor: pointer; }
.gv-shot-nav:hover { background: rgba(20,22,28,.8); }
.gv-shot-prev { left: 0; border-radius: 0 8px 8px 0; }
.gv-shot-next { right: 0; border-radius: 8px 0 0 8px; }
.gv-shot-n { position: absolute; bottom: 8px; right: 10px; font-size: 11px; background: rgba(20,22,28,.7); color: #fff; padding: 2px 8px; border-radius: 6px; }

/* description + metadata */
.gv-detail-body { display: grid; grid-template-columns: 1fr 260px; gap: 18px; margin-top: 8px; }
.gv-desc h3, .gv-meta h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; margin: 0 0 8px; }
.gv-desc p { line-height: 1.5; white-space: pre-line; }
.gv-meta { border: 1px solid var(--bd, #333a47); border-radius: 10px; padding: 12px 14px; background: rgba(127,127,127,.05); align-self: start; }
.gv-meta dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.gv-meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; opacity: .55; }
.gv-meta dd { margin: 0 0 4px; font-size: 13px; font-weight: 600; word-break: break-word; }

@media (max-width: 640px) { .gv-detail-body { grid-template-columns: 1fr; } }
