/* =====================================================================
   Tg Esports — versão 2: visual limpo inspirado no Invision (IPB)
   Carregado depois do tg.css. Cartões brancos, linhas finas, avatares.
   ===================================================================== */

:root {
	--tg-bg: #f3f5fa;
	--tg-card: #ffffff;
	--tg-line: #e6eaf3;
	--tg-line-soft: #eef1f7;
	--tg-radius: 14px;
	--tg-shadow: 0 1px 2px rgba(15, 26, 51, .04);
	--tg-hover: #f8f9fd;
}
html, body { background: var(--tg-bg); }

/* ---------- Avatares ---------- */
.tg-av {
	--s: 36px;
	width: var(--s); height: var(--s); flex: 0 0 var(--s);
	border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
	background: #e9e4fb; color: #fff; font-weight: 700; font-size: calc(var(--s) * .42); line-height: 1;
	vertical-align: middle; box-sizing: border-box;
}
.tg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-av.is-letter { background: var(--tg-purple); }
.tg-av-xs { --s: 22px; }
.tg-av-sm { --s: 32px; }
.tg-av-md { --s: 40px; }
.tg-av:empty:not(.is-letter) { background: var(--tg-line-soft); }

/* ---------- Botões e pílulas ---------- */
.tg-pill {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12.5px; font-weight: 600; color: var(--tg-text-dim) !important;
	background: #fff; border: 1px solid var(--tg-line); border-radius: 30px; padding: 6px 13px;
}
.tg-pill:hover { color: var(--tg-purple) !important; border-color: #d9ccfb; background: var(--tg-purple-soft); }
.tg-btn-soft {
	background: var(--tg-purple-soft); color: var(--tg-purple-dark) !important; border: 1px solid #e4d9fd;
}
.tg-btn-soft:hover { background: #ede5ff; }
.tg-btn-ghost-dim { background: #fff; color: var(--tg-text-dim) !important; border: 1px solid var(--tg-line); }
.tg-btn.tg-full { width: 100%; justify-content: center; box-sizing: border-box; }
.tg-circle {
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tg-line); background: #fff;
	color: var(--tg-title); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.tg-circle:hover { border-color: #cdbdfa; color: var(--tg-purple); }
.tg-chip {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
	color: var(--tg-purple-dark) !important; background: var(--tg-purple-soft); border-radius: 30px; padding: 3px 9px;
}
.tg-muted { color: var(--tg-text-dim); }

/* ---------- Caixas (blocos da página) ---------- */
.tg-box, .tg-cat, .tg-widget {
	background: var(--tg-card); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow);
}
.tg-box { margin: 0 0 22px; overflow: hidden; }
.tg-box-h {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 20px; border-bottom: 1px solid var(--tg-line);
}
.tg-box-h h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--tg-title); text-transform: none; letter-spacing: 0; border: 0; padding: 0; }
.tg-box-more { font-size: 12.5px; font-weight: 600; }

/* Segmentado (abas pequenas) */
.tg-seg { display: inline-flex; gap: 4px; background: var(--tg-bg); border-radius: 10px; padding: 3px; }
.tg-seg button {
	border: 0; background: transparent; font: 600 13px/1 var(--tg-font); color: var(--tg-text-dim);
	padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.tg-seg button.on { background: #fff; color: var(--tg-title); box-shadow: 0 1px 3px rgba(15, 26, 51, .1); }

/* ---------- Página inicial ---------- */
.tg-ipb { gap: 24px; }
.tg-ipb-topbar { margin: 4px 0 12px; }
.tg-ipb-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--tg-title); text-transform: none; border: 0; padding: 0; }
.tg-ipb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Destaques */
.tg-feat-nav { display: flex; gap: 6px; }
.tg-feat.no-scroll .tg-feat-nav { display: none; }
.tg-feat.at-start [data-dir="-1"], .tg-feat.at-end [data-dir="1"] { opacity: .35; pointer-events: none; }
.tg-feat-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 32px) / 3));
	gap: 16px; padding: 16px 20px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tg-feat-track::-webkit-scrollbar { display: none; }
.tg-fcard {
	scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
	border: 1px solid var(--tg-line); border-radius: 12px; overflow: hidden; background: #fff;
	transition: border-color .15s, transform .15s;
}
.tg-fcard:hover { border-color: #d3c3fb; transform: translateY(-2px); }
.tg-fcard-img { display: block; aspect-ratio: 16 / 8; background: #eef1f7; position: relative; overflow: hidden; }
.tg-fcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-fcard-img.is-empty {
	background: linear-gradient(135deg, var(--c, #7c3aed), #170a3a);
	display: flex; align-items: flex-end; padding: 14px;
}
.tg-fcard-forum-big { color: rgba(255, 255, 255, .92); font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.tg-fcard-b { padding: 13px 15px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tg-fcard-b .tg-chip { align-self: flex-start; }
.tg-fcard h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; text-transform: none; border: 0; padding: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-fcard h3 a { color: var(--tg-title); }
.tg-fcard h3 a:hover { color: var(--tg-purple); }
.tg-fcard-txt { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--tg-text-dim);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-fcard-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tg-text-dim); }
.tg-fcard-meta b { font-weight: 700; color: var(--tg-title); }
.tg-fcard-n { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }

/* Tópicos recentes / Em alta */
.tg-stream-list { list-style: none; margin: 0; padding: 0; transition: opacity .15s; }
.tg-stream-list.is-loading { opacity: .45; }
.tg-srow {
	display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 170px; gap: 14px; align-items: center;
	padding: 12px 20px; border-top: 1px solid var(--tg-line-soft);
}
.tg-srow:first-child { border-top: 0; }
.tg-srow:hover { background: var(--tg-hover); }
.tg-srow h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; line-height: 1.4; text-transform: none; border: 0; padding: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-srow h3 a { color: var(--tg-title); }
.tg-srow h3 a:hover { color: var(--tg-purple); }
.tg-pin { color: var(--tg-purple); margin-right: 6px; font-size: 12px; }
.tg-srow-sub { margin: 0; font-size: 12px; color: var(--tg-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-srow-user { font-weight: 600; }
.tg-srow-forum { color: var(--tg-text-dim); font-weight: 600; }
.tg-srow-forum:hover { color: var(--tg-purple); }
.tg-srow-stats { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--tg-text-dim); text-align: right; }
.tg-srow-stats b { color: var(--tg-title); font-weight: 700; }
.tg-srow-last { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--tg-text-dim); }
.tg-srow-last > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tg-srow-last b { font-size: 12.5px; color: var(--tg-title); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-srow-last small { font-size: 11.5px; }
.tg-srow-last:hover b { color: var(--tg-purple); }
.tg-stream-empty, .tg-act-empty { padding: 22px 20px; color: var(--tg-text-dim); font-size: 13px; list-style: none; }

/* ---------- Lista de fóruns (categorias + linhas) ---------- */
.tg-cat { margin: 0 0 18px; overflow: hidden; }
.tg-cat-h {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 13px 16px 13px 20px; border-bottom: 1px solid var(--tg-line);
}
.tg-cat-h h2 { margin: 0; font-size: 15.5px; font-weight: 700; text-transform: none; letter-spacing: 0; border: 0; padding: 0; color: var(--tg-title); }
.tg-cat-h h2 a { color: var(--tg-title); }
.tg-cat-h h2 a:hover { color: var(--tg-purple); }
.tg-cat-tg {
	width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--tg-text-dim);
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, background .15s;
}
.tg-cat-tg:hover { background: var(--tg-bg); color: var(--tg-title); }
.tg-cat.is-closed .tg-cat-tg { transform: rotate(180deg); }
.tg-cat.is-closed .tg-cat-b { display: none; }
.tg-cat.is-closed .tg-cat-h { border-bottom: 0; }

.tg-frow {
	display: grid; grid-template-columns: 46px minmax(0, 1fr) 118px 250px; gap: 16px; align-items: center;
	padding: 16px 20px; border-top: 1px solid var(--tg-line-soft);
}
.tg-frow:first-child { border-top: 0; }
.tg-frow:hover { background: var(--tg-hover); }
.tg-fico {
	width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: var(--tg-purple-soft); color: var(--tg-purple) !important; font-size: 19px;
}
.tg-frow.is-unread .tg-fico { background: linear-gradient(135deg, #8b5cf6, #5b21b6); color: #fff !important; box-shadow: 0 6px 14px rgba(124, 58, 237, .28); }
.tg-frow.forum_link .tg-fico { background: #eef6ff; color: var(--tg-blue) !important; }
.tg-fico .forum-image img { max-width: 46px; max-height: 46px; border-radius: 12px; }
.tg-fmain h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; text-transform: none; border: 0; padding: 0; }
.tg-fmain h3 a.forumtitle { color: var(--tg-title); font-size: inherit; font-weight: inherit; }
.tg-fmain h3 a.forumtitle:hover { color: var(--tg-purple); }
.tg-new { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	color: #fff; background: var(--tg-purple); border-radius: 20px; padding: 2px 7px; margin-left: 4px; }
.tg-fdesc { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--tg-text-dim); }
.tg-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tg-subs a.subforum {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
	color: var(--tg-title); background: #fff; border: 1px solid var(--tg-line); border-radius: 30px; padding: 3px 10px;
}
.tg-subs a.subforum .icon { color: #a99bd0; font-size: 10px; }
.tg-subs a.subforum.unread { border-color: #d5c6fb; background: var(--tg-purple-soft); }
.tg-subs a.subforum.unread .icon { color: var(--tg-purple); }
.tg-subs a.subforum:hover { border-color: #cdbdfa; color: var(--tg-purple); }
.tg-fmods { margin: 6px 0 0; font-size: 11.5px; color: var(--tg-text-dim); }
.tg-fstats { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--tg-text-dim); text-align: right; }
.tg-fstats b { color: var(--tg-title); font-weight: 700; font-size: 13px; }
.tg-flast { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--tg-line-soft); }
.tg-flast-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.tg-flast-txt a.lastsubject { font-size: 13px; font-weight: 600; color: var(--tg-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-flast-txt a.lastsubject:hover { color: var(--tg-purple); }
.tg-flast-txt small { font-size: 11.5px; color: var(--tg-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-flast-txt small a { font-weight: 600; }
.tg-flast-empty { font-size: 12px; color: #9aa5bf; }
.tg-flag { color: var(--tg-blue); }

/* Subfóruns dentro de um fórum (viewforum) usam o mesmo bloco */
.tg-cat + .action-bar, .tg-cat + .forumbg { margin-top: 18px; }

/* ---------- Barra lateral ---------- */
.tg-widget { box-shadow: var(--tg-shadow); padding: 16px 18px; }
.tg-widget-t { font-size: 14.5px; font-weight: 700; border-bottom: 1px solid var(--tg-line); padding-bottom: 11px; margin-bottom: 12px; justify-content: flex-start; }
.tg-widget-t::before { display: none; }
.tg-widget-t .tg-widget-more { margin-left: auto; font-size: 12px; font-weight: 600; }

.tg-widget-join {
	background: linear-gradient(160deg, #faf7ff 0%, #ffffff 60%); border-color: #e7defc; text-align: left;
}
.tg-join-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tg-purple); }
.tg-widget-join h3 { margin: 6px 0 6px; font-size: 16.5px; line-height: 1.3; font-weight: 700; color: var(--tg-title); text-transform: none; border: 0; padding: 0; }
.tg-widget-join p { margin: 0 0 14px; font-size: 13px; color: var(--tg-text-dim); }
.tg-widget-join .tg-btn + .tg-btn { margin-top: 8px; }

.tg-widget-me { display: flex; align-items: center; gap: 13px; }
.tg-me-av { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: var(--tg-grad-box); color: #fff !important; font-size: 21px; font-weight: 700; }
.tg-me-av img { width: 100%; height: 100%; object-fit: cover; }
.tg-me-txt { min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.tg-me-txt strong { font-size: 15px; color: var(--tg-title); }
.tg-me-txt strong a { font-weight: 700; }
.tg-me-links { display: flex; gap: 10px; margin-top: 4px; }
.tg-me-links a { font-weight: 600; font-size: 12px; }

.tg-recent-av { border-radius: 50%; }
.tg-online-list a, .tg-online-list span.username, .tg-online-list span.username-coloured { background: var(--tg-bg); }

/* ---------- Faixa de notícias ---------- */
.tg-ticker { background: #fff; border-bottom: 1px solid var(--tg-line); }
.tg-ticker-in { display: flex; align-items: center; gap: 14px; height: 40px; }
.tg-ticker-k {
	flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: #fff !important; background: var(--tg-purple); border-radius: 6px; padding: 5px 10px;
}
.tg-ticker-win { flex: 1; overflow: hidden; position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tg-ticker-rail { display: inline-flex; white-space: nowrap; animation: tg-marquee var(--dur, 60s) linear infinite; }
.tg-ticker-win:hover .tg-ticker-rail { animation-play-state: paused; }
.tg-ticker-rail a { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 13px; font-weight: 500; color: var(--tg-title); position: relative; }
.tg-ticker-rail a::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #c9bdf0; transform: translateY(-50%); }
.tg-ticker-rail a:hover span { color: var(--tg-purple); }
.tg-ticker-rail time { font-size: 11.5px; color: var(--tg-text-dim); }
@keyframes tg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tg-ticker-rail { animation: none; } .tg-ticker-win { overflow-x: auto; } }

/* ---------- Lista de tópicos (viewforum, busca) ---------- */
ul.topiclist.topics li.row dl.row-item.tg-has-av > dt { display: flex; align-items: center; gap: 12px; }
ul.topiclist.topics li.row dl.row-item.tg-has-av > dt .tg-topic-av { margin-left: 12px; }
ul.topiclist.topics li.row dl.row-item.tg-has-av > dt .list-inner { flex: 1; min-width: 0; }
ul.topiclist.topics li.row dl.row-item.tg-has-av > dt[style] { background-image: none !important; }
ul.topiclist.topics li.row dl.row-item.tg-has-av { background-image: none !important; }
ul.topiclist.topics li.row dl.row-item.tg-has-av > dt .list-inner { padding-left: 0 !important; }
dd.lastpost .tg-lp-av { float: left; margin: 2px 9px 0 0; }

/* ---------- Perfil estilo IPB ---------- */
.tg-prof { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; margin: 0 0 22px; }
.tg-prof-cover {
	height: 190px; background: linear-gradient(120deg, #170a3a 0%, #4c1d95 55%, #7c3aed 100%) center / cover no-repeat;
}
.tg-prof-head { display: flex; align-items: flex-end; gap: 20px; padding: 0 26px 18px; margin-top: -54px; flex-wrap: wrap; }
.tg-prof-av { position: relative; width: 128px; height: 128px; flex: 0 0 128px; border-radius: 50%; border: 5px solid #fff; background: #fff; box-shadow: 0 6px 18px rgba(15, 26, 51, .12); }
.tg-prof-av img, .tg-prof-av .tg-prof-letter { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; }
.tg-prof-letter { align-items: center; justify-content: center; background: var(--tg-grad-box); color: #fff; font-size: 52px; font-weight: 800; }
.tg-prof-dot { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; border: 3px solid #fff; }
.tg-prof-id { flex: 1; min-width: 220px; padding-top: 60px; }
.tg-prof-name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--tg-title); text-transform: none; border: 0; padding: 0; letter-spacing: -.01em; }
.tg-prof-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tg-rank { --c: var(--tg-purple); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--c); border-radius: 6px; padding: 4px 9px; }
.tg-rank-img img { max-height: 24px; vertical-align: middle; }
.tg-prof-status { font-size: 12.5px; color: var(--tg-text-dim); }
.tg-prof-status.is-on { color: #15803d; font-weight: 600; }
.tg-prof-admin { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.tg-prof-admin a { font-weight: 600; color: var(--tg-text-dim); }
.tg-prof-admin a:hover { color: var(--tg-purple); }
.tg-prof-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.tg-prof-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--tg-line); }
.tg-prof-stats li { flex: 1 1 150px; padding: 14px 26px; border-left: 1px solid var(--tg-line-soft); display: flex; flex-direction: column; gap: 2px; }
.tg-prof-stats li:first-child { border-left: 0; }
.tg-prof-stats span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tg-text-dim); }
.tg-prof-stats b { font-size: 15px; font-weight: 700; color: var(--tg-title); }

.tg-prof-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: start; }
.tg-prof-side { display: flex; flex-direction: column; gap: 16px; }
.tg-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.tg-dl dt { color: var(--tg-text-dim); font-weight: 500; margin: 0; }
.tg-dl dd { color: var(--tg-title); font-weight: 600; margin: 0; text-align: right; word-break: break-word; }
.tg-dl-stack { grid-template-columns: 1fr; gap: 2px; }
.tg-dl-stack dd { text-align: left; margin-bottom: 8px; }
.tg-dl-stack small { display: block; font-weight: 500; color: var(--tg-text-dim); }
.tg-prof-groups { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tg-line-soft); font-size: 12.5px; }
.tg-prof-groups label { display: block; color: var(--tg-text-dim); margin-bottom: 6px; }
.tg-prof-groups select { max-width: 70%; }
.tg-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tg-contacts a, .tg-contacts .tg-ct { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--tg-title); }
.tg-contacts a:hover { background: var(--tg-bg); }
.tg-contacts .icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--tg-purple-soft); color: var(--tg-purple); font-size: 15px; }
.tg-contacts span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tg-contacts small { font-size: 11px; font-weight: 500; color: var(--tg-text-dim); }
.tg-contacts .fa-twitch { background: #f3e8ff; color: #9146ff; }
.tg-contacts .fa-steam { background: #e8edf5; color: #1b2838; }
.tg-contacts .fa-instagram { background: #fdecf3; color: #d62976; }
.tg-contacts .fa-youtube-play { background: #fdecec; color: #e11d1d; }
.tg-contacts .fa-headphones { background: #eef0ff; color: #5865f2; }
.tg-contacts .fa-twitter { background: #eef3f8; color: #0f1419; }
.tg-contacts .fa-facebook { background: #ebf2ff; color: #1877f2; }
.tg-prof-mod { display: flex; gap: 14px; margin: 0; font-size: 13px; font-weight: 600; }

.tg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tg-line); margin: 0 0 14px; }
.tg-tabs button {
	border: 0; background: transparent; font: 600 14px/1 var(--tg-font); color: var(--tg-text-dim);
	padding: 12px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tg-tabs button.on { color: var(--tg-purple); border-bottom-color: var(--tg-purple); }
.tg-prof-pane { padding: 6px 0; }
#tg-tab-about { padding: 20px 24px; }
.tg-prof-bio { font-size: 14.5px; line-height: 1.7; color: var(--tg-text); white-space: pre-line; }
.tg-sub-h { font-size: 14px; font-weight: 700; color: var(--tg-title); margin: 22px 0 8px; text-transform: none; border: 0; padding: 0; }

.tg-act-list { list-style: none; margin: 0; padding: 0; }
.tg-act { display: flex; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--tg-line-soft); }
.tg-act:first-child { border-top: 0; }
.tg-act-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.tg-act-ic.is-topic { background: var(--tg-purple-soft); color: var(--tg-purple); }
.tg-act-ic.is-reply { background: #eaf1ff; color: var(--tg-blue); }
.tg-act-b { min-width: 0; flex: 1; }
.tg-act-h { margin: 0; font-size: 13.5px; color: var(--tg-text-dim); }
.tg-act-h a { font-weight: 700; color: var(--tg-title); }
.tg-act-h a:hover { color: var(--tg-purple); }
.tg-act-txt { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--tg-text); background: var(--tg-bg); border-radius: 10px; padding: 10px 12px; }
.tg-act-meta { margin: 6px 0 0; font-size: 12px; color: var(--tg-text-dim); }
.tg-act-meta a { font-weight: 600; color: var(--tg-text-dim); }

/* ---------- Editor visual (SCEditor) ---------- */
.tg-has-sce #format-buttons, .tg-has-sce #colour_palette, .tg-has-sce .colour-palette,
.tg-has-sce #smiley-box, .tg-has-sce .smiley-box { display: none !important; }
.tg-has-sce #message-box, .tg-has-sce .message-box { width: 100% !important; margin: 0 !important; }
.tg-has-sce textarea.tg-sce-src { display: none; }
.sceditor-container.tg-sce, div.sceditor-container {
	border: 1px solid var(--tg-line) !important; border-radius: 12px !important; background: #fff !important;
	box-shadow: none; font-family: var(--tg-font); overflow: hidden; min-height: 150px;
	width: 100% !important; box-sizing: border-box;
}
.sceditor-container:focus-within { border-color: #c4b0fb !important; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
div.sceditor-toolbar {
	background: #fafbfe !important; border-bottom: 1px solid var(--tg-line) !important; padding: 6px 8px !important;
	border-radius: 0 !important; display: flex; flex-wrap: wrap; gap: 2px; overflow: visible;
}
div.sceditor-group { background: transparent !important; border: 0 !important; margin: 0 !important; padding: 0 6px 0 0 !important; border-right: 1px solid var(--tg-line) !important; border-radius: 0 !important; display: inline-flex; }
div.sceditor-group:last-child { border-right: 0 !important; }
a.sceditor-button { width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 8px !important; display: inline-flex !important; align-items: center; justify-content: center; border: 0 !important; }
a.sceditor-button div, a.sceditor-button svg { background-image: none !important; width: 16px !important; height: 16px !important; margin: 0 !important; fill: #46557a; color: #46557a; }
a.sceditor-button:hover { background: #fff !important; box-shadow: 0 1px 2px rgba(15, 26, 51, .12) !important; }
a.sceditor-button:hover svg { fill: var(--tg-purple); }
a.sceditor-button.active { background: var(--tg-purple-soft) !important; box-shadow: none !important; }
a.sceditor-button.active svg { fill: var(--tg-purple); }
div.sceditor-container iframe, div.sceditor-container textarea { background: #fff !important; color: var(--tg-text) !important; }
div.sceditor-container textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; padding: 14px 16px !important; box-sizing: border-box; }
div.sceditor-grip { background-image: none !important; height: 8px !important; }
div.sceditor-dropdown {
	border: 1px solid var(--tg-line) !important; border-radius: 12px !important; box-shadow: 0 12px 30px rgba(15, 26, 51, .14) !important;
	padding: 12px !important; font-family: var(--tg-font) !important; background: #fff !important; z-index: 2000 !important;
}
div.sceditor-dropdown label, .tg-dd-l { display: block; font-size: 12px; font-weight: 600; color: var(--tg-text-dim); margin: 0 0 6px; }
div.sceditor-dropdown input[type=text], div.sceditor-dropdown input[type=url], .tg-dd-i {
	width: 260px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--tg-line); border-radius: 8px; padding: 8px 10px; font: 13px var(--tg-font); margin: 0 0 10px;
}
div.sceditor-dropdown .button {
	background: var(--tg-purple) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	font: 600 13px var(--tg-font) !important; padding: 8px 14px !important; cursor: pointer; box-shadow: none !important; text-shadow: none !important;
}
.tg-size-opt { display: block; padding: 6px 10px; border-radius: 8px; color: var(--tg-title) !important; font-weight: 600; }
.tg-size-opt:hover { background: var(--tg-purple-soft); color: var(--tg-purple) !important; }
div.sceditor-color-option { border-radius: 4px; }
div.sceditor-emoticons, div.sceditor-insertemoticon { max-width: 300px; }
div.sceditor-insertemoticon img, div.sceditor-emoticons img { padding: 3px; border-radius: 6px; cursor: pointer; }
div.sceditor-insertemoticon img:hover { background: var(--tg-purple-soft); }
.sceditor-maximize { z-index: 3000 !important; }

/* ---------- Barra inferior (celular) ---------- */
.tg-bnav { display: none; }
@media (max-width: 900px) {
	.tg-bnav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
		border-top: 1px solid var(--tg-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.tg-bnav a {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative;
		font-size: 10.5px; font-weight: 600; color: var(--tg-text-dim); padding: 4px 0; border-radius: 10px;
	}
	.tg-bnav a .icon { font-size: 19px; line-height: 1; }
	.tg-bnav a.on { color: var(--tg-purple); }
	.tg-bnav a.is-cta { color: var(--tg-purple); }
	.tg-bnav-n { position: absolute; top: 0; left: 52%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--tg-red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; box-sizing: border-box; }
	body.tg-has-bnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
	.tg-frow { grid-template-columns: 46px minmax(0, 1fr) 100px 210px; }
	.tg-srow { grid-template-columns: 40px minmax(0, 1fr) 160px; }
	.tg-srow-stats { display: none; }
	.tg-feat-track { grid-auto-columns: minmax(250px, calc((100% - 16px) / 2)); }
}
@media (max-width: 900px) {
	.tg-prof-grid { grid-template-columns: 1fr; }
	.tg-prof-side { order: 2; }
}
@media (max-width: 760px) {
	.tg-frow { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
	.tg-fico { width: 42px; height: 42px; font-size: 17px; }
	.tg-fstats { display: none; }
	.tg-flast { grid-column: 2; padding-left: 0; border-left: 0; }
	.tg-srow { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 16px; gap: 11px; }
	.tg-srow .tg-av-md { --s: 36px; }
	.tg-srow-last { display: none; }
	.tg-srow h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.tg-box-h { padding: 12px 16px; }
	.tg-feat-track { grid-auto-columns: 82%; padding: 14px 16px 16px; gap: 12px; }
	.tg-cat-h { padding: 12px 12px 12px 16px; }
	.tg-ticker-in { height: 36px; gap: 10px; }
	.tg-prof-cover { height: 130px; }
	.tg-prof-head { padding: 0 18px 16px; margin-top: -46px; gap: 14px; }
	.tg-prof-av { width: 96px; height: 96px; flex-basis: 96px; }
	.tg-prof-id { padding-top: 0; min-width: 100%; }
	.tg-prof-name { font-size: 22px; }
	.tg-prof-stats li { flex-basis: 45%; padding: 12px 18px; }
	.tg-prof-stats li:nth-child(odd) { border-left: 0; }
	.tg-act { padding: 14px 16px; }
}

/* Correções 2.0.1 */
.tg-frow, .tg-frow[class*="forum_"] { background-image: none !important; }
.tg-srow h3 { display: flex; align-items: center; min-width: 0; white-space: normal; }
.tg-srow h3 a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-srow h3 .tg-pin { flex: 0 0 auto; }

/* ---------- 2.0.2: lista de tópicos limpa (viewforum, busca) ---------- */
.forabg, .forumbg {
	background: #fff !important; border: 1px solid var(--tg-line); box-shadow: var(--tg-shadow);
	border-radius: var(--tg-radius);
}
ul.topiclist li.header { background: #fafbfe; border-bottom: 1px solid var(--tg-line); padding: 10px 18px; }
li.header dt, li.header dd { color: var(--tg-text-dim) !important; font-size: 11px; letter-spacing: .06em; }
li.header dt .list-inner a, .forabg .header a, .forumbg .header a { color: var(--tg-title) !important; }
ul.topiclist li.row { border-top: 1px solid var(--tg-line-soft); padding: 8px 12px; }
ul.topiclist li.row:first-child { border-top: 0; }
ul.topiclist li.row:hover { background: var(--tg-hover); }
ul.topiclist li.row.sticky { background: #fffdf7; }
ul.topiclist li.row.announce, ul.topiclist li.row.global-announce { background: #fbf9ff; }

/* Com avatar: o selo de estado vira um pequeno indicador sobre o avatar */
dl.row-item.tg-has-av::before {
	width: 20px !important; height: 20px !important; line-height: 17px !important; font-size: 9px !important;
	border-radius: 50% !important; left: 40px !important; top: 50% !important; margin-top: 4px !important;
	border: 2px solid #fff; box-sizing: border-box; z-index: 2;
}
dl.row-item.tg-has-av[class^="topic_read"]::before, dl.row-item.tg-has-av[class*=" topic_read"]::before { display: none; }
dl.row-item.tg-has-av[class*="_unread"] .tg-topic-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tg-purple); }
dl.row-item.tg-has-av > dt .tg-topic-av { margin-left: 8px; }
dl.row-item.tg-has-av a.row-item-link { left: 8px !important; width: 40px !important; height: 40px !important; border-radius: 50%; }
dd.lastpost > span { display: block; }
dd.lastpost .tg-lp-av { margin-top: 3px; }
@media (max-width: 700px) {
	dl.row-item.tg-has-av > dt .tg-topic-av { --s: 34px; margin-left: 2px; }
	dl.row-item.tg-has-av::before { left: 26px !important; }
}

/* ---------- 2.0.3: nova marca Tg Esports 2027 ---------- */
.tg-fnav-logo img { height: 30px; width: auto; }
@media (max-width: 700px) { .tg-fnav-logo img { height: 24px; } }

/* ---------- 2.0.4: "FÓRUM" fininho abaixo da marca ---------- */
.tg-fnav-logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; line-height: 1; }
.tg-fnav-logo img { height: 28px; }
.tg-fnav-logo .tg-fnav-badge {
	background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
	padding: 0 !important; margin: 0 0 0 27.7%; display: block;
	font-size: 8.5px; font-weight: 300; letter-spacing: .52em; text-transform: uppercase; line-height: 1;
	color: #5c6b8a !important;
}
@media (max-width: 700px) {
	.tg-fnav-logo img { height: 23px; }
	.tg-fnav-logo .tg-fnav-badge { font-size: 7.5px; letter-spacing: .46em; }
}

/* ---------- 2.0.5: marca conforme o manual TG Esports 2027 ----------
   Lockup no mínimo de 32 px; respiro livre de meia altura do ladrilho (16 px);
   o rótulo "Fórum" fica fora do respiro, depois de um filete fino (como "Agenda de partidas" no portal). */
:root { --tg-purple-soft: #f1eafe; }
.tg-fnav-logo { flex-direction: row; align-items: center; gap: 16px; padding: 4px 0; }
.tg-fnav-logo img { height: 32px; width: auto; }
.tg-fnav-logo .tg-fnav-badge {
	margin: 0; padding: 0 0 0 16px !important; border-left: 1px solid #e3e8f5 !important; height: 20px;
	display: inline-flex; align-items: center;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #5c6b8a !important;
}
@media (max-width: 700px) {
	.tg-fnav-logo { gap: 12px; }
	.tg-fnav-logo img { height: 32px; }
	.tg-fnav-logo .tg-fnav-badge { padding-left: 12px !important; font-size: 9px; letter-spacing: .2em; }
}

/* ---------- 2.0.6: menu do fórum mais compacto ---------- */
.tg-fnav-in { min-height: 58px; gap: 16px; }
.tg-fnav-tabs { overflow: visible; gap: 2px; flex: 1 1 auto; }
.tg-fnav-tabs .tg-tab {
	padding: 7px 11px; border-radius: 8px; gap: 4px;
	font-family: Poppins, Inter, system-ui, sans-serif; font-size: 13.5px; font-weight: 500;
	color: #3b4766 !important; background: none; cursor: pointer; list-style: none;
}
.tg-fnav-tabs .tg-tab:hover { background: #f4f1fd; color: #7c3aed !important; }
.tg-fnav-tabs .tg-tab.on { background: none; color: #7c3aed !important; font-weight: 600; box-shadow: inset 0 -2px 0 #7c3aed; border-radius: 0; }
.tg-mais { position: relative; }
.tg-mais > summary::-webkit-details-marker { display: none; }
.tg-mais > summary .icon { font-size: 13px; opacity: .7; transition: transform .15s; }
.tg-mais[open] > summary .icon { transform: rotate(180deg); }
.tg-mais-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 200px; padding: 6px;
	background: #fff; border: 1px solid #e6eaf3; border-radius: 12px; box-shadow: 0 16px 40px -14px rgba(15, 26, 51, .28);
}
.tg-mais-menu a {
	display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
	font-size: 13.5px; font-weight: 500; color: #0f1a33 !important; text-decoration: none !important;
}
.tg-mais-menu a .icon { color: #8a96b0; width: 16px; }
.tg-mais-menu a:hover, .tg-mais-menu a.on { background: #f4f1fd; color: #7c3aed !important; }
.tg-mais-menu a:hover .icon, .tg-mais-menu a.on .icon { color: #7c3aed; }
.tg-fnav-search { max-width: 240px; }
@media (max-width: 1100px) { .tg-fnav-search { max-width: 190px; } }
@media (max-width: 700px) {
	.tg-fnav-in { min-height: 52px; }
	.tg-fnav-tabs { overflow: visible; padding-bottom: 4px; }
	.tg-fnav-tabs .tg-tab { padding: 6px 9px; font-size: 13px; }
	.tg-mais-menu { left: auto; right: 0; }
}

/* ---------- 2.0.7: tipografia 2027 (ativa sozinha em 01/01/2027 via classe .tg-2027) ---------- */
html.tg-2027 { --tg-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html.tg-2027 body,
html.tg-2027 .tg-fnav-tabs .tg-tab,
html.tg-2027 .tgp, html.tg-2027 .tgp *, html.tg-2027 #tgl-pop-placar, html.tg-2027 #tgl-pop-placar * { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; }
html.tg-2027 h1, html.tg-2027 h2, html.tg-2027 h3,
html.tg-2027 .topic-title, html.tg-2027 a.forumtitle, html.tg-2027 a.topictitle,
html.tg-2027 .tg-srow h3, html.tg-2027 .tg-cat-h, html.tg-2027 .tg-widget-t,
html.tg-2027 .tg-page-hero h1, html.tg-2027 .tg-equipe-h, html.tg-2027 .postbody h3 { font-family: "Lexend", "Inter", system-ui, sans-serif !important; letter-spacing: -.01em; }
html.tg-2027 .icon, html.tg-2027 .fa { font-family: FontAwesome !important; }
.tg-mais[open] > summary .icon { transform: none; }
@media (max-width: 1000px) {
	.tg-fnav-in { flex-wrap: wrap; row-gap: 2px; padding-top: 6px; }
	.tg-fnav-tabs { order: 3; flex: 1 0 100%; width: 100%; max-width: none; padding-bottom: 4px; }
	.tg-fnav-search { margin-left: auto; }
	.tg-fnav-logo { margin-right: auto; }
	.tg-fnav-search { margin-left: 0; }
}