/* =========================================================
   TaroSports v2 - Tin tức & hướng dẫn (danh sách + chi tiết bài viết)
   ========================================================= */

/* ---------- Đầu trang ---------- */
.tr-news__head
{
	margin: 4px 0 24px;
}

.tr-news__title
{
	font-size: 44px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--tr-navy);
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.tr-news__sub
{
	margin-top: 8px !important;
	font-size: 17px;
	color: var(--tr-muted);
}

/* ---------- Khối trên: tab + tìm kiếm / slider + nổi bật ---------- */
.tr-news__top
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	grid-template-areas:
		"tabs search"
		"hero pop";
	gap: 20px 24px;
	align-items: start;
}

.tr-news__top:not(.has-slider)
{
	grid-template-areas:
		"tabs search"
		"pop pop";
}

.tr-news__tabs
{
	grid-area: tabs;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tr-news__tab
{
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius-sm);
	background: #fff;
	font-weight: 600;
	color: var(--tr-text);
	white-space: nowrap;
	transition: border-color .2s, background .2s, color .2s;
}

.tr-body .tr-news__tab:hover
{
	border-color: var(--tr-navy);
	color: var(--tr-navy);
}

.tr-body .tr-news__tab.is-active
{
	background: var(--tr-navy);
	border-color: var(--tr-navy);
	color: #fff;
}

.tr-news__search
{
	grid-area: search;
	position: relative;
}

.tr-news__search .tr-input
{
	padding-right: 48px;
}

.tr-news__search button
{
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--tr-navy);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Slider bài tiêu điểm */
.tr-news__hero
{
	grid-area: hero;
	position: relative;
	overflow: hidden;
	border-radius: var(--tr-radius);
	background: var(--tr-navy);
	aspect-ratio: 16 / 9;
	min-height: 360px;
}

.tr-news__slides
{
	position: absolute;
	inset: 0;
}

.tr-news__slide
{
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}

.tr-news__slide.is-active
{
	opacity: 1;
	visibility: visible;
}

.tr-body .tr-news__slide-img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tr-news__slide::after
{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 29, 73, .92) 0%, rgba(7, 29, 73, .7) 42%, rgba(7, 29, 73, 0) 75%);
}

.tr-news__slide-body
{
	position: absolute;
	z-index: 2;
	left: 0;
	top: 0;
	bottom: 0;
	width: 58%;
	padding: 36px 40px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	color: #fff;
}

.tr-news__slide-meta
{
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: rgba(255, 255, 255, .85);
}

.tr-news__slide-title
{
	font-size: 34px;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	text-transform: uppercase;
}

.tr-body .tr-news__slide-title a,
.tr-body .tr-news__slide-title a:hover
{
	color: #fff;
}

.tr-news__slide-intro
{
	font-size: 16px;
	color: rgba(255, 255, 255, .9);
	max-width: 440px;
}

.tr-news__slide .tr-btn
{
	margin-top: 6px;
}

.tr-news__dots
{
	position: absolute;
	z-index: 3;
	left: 40px;
	bottom: 20px;
	display: flex;
	gap: 8px;
}

.tr-news__dot
{
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: width .25s, background .25s;
}

.tr-news__dot.is-active
{
	width: 26px;
	background: var(--tr-red);
}

/* Bài viết nổi bật */
.tr-news__pop
{
	grid-area: pop;
	padding: 20px;
}

.tr-news__pop-title
{
	font-size: 20px;
	font-weight: 800 !important;
	color: var(--tr-navy);
	text-transform: uppercase;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tr-navy);
	margin-bottom: 4px !important;
}

.tr-news__pop-list
{
	list-style: none;
	margin: 0;
	padding: 0;
}

.tr-news__pop-list li + li
{
	border-top: 1px solid var(--tr-line);
}

.tr-news__pop-item
{
	display: flex;
	gap: 14px;
	padding: 12px 0;
}

.tr-news__pop-img
{
	flex: none;
	width: 76px;
	height: 76px;
	border-radius: var(--tr-radius-sm);
	overflow: hidden;
	background: var(--tr-bg-soft);
}

.tr-body .tr-news__pop-img img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s;
}

.tr-news__pop-item:hover .tr-news__pop-img img
{
	transform: scale(1.06);
}

.tr-news__pop-txt
{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
}

.tr-news__pop-txt b
{
	font-size: 15px;
	line-height: 1.35;
	color: var(--tr-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tr-news__pop-item:hover b
{
	color: var(--tr-blue);
}

.tr-news__pop-txt small
{
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--tr-muted);
}

.tr-news__pop-txt small .tr-i
{
	width: 14px;
	height: 14px;
}

.tr-news__top:not(.has-slider) .tr-news__pop-list
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	column-gap: 24px;
}

.tr-news__top:not(.has-slider) .tr-news__pop-list li + li
{
	border-top: 0;
}

/* Lưới bài mới nhất */
.tr-news__count
{
	margin: 0 !important;
	color: var(--tr-muted);
}

.tr-news__grid .tr-tin
{
	height: 100%;
}

/* =========================================================
   Chi tiết bài viết
   ========================================================= */
.tr-art
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

.tr-art__head
{
	margin-bottom: 20px;
}

.tr-art__meta
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--tr-muted);
}

.tr-art__meta span
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tr-art__meta .tr-i
{
	width: 16px;
	height: 16px;
}

.tr-art__title
{
	font-size: 36px;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: var(--tr-navy);
}

.tr-art__intro
{
	margin-top: 14px !important;
	font-size: 18px;
	line-height: 1.6;
	color: var(--tr-muted);
}

.tr-art__cover
{
	margin: 0 0 24px;
	border-radius: var(--tr-radius);
	overflow: hidden;
	background: var(--tr-bg-soft);
}

.tr-body .tr-art__cover img
{
	width: 100%;
	max-height: 520px;
	object-fit: contain;
	margin: 0 auto;
}

/* Mục lục */
.tr-toc
{
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-bg-soft);
	margin-bottom: 24px;
}

.tr-toc summary
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	font-weight: 800;
	color: var(--tr-navy);
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.tr-toc summary::-webkit-details-marker
{
	display: none;
}

.tr-toc summary .tr-i
{
	transition: transform .2s;
}

.tr-toc[open] summary .tr-i
{
	transform: rotate(180deg);
}

.tr-toc ol
{
	list-style: none;
	margin: 0;
	padding: 0 18px 14px;
	max-height: 60vh;
	overflow: auto;
}

.tr-toc li a
{
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid var(--tr-line);
	font-size: 15px;
	line-height: 1.4;
	color: var(--tr-text);
}

.tr-toc li.is-c3 a
{
	padding-left: 26px;
	font-size: 14px;
	color: var(--tr-muted);
}

.tr-body .tr-toc li a:hover,
.tr-body .tr-toc li a.is-active
{
	border-left-color: var(--tr-red);
	color: var(--tr-navy);
}

.tr-art__side
{
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tr-art__side .tr-toc
{
	background: #fff;
	margin: 0;
}

.tr-art__toc-top
{
	display: none;
}

/* ---------- Nội dung bài viết (typography) ---------- */
.tr-prose
{
	font-size: 17px;
	line-height: 1.75;
	color: var(--tr-text);
	overflow-wrap: break-word;
}

.tr-prose span[style]
{
	font-family: inherit !important;
}

.tr-prose [style*="color:#000000"],
.tr-prose [style*="color: #000000"],
.tr-prose [style*="color:rgb(0, 0, 0)"],
.tr-prose [style*="color: rgb(0, 0, 0)"]
{
	color: inherit !important;
}

.tr-prose p
{
	margin: 0 0 14px;
}

.tr-prose h1,
.tr-prose h2,
.tr-prose h3,
.tr-prose h4
{
	color: var(--tr-navy);
	line-height: 1.3;
	scroll-margin-top: 90px;
}

.tr-prose h1,
.tr-prose h2
{
	font-size: 25px;
	margin: 32px 0 12px;
}

.tr-prose h3
{
	font-size: 21px;
	margin: 26px 0 10px;
}

.tr-prose h4
{
	font-size: 18px;
	margin: 20px 0 8px;
}

.tr-prose h1 span[style],
.tr-prose h2 span[style],
.tr-prose h3 span[style]
{
	font-size: inherit !important;
}

.tr-prose .tr-prose__h
{
	margin: 28px 0 10px;
	font-size: 20px;
	color: var(--tr-navy);
	scroll-margin-top: 90px;
}

.tr-prose .tr-prose__h span[style]
{
	font-size: inherit !important;
}

.tr-prose a
{
	color: var(--tr-blue) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.tr-prose ul,
.tr-prose ol
{
	margin: 0 0 16px;
	padding-left: 24px;
}

.tr-prose li
{
	margin-bottom: 6px;
}

.tr-prose li > p
{
	margin: 0;
}

.tr-prose ul li::marker
{
	color: var(--tr-red);
}

.tr-prose ol li::marker
{
	color: var(--tr-navy);
	font-weight: 700;
}

.tr-prose img
{
	max-width: 100% !important;
	height: auto !important;
	border-radius: var(--tr-radius-sm);
	margin: 8px auto;
}

.tr-prose iframe,
.tr-prose video
{
	max-width: 100%;
	border-radius: var(--tr-radius-sm);
}

.tr-prose iframe[src*="youtube"]
{
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.tr-prose blockquote
{
	margin: 20px 0;
	padding: 14px 20px;
	border-left: 4px solid var(--tr-red);
	background: var(--tr-bg-soft);
	border-radius: 0 var(--tr-radius-sm) var(--tr-radius-sm) 0;
	font-style: italic;
}

.tr-prose__table
{
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 18px;
	-webkit-overflow-scrolling: touch;
}

.tr-prose table
{
	width: 100% !important;
	min-width: 480px;
	border-collapse: collapse;
	font-size: 15px;
	height: auto !important;
}

.tr-prose th,
.tr-prose td
{
	padding: 10px 12px;
	border: 1px solid var(--tr-line);
	text-align: left;
	vertical-align: top;
}

.tr-prose th,
.tr-prose thead td
{
	background: var(--tr-navy);
	color: #fff;
	font-weight: 700;
}

.tr-prose tbody tr:nth-child(even) td
{
	background: var(--tr-bg-soft);
}

.tr-prose hr
{
	border: 0;
	border-top: 1px solid var(--tr-line);
	margin: 24px 0;
}

/* Chia sẻ + thẻ cuối bài */
.tr-art__foot
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--tr-line);
}

.tr-art__share
{
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--tr-muted);
}

.tr-art__share a,
.tr-art__share button
{
	width: 40px;
	height: 40px;
	border: 1px solid var(--tr-line);
	border-radius: 50%;
	background: #fff;
	color: var(--tr-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.tr-art__share a:hover,
.tr-art__share button:hover
{
	border-color: var(--tr-navy);
}

.tr-art__share .tr-i
{
	width: 18px;
	height: 18px;
}

/* Cột phải: bài nổi bật dạng gọn */
.tr-art__side .tr-news__pop
{
	padding: 18px;
}

.tr-art__side .tr-news__pop-title
{
	font-size: 17px;
}

.tr-art__side .tr-news__pop-img
{
	width: 64px;
	height: 64px;
}

.tr-art__side .tr-news__pop-txt b
{
	font-size: 14px;
}

/* ---------- Bình luận ---------- */
.tr-cmt
{
	max-width: 860px;
}

.tr-cmt__list
{
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.tr-cmt__item
{
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--tr-line);
}

.tr-cmt__avatar
{
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tr-blue-50);
	color: var(--tr-navy);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}

.tr-cmt__name
{
	font-weight: 700;
	color: var(--tr-navy);
}

.tr-cmt__time
{
	margin-left: 8px;
	font-size: 13px;
	color: var(--tr-muted);
}

.tr-cmt__text
{
	margin-top: 4px !important;
}

.tr-cmt__form
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 20px;
}

.tr-cmt__form textarea
{
	grid-column: 1 / -1;
	height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.tr-cmt__form .tr-btn
{
	justify-self: start;
}

.tr-cmt__note
{
	grid-column: 1 / -1;
	margin: 0 !important;
	font-size: 14px;
	color: var(--tr-muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px)
{
	.tr-news__top
	{
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.tr-news__slide-body
	{
		width: 70%;
	}

	.tr-art
	{
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 24px;
	}
}

@media (max-width: 991px)
{
	.tr-news__title
	{
		font-size: 36px;
	}

	.tr-news__top,
	.tr-news__top:not(.has-slider)
	{
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"search"
			"tabs"
			"hero"
			"pop";
	}

	.tr-news__top:not(.has-slider)
	{
		grid-template-areas:
			"search"
			"tabs"
			"pop";
	}

	.tr-art
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.tr-art__side
	{
		position: static;
	}

	.tr-art__side .tr-toc
	{
		display: none;
	}

	.tr-art__toc-top
	{
		display: block;
	}
}

@media (max-width: 767px)
{
	.tr-news__head
	{
		margin-bottom: 16px;
	}

	.tr-news__title
	{
		font-size: 28px;
	}

	.tr-news__sub
	{
		font-size: 15px;
	}

	.tr-news__tabs
	{
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -16px;
		padding: 0 16px;
	}

	.tr-news__tabs::-webkit-scrollbar
	{
		display: none;
	}

	.tr-news__tab
	{
		min-height: 40px;
		padding: 0 14px;
	}

	.tr-news__hero
	{
		aspect-ratio: auto;
		min-height: 0;
		height: 440px;
	}

	.tr-news__slide::after
	{
		background: linear-gradient(0deg, rgba(7, 29, 73, .96) 0%, rgba(7, 29, 73, .75) 50%, rgba(7, 29, 73, .1) 100%);
	}

	.tr-news__slide-body
	{
		width: 100%;
		top: auto;
		padding: 20px 20px 44px;
		gap: 10px;
	}

	.tr-news__slide-title
	{
		font-size: 23px;
	}

	.tr-news__slide-intro
	{
		font-size: 14px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.tr-news__dots
	{
		left: 20px;
		bottom: 18px;
	}

	.tr-news__pop
	{
		padding: 16px;
	}

	.tr-news__grid.tr-grid--3
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.tr-news__latest .tr-sec-head
	{
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.tr-art__title
	{
		font-size: 26px;
	}

	.tr-art__intro
	{
		font-size: 16px;
	}

	.tr-prose
	{
		font-size: 16px;
		line-height: 1.7;
	}

	.tr-prose h1,
	.tr-prose h2
	{
		font-size: 21px;
	}

	.tr-prose h3,
	.tr-prose .tr-prose__h
	{
		font-size: 18px;
	}

	.tr-cmt__form
	{
		grid-template-columns: 1fr;
		padding: 16px;
	}
}

@media (min-width: 560px) and (max-width: 767px)
{
	.tr-news__grid.tr-grid--3
	{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tr-body .tr-art__meta a.tr-badge,
.tr-body .tr-art__meta a.tr-badge:hover
{
	color: #fff;
}

/* Lượt xem ở cột Bài viết nổi bật */
.tr-news__pop-view
{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
}
