/* ============================================================
   Zocker-Loge Loot Stream – Steam-Style
   ============================================================ */

/* ---------- Vertikaler Haupt-Ticker ---------- */
.zl-loot-stream {
	background: #1b2838;
	border: 1px solid #2a475e;
	border-radius: 6px;
	overflow: hidden;
	font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
	color: #c7d5e0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.zl-ls-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: linear-gradient(90deg, #2a475e, #1b2838);
	border-bottom: 1px solid #2a475e;
}

.zl-ls-title {
	font-weight: 700;
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.zl-ls-live {
	font-size: 11px;
	color: #a4d007;
	font-weight: 700;
	animation: zl-ls-pulse 1.8s ease-in-out infinite;
}

@keyframes zl-ls-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.zl-ls-body {
	height: var(--ls-height, 420px);
	overflow-y: auto;
	padding: 4px 0;
	scrollbar-width: thin;
	scrollbar-color: #2a475e #1b2838;
}

.zl-ls-body::-webkit-scrollbar {
	width: 6px;
}
.zl-ls-body::-webkit-scrollbar-track {
	background: #1b2838;
}
.zl-ls-body::-webkit-scrollbar-thumb {
	background: #2a475e;
	border-radius: 3px;
}

.zl-ls-entry {
	display: flex;
	gap: 10px;
	padding: 9px 14px;
	border-bottom: 1px solid rgba(42, 71, 94, 0.35);
	transition: background 0.2s;
	animation: zl-ls-fadein 0.35s ease;
}

.zl-ls-entry:hover {
	background: rgba(102, 192, 244, 0.06);
}

@keyframes zl-ls-fadein {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.zl-ls-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 3px;
	object-fit: cover;
	border: 1px solid #2a475e;
	display: block;
}

.zl-ls-content {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

.zl-ls-name {
	color: #66c0f4;
	font-weight: 600;
	text-decoration: none;
	margin-right: 4px;
	font-size: 13px;
}

.zl-ls-name:hover {
	color: #fff;
}

.zl-ls-tag {
	color: #66c0f4;
	font-weight: 700;
	margin-right: 2px;
}

.zl-ls-msg {
	color: #c7d5e0;
	font-size: 13px;
}

.zl-ls-msg strong {
	color: #fff;
}

.zl-ls-msg em {
	color: #8f98a0;
	font-style: normal;
}

.zl-ls-time {
	display: block;
	font-size: 11px;
	color: #8f98a0;
	margin-top: 2px;
}

.zl-ls-empty {
	padding: 36px 14px;
	text-align: center;
	color: #8f98a0;
	font-style: italic;
	font-size: 13px;
}

/* Event-Farben */
.zl-ls-levelup .zl-ls-msg   { color: #e8b43a; }
.zl-ls-loot .zl-ls-msg,
.zl-ls-craft .zl-ls-msg     { color: #ff9b2f; }
.zl-ls-worldboss .zl-ls-msg,
.zl-ls-achievement .zl-ls-msg { color: #a4d007; }
.zl-ls-title .zl-ls-msg     { color: #c084fc; }
.zl-ls-library .zl-ls-msg   { color: #66c0f4; }
.zl-ls-battle .zl-ls-msg    { color: #ff8a9a; }
.zl-ls-card_buy .zl-ls-msg,
.zl-ls-card_drop .zl-ls-msg { color: #66c0f4; }
.zl-ls-team .zl-ls-msg      { color: #a3cf06; }
.zl-ls-quest .zl-ls-msg     { color: #a3cf06; }
.zl-ls-social .zl-ls-msg    { color: #8f98a0; }
.zl-ls-shop .zl-ls-msg      { color: #e8b43a; }

.zl-ls-game_update .zl-ls-msg { color: #66c0f4; }
.zl-ls-sale .zl-ls-msg        { color: #a4d007; font-weight: 600; }
.zl-ls-h-item.zl-ls-game_update .zl-ls-h-msg { color: #66c0f4; }
.zl-ls-h-item.zl-ls-sale .zl-ls-h-msg        { color: #a4d007; }


/* ---------- Header-Ticker (horizontal) ---------- */
.zl-loot-stream-header {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(90deg, #171a21, #1b2838);
	border: 1px solid #2a475e;
	border-radius: 4px;
	padding: 6px 12px;
	overflow: hidden;
	font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #c7d5e0;
	line-height: 1.3;
}

.zl-ls-h-label {
	flex-shrink: 0;
	font-weight: 700;
	color: #a4d007;
	font-size: 11px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	white-space: nowrap;
	padding-right: 10px;
	border-right: 1px solid #2a475e;
}

.zl-ls-h-track-wrap {
	flex: 1;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.zl-ls-h-track {
	display: flex;
	align-items: center;
	gap: 0;
	width: max-content;
	animation: zl-ls-scroll var(--ls-speed, 40s) linear infinite;
}

.zl-ls-h-track:hover {
	animation-play-state: paused;
}

@keyframes zl-ls-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.zl-ls-h-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 18px;
	white-space: nowrap;
	border-right: 1px solid rgba(42, 71, 94, 0.5);
}

.zl-ls-h-avatar {
	width: 22px;
	height: 22px;
	border-radius: 2px;
	object-fit: cover;
	border: 1px solid #2a475e;
	flex-shrink: 0;
}

.zl-ls-h-name {
	color: #66c0f4;
	font-weight: 600;
	text-decoration: none;
}

.zl-ls-h-name:hover {
	color: #fff;
}

.zl-ls-h-msg {
	color: #c7d5e0;
}

.zl-ls-h-msg strong {
	color: #fff;
}

.zl-ls-h-time {
	color: #8f98a0;
	font-size: 11px;
	margin-left: 4px;
}

/* Header Event-Farben */
.zl-ls-h-item.zl-ls-levelup .zl-ls-h-msg   { color: #e8b43a; }
.zl-ls-h-item.zl-ls-loot .zl-ls-h-msg,
.zl-ls-h-item.zl-ls-craft .zl-ls-h-msg     { color: #ff9b2f; }
.zl-ls-h-item.zl-ls-worldboss .zl-ls-h-msg,
.zl-ls-h-item.zl-ls-achievement .zl-ls-h-msg { color: #a4d007; }
.zl-ls-h-item.zl-ls-title .zl-ls-h-msg     { color: #c084fc; }
.zl-ls-h-item.zl-ls-library .zl-ls-h-msg   { color: #66c0f4; }
.zl-ls-h-item.zl-ls-team .zl-ls-h-msg      { color: #a3cf06; }

/* Responsive */
@media (max-width: 600px) {
	.zl-ls-entry {
		padding: 8px 10px;
	}
	.zl-ls-avatar img {
		width: 30px;
		height: 30px;
	}
	.zl-loot-stream-header {
		font-size: 11px;
		padding: 5px 8px;
	}
	.zl-ls-h-label {
		display: none;
	}
}
