/* Tin Game 8 — Esports: hồ sơ Đội tuyển & Tuyển thủ.
   Dùng biến màu của theme Tin Game 8 (có giá trị dự phòng). */

.tg8es-updated { font-size: 13px; color: var(--color-text-secondary, #5f6368); margin: -4px 0 14px; }
.tg8es-updated time { font-weight: 700; color: var(--color-text-dark, #202124); }

/* Ảnh / chữ cái đầu */
.tg8es-avatar__ph {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, #6d32a0, #3d1559); color: #fff; font-weight: 700; letter-spacing: .5px;
}

/* ---------------- Infobox ---------------- */
.tg8es-infobox {
	background: #fff; border: 1px solid var(--color-box-border, #e3e5ea); border-radius: var(--radius, 6px);
	padding: 18px; margin: 0 0 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.tg8es-infobox__head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border, #eee); }
.tg8es-infobox__media { flex: none; width: 96px; height: 96px; border-radius: var(--radius, 6px); overflow: hidden; background: var(--color-primary-soft, #f3eef8); display: flex; align-items: center; justify-content: center; }
.tg8es-infobox__media img { width: 100%; height: 100%; margin: 0; border-radius: 0; }
/* Ảnh đội (11/11/2026) là logo đặt giữa nền tối 1200x675, logo nằm trong ô vuông giữa ảnh: cắt vuông là đủ logo. */
.tg8es-infobox__media--logo img { object-fit: cover; object-position: center; padding: 0; }
.tg8es-infobox__media--photo img { object-fit: cover; object-position: top center; }
.tg8es-infobox__media .tg8es-avatar__ph { font-size: 30px; }
.tg8es-infobox__name { font-size: 22px; font-weight: 700; color: var(--color-text-dark, #202124); line-height: 1.25; }
.tg8es-infobox__sub { font-size: 14px; color: var(--color-text-secondary, #5f6368); margin-top: 3px; }
.tg8es-infobox__hl { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--color-primary, #58257B); background: var(--color-primary-soft, #f3eef8); padding: 4px 10px; border-radius: var(--radius, 6px); }

.tg8es-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 6px 0 0; }
.tg8es-fact { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--color-border, #eee); font-size: 14px; line-height: 1.45; }
.tg8es-fact--wide { grid-column: 1 / -1; }
.tg8es-fact dt { flex: none; width: 118px; color: var(--color-text-secondary, #5f6368); }
.tg8es-fact dd { margin: 0; font-weight: 600; color: var(--color-text-dark, #202124); min-width: 0; }
.tg8es-fact dd a { color: var(--color-primary, #58257B); }
.tg8es-fact dd a:hover { text-decoration: underline; }

.tg8es-chip { display: inline-block; font-size: 12px; font-weight: 600; background: var(--color-pill-bg, #e8f0fe); color: var(--color-pill-text, #1a56b8); padding: 2px 9px; border-radius: var(--radius, 6px); margin: 0 4px 4px 0; }

/* Icon mạng xã hội (dưới tên) */
.tg8es-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tg8es-social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #5f6368; transition: transform .15s, opacity .15s, box-shadow .15s; }
.tg8es-social svg { width: 18px; height: 18px; display: block; }
.tg8es-social:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.tg8es-social:focus-visible { outline: 2px solid var(--color-primary, #58257B); outline-offset: 2px; }
.tg8es-social--facebook { background: #1877f2; }
.tg8es-social--x { background: #000; }
.tg8es-social--youtube { background: #ff0000; }
.tg8es-social--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.tg8es-social--tiktok { background: #111; }
.tg8es-social--twitch { background: #6441a5; }
.tg8es-social--website { background: var(--color-primary, #58257B); }

/* Dòng "Thành tích" trong bảng thông tin */
.tg8es-hl { color: var(--color-primary, #58257B); font-weight: 700; }

/* Dòng ghi nguồn cuối bài */
.tg8-article__body .tg8es-sources { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border, #eee); font-size: 13px; color: var(--color-text-secondary, #5f6368); }
.tg8es-sources span { font-weight: 700; }

/* ---------------- Thẻ tuyển thủ ---------------- */
.tg8es-pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 12px 0 20px; }
.tg8es-pcard { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--color-box-border, #e3e5ea); border-radius: var(--radius, 6px); padding: 12px 8px 12px; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tg8-article__body a.tg8es-pcard { color: inherit; text-decoration: none; }
.tg8es-pcard.has-link:hover { transform: translateY(-2px); border-color: var(--color-primary-light, rgba(88,37,123,.57)); box-shadow: 0 4px 12px rgba(88,37,123,.10); }
.tg8es-pcard__img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--color-primary-soft, #f3eef8); margin-bottom: 8px; display: block; }
.tg8-article__body .tg8es-pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; margin: 0; border-radius: 0; }
.tg8es-pcard__img .tg8es-avatar__ph { font-size: 22px; }
.tg8es-pcard__role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--color-primary, #58257B); }
.tg8es-pcard__ign { font-size: 16px; color: var(--color-text-dark, #202124); margin: 2px 0 2px; line-height: 1.3; }
.tg8es-pcard.has-link .tg8es-pcard__ign { color: var(--color-primary, #58257B); }
.tg8es-pcard__meta { font-size: 12px; color: var(--color-text-secondary, #5f6368); line-height: 1.35; }

/* ---------------- Bảng ---------------- */
.tg8es-table-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--color-box-border, #e3e5ea); border-radius: var(--radius, 6px); background: #fff; }
.tg8-article__body .tg8es-table { margin: 0; border-collapse: collapse; width: 100%; font-size: 14px; table-layout: fixed; }
.tg8-article__body .tg8es-table th,
.tg8-article__body .tg8es-table td { border: 0; border-bottom: 1px solid var(--color-border, #eee); padding: 9px 12px; text-align: left; vertical-align: middle; }
.tg8-article__body .tg8es-table th { background: var(--color-primary-soft, #f3eef8); color: var(--color-text-dark, #202124); font-weight: 700; font-size: 13px; }
.tg8-article__body .tg8es-table tr:last-child td { border-bottom: 0; }
.tg8-article__body .tg8es-table--ach.has-team { min-width: 520px; }
.tg8es-table .c-year { width: 72px; font-weight: 700; }
.tg8es-table .c-place { width: 130px; }
.tg8es-table .c-team { width: 130px; }
.tg8es-table tr.is-gold td { background: #fffcf2; }

.tg8es-place { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: var(--radius, 6px); white-space: nowrap; background: #f1f3f4; color: #5f6368; }
.tg8es-place--gold { background: #fff1c7; color: #8a5a00; }
.tg8es-place--gold::before { content: "🏆 "; }
.tg8es-place--silver { background: #e9edf3; color: #3c4858; }
.tg8es-place--bronze { background: #fbe9dd; color: #93451a; }

.tg8es-more { margin: -6px 0 18px; }
.tg8es-more > summary { cursor: pointer; display: inline-block; font-size: 14px; font-weight: 700; color: var(--color-primary, #58257B); padding: 6px 14px; border: 1px solid var(--color-primary-light, rgba(88,37,123,.57)); border-radius: var(--radius, 6px); list-style: none; }
.tg8es-more > summary::-webkit-details-marker { display: none; }
.tg8es-more[open] > summary { margin-bottom: 4px; }

.tg8es-awards { list-style: none; padding: 0; margin: 8px 0 18px; }
.tg8-article__body .tg8es-awards li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--color-border, #eee); margin: 0; }
.tg8es-awards__year { flex: none; font-size: 12px; font-weight: 700; color: var(--color-primary, #58257B); background: var(--color-primary-soft, #f3eef8); border-radius: var(--radius, 6px); padding: 1px 7px; }

.tg8es-more-link { font-weight: 700; }

/* ---------------- Thẻ liên kết hồ sơ (chuyên mục / cuối bài / danh sách) ---------------- */
.tg8es-profile-box { margin: 0 0 18px; }
.tg8-article .tg8es-profile-box { margin: 22px 0; }
.tg8es-profile-box__title { font-size: 15px; font-weight: 700; color: var(--color-text-dark, #202124); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tg8es-profile-box__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--color-primary, #58257B); }
.tg8es-link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tg8es-link-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--color-box-border, #e3e5ea); border-radius: var(--radius, 6px); padding: 10px 12px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tg8es-link-card:hover { border-color: var(--color-primary-light, rgba(88,37,123,.57)); box-shadow: 0 3px 10px rgba(88,37,123,.08); }
.tg8es-link-card__img { flex: none; width: 48px; height: 48px; border-radius: var(--radius, 6px); overflow: hidden; background: var(--color-primary-soft, #f3eef8); display: flex; align-items: center; justify-content: center; }
.tg8es-link-card--player .tg8es-link-card__img { border-radius: 50%; }
.tg8es-link-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; margin: 0; border-radius: 0; }
.tg8es-link-card--team .tg8es-link-card__img img { object-fit: cover; object-position: center; padding: 0; }
.tg8es-link-card__img .tg8es-avatar__ph { font-size: 16px; }
.tg8es-link-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tg8es-link-card__type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--color-primary, #58257B); }
.tg8es-link-card__name { font-size: 16px; color: var(--color-text-dark, #202124); }
.tg8es-link-card__sub { font-size: 12px; color: var(--color-text-secondary, #5f6368); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg8es-link-card__go { flex: none; font-size: 22px; color: #9aa0a6; }
.tg8es-link-cards--archive { margin-top: 14px; }
.tg8es-archive-intro { color: var(--color-text-secondary, #5f6368); margin: 0 0 6px; }

.tg8es-news { margin-top: 26px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1023px) {
	.tg8es-pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.tg8es-infobox { padding: 14px; }
	.tg8es-infobox__media { width: 72px; height: 72px; }
	.tg8es-infobox__name { font-size: 19px; }
	.tg8es-facts { grid-template-columns: 1fr; }
	.tg8es-fact dt { width: 110px; }
	.tg8es-pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tg8es-table .c-place { width: 104px; }
	.tg8es-table .c-team { width: 112px; }
	.tg8es-table .c-year { width: 54px; }
	.tg8es-place { padding: 2px 7px; }
	.tg8-article__body .tg8es-table th, .tg8-article__body .tg8es-table td { padding: 8px 9px; }
	.tg8es-link-cards { grid-template-columns: 1fr; }
}
@media (min-width: 480px) and (max-width: 767px) {
	.tg8es-pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
