/* Gaming Updates Chat styles (1.4.0) */
.guc-chat{ background: var(--guc-chat-bg, #0f172a); padding: 16px; border-radius: 16px; overflow: hidden; }
.guc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.guc-item{ display:flex; align-items:flex-start; gap:10px; }
.guc-item.guc-right{ flex-direction: row-reverse; }
.guc-side{ width:48px; height:48px; flex:0 0 48px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.guc-side--empty{ width:48px; height:48px; display:inline-block; }
.guc-avatar{ width:48px; height:48px; object-fit:cover; border-radius:50%; display:block; border:2px solid var(--guc-bubble-border, transparent); }
.guc-bubble{ background: var(--guc-bubble-bg, #1f2937); color: var(--guc-bubble-text, #ffffff); padding:12px 14px; border-radius:18px; max-width:100%;
	flex:1 1 auto; word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; line-height:1.5; box-shadow: 0 2px 6px rgba(0,0,0,.15); border:1px solid var(--guc-bubble-border, transparent); font-size: var(--guc-text-size, 16px); }
.guc-author{ font-weight:600; margin-bottom:6px; color: var(--guc-author-text, #93c5fd); font-size: var(--guc-author-size, 14px); }
.guc-time{ font-size:.8em; opacity:.75; margin:4px 0 8px; }
.guc-text{ white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.guc-text a{ color: var(--guc-link, #3b82f6); text-decoration: underline; }
.guc-toggle{ display:inline-block; margin-top:6px; background:transparent; color: var(--guc-link, #3b82f6); border:none; padding:0; cursor:pointer; text-decoration: underline; }
.guc-empty{ color:#cbd5e1; }

/* Media thumbnail under text */
.guc-media{ margin-top:8px; }
.guc-media-thumb{ width:140px; height:84px; object-fit:cover; border-radius:10px; border:1px solid var(--guc-bubble-border, rgba(255,255,255,.1)); cursor:pointer; display:block; }
.guc-media-thumb--video{ width:140px; height:84px; background:rgba(0,0,0,.3); border-radius:10px; position:relative; display:flex; align-items:center; justify-content:center; }
.guc-play{ font-size:24px; line-height:1;}

/* Lightbox */
.guc-lightbox{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999; }
.guc-lightbox.is-open{ display:flex; }
.guc-lightbox__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.7); }
.guc-lightbox__content{ position:relative; max-width:min(90vw, 1000px); max-height:90vh; width:90vw; background:transparent; display:flex; align-items:center; justify-content:center; }
.guc-lightbox__inner{ width:100%; height:auto; max-height:90vh; display:flex; align-items:center; justify-content:center; }
.guc-lightbox__inner img{ max-width:100%; max-height:90vh; border-radius:12px; }
.guc-lightbox__inner video, .guc-lightbox__inner iframe{ width:100%; height:min(56.25vw, 80vh); max-height:80vh; border:0; border-radius:12px; background:#000; }
.guc-lightbox__close{ position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%; border:none; background:#111827; color:#fff; font-size:20px; line-height:1; cursor:pointer; }

/* Responsive tweaks */
@media (max-width: 600px){
	.guc-chat{ padding:12px; }
	.guc-side, .guc-side--empty, .guc-avatar{ width:40px; height:40px; }
	.guc-bubble{ border-radius:14px; }
	.guc-media-thumb, .guc-media-thumb--video{ width:120px; height:72px; }
	.guc-author{ font-size: calc(var(--guc-author-size, 14px) - 1px); }
	.guc-bubble{ font-size: calc(var(--guc-text-size, 16px) - 1px); }
}
