.ebklib-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}

.ebklib-search-input {
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.ebklib-filter-select {
    flex: 0 1 200px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.ebklib-no-results {
    opacity: 0.7;
    font-style: italic;
}

.ebklib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.ebklib-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ebklib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ebklib-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ebklib-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 7px;
    border-radius: 4px;
}

.ebklib-meta {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.ebklib-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebklib-cover-placeholder {
    font-size: 48px;
    opacity: 0.4;
}

.ebklib-info {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.ebklib-title {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
}

.ebklib-download-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    padding: 8px 14px;
    background: #2271b1;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.ebklib-download-btn:hover {
    background: #135e96;
    color: #fff;
}

.ebklib-no-file {
    font-size: 13px;
    color: #999;
}

.ebklib-empty {
    opacity: 0.7;
    font-style: italic;
}
