/* Cercador */
.ebre-radios-search {
	position: relative;
	max-width: 420px;
	margin: 0 0 24px;
}
.ebre-radios-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #999;
	pointer-events: none;
}
.ebre-radio-search-input {
	width: 100%;
	padding: 12px 16px 12px 44px;
	border: 1px solid #e2e2e2;
	border-radius: 30px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	color: #222;
	-webkit-appearance: none;
	appearance: none;
}
.ebre-radio-search-input:focus {
	outline: none;
	border-color: #d1272d;
	box-shadow: 0 0 0 3px rgba(209, 39, 45, .15);
}
.ebre-radio-search-input::placeholder { color: #999; }

/* Cercador dins del hero (fons de color): sense vora, amb ombra suau perquè es distingeixi */
.ebre-hero .ebre-radios-search {
	margin: 26px auto 0;
}
.ebre-hero .ebre-radio-search-input {
	border: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.ebre-hero .ebre-radio-search-input:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18), 0 0 0 3px rgba(255, 255, 255, .5);
}
.ebre-hero .ebre-radios-search-icon { color: #b3b3b3; }

/* Targeta ressaltada quan la cerca porta el mapa fins al seu punt exacte */
.ebre-radio-card--highlight {
	box-shadow: 0 0 0 3px #d1272d, 0 6px 18px rgba(0, 0, 0, .12);
	transition: box-shadow .2s ease;
}

/* Mapa */
.ebre-map {
	width: 100%;
	border-radius: 12px;
	margin-bottom: 2rem;
	z-index: 1;
}
.ebre-map-popup { text-align: center; min-width: 160px; }
.ebre-map-popup img { max-width: 60px; max-height: 60px; border-radius: 6px; margin-bottom: 6px; }
.ebre-map-popup h4 { margin: 4px 0; font-size: 14px; }
.ebre-map-popup .ebre-play-btn { font-size: 12px; padding: 4px 10px; }

/* Graella de ràdios */
.ebre-radios-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin: 2rem 0;
}
.ebre-radio-card {
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.ebre-radio-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ebre-radio-logo-link { display: block; background: #f4f4f4; }
.ebre-radio-logo { width: 100%; height: 150px; object-fit: contain; padding: 12px; box-sizing: border-box; background: #fff; }
.ebre-radio-logo--placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; height: 150px; }
.ebre-radio-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ebre-radio-title { margin: 0; font-size: 17px; }
.ebre-radio-title a { text-decoration: none; color: inherit; }
.ebre-radio-address { margin: 0; font-size: 13px; color: #666; }
.ebre-radio-desc { margin: 0; font-size: 14px; color: #444; flex: 1; }
.ebre-radio-actions { margin-top: 4px; }
.ebre-play-btn {
	background: #d1272d;
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 8px 18px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
}
.ebre-play-btn:hover { background: #ad1e23; }
.ebre-radio-contact { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #555; }
.ebre-radio-contact a { color: inherit; }
.ebre-empty { text-align: center; color: #777; padding: 2rem 0; }

/* Barra de reproducció fixa */
.ebre-player-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: #1a1a1a;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	z-index: 9999;
	box-shadow: 0 -2px 10px rgba(0,0,0,.25);
}
.ebre-player-bar[hidden] { display: none; }
.ebre-player-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; }
.ebre-player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ebre-player-label { font-size: 11px; opacity: .7; }
.ebre-player-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebre-player-toggle, .ebre-player-close {
	background: transparent;
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	border-radius: 50%;
	width: 36px; height: 36px;
	cursor: pointer;
	font-size: 15px;
}
.ebre-player-toggle:hover, .ebre-player-close:hover { background: rgba(255,255,255,.1); }

/* Banners */
.ebre-banner-zone { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1rem 0; }
.ebre-banner img { max-width: 100%; height: auto; border-radius: 8px; }
