/* /home/topsearch shared layout */
.ts-page {
	padding: 12px 14px 28px;
	box-sizing: border-box;
}
.ts-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 4px 4px 4px 14px;
	background: #f5f6f8;
	border-radius: 22px;
}
.ts-search input[type="search"],
.ts-search .search-input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 14px;
	line-height: 34px;
	min-width: 0;
	color: #222;
}
.ts-search button,
.ts-search .ts-search-btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 18px;
	padding: 0 16px;
	height: 34px;
	line-height: 34px;
	background: #2db7f5;
	color: #fff;
	font-size: 13px;
}
.ts-section {
	margin-bottom: 22px;
}
.ts-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
}
.ts-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 8px;
	align-items: flex-start;
}
.ts-tag {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 7px 12px;
	border-radius: 16px;
	background: #f3f5f7;
	color: #445;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	border: 1px solid #e8ebef;
}
.ts-tag:active,
.ts-tag:hover {
	background: #e8f7fc;
	border-color: #bfe8f7;
	color: #0b8ec8;
}
.ts-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ts-item {
	display: flex;
	gap: 12px;
	padding: 10px;
	border: 1px solid #eef0f3;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}
.ts-cover {
	flex: 0 0 72px;
	width: 72px;
	height: 96px;
	border-radius: 6px;
	object-fit: cover;
	background: #f2f2f2;
	display: block;
}
.ts-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}
.ts-name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ts-author,
.ts-desc {
	margin: 0;
	font-size: 12px;
	color: #888;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ts-desc {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ts-empty {
	padding: 20px 10px;
	text-align: center;
	color: #999;
	font-size: 13px;
}

/* dark / colored theme headers (ucfree etc.) */
.ts-page.ts-on-dark .ts-title,
.ts-page.ts-on-dark .ts-name {
	color: #fff;
}
.ts-page.ts-on-dark .ts-author,
.ts-page.ts-on-dark .ts-desc,
.ts-page.ts-on-dark .ts-empty {
	color: rgba(255,255,255,.75);
}
.ts-page.ts-on-dark .ts-item {
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.12);
}
.ts-page.ts-on-dark .ts-tag {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.18);
	color: #fff;
}
.ts-page.ts-on-dark .ts-tag:hover,
.ts-page.ts-on-dark .ts-tag:active {
	background: rgba(45,183,245,.25);
	border-color: rgba(45,183,245,.45);
	color: #fff;
}
.ts-page.ts-on-dark .ts-search {
	background: rgba(255,255,255,.12);
}
.ts-page.ts-on-dark .ts-search input {
	color: #fff;
}

.ts-page:not(.ts-on-dark) .ts-tag,
.ts-page:not(.ts-on-dark) .ts-title,
.ts-page:not(.ts-on-dark) .ts-name {
	color: #222;
}
.ts-page:not(.ts-on-dark) .ts-tag {
	color: #445;
}

.ts-explore {
	padding: 4px 0 24px;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}
.ts-lead {
	margin: 0 14px 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}
.ts-explore.ts-on-dark .ts-lead,
.ts-explore.ts-on-dark .ts-title {
	color: rgba(255,255,255,.88);
}
.ts-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 14px 16px;
}
.ts-quick a {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 16px;
	background: #2db7f5;
	color: #fff !important;
	font-size: 13px;
	text-decoration: none;
	line-height: 1.3;
}
.ts-accent-red .ts-quick a,
.ts-accent-red .ts-search-btn {
	background: #ed424b;
}
.ts-explore > .ts-section {
	padding: 0 14px;
}
.ts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 0;
}
.ts-card {
	display: block;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}
.ts-card img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 6px;
	background: #f2f2f2;
	display: block;
}
.ts-card span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.35;
	color: #333;
}
.ts-explore.ts-on-dark .ts-card span {
	color: #fff;
}
@media (min-width: 768px) {
	.ts-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}
