/* Les 100 Millors — Votació amb estrelles */

.l100m-votacio {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1;
}

.l100m-fila {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.l100m-etiqueta {
	font-weight: 700;
	font-size: .95em;
	line-height: 1;
}

/* Un cop votat, l'etiqueta "Vota" desapareix */
.l100m-votacio.is-votat .l100m-etiqueta {
	display: none;
}

.l100m-estrelles {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

/* Sense requadres: anul·lem QUALSEVOL estil de botó del tema/Elementor.
   Doble classe + !important per guanyar especificitat. */
.l100m-votacio .l100m-estrella,
.l100m-votacio .l100m-estrella:hover,
.l100m-votacio .l100m-estrella:focus,
.l100m-votacio .l100m-estrella:focus-visible,
.l100m-votacio .l100m-estrella:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	cursor: pointer;
	line-height: 0;
	transition: transform .12s ease;
}

.l100m-votacio .l100m-estrella::before,
.l100m-votacio .l100m-estrella::after {
	display: none !important;
	content: none !important;
}

.l100m-votacio .l100m-estrella[disabled] {
	cursor: default;
}

.l100m-estrella svg {
	width: 1.4em;
	height: 1.4em;
	display: block;
}

/* Puntes arrodonides */
.l100m-estrella svg path {
	stroke-linejoin: round;
	stroke-linecap: round;
}

.l100m-estrella:not([disabled]):hover {
	transform: scale(1.12);
}

/* --- Tema: estrelles BLANQUES --- */
.l100m--blanques .l100m-estrella svg path {
	fill: transparent;
	stroke: #ffffff;
	stroke-width: 1.5;
}

.l100m--blanques .l100m-estrella.is-plena svg path,
.l100m--blanques .l100m-estrella.is-hover svg path {
	fill: #ffffff;
	stroke: #ffffff;
}

.l100m--blanques .l100m-meta,
.l100m--blanques .l100m-etiqueta {
	color: #ffffff;
}

/* --- Tema: estrelles NEGRES --- */
.l100m--negres .l100m-estrella svg path {
	fill: transparent;
	stroke: #111111;
	stroke-width: 1.5;
}

.l100m--negres .l100m-estrella.is-plena svg path,
.l100m--negres .l100m-estrella.is-hover svg path {
	fill: #111111;
	stroke: #111111;
}

.l100m--negres .l100m-meta,
.l100m--negres .l100m-etiqueta {
	color: #111111;
}

/* --- Meta (mitjana + recompte) --- */
.l100m-meta {
	font-size: .85em;
	display: inline-flex;
	gap: 4px;
	align-items: baseline;
}

.l100m-valor {
	font-weight: 700;
}

.l100m-recompte {
	opacity: .75;
}

/* Estat de càrrega / desactivat temporalment mentre s'envia el vot */
.l100m-votacio.is-enviant .l100m-estrelles {
	opacity: .6;
	pointer-events: none;
}

/* Cançó ja votada: estrelles fixes mostrant la mitjana */
.l100m-votacio.is-votat .l100m-estrella {
	cursor: default;
}

.l100m-votacio.is-votat .l100m-estrella:hover {
	transform: none;
}

/* Missatge breu de confirmació/error en línia */
.l100m-avis {
	font-size: .8em;
	margin-top: 2px;
}

.l100m-avis.is-error {
	color: #c0392b;
}
