/**
 * CINN Radio Hero Slider — Frontend (final)
 *
 * Ratios:
 *   Desktop  ≥1200px : 1920 × 800
 *   Laptop   ≥768px  : 1024 × 800
 *   Mobile   <768px  : 400 × 600 (image covers container)
 */

#cinnRadioHero.radio-hero {
	--cinn-accent: #e31c23;
	--cinn-live: #00a859;
	--cinn-text: #1a1a1a;
	--cinn-heading: #111827;
	--cinn-muted: #4b5563;
	--cinn-border: #e5e7eb;
	--cinn-soft: #f3f4f6;
	--cinn-radius: 20px;
	--cinn-font: "Poppins", system-ui, sans-serif;

	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--cinn-text);
	font-family: var(--cinn-font);
	/* Reduce paint flash inside Elementor widgets */
	opacity: 1;
	transform: translateZ(0);
}

/* Stabilize first paint before JS marks ready */
#cinnRadioHero.radio-hero--booting .radio-hero__slide:not(.is-active),
#cinnRadioHero.radio-hero--booting .radio-hero__bg-slide:not(.is-active) {
	transition: none !important;
}

#cinnRadioHero *,
#cinnRadioHero *::before,
#cinnRadioHero *::after {
	box-sizing: border-box;
}

/* —— Main card (user-confirmed transparent shell) —— */
#cinnRadioHero .radio-hero__inner {
	position: relative;
	z-index: 1;
	width: 98% !important;
	max-width: 98%;
	height: auto;
	min-height: 0;
	aspect-ratio: 1920 / 800;
	max-height: 800px;
	margin: 0 auto !important;
	overflow: hidden;
	border: 1px solid rgba(225, 228, 232, 0);
	border-radius: var(--cinn-radius);
	background: transparent !important;
	box-shadow: 0 14px 40px rgba(15, 25, 40, 0.08);
}

/* —— Background image layers (inside the card) —— */
#cinnRadioHero .radio-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
	overflow: hidden;
	background: #e8eef3;
}

#cinnRadioHero .radio-hero__bg-slide {
	position: absolute;
	inset: 0;
	background-color: #cfd8e0;
	background-position: center right;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.55s ease;
}

#cinnRadioHero .radio-hero__bg-slide.is-active {
	opacity: 1;
}

/* Soft left fade — right photo stays visible */
#cinnRadioHero .radio-hero__bg-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff 42%,
		rgba(255, 255, 255, 0.96) 52%,
		rgba(255, 255, 255, 0.55) 62%,
		rgba(255, 255, 255, 0.12) 72%,
		rgba(255, 255, 255, 0) 82%
	);
	pointer-events: none;
}

/* —— Content —— */
#cinnRadioHero .radio-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2rem;
	height: 100%;
	width: min(900px, 70%);
	max-width: 100%;
	padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3.5vw, 3.25rem);
	background: transparent;
	text-align: left;
}

/* Top-right arrows */
#cinnRadioHero .radio-hero__arrows {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 4;
	display: flex;
	gap: 0.75rem;
}

#cinnRadioHero .radio-hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 50%;
	background: #ffffff;
	color: #1f2937;
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.14);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cinnRadioHero .radio-hero__arrow svg {
	width: 28px;
	height: 28px;
}

#cinnRadioHero .radio-hero__arrow:hover,
#cinnRadioHero .radio-hero__arrow:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
	outline: none;
}

/* —— Text slides (opacity-only to avoid Elementor layout glitches) —— */
#cinnRadioHero .radio-hero__slides {
	position: relative;
	min-height: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	text-align: left;
}

#cinnRadioHero .radio-hero__slide {
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	pointer-events: none;
	text-align: left;
	padding: 0;
	margin: 0;
}

#cinnRadioHero .radio-hero__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#cinnRadioHero .radio-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 1.15rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid rgba(227, 28, 35, 0.35);
	border-radius: 8px;
	background: #fff;
	color: var(--cinn-accent);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#cinnRadioHero .radio-hero__badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cinn-accent);
	flex-shrink: 0;
}

#cinnRadioHero .radio-hero__heading {
	margin: 0 0 1.15rem;
	color: var(--cinn-heading);
	font-size: clamp(2.5rem, 4.4vw, 3.85rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
}

#cinnRadioHero .radio-hero__heading span {
	color: var(--cinn-accent);
}

#cinnRadioHero .radio-hero__desc {
	margin: 0;
	max-width: 48rem;
	color: var(--cinn-muted);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.65;
}

/* —— Controls & Button Left Alignment —— */
#cinnRadioHero .radio-hero__controls {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	align-self: flex-start !important;
	justify-content: flex-start !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	margin-left: 0 !important;
	gap: 1.5rem !important;
}

/* Only one CTA visible at a time (is-active). display:flex !important
   previously forced all three buttons to stack. */
#cinnRadioHero .radio-hero__player,
#cinnRadioHero .radio-hero__cta-wrapper {
	display: none !important;
	align-items: center !important;
	justify-content: flex-start !important;
	align-self: flex-start !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	margin-left: 0 !important;
	gap: 0.85rem;
}

#cinnRadioHero .radio-hero__player.is-active,
#cinnRadioHero .radio-hero__cta-wrapper.is-active {
	display: flex !important;
}

#cinnRadioHero a.radio-hero__listen,
#cinnRadioHero button.radio-hero__listen,
#cinnRadioHero .radio-hero__listen {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 52px;
	padding: 0.85rem 1.6rem;
	border: 0;
	border-radius: 10px;
	background: var(--cinn-accent);
	color: #ffffff !important;
	text-decoration: none !important;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(227, 28, 35, 0.28);
	transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease;
	margin: 0 !important;
	margin-left: 0 !important;
	text-align: left;
}

#cinnRadioHero .radio-hero__listen:hover,
#cinnRadioHero .radio-hero__listen:focus-visible {
	filter: brightness(1.05);
	transform: translateY(-1px);
	outline: none;
	color: #ffffff !important;
}

#cinnRadioHero .radio-hero__listen.is-playing,
#cinnRadioHero .radio-hero__listen[aria-pressed="true"] {
	background: #111827;
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.22);
}

#cinnRadioHero .radio-hero__listen-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Play / pause swap via class (theme-proof; [hidden] often overridden) */
#cinnRadioHero .radio-hero__icon-play,
#cinnRadioHero .radio-hero__icon-pause {
	display: block;
	width: 20px;
	height: 20px;
}

#cinnRadioHero .radio-hero__icon-pause {
	display: none !important;
}

#cinnRadioHero .radio-hero__listen.is-playing .radio-hero__icon-play,
#cinnRadioHero .radio-hero__listen[aria-pressed="true"] .radio-hero__icon-play {
	display: none !important;
}

#cinnRadioHero .radio-hero__listen.is-playing .radio-hero__icon-pause,
#cinnRadioHero .radio-hero__listen[aria-pressed="true"] .radio-hero__icon-pause {
	display: block !important;
}

#cinnRadioHero .radio-hero__volume {
	position: relative;
	display: inline-flex;
	align-items: center;
}

#cinnRadioHero .radio-hero__mute {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--cinn-border);
	border-radius: 10px;
	background: var(--cinn-soft);
	color: #374151;
	cursor: pointer;
}

#cinnRadioHero .radio-hero__mute:hover,
#cinnRadioHero .radio-hero__mute:focus-visible {
	background: #e5e7eb;
	outline: none;
}

#cinnRadioHero .radio-hero__mute[aria-pressed="true"] .radio-hero__speaker-wave {
	opacity: 0.25;
}

#cinnRadioHero .radio-hero__volume-slider {
	width: 0;
	opacity: 0;
	margin-left: 0;
	height: 4px;
	appearance: none;
	background: #d1d5db;
	border-radius: 999px;
	outline: none;
	cursor: pointer;
	transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
	pointer-events: none;
}

#cinnRadioHero .radio-hero__volume:hover .radio-hero__volume-slider,
#cinnRadioHero .radio-hero__volume:focus-within .radio-hero__volume-slider {
	width: 110px;
	opacity: 1;
	margin-left: 0.55rem;
	pointer-events: auto;
}

#cinnRadioHero .radio-hero__volume-slider::-webkit-slider-thumb {
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--cinn-accent);
	border: 2px solid #fff;
	cursor: pointer;
}

#cinnRadioHero .radio-hero__volume-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--cinn-accent);
	border: 2px solid #fff;
	cursor: pointer;
}

#cinnRadioHero .radio-hero__meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	padding: 0;
	margin: 0 !important;
	background: transparent;
	font-size: 0.95rem;
	color: var(--cinn-heading);
}

#cinnRadioHero .radio-hero__live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cinn-live);
	box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.45);
	animation: cinn-pulse 1.6s ease-out infinite;
	flex-shrink: 0;
}

@keyframes cinn-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.45);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(0, 168, 89, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 168, 89, 0);
	}
}

#cinnRadioHero .radio-hero__meta-label,
#cinnRadioHero .radio-hero__meta-track {
	color: var(--cinn-heading);
	font-weight: 600;
}

#cinnRadioHero .radio-hero__meta-track {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(420px, 70vw);
}

/* —— Pagination dashes (Elementor-safe resets) —— */
#cinnRadioHero .radio-hero__dots,
#cinnRadioHero .elementor-widget-container .radio-hero__dots {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	align-self: flex-start !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	width: auto !important;
	margin: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

#cinnRadioHero button.radio-hero__dot,
#cinnRadioHero .radio-hero__dot {
	/* Kill Elementor / theme button chrome */
	all: unset;
	box-sizing: border-box !important;
	display: inline-block !important;
	width: 22px !important;
	min-width: 22px !important;
	max-width: 22px !important;
	height: 6px !important;
	min-height: 6px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #c5cad3 !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	vertical-align: middle !important;
	line-height: 0 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	transition: width 0.25s ease, background-color 0.25s ease, min-width 0.25s ease !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

#cinnRadioHero button.radio-hero__dot.is-active,
#cinnRadioHero .radio-hero__dot.is-active,
#cinnRadioHero button.radio-hero__dot[aria-selected="true"],
#cinnRadioHero .radio-hero__dot[aria-selected="true"] {
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	height: 6px !important;
	background: var(--cinn-accent, #e31c23) !important;
	background-color: var(--cinn-accent, #e31c23) !important;
	background-image: none !important;
}

#cinnRadioHero button.radio-hero__dot:hover,
#cinnRadioHero .radio-hero__dot:hover {
	background: #9aa3af !important;
}

#cinnRadioHero button.radio-hero__dot.is-active:hover,
#cinnRadioHero .radio-hero__dot.is-active:hover {
	background: var(--cinn-accent, #e31c23) !important;
}

#cinnRadioHero button.radio-hero__dot:focus-visible,
#cinnRadioHero .radio-hero__dot:focus-visible {
	outline: 2px solid var(--cinn-accent, #e31c23) !important;
	outline-offset: 4px !important;
}

#cinnRadioHero .radio-hero__dot-bar {
	display: none;
}

#cinnRadioHero .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* —— Laptop ~1024 × 800 —— */
@media (max-width: 1199px) {
	#cinnRadioHero .radio-hero__inner {
		width: 98% !important;
		height: auto;
		min-height: 0;
		aspect-ratio: 1024 / 800;
	}

	#cinnRadioHero .radio-hero__content {
		width: min(780px, 68%);
	}

	#cinnRadioHero .radio-hero__heading {
		font-size: clamp(2.25rem, 4.2vw, 3.25rem);
	}

	#cinnRadioHero .radio-hero__bg-slide {
		background-position: center center;
	}

	#cinnRadioHero .radio-hero__bg-overlay {
		background: linear-gradient(
			90deg,
			#ffffff 0%,
			#ffffff 40%,
			rgba(255, 255, 255, 0.9) 52%,
			rgba(255, 255, 255, 0.4) 64%,
			rgba(255, 255, 255, 0) 76%
		);
	}
}

/* —— Tablet · stacked —— */
@media (max-width: 900px) {
	#cinnRadioHero .radio-hero__inner {
		width: 98% !important;
		height: auto;
		min-height: 0;
		aspect-ratio: 1024 / 800;
	}

	#cinnRadioHero .radio-hero__content {
		width: 100%;
		max-width: none;
		justify-content: flex-end;
		padding: 2.25rem 1.5rem 1.75rem;
	}

	#cinnRadioHero .radio-hero__bg-overlay {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0.2) 40%,
			rgba(255, 255, 255, 0.85) 65%,
			#ffffff 82%
		);
	}

	#cinnRadioHero .radio-hero__bg-slide {
		background-position: center top;
	}

	#cinnRadioHero .radio-hero__slides {
		min-height: 0;
	}

	#cinnRadioHero .radio-hero__heading {
		font-size: clamp(2.1rem, 6vw, 2.85rem);
	}

	#cinnRadioHero .radio-hero__arrow {
		width: 52px;
		height: 52px;
	}
}

/* —— Mobile 400 × 600 · image fills container —— */
@media (max-width: 767px) {
	#cinnRadioHero .radio-hero__inner {
		width: 98% !important;
		max-width: 98%;
		height: auto;
		min-height: 600px;
		aspect-ratio: 400 / 600;
		border-radius: 16px;
	}

	#cinnRadioHero .radio-hero__bg-slide {
		/* Container-cover image */
		inset: 0;
		background-position: center center;
		background-size: cover;
	}

	#cinnRadioHero .radio-hero__bg-overlay {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.05) 0%,
			rgba(255, 255, 255, 0.25) 28%,
			rgba(255, 255, 255, 0.88) 55%,
			#ffffff 72%
		);
	}

	#cinnRadioHero .radio-hero__content {
		width: 100%;
		gap: 1rem;
		padding: 5.25rem 1.15rem 1.35rem;
		justify-content: flex-end;
	}

	#cinnRadioHero .radio-hero__heading {
		font-size: clamp(1.9rem, 8.5vw, 2.5rem);
		margin-bottom: 0.65rem;
	}

	#cinnRadioHero .radio-hero__desc {
		font-size: 0.98rem;
		max-width: none;
	}

	#cinnRadioHero .radio-hero__arrows {
		top: 0.85rem;
		right: 0.85rem;
		gap: 0.55rem;
	}

	#cinnRadioHero .radio-hero__arrow {
		width: 48px;
		height: 48px;
	}

	#cinnRadioHero .radio-hero__arrow svg {
		width: 24px;
		height: 24px;
	}

	#cinnRadioHero .radio-hero__player,
	#cinnRadioHero .radio-hero__cta-wrapper {
		margin-left: 0 !important;
		padding-left: 0 !important;
		justify-content: flex-start !important;
		width: 100% !important;
	}

	#cinnRadioHero .radio-hero__player.is-active,
	#cinnRadioHero .radio-hero__cta-wrapper.is-active {
		display: flex !important;
	}

	#cinnRadioHero .radio-hero__listen {
		flex: 0 1 auto;
		justify-content: center;
		min-height: 50px;
	}

	#cinnRadioHero .radio-hero__mute {
		width: 50px;
		height: 50px;
		flex-shrink: 0;
	}

	#cinnRadioHero .radio-hero__volume {
		flex: 1 1 auto;
	}

	#cinnRadioHero .radio-hero__volume-slider,
	#cinnRadioHero .radio-hero__volume:hover .radio-hero__volume-slider,
	#cinnRadioHero .radio-hero__volume:focus-within .radio-hero__volume-slider {
		width: min(120px, 36vw);
		opacity: 1;
		margin-left: 0.45rem;
		pointer-events: auto;
	}

	#cinnRadioHero .radio-hero__meta {
		font-size: 0.85rem;
		width: 100%;
	}

	#cinnRadioHero .radio-hero__meta-track {
		white-space: normal;
		max-width: 100%;
	}
}

@media (max-width: 400px) {
	#cinnRadioHero .radio-hero__inner {
		min-height: 560px;
	}

	#cinnRadioHero .radio-hero__heading {
		font-size: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#cinnRadioHero .radio-hero__bg-slide,
	#cinnRadioHero .radio-hero__slide,
	#cinnRadioHero .radio-hero__listen,
	#cinnRadioHero .radio-hero__dot,
	#cinnRadioHero .radio-hero__live-dot {
		animation: none !important;
		transition: none !important;
	}
}

/* —— Elementor / theme containment —— */
.elementor-widget-shortcode #cinnRadioHero,
.elementor-shortcode #cinnRadioHero,
.elementor-widget-container #cinnRadioHero {
	max-width: 100%;
}

.elementor-widget-shortcode #cinnRadioHero .radio-hero__inner,
.elementor-shortcode #cinnRadioHero .radio-hero__inner {
	width: 98% !important;
	max-width: 98% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Prevent Elementor button typography from shrinking dash labels */
.elementor-widget-shortcode #cinnRadioHero button.radio-hero__dot,
.elementor-element #cinnRadioHero button.radio-hero__dot {
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}