.pmp-biblioteca-completa {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pmp-categoria-secao {
	margin-bottom: 32px;
}

.pmp-categoria-titulo {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e2e2;
	color: #1d2327;
}

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

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

.pmp-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,.1);
	transform: translateY(-2px);
}

.pmp-card-thumb {
	background: #f2f3f5;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b7bcc2;
}

.pmp-card-thumb svg {
	width: 56px;
	height: 56px;
}

.pmp-card-body {
	padding: 14px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.pmp-card-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #1d2327;
}

.pmp-card-desc {
	font-size: 13px;
	color: #666;
	flex: 1;
	margin: 0 0 12px;
}

.pmp-card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pmp-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease;
}

.pmp-btn-primary {
	background: #2271b1;
	color: #fff;
}
.pmp-btn-primary:hover {
	background: #135e96;
	color: #fff;
}

.pmp-btn-secondary {
	background: #fff;
	color: #2271b1;
	border-color: #2271b1;
}
.pmp-btn-secondary:hover {
	background: #f0f6fc;
}

/* ---------- Modal / leitor estilo livro ---------- */

body.pmp-modal-open {
	overflow: hidden;
}

.pmp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 17, 20, .85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.pmp-modal-overlay.pmp-open {
	display: flex;
}

.pmp-modal {
	background: #1d2327;
	border-radius: 10px;
	width: 100%;
	max-width: 900px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pmp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: #14161a;
	color: #fff;
}

.pmp-modal-title {
	font-weight: 600;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 55%;
}

.pmp-modal-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pmp-btn-download {
	background: #2271b1;
	color: #fff;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	font-weight: 600;
}
.pmp-btn-download:hover {
	background: #135e96;
	color: #fff;
}

.pmp-modal-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.pmp-book-stage {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 10px;
	background: #2c2f34;
	min-height: 300px;
	overflow: auto;
}

.pmp-book {
	position: relative;
	max-height: 74vh;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.pmp-page canvas {
	display: block;
	max-height: 74vh;
	max-width: 100%;
	height: auto;
	width: auto;
	background: #fff;
}

.pmp-page-base {
	position: relative;
}

.pmp-page-flip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transform: rotateY(0deg);
	transition: none;
	opacity: 0;
	pointer-events: none;
}

.pmp-page-flip.pmp-flip-visible {
	opacity: 1;
	pointer-events: auto;
	transition: transform .6s cubic-bezier(.4, .2, .2, 1);
}

.pmp-page-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	display: flex;
}

.pmp-face-front {
	transform: rotateY(0deg);
}

.pmp-face-back {
	transform: rotateY(180deg);
}

.pmp-loading {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	background: rgba(0,0,0,.25);
}

.pmp-nav {
	background: rgba(255,255,255,.12);
	border: none;
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0 10px;
}
.pmp-nav:hover {
	background: rgba(255,255,255,.25);
}

.pmp-modal-footer {
	padding: 10px 18px;
	text-align: center;
	background: #14161a;
	color: #c3c4c7;
	font-size: 12px;
}

@media (max-width: 600px) {
	.pmp-modal-title { max-width: 40%; font-size: 13px; }
	.pmp-nav { width: 34px; height: 34px; margin: 0 4px; }
}
