.nost-pais-viewer-body {
	margin: 0;
	min-height: 100vh;
	background: #1a1a2e;
	color: #fff;
	font-family: "Source Sans Pro", Arial, sans-serif;
	overflow-x: hidden;
}

.viewer-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 20px;
	background: rgba(0, 0, 0, 0.35);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
}

.viewer-topbar h1 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	flex: 1;
}

.viewer-back {
	color: #9fd3ff;
	text-decoration: none;
	white-space: nowrap;
}

.viewer-back:hover {
	color: #fff;
	text-decoration: underline;
}

.viewer-page-info {
	white-space: nowrap;
	font-size: 0.95rem;
}

.viewer-loading,
.viewer-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
}

.viewer-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top-color: #fff;
	border-radius: 50%;
	animation: viewer-spin 0.8s linear infinite;
	margin-bottom: 16px;
}

@keyframes viewer-spin {
	to { transform: rotate(360deg); }
}

.viewer-error a {
	color: #9fd3ff;
}

.book-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px;
	min-height: calc(100vh - 170px);
}

.book-stage {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 170px);
}

#book {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	touch-action: manipulation;
}

#book .page,
#book .stf__item {
	background: #fff;
	overflow: hidden;
}

#book .page img,
#book .stf__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #fff;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.viewer-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 20px 24px;
	position: sticky;
	bottom: 0;
	background: rgba(26, 26, 46, 0.95);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-zoom-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.viewer-zoom-level {
	min-width: 52px;
	text-align: center;
	font-size: 0.9rem;
	color: #d7e8ff;
}

.viewer-btn {
	background: #2d6a4f;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 0.95rem;
	cursor: pointer;
}

.viewer-btn-zoom {
	min-width: 42px;
	padding: 10px 12px;
	font-size: 1.1rem;
	line-height: 1;
}

.viewer-btn:hover {
	background: #40916c;
}

.viewer-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.viewer-topbar h1 {
		order: 3;
		width: 100%;
	}

	.viewer-controls {
		flex-direction: column;
	}

	.viewer-zoom-controls {
		border: none;
		padding: 0;
	}
}
