.tvthm-wrapper {
	margin: 16px 0;
}

.tvthm-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.tvthm-tab-btn {
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #111827;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.tvthm-tab-btn.is-active {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}

.tvthm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.tvthm-member-card,
.tvthm-community-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tvthm-member-card:hover,
.tvthm-community-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tvthm-member-link,
.tvthm-community-link {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 14px;
}

.tvthm-member-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 10px;
}

.tvthm-community-img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
}

.tvthm-member-name,
.tvthm-community-name {
	margin: 6px 0;
	font-size: 16px;
}

.tvthm-member-bio,
.tvthm-community-desc,
.tvthm-post-excerpt {
	margin: 6px 0 10px;
	font-size: 13px;
	color: #4b5563;
}

.tvthm-member-meta,
.tvthm-community-count {
	font-size: 12px;
	color: #6b7280;
}

.tvthm-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
}

.tvthm-badge--brand {
	background: #fee2e2;
	color: #991b1b;
}

.tvthm-badge--user {
	background: #e0f2fe;
	color: #075985;
}

.tvthm-posts-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tvthm-post-item {
	display: flex;
	gap: 14px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
}

.tvthm-post-thumb img {
	width: 120px;
	height: 84px;
	object-fit: cover;
	border-radius: 6px;
}

.tvthm-post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 4px;
}

.tvthm-post-title {
	margin: 4px 0;
	font-size: 16px;
}

.tvthm-post-title a {
	text-decoration: none;
	color: #111827;
}

.tvthm-marquee-box {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.tvthm-marquee-header {
	padding: 10px 14px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(90deg, #991b1b, #dc2626);
}

.tvthm-marquee-viewport {
	height: var(--tvthm-marquee-height, 360px);
	overflow: hidden;
	position: relative;
}

.tvthm-marquee-track {
	display: flex;
	flex-direction: column;
	animation: tvthmScrollVertical var(--tvthm-marquee-speed, 20s) linear infinite;
}

.tvthm-marquee-box:hover .tvthm-marquee-track {
	animation-play-state: paused;
}

.tvthm-marquee-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #f3f4f6;
	text-decoration: none;
	color: #111827;
}

.tvthm-marquee-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.tvthm-marquee-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.tvthm-marquee-title {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tvthm-marquee-sub {
	font-size: 12px;
	color: #6b7280;
}

@keyframes tvthmScrollVertical {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-50%);
	}
}
