.biblioteca-container-166b2422 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.biblioteca-header-166b2422 {
    text-align: center;
    margin-bottom: 40px;
}

.biblioteca-header-166b2422 h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.biblioteca-grid-166b2422 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.livro-card-166b2422 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livro-card-166b2422:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.livro-capa-wrapper-166b2422 {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
}

.livro-capa-166b2422 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.livro-card-166b2422:hover .livro-capa-166b2422 {
    transform: scale(1.05);
}

.livro-info-166b2422 {
    padding: 15px;
    text-align: center;
}

.livro-info-166b2422 h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #333;
}

.livro-info-166b2422 p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Modal do Leitor */
.leitor-modal-166b2422 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 99999;
}

body.admin-bar .leitor-modal-166b2422 {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .leitor-modal-166b2422 {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.leitor-header-166b2422 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 15px 25px;
    color: #fff;
    border-bottom: 1px solid #333;
}

.leitor-header-166b2422 h3 {
    margin: 0;
    font-size: 1.2rem;
}

.fechar-btn-166b2422 {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.fechar-btn-166b2422:hover {
    background: #c0392b;
}

.leitor-iframe-wrapper-166b2422 {
    width: 100%;
    height: calc(100% - 70px);
    background: #222;
}

#leitor-iframe-166b2422 {
    width: 100%;
    height: 100%;
    background: #fff;
}
