/* Top Live Channels — white, Twitch/Kick-style. Scoped to .tlc so themes don't collide. */
.tlc{
	--tlc-bg:#fff; --tlc-fg:#0e0e10; --tlc-mute:#6b6b76; --tlc-line:#ececf1; --tlc-soft:#f6f6f9;
	--tlc-accent:#9146ff; --tlc-live:#eb0400; --tlc-r:10px;
	font:14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Inter,sans-serif;
	color:var(--tlc-fg); background:var(--tlc-bg); max-width:1200px; margin:0 auto;
}
.tlc *{box-sizing:border-box}
.tlc button,.tlc input,.tlc select{font:inherit;color:inherit}

/* header */
.tlc-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin:0 0 14px}
.tlc-h{font-size:24px;font-weight:800;letter-spacing:-.02em;margin:0}
.tlc-stats{display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--tlc-mute);font-size:13px}
.tlc-stats b{color:var(--tlc-fg);font-variant-numeric:tabular-nums}
.tlc-updated:empty{display:none}

/* filters */
.tlc-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:0 0 12px}
.tlc-chips{display:flex;gap:6px;flex-wrap:wrap}
.tlc-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--tlc-line);background:var(--tlc-bg);border-radius:999px;padding:6px 12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.tlc-chip i{width:8px;height:8px;border-radius:50%;background:var(--pc,#999)}
.tlc-chip:hover{background:var(--tlc-soft)}
.tlc-chip[aria-pressed="true"]{background:var(--tlc-fg);border-color:var(--tlc-fg);color:#fff}
.tlc-controls{display:flex;gap:6px;flex-wrap:wrap}
.tlc-controls input,.tlc-controls select,.tlc-rows select{border:1px solid var(--tlc-line);background:var(--tlc-soft);border-radius:8px;padding:7px 10px;min-height:36px}
.tlc-q{width:220px}
.tlc-controls input:focus,.tlc-controls select:focus{outline:2px solid var(--tlc-accent);outline-offset:-1px;background:#fff}

/* table */
.tlc-wrap{border:1px solid var(--tlc-line);border-radius:var(--tlc-r);overflow:hidden}
.tlc-table{width:100%;border-collapse:collapse;margin:0;border:0;transition:opacity .15s}
.tlc.is-loading .tlc-table{opacity:.5}
.tlc-table th{background:var(--tlc-soft);color:var(--tlc-mute);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:10px 12px;border:0;border-bottom:1px solid var(--tlc-line)}
.tlc-table td{padding:10px 12px;border:0;border-bottom:1px solid var(--tlc-line);vertical-align:middle}
.tlc-row:last-child td{border-bottom:0}
.tlc-row:hover td{background:#fafafc}
.tlc-num{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.tlc-rank{width:44px;color:var(--tlc-mute);font-weight:700;font-variant-numeric:tabular-nums}
.tlc-row:nth-child(-n+3) .tlc-rank{color:var(--tlc-fg)}

.tlc-chan-link{display:flex;align-items:center;gap:10px;text-decoration:none!important;color:inherit!important;min-width:0}
.tlc-av{flex:0 0 40px;width:40px;height:40px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center;color:#fff;font-weight:800;font-size:14px;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--tlc-line)}
.tlc-chan-text{display:flex;flex-direction:column;min-width:0}
.tlc-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlc-chan-link:hover .tlc-name{color:var(--tlc-accent)}
.tlc-meta{display:flex;gap:6px;align-items:center;margin-top:2px}
.tlc-plat{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--tlc-mute)}
.tlc-plat::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--pc)}
.tlc-lang{font-size:10px;font-weight:700;letter-spacing:.04em;padding:1px 5px;border-radius:4px;background:var(--tlc-soft);color:var(--tlc-mute)}

.tlc-stream{max-width:380px}
.tlc .tlc-stream .tlc-cat{display:inline-block;border:0;background:none;box-shadow:none;padding:0;margin:0 0 2px;color:var(--tlc-accent);font-weight:600;font-size:13px;line-height:1.4;cursor:pointer;text-align:left;text-transform:none;letter-spacing:0;border-radius:0}
.tlc-cat:hover{text-decoration:underline}
.tlc-title{display:block;color:var(--tlc-mute);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:380px}

.tlc-status{white-space:nowrap}
.tlc-live{display:inline-block;background:var(--tlc-live);color:#fff;font-size:10px;font-weight:800;letter-spacing:.05em;padding:2px 6px;border-radius:4px}
.tlc-up{color:var(--tlc-mute);font-size:13px;font-variant-numeric:tabular-nums}
.tlc-viewers{font-weight:800}
.tlc-viewers .tlc-full::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--tlc-live);margin-right:6px;vertical-align:1px}
.tlc-short{display:none}
.tlc-empty td{text-align:center;color:var(--tlc-mute);padding:40px 12px}

/* pager */
.tlc-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:14px 0 0;color:var(--tlc-mute);font-size:13px}
.tlc-pager button{border:1px solid var(--tlc-line);background:#fff;border-radius:8px;padding:7px 14px;font-weight:600;cursor:pointer}
.tlc-pager button:disabled{opacity:.4;cursor:default}
.tlc-pager b{color:var(--tlc-fg)}
.tlc-rows{display:inline-flex;align-items:center;gap:6px}

@media (max-width:1000px){ .tlc-peak{display:none} }

/* ---------- mobile: rows become cards ---------- */
@media (max-width:720px){
	.tlc-h{font-size:20px}
	.tlc-filters{flex-direction:column;align-items:stretch}
	.tlc,.tlc-filters,.tlc-head{min-width:0;max-width:100%}
	.tlc-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
	.tlc-chips::-webkit-scrollbar{display:none}
	.tlc-chip{flex:0 0 auto}
	.tlc-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
	.tlc-controls input,.tlc-controls select{width:100%;min-width:0}
	.tlc-q,.tlc-sort{grid-column:1/-1}
	.tlc-row .tlc-peak{display:none!important}
	.tlc-wrap{border:0;border-radius:0;overflow:visible}
	.tlc-table thead{display:none}
	.tlc-table,.tlc-table tbody{display:block}
	.tlc-row{
		display:grid;grid-template-columns:26px 1fr auto;
		grid-template-areas:"rank chan viewers" ". stream stream" ". status followers";
		gap:4px 8px;padding:12px;margin:0 0 8px;border:1px solid var(--tlc-line);border-radius:var(--tlc-r);background:#fff
	}
	.tlc-row:hover td{background:none}
	.tlc-table td{display:block;padding:0;border:0!important}
	.tlc-rank{grid-area:rank;width:auto;align-self:center}
	.tlc-chan{grid-area:chan;min-width:0}
	.tlc-viewers{grid-area:viewers;align-self:center;font-size:16px}
	.tlc-stream{grid-area:stream;max-width:none;min-width:0}
	.tlc-title{max-width:100%}
	.tlc-status{grid-area:status}
	.tlc-followers{grid-area:followers;color:var(--tlc-mute);font-size:12px}
	.tlc-followers .tlc-short::after{content:" followers"}
	.tlc-num .tlc-full{display:none}
	.tlc-num .tlc-short{display:inline}
	.tlc-viewers .tlc-short::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--tlc-live);margin-right:5px;vertical-align:2px}
	.tlc-av{flex-basis:36px;width:36px;height:36px}
	.tlc-empty{display:block;border:1px dashed var(--tlc-line);border-radius:var(--tlc-r)}
	.tlc-pager{gap:8px}
	.tlc-pageinfo{order:-1;width:100%;text-align:center}
}
