/* ============================================================
   FOOTER — full-opacity body text (was 72% cream = weak contrast on dark green)
   ============================================================ */
.ekit-template-content-footer .elementor-icon-list-text,
.ekit-template-content-footer .elementor-widget-text-editor,
.ekit-template-content-footer .elementor-widget-text-editor p{ color:#F9F7F2 !important; }

/* ============================================================
   ROW 1 — News Ticker
   ============================================================ */
.mego-ticker{
	--ticker-speed: 30s;
	display:flex; align-items:center;
	height:38px; overflow:hidden;
	background:#0C2E1D; color:#fff;       /* footer dark green */
	border-bottom:none;                    /* removes the light line between the two rows */
	padding-left:90px;                     /* room for the big play button on the left */
	font-family:'Noto Sans Georgian', sans-serif;   /* legible Georgian + Latin */
}
/* apply the same font to the existing player (Row 2), overriding its inline system stack */
.custom-radio-player-container,
.custom-radio-player-container .station-name,
.custom-radio-player-container .current-track,
#radio-player, #radio-track{ font-family:'Noto Sans Georgian', sans-serif !important; }
.mego-ticker__label{
	flex:0 0 auto; align-self:stretch; display:flex; align-items:center;
	padding:0 14px; background:#E3000F; color:#fff;
	font-size:11px; font-weight:800; letter-spacing:1px;
}
.mego-ticker__viewport{ position:relative; flex:1 1 auto; height:100%; overflow:hidden; }

.mego-ticker__track{
	display:flex; align-items:center; height:100%;
	margin:0; padding:0; list-style:none;
	width:max-content; white-space:nowrap;
	will-change:transform;                         /* hardware-accelerated */
	animation:mego-ticker-scroll var(--ticker-speed) linear infinite;
}
/* pause-on-hover (and on keyboard focus) */
.mego-ticker:hover .mego-ticker__track,
.mego-ticker__track:focus-within{ animation-play-state:paused; }

.mego-ticker__item{ position:relative; display:flex; align-items:center; padding:0 28px; }
/* a dot before EVERY item → uniform separators incl. the loop seam (head & tail of the permanent ticker) */
.mego-ticker__item::before{
	content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
	width:5px; height:5px; border-radius:50%; background:#444;
}
.mego-ticker__item a{
	display:inline-flex; align-items:center; gap:8px;
	color:#ECECEC !important;   /* force legible light text over the theme's orange link colour */
	text-decoration:none; font-size:13px; font-weight:600;
}
.mego-ticker__item a:hover{ color:#fff !important; }

/* Breaking News styling */
/* Breaking badge — calmer from the start: a softened red, not the harsh #E3000F */
.mego-ticker__badge{
	background:#A6242E; color:#f3dfe1;
	font-size:11px; font-weight:700; letter-spacing:0;   /* Georgian: no uppercase / no tracking */
	padding:2px 7px; border-radius:3px; text-transform:none;
	transition:background-color .25s ease, color .25s ease, border-color .25s ease;
}
.mego-ticker__item.is-breaking .mego-ticker__text{ color:#fff; font-weight:700; }

/* Already opened ("read") breaking item — muted, blends into the bar, color barely noticeable.
   Each item is tracked by its own event id, so other unread breaking items keep the red badge. */
.mego-ticker__item.is-breaking.is-read .mego-ticker__badge{
	background:transparent; color:#9fb0a6; font-weight:600;
	border:1px solid rgba(255,255,255,0.22);
	padding:1px 6px;
}
.mego-ticker__item.is-breaking.is-read .mego-ticker__text{ color:#9fb0a6; font-weight:600; }

@keyframes mego-ticker-scroll{
	from{ transform:translateX(0); }
	to  { transform:translateX(-50%); }   /* set is duplicated -> -50% = one full set */
}
@media (prefers-reduced-motion:reduce){
	.mego-ticker__track{ animation:none; }
}

/* ============================================================
   ROW 2 — restyle the EXISTING player (markup untouched)
   EN: .custom-radio-player-container / #radio-play-btn / #current-track
   GE: #radio-player / #radio-toggle / #radio-track
   ============================================================ */
/* --- Un-box the Elementor container holding the player so the strip is edge-to-edge.
       Generic (:has) so it works for BOTH header templates regardless of element id. --- */
.e-con:has(> .e-con-inner .custom-radio-player-container){
	padding-left:0 !important; padding-right:0 !important;
}
.e-con:has(.custom-radio-player-container) > .e-con-inner{
	max-width:100% !important;
	padding:0 !important;            /* kill the boxed 10px inner padding = the gap under the ticker */
}

/* --- Full-width flat strip, left-aligned, matching the ticker (replaces the centered pill) --- */
.custom-radio-player-container{
	width:100% !important;
	max-width:none !important;
	margin:0 !important;
	height:38px !important;                        /* match the ticker's height */
	min-height:38px !important;
	padding:0 16px 0 90px !important;              /* left room for the big play button */
	background:#0C2E1D !important;                 /* footer dark green */
	border:0 !important;
	border-bottom:1px solid rgba(0,0,0,0.25) !important;   /* subtle base line, not a light edge */
	border-radius:0 !important;                   /* flat strip, no pill */
	box-shadow:none !important;
	justify-content:flex-start !important;        /* left-align all elements */
	align-items:center !important;
	overflow:visible !important;                  /* let the big button overflow the row */
	box-sizing:border-box !important;
}
.custom-radio-player-container .radio-info{
	width:auto !important;                         /* override inline width:100% */
	flex:1 1 auto !important;
	min-width:0;                                   /* allow flex children to clip */
	overflow:hidden;
	justify-content:flex-start;
}

/* --- Big round play button spanning BOTH rows ---
   It is absolutely positioned against the sticky container (the whole ticker+player block),
   vertically centred, on the left. The two rows get left padding to clear it. */
.e-con:has(.custom-radio-player-container){ position:relative; }   /* context when not stuck (becomes fixed when stuck) */
.elementor-widget:has(.custom-radio-player-container),
.elementor-widget:has(.custom-radio-player-container) > .elementor-widget-container,
.radio-controls{ position:static !important; overflow:visible !important; }
.radio-controls{ margin:0 !important; }

#radio-play-btn{
	position:absolute !important;
	left:14px;
	top:50%;
	transform:translateY(-50%) !important;            /* keep centred — beats the theme's hover transform */
	width:64px !important; height:64px !important;     /* large, spans the 2 rows */
	background:#E3000F !important; color:#fff !important;
	z-index:3;
	flex:0 0 auto !important;
	transition:transform .15s ease, background-color .15s ease;
}
/* keep the same translateY on hover so the button doesn't jump; add only a gentle scale */
#radio-play-btn:hover{ background:#c4000d !important; transform:translateY(-50%) scale(1.06) !important; }
#radio-play-btn svg{ fill:#fff !important; width:26px !important; height:26px !important; }

/* GE fixed-bar variant, if that markup is used */
#radio-player{ background:#0C2E1D !important; border-radius:0 !important; }
#radio-toggle{ color:#E3000F !important; }

/* --- Keep the sticky bar at full viewport width (robust to browser zoom) ---
   Elementor's sticky pins the bar with a captured fixed px width, which doesn't track
   browser zoom (the footer, being in normal flow, does). Force edge-to-edge instead. */
.elementor-sticky--active:has(.mego-ticker){
	left:0 !important; right:0 !important; width:auto !important; max-width:none !important;
}

/* --- Mobile burger menu: keep it ABOVE the sticky radio bar when open ---
   The open ElementsKit panel is trapped inside a low z-index container, so the sticky bar
   (z-index 999) covers the top menu items. While the menu is open (panel gets `.active`),
   lift its container above the bar. Reverts automatically when the menu closes.
   ⚠️ MOBILE ONLY: on desktop the ElementsKit menu container keeps a stuck `.active` after a PJAX swap
   (it toggles per navigation), and applying this on desktop pushes the header logo/nav row (which holds
   the menu container) ABOVE the sticky bar → the "logo appears over the ticker on scroll" bug. */
@media (max-width:1024px){
	.e-con:has(.elementskit-menu-container.active){ z-index:1001 !important; }
}

/* --- Marquee mask: isolate the track so the scrolling title clips at its OWN left edge
   and never overlaps the static "MEGOBAR RADIO" text. The slide is driven by JS on mobile
   only (no hover / tap / hold), with hold + speed controlled from the Customizer. --- */
.custom-radio-player-container .station-name,
.custom-radio-player-container .divider{ flex:0 0 auto; }   /* static parts keep their size */

#current-track,
#radio-track{
	flex:0 1 auto;
	min-width:0;
	overflow:hidden;          /* fixed mask: text disappears at the track's OWN left edge */
	white-space:nowrap;
}

@media (max-width:768px){
	#current-track,
	#radio-track{ flex:1 1 auto; text-overflow:clip; }
}
