/* ============================================================
   mm-bars — vertical equalizer-style bars with hover tooltip.
   Sibling to mm-knobs. 12 colored bars, subtle pulse animation.
   ============================================================ */

.mm-bars {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 14px;
	align-items: end;
	padding: 30px 0 20px;
	background: transparent;
	border: 0;
	min-height: 260px;
}

.mm-bar {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 220px;
	cursor: pointer;
	outline: none;
}

.mm-bar__stem {
	position: relative;
	width: 100%;
	max-width: 63px;
	height: 100%;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.mm-bar__fill {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50%;
	background: var(--mm-bar-color, #3ea6ff);
	box-shadow: 0 0 18px var(--mm-bar-color, #3ea6ff);
	transform-origin: bottom center;
	animation: mm-bar-pulse var(--mm-bar-speed, 12s) ease-in-out infinite;
	animation-delay: var(--mm-bar-delay, 0s);
}

.mm-bar__cap {
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: #fff;
	opacity: 0.9;
	bottom: 65%;
	animation: mm-bar-pulse-cap var(--mm-bar-speed, 12s) ease-in-out infinite;
	animation-delay: var(--mm-bar-delay, 0s);
}

.mm-bar__label {
	margin-top: 12px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
	line-height: 1.3;
	min-height: 26px;
	transition: color 180ms ease;
}

.mm-bar:hover .mm-bar__stem,
.mm-bar:focus-visible .mm-bar__stem {
	transform: scaleY(1.04);
	box-shadow: 0 0 22px var(--mm-bar-color, #3ea6ff);
}

.mm-bar:hover .mm-bar__label,
.mm-bar:focus-visible .mm-bar__label {
	color: #fff;
}

.mm-bar:hover .mm-bar__fill,
.mm-bar:focus-visible .mm-bar__fill,
.mm-bar:hover .mm-bar__cap,
.mm-bar:focus-visible .mm-bar__cap {
	animation-play-state: paused;
}

/* Tooltip (shared, positioned by JS) */
.mm-bars__tooltip {
	position: absolute;
	pointer-events: none;
	max-width: 260px;
	padding: 12px 14px;
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 20;
}

.mm-bars__tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mm-bars__tooltip .p-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 6px;
}

.mm-bars__tooltip .p-desc {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

@keyframes mm-bar-pulse {
	0%   { height: 62%; }
	50%  { height: 68%; }
	100% { height: 62%; }
}

@keyframes mm-bar-pulse-cap {
	0%   { bottom: 62%; }
	50%  { bottom: 68%; }
	100% { bottom: 62%; }
}

@media (max-width: 991px) {
	.mm-bars {
		grid-template-columns: repeat(6, 1fr);
		row-gap: 30px;
	}
}

@media (max-width: 575px) {
	.mm-bars {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-bar__fill,
	.mm-bar__cap {
		animation: none;
	}
}
