/* Radio Player – laut.fm Add-on */

.radio-player .rp-lautfm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	line-height: 0;
	cursor: pointer;
	color: var(--radio-player-text-color, #fff);
	opacity: .85;
	transition: opacity .15s ease;
}

.radio-player .rp-lautfm-button:hover,
.radio-player .rp-lautfm-button:focus-visible,
.radio-player .rp-lautfm-button.active {
	opacity: 1;
	outline: none;
}

.radio-player .rp-lautfm-button svg {
	width: 26px;
	height: 26px;
}

/* Panel — reuses the host's .radio-player-playlist look, adds our own layout */
.radio-player .rp-lautfm-panel {
	margin-top: 12px;
	max-height: var(--playlist-height, 320px);
	overflow-y: auto;
	text-align: left;
}

.radio-player .rp-lautfm-panel[hidden] {
	display: none;
}

.radio-player .rp-lautfm-panel .radio-player-playlist__header {
	justify-content: space-between;
	margin: 0 0 6px;
	padding: 0 4px;
}

.radio-player .rp-lautfm-panel .radio-player-playlist__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.radio-player .rp-lautfm-panel .rp-lautfm-close {
	background: transparent;
	border: 0;
	padding: 2px;
	margin: 0 0 0 8px;
	line-height: 0;
	cursor: pointer;
	color: var(--radio-player-text-color, #fff);
}

.radio-player .rp-lautfm-panel .rp-lautfm-playlist {
	margin: 0 0 8px;
	padding: 0 5px;
	font-size: 12px;
	opacity: .75;
	color: var(--radio-player-text-color, #fff);
}

.radio-player .rp-lautfm-panel .history-item {
	cursor: default;
	font-size: 14px;
	gap: 8px;
}

.radio-player .rp-lautfm-panel .history-item .item-time {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	opacity: .7;
	margin-right: 0;
}

.radio-player .rp-lautfm-panel .radio-player-playlist__empty {
	margin: 6px 5px;
	font-size: 13px;
	opacity: .8;
	color: var(--radio-player-text-color, #fff);
}

/* Sticky bar: float the panel above the bar instead of growing the bar */
.radio-player.sticky .rp-lautfm-panel {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0;
	padding: 10px 14px 12px;
	background: var(--radio-player-bg-color, rgba(0, 0, 0, .9));
	box-shadow: 0 -6px 18px rgba(0, 0, 0, .35);
	z-index: 2;
}

.radio-player.sticky.position-bottom .rp-lautfm-panel {
	bottom: 100%;
}

.radio-player.sticky.position-top .rp-lautfm-panel {
	top: 100%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* Narrow sticky bar: the host hides its own extra icons there — follow suit */
div.radio-player.sticky.player-xxs .radio-player-controls .rp-lautfm-button,
div.radio-player.sticky.player-xs .radio-player-controls .rp-lautfm-button {
	display: none;
}
