.gls-wrap {
	--gls-bg: #111511;
	--gls-card: #1b211b;
	--gls-line: #2b332b;
	--gls-text: #eef2ec;
	--gls-muted: #9aa69a;
	--gls-live: #ff3b3b;
	background: var(--gls-bg);
	color: var(--gls-text);
	border-radius: 14px;
	padding: 20px;
	font-family: inherit;
}
.gls-wrap * { box-sizing: border-box; }

.gls-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.gls-title { margin: 0; font-size: 1.4em; color: var(--gls-text); display: flex; align-items: center; gap: 10px; }
.gls-count { color: var(--gls-muted); font-weight: 500; }
.gls-dot { width: 12px; height: 12px; border-radius: 50%; background: #555; }
.gls-wrap.has-live .gls-dot { background: var(--gls-live); box-shadow: 0 0 0 0 rgba(255,59,59,.6); animation: gls-pulse 1.6s infinite; }
@keyframes gls-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.gls-updated { font-size: .8em; color: var(--gls-muted); }

/* Lecteur principal */
.gls-stage { margin-bottom: 18px; background: var(--gls-card); border: 1px solid var(--gls-line); border-radius: 12px; overflow: hidden; }
.gls-stage-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.gls-stage-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gls-stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.gls-stage-bar .gls-meta { padding: 0; flex: 1 1 320px; }
.gls-stage-actions { display: flex; gap: 8px; align-items: center; }
.gls-stage-actions a, .gls-close {
	font: inherit; font-size: .85em; padding: 7px 12px; border-radius: 8px; cursor: pointer;
	border: 1px solid var(--gls-line); background: transparent; color: var(--gls-text); text-decoration: none;
}
.gls-stage-actions a:hover, .gls-close:hover { border-color: var(--gls-muted); }

/* Mosaïque */
.gls-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gls-grid[data-n="1"] { grid-template-columns: minmax(0, 760px); }
.gls-grid[data-n="2"] { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.gls-tile {
	background: var(--gls-card); border: 1px solid var(--gls-line); border-radius: 12px; overflow: hidden;
	transition: transform .15s ease, border-color .15s ease;
}
.gls-tile:hover { transform: translateY(-2px); border-color: var(--pc); }
.gls-tile.is-featured { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); }

.gls-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; padding: 0; margin: 0; overflow: hidden; }
button.gls-media { cursor: pointer; }
.gls-media img, .gls-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.gls-nothumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 45%, #000), #0b0d0b 75%); }
.gls-live { position: absolute; top: 8px; left: 8px; background: var(--gls-live); color: #fff; font: 700 11px/1 sans-serif; letter-spacing: .04em; padding: 5px 7px; border-radius: 4px; }
.gls-vchip { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; font: 600 12px/1 sans-serif; padding: 5px 7px; border-radius: 4px; }
.gls-playicon { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
	background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.gls-playicon::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.gls-play:hover .gls-playicon, .gls-play:focus-visible .gls-playicon { opacity: 1; }

.gls-meta { display: flex; gap: 10px; padding: 10px 12px 12px; align-items: flex-start; min-width: 0; }
.gls-text { min-width: 0; flex: 1; }
.gls-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.gls-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pc); }
.gls-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 700 13px/1 sans-serif; }
.gls-avatar-lg.gls-initials { font-size: 24px; }
.gls-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gls-stream-title { font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0; }
.gls-sub { font-size: .8em; color: var(--gls-muted); }
.gls-viewers { color: var(--gls-text); }

.gls-plat { font: 700 10px/1 sans-serif; text-transform: uppercase; letter-spacing: .04em; padding: 3px 6px; border-radius: 4px; background: var(--pc); color: #fff; }
.gls-plat--kick { color: #0b0d0b; }

.gls-empty { margin: 4px 0 0; padding: 26px; text-align: center; color: var(--gls-muted); border: 1px dashed var(--gls-line); border-radius: 12px; }

/* Hors ligne */
.gls-offline { margin-top: 22px; }
.gls-offline h3 { font-size: .85em; text-transform: uppercase; letter-spacing: .06em; color: var(--gls-muted); margin: 0 0 10px; }
.gls-offline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gls-offline-list a {
	display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px;
	background: var(--gls-card); border: 1px solid var(--gls-line); color: var(--gls-text); text-decoration: none; font-size: .85em;
}
.gls-offline-list a:hover { border-color: var(--gls-muted); }
.gls-offline-list .gls-avatar { width: 26px; height: 26px; flex-basis: 26px; filter: grayscale(1); opacity: .7; font-size: 10px; }

@media (max-width: 600px) {
	.gls-wrap { padding: 14px; border-radius: 10px; }
	.gls-grid, .gls-grid[data-n="2"] { grid-template-columns: 1fr; }
}
