.pb-wrap, .pb-wrap *, .pb-photo, .pb-photo * { box-sizing: border-box; }
.pb-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #111827;
}
.pb-head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 24px;
	flex-wrap: wrap;
}
.pb-title { font-size: 30px; font-weight: 700; margin: 0; color: #111827; line-height: 1.2; flex-shrink: 0; }
.pb-title a { color: #111827 !important; text-decoration: none !important; }
.pb-title a:hover { color: #1d4ed8 !important; }
.pb-search { margin: 0; flex: 1; min-width: 220px; position: relative; }
.pb-wrap input[type="search"] {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: #111827;
	appearance: none;
	-webkit-appearance: none;
}
.pb-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 20;
	margin: 4px 0 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	overflow: hidden;
}
.pb-suggest-item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: #fff;
	padding: 8px 12px;
	font-size: 14px;
	color: #111827;
	cursor: pointer;
}
.pb-suggest-item:hover,
.pb-suggest-item.is-on { background: #eff6ff; }
.pb-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
.pb-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	color: #111827 !important;
	box-shadow: none;
}
.pb-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.pb-wrap .pb-card-img {
	width: 100%;
	height: 0;
	padding-top: 75%;
	overflow: hidden;
	background-color: #f3f4f6;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform .3s;
}
.pb-card:hover .pb-card-img { transform: scale(1.05); }
.pb-card-body { padding: 12px; }
.pb-card-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	color: #1f2937;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pb-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 32px 0 0;
}
.pb-page,
.pb-page-current,
.pb-page-gap {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #374151 !important;
	text-decoration: none !important;
	background: #fff;
}
.pb-page:hover { background: #f9fafb; }
.pb-page-current {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8 !important;
	font-weight: 600;
}
.pb-page-gap { border: 0; background: transparent; min-width: 16px; }
.pb-empty { text-align: center; color: #9ca3af; padding: 64px 0; }
.pb-detail { max-width: 768px; }
.pb-back { display: inline-block; margin-bottom: 12px; color: #2563eb !important; text-decoration: none !important; font-size: 14px; }
.pb-sheet {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}
.pb-wrap .pb-hero { background: #fff; line-height: 0; }
.pb-wrap .pb-hero img {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	border: 0;
	background: #fff;
	object-fit: contain;
}
.pb-sheet-body { padding: 24px; }
.pb-sheet-body h1 { font-size: 20px; font-weight: 600; margin: 0 0 6px; color: #111827; line-height: 1.3; }
.pb-sheet-body .muted { color: #9ca3af; font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.pb-sheet-body .muted a { color: #2563eb !important; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.pb-tag {
	font-size: 12px;
	background: #f3f4f6;
	color: #4b5563 !important;
	border-radius: 999px;
	padding: 4px 10px;
	text-decoration: none !important;
}
.pb-label {
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 20px 0 8px;
}
.pb-story { background: #f9fafb; border-radius: 8px; padding: 12px 14px; margin: 8px 0 16px; font-size: 14px; color: #4b5563; }
.pb-story .pb-label { margin-top: 0; }
.pb-story-body p { margin: 0 0 8px; }
.pb-mates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.pb-mates a { flex: 0 0 80px; }
.pb-mates img { width: 80px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.pb-similar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pb-similar img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 1100px) {
	.pb-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
	.pb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.pb-grid { grid-template-columns: repeat(2, 1fr); }
	.pb-similar { grid-template-columns: repeat(3, 1fr); }
}
