:root {
	--ant-label-bg: #8f0b20;
	--ant-label-text: #ffffff;
	--ant-weather-bg: #6e0818;
	--ant-weather-text: #ffffff;
	--ant-ticker-bg: #c8102e;
	--ant-news-text: #ffffff;
	--ant-speed: 25s;
}

.ant-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	align-items: stretch;
	direction: rtl;
	height: 44px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
	font-family: "Tahoma", "Segoe UI", "Arial", sans-serif;
	overflow: hidden;
}

.ant-bar.ant-pos-bottom {
	bottom: 0;
}

.ant-bar.ant-pos-top {
	top: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ant-bar.ant-is-preview {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	top: auto;
}

/* Order (RTL, right -> left): label badge, weather (dot+icon+temp), then the news ticker filling the rest. */

.ant-label-badge {
	order: 1;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	background: var(--ant-label-bg);
	color: var(--ant-label-text);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.ant-weather {
	order: 2;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 16px;
	background: var(--ant-weather-bg);
	color: var(--ant-weather-text);
	font-size: 14px;
	white-space: nowrap;
}

.ant-weather-icon {
	display: inline-flex;
	align-items: center;
	color: var(--ant-weather-text);
}

.ant-weather-temp {
	font-weight: 700;
	color: var(--ant-weather-text);
}

.ant-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff2d2d;
	box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.7);
	animation: ant-pulse 1.6s ease-out infinite;
	flex: 0 0 auto;
}

@keyframes ant-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.6);
	}
	70% {
		box-shadow: 0 0 0 7px rgba(255, 45, 45, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 45, 45, 0);
	}
}

.ant-ticker-viewport {
	order: 3;
	flex: 1 1 auto;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	background: var(--ant-ticker-bg);
	min-width: 0;
}

.ant-ticker-track {
	display: inline-flex;
	flex: 0 0 auto; /* never let the flex parent squeeze/clip long headlines */
	width: max-content;
	white-space: nowrap;
	align-items: center;
	will-change: transform;
	/*
	 * Positioning/motion is handled entirely by JS (ant-frontend.js), not CSS
	 * @keyframes. A percentage-based CSS keyframe loop (0% -> -50%) always starts
	 * with content already sitting inside the viewport, which looks like the text
	 * "pops in" rather than travelling in from off-screen. JS instead starts the
	 * track fully off-screen to the right and animates it left frame by frame, so
	 * the viewport is genuinely empty on load and headlines glide in one by one.
	 *
	 * This value is just a safe starting position in case JS hasn't run yet:
	 * 100% here is relative to the track's OWN (very wide, multi-headline) box,
	 * which is always wider than the viewport, so it's guaranteed to start fully
	 * hidden -- no flash of overlapping/duplicated text before JS takes over.
	 */
	transform: translateX(100%);
}

.ant-ticker-item {
	color: var(--ant-news-text);
	font-size: 14px;
	padding: 0 10px;
}

.ant-ticker-item a {
	color: var(--ant-news-text);
	text-decoration: none;
}

.ant-ticker-item a:hover {
	text-decoration: underline;
}

.ant-ticker-empty {
	opacity: 0.85;
}

.ant-ticker-sep {
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
}

.ant-ticker-sep:last-child {
	display: none;
}

@media (max-width: 600px) {
	.ant-bar {
		height: 38px;
	}
	.ant-label-badge {
		padding: 0 10px;
		font-size: 13px;
	}
	.ant-weather {
		padding: 0 10px;
		font-size: 12px;
	}
	.ant-ticker-item {
		font-size: 12.5px;
	}
}
