:root {
	--tp-bg: #ffffff;
	--tp-surface: #f6f8fb;
	--tp-text: #121417;
	--tp-muted: #5b6574;
	--tp-accent: #e11900;
	--tp-border: #d9e0ea;
	--tp-radius: 14px;
	--tp-shadow: 0 8px 24px rgba(18, 20, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
	:root {
		--tp-bg: #14171b;
		--tp-surface: #1d232c;
		--tp-text: #eff2f6;
		--tp-muted: #a3afc2;
		--tp-accent: #ff5a45;
		--tp-border: #2a3341;
	}
}

.tp-widget {
	background: var(--tp-bg);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow);
	padding: 1rem;
	font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tp-widget__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.tp-widget__subtitle {
	margin: .4rem 0 1rem;
	color: var(--tp-muted);
	font-size: .95rem;
}

.tp-widget__items {
	display: grid;
	gap: .85rem;
}

.tp-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: .75rem;
	background: var(--tp-surface);
	border-radius: 12px;
	padding: .7rem;
}

.tp-style-compact .tp-item,
.tp-style-minimal .tp-item {
	grid-template-columns: 1fr;
}

.tp-style-magazine .tp-item {
	grid-template-columns: 140px 1fr;
}

.tp-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.tp-item__title {
	margin: 0;
	font-size: 1rem;
	display: flex;
	gap: .45rem;
	align-items: center;
}

.tp-item__title a {
	color: var(--tp-text);
	text-decoration: none;
}

.tp-item__title a:focus-visible,
.tp-item__meta a:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: 2px;
}

.tp-item__hot {
	background: rgba(225, 25, 0, .12);
	color: var(--tp-accent);
	font-size: .75rem;
	border-radius: 999px;
	padding: .15rem .5rem;
}

.tp-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	margin-top: .35rem;
	font-size: .86rem;
	color: var(--tp-muted);
}

.tp-item__meta a {
	color: var(--tp-muted);
}

.tp-item__excerpt {
	margin-top: .45rem;
	font-size: .92rem;
	color: var(--tp-text);
}

@media (max-width: 767px) {
	.tp-item,
	.tp-style-magazine .tp-item {
		grid-template-columns: 1fr;
	}
}

