/* ── WBG Alphabet Filter ───────────────────────────────── */

.wbgalpha-wrap {
    width: 100%;
}

/* Alphabet bar */
.wbgalpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.wbgalpha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #555;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wbgalpha-btn:hover {
    background: #444;
    border-color: #888;
    color: #fff;
    text-decoration: none;
}

.wbgalpha-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff !important;
}

.wbgalpha-reset {
    width: auto;
    padding: 0 12px;
    font-size: 13px;
    border-color: #888;
    color: #aaa;
}

/* Count / hint text */
.wbgalpha-count,
.wbgalpha-hint,
.wbgalpha-none {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.75;
}

/* Book grid */
.wbgalpha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.wbgalpha-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}

.wbgalpha-item:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.wbgalpha-cover {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #222;
}

.wbgalpha-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wbgalpha-nocover {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #555;
}

.wbgalpha-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.wbgalpha-author {
    font-size: 12px;
    opacity: 0.65;
}

/* Mobile */
@media (max-width: 600px) {
    .wbgalpha-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .wbgalpha-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}
