:root {
	--salsoul-bg: #f57200;
	--salsoul-bg-mid: #000000;
	--salsoul-bg-dark: #000000;
	--salsoul-bg-rgb: 245, 114, 0;
	--salsoul-text: #ffffff;
	--salsoul-font: "League Spartan", sans-serif;
}

.salsoul-rp-player,
.salsoul-rp-player *,
.salsoul-rp-player *::before,
.salsoul-rp-player *::after {
	box-sizing: border-box;
}

.salsoul-rp-player {
	background: var(--salsoul-bg);
	color: var(--salsoul-text);
	font-family: var(--salsoul-font);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Compact bar layout ---------- */

.salsoul-rp-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	width: 350px;
	max-width: 100%;
}

.salsoul-rp-bar.salsoul-rp-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: none;
	width: 100%;
	border-radius: 0;
	z-index: 99999;
	justify-content: center;
}

@media (max-width: 480px) {
	.salsoul-rp-bar {
		max-width: none;
		padding: 8px 12px;
		gap: 10px;
	}
	.salsoul-rp-bar .salsoul-rp-live-label {
		display: none;
	}
}

/* ---------- Landing card layout (761x300 "Escúchanos en Vivo") ---------- */

.salsoul-rp-landing {
	width: 761px;
	max-width: 100%;
	padding: 22px 28px 0;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.salsoul-rp-landing-top {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-bottom: 20px;
}

.salsoul-rp-cover.salsoul-rp-cover-lg {
	width: 92px;
	height: 92px;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.salsoul-rp-landing-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.salsoul-rp-landing-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.salsoul-rp-landing-station {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
}

.salsoul-rp-landing .salsoul-rp-live {
	font-size: 10.5px;
	padding: 4px 10px 4px 8px;
}

.salsoul-rp-title-lg {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.salsoul-rp-artist-lg {
	font-size: 14.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.salsoul-rp-landing .salsoul-rp-controls {
	gap: 14px;
}

/* Native <details>/<summary> — closed by default, no JS needed. Clicking it
   reveals the schedule list in place and pushes anything below the card
   (e.g. an ad placement) down only for that visitor, only while it's open. */
.salsoul-rp-djs {
	background: var(--salsoul-bg-dark);
	margin: 0 -28px;
	padding: 0 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.salsoul-rp-djs-summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	-webkit-tap-highlight-color: transparent;
}

.salsoul-rp-djs-summary::-webkit-details-marker {
	display: none;
}

.salsoul-rp-djs-summary::marker {
	content: "";
}

.salsoul-rp-djs-summary:hover {
	color: #ffffff;
}

.salsoul-rp-djs-chevron {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.salsoul-rp-djs[open] .salsoul-rp-djs-chevron {
	transform: rotate(180deg);
}

.salsoul-rp-djs-panel {
	padding-bottom: 16px;
}

.salsoul-rp-djs-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.salsoul-rp-djs-row {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 9px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
}

.salsoul-rp-djs-time {
	flex: 0 0 auto;
	min-width: 100px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--salsoul-text);
	white-space: nowrap;
}

.salsoul-rp-djs-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.salsoul-rp-djs-name {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.salsoul-rp-djs-days {
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 780px) {
	.salsoul-rp-landing {
		width: 100%;
		padding: 14px 16px 0;
	}
	.salsoul-rp-djs {
		margin: 0 -16px;
		padding: 0 16px;
	}
	.salsoul-rp-landing-top {
		flex-wrap: wrap;
		gap: 12px 10px;
		row-gap: 8px;
		padding-bottom: 12px;
	}
	.salsoul-rp-cover.salsoul-rp-cover-lg {
		width: 52px;
		height: 52px;
		border-radius: 10px;
	}
	.salsoul-rp-landing-info {
		flex-basis: calc(100% - 64px);
		gap: 4px;
	}
	.salsoul-rp-landing-kicker {
		gap: 8px;
	}
	.salsoul-rp-landing-station {
		font-size: 11px;
	}
	.salsoul-rp-landing .salsoul-rp-live {
		font-size: 9px;
		padding: 3px 8px 3px 6px;
	}
	.salsoul-rp-title-lg {
		font-size: 17px;
		white-space: normal;
	}
	.salsoul-rp-artist-lg {
		font-size: 12.5px;
		white-space: normal;
	}
	.salsoul-rp-landing .salsoul-rp-controls {
		flex-basis: 100%;
		justify-content: flex-end;
		gap: 10px;
	}
	.salsoul-rp-landing .salsoul-rp-playbtn-lg {
		width: 38px;
		height: 38px;
	}
	.salsoul-rp-landing .salsoul-rp-playbtn-lg svg {
		width: 17px;
		height: 17px;
	}
	.salsoul-rp-landing .salsoul-rp-playbtn-lg .salsoul-rp-spinner {
		width: 18px;
		height: 18px;
	}
	.salsoul-rp-landing .salsoul-rp-volume-btn {
		width: 28px;
		height: 28px;
	}
	.salsoul-rp-landing .salsoul-rp-volume-btn .salsoul-rp-ico svg {
		width: 15px;
		height: 15px;
	}
	.salsoul-rp-landing .salsoul-rp-volume-slider {
		width: 68px;
	}
	.salsoul-rp-djs-summary {
		padding: 10px 0;
		font-size: 9.5px;
	}
	.salsoul-rp-djs-chevron {
		width: 14px;
		height: 14px;
	}
	.salsoul-rp-djs-panel {
		padding-bottom: 12px;
	}
	.salsoul-rp-djs-row {
		padding: 7px 10px;
		gap: 10px;
	}
	.salsoul-rp-djs-time {
		min-width: 74px;
		font-size: 11px;
	}
	.salsoul-rp-djs-name {
		font-size: 12.5px;
	}
	.salsoul-rp-djs-days {
		font-size: 10px;
	}
}

/* ---------- Shared controls: play button + volume ---------- */

.salsoul-rp-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.salsoul-rp-playbtn {
	appearance: none;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.18);
	color: var(--salsoul-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.salsoul-rp-playbtn:active {
	transform: scale(0.95);
}

.salsoul-rp-playbtn-sm {
	width: 40px;
	height: 40px;
}

.salsoul-rp-playbtn-sm svg {
	width: 18px;
	height: 18px;
}

.salsoul-rp-playbtn-lg {
	width: 46px;
	height: 46px;
	background: rgba(0, 0, 0, 0.22);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.salsoul-rp-playbtn-lg svg {
	width: 20px;
	height: 20px;
}

.salsoul-rp-playbtn:hover {
	background: rgba(0, 0, 0, 0.3);
}

.salsoul-rp-ico {
	display: none;
	line-height: 0;
}

.salsoul-rp-ico svg {
	display: block;
	fill: currentColor;
	pointer-events: none;
}

.salsoul-rp-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--salsoul-text);
	border-radius: 50%;
	animation: salsoul-rp-spin 0.7s linear infinite;
}

.salsoul-rp-playbtn-lg .salsoul-rp-spinner {
	width: 22px;
	height: 22px;
}

.salsoul-rp-landing .salsoul-rp-volume-btn {
	width: 34px;
	height: 34px;
}

.salsoul-rp-landing .salsoul-rp-volume-btn .salsoul-rp-ico svg {
	width: 18px;
	height: 18px;
}

.salsoul-rp-landing .salsoul-rp-volume-slider {
	width: 110px;
}

.salsoul-rp-player:not(.is-playing):not(.is-loading) .salsoul-rp-ico-play { display: block; }
.salsoul-rp-player.is-playing .salsoul-rp-ico-pause { display: block; }
.salsoul-rp-player.is-loading .salsoul-rp-spinner { display: block; }

@keyframes salsoul-rp-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Volume: icon button, optional inline slider ---------- */

.salsoul-rp-volume {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.salsoul-rp-volume-btn {
	appearance: none;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--salsoul-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.salsoul-rp-volume-btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.salsoul-rp-volume-btn .salsoul-rp-ico {
	display: none;
}

.salsoul-rp-volume-btn .salsoul-rp-ico svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.salsoul-rp-volume-btn .salsoul-rp-ico-vol { display: block; }
.salsoul-rp-volume.is-muted .salsoul-rp-volume-btn .salsoul-rp-ico-vol { display: none; }
.salsoul-rp-volume.is-muted .salsoul-rp-volume-btn .salsoul-rp-ico-mute { display: block; }

.salsoul-rp-volume-slider {
	appearance: none;
	-webkit-appearance: none;
	accent-color: #fff;
	width: 100px;
	height: 20px;
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.salsoul-rp-volume-slider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.28);
}

.salsoul-rp-volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	margin-top: -4.5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.salsoul-rp-volume-slider::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.28);
}

.salsoul-rp-volume-slider::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: none;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ---------- Now-playing text (compact bar) ---------- */

.salsoul-rp-cover {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.salsoul-rp-info {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.25;
}

.salsoul-rp-title {
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.salsoul-rp-artist {
	font-weight: 500;
	font-size: 13px;
	opacity: 0.85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Live pill (EN VIVO, with DJ name folded in) ---------- */

.salsoul-rp-live {
	/* Fixed size, doesn't shrink — the bar's label text is always short
	   ("EN VIVO"), so .salsoul-rp-info (the song/artist text, which varies
	   a lot in length) should absorb 100% of any space crunch instead. */
	flex: 0 0 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
	max-width: 100%;
	overflow: hidden;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.salsoul-rp-bar .salsoul-rp-live {
	max-width: 150px;
}

/* The pill is a flex container (dot + label), so the ellipsis has to live
   on the label itself — a flex child needs min-width:0 before it will
   shrink below its own text width and actually truncate. */
.salsoul-rp-live-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.salsoul-rp-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	flex: 0 0 auto;
}

.salsoul-rp-player.is-playing .salsoul-rp-live {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.32);
	color: #ffffff;
}

.salsoul-rp-player.is-playing .salsoul-rp-live-dot {
	background: #ffffff;
	animation: salsoul-rp-pulse-ring 1.6s ease-out infinite;
}

@keyframes salsoul-rp-pulse-ring {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
	70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
