/* TC Retention — gói giữ chân độc giả truyencuoi.org */

.tc-end-blocks {
	margin-top: 2em;
}

/* --- Thả cảm xúc 😂 --- */
.tc-laugh {
	margin-bottom: 1.25em;
}

.tc-laugh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1.1em;
	border: 2px solid #f5a623;
	border-radius: 999px;
	background: #fff8ec;
	color: #7a4a00;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.tc-laugh-btn:hover:not(:disabled) {
	background: #ffe9bd;
}

.tc-laugh-btn:active:not(:disabled) {
	transform: scale(0.97);
}

.tc-laugh-btn:disabled {
	cursor: default;
	opacity: 0.85;
}

.tc-laugh-btn.tc-laughed {
	background: #f5a623;
	color: #fff;
}

.tc-laugh-count {
	display: inline-block;
	min-width: 1.6em;
	padding: 0.05em 0.45em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.12);
	font-size: 0.9em;
	text-align: center;
}

.tc-laugh-note {
	margin-left: 0.6em;
	font-size: 0.92em;
	color: #666;
}

/* --- Truyện trước / tiếp theo --- */
.tc-prevnext {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 1.5em;
}

.tc-prevnext-link {
	flex: 1 1 0;
	display: block;
	padding: 0.7em 0.9em;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	text-decoration: none;
	background: #fafafa;
}

.tc-prevnext-link:hover {
	background: #f0f0f0;
}

.tc-prevnext-next {
	text-align: right;
}

.tc-prevnext-spacer {
	flex: 1 1 0;
}

.tc-prevnext-label {
	display: block;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #888;
}

.tc-prevnext-name {
	display: block;
	margin-top: 0.2em;
	font-weight: 600;
	color: inherit;
}

/* --- Cùng chuyên mục --- */
.tc-related {
	margin-bottom: 1.5em;
}

.tc-related-title {
	margin-bottom: 0.6em;
}

.tc-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.9em;
}

.tc-related-item {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tc-related-thumb {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 0.4em;
}

.tc-related-name {
	display: block;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.35;
}

@media (max-width: 640px) {
	.tc-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tc-prevnext {
		flex-direction: column;
	}

	.tc-prevnext-spacer {
		display: none;
	}
}

/* --- Truyện ngẫu nhiên --- */
.tc-random-block {
	margin-bottom: 1.5em;
	text-align: center;
}

.tc-random-btn {
	display: inline-block;
	padding: 0.6em 1.4em;
	border-radius: 999px;
	background: #e4572e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}

.tc-random-btn:hover {
	background: #c7431f;
	color: #fff;
}

/* --- Bảng xếp hạng tuần --- */
.tc-top-week {
	margin: 1.5em 0;
}

.tc-top-week-list {
	margin-left: 1.2em;
}

.tc-top-week-item {
	margin-bottom: 0.35em;
}

.tc-top-week-count {
	color: #888;
	font-size: 0.92em;
	white-space: nowrap;
}

.tc-top-week-empty {
	color: #666;
	font-style: italic;
}
