.mr-play {
    box-sizing: border-box;
	width: 56px;
	height: 56px;
	min-width: 56px;
    min-height: 56px;
    flex: 0 0 56px;
    aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid #ff6600;
	border-radius: 50%;
	background: transparent;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;

	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mr-play:hover {
	background: #202b43;
}

.mr-play:active {
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.65);
    transform: scale(0.97);
}

.mr-play:focus-visible {
	outline: 2px solid #00d7f5;
	outline-offset: 3px;
}

.mr-mute {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid #ff6600;
	border-radius: 50%;
	background: transparent;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;

	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mr-mute:hover {
	background: #202b43;
}

.mr-mute:focus-visible {
	outline: 2px solid #00d7f5;
	outline-offset: 3px;
}

.mr-volume {
	width: 100%;
	height: 4px;
	margin: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 2px;
	background: linear-gradient(
		to right,
		#00d7f5 0%,
		#00d7f5 20%,
		#ff6600 100%
	);
}
.mr-volume:focus {
	outline: none;
}

/* Chromium / Safari */
.mr-volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
}

/* Firefox */
.mr-volume::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
}

.mr-volume:focus-visible {
	outline: 2px solid #00d7f5;
	outline-offset: 5px;
}

.mr-volume-control {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

/* Mobile album artwork */
@media (max-width: 781px) {

	#mr-album-art {
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}

	#mr-album-art img {
		width: 100%;
		height: auto;
		display: block;
	}
}

/*
 * Recently Played
 */
#mr-history-list {
	margin-top: 12px;
}

.mr-history-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 0 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mr-history-row:last-child {
	border-bottom: 0;
}

.mr-history-art {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	object-fit: cover;
	border-radius: 5px;
}

.mr-history-details {
	flex: 1 1 auto;
	min-width: 0;
}

.mr-history-title {
	color: #ffffff;
	font-weight: 600;
	font-size: 0.8em;
	line-height: 1.3;
}

.mr-history-artist {
	margin-top: 3px;
	color: #00d7f5;
	font-size: 0.8em;
	line-height: 1.3;
}

.mr-history-time {
	flex: 0 0 auto;
	margin-left: auto;
	color: #a7aec0;
	font-size: 0.75em;
	white-space: nowrap;
}



/* Recently Played - mobile replacement */
@media (max-width: 600px) {
    .mr-history-row {
        gap: 10px;
    }

    .mr-history-time {
        flex: 0 0 auto;
        margin-left: auto;
        text-align: right;
    }
}

/*
 * Up Next card
 */
#mr-next-row {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 22px;
}

/*
 * Up Next - mobile
 */
@media (max-width: 600px) {

	#mr-next-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 2px 12px;
	}

	#mr-next-label {
		grid-column: 1 / -1;
	}

	#mr-next-programme {
		grid-column: 1;
	}

	#mr-next-time {
		grid-column: 2;
		text-align: right;
	}
}

/*
 * Listener access message.
 *
 * Hidden during normal operation.
 * JavaScript reveals it when playback
 * is unavailable for the listener's location.
 */
#mr-access-message {
	display: none;
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

@media (min-width: 782px) {
    #mr-album-art {
        width: 220px;
        max-width: 100%;
    }

    #mr-album-art img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.mr-player-width {
    width: 100%;
    max-width: 1025px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 781px) {
    .mr-lower-content {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Audio connection status */
#mr-audio-status[data-state="connecting"],
#mr-audio-status[data-state="reconnecting"] {
    color: #00d7f5 !important; 
}

#mr-audio-status[data-state="connected"] {
    color: #39d98a !important;
}

#mr-audio-status[data-state="error"] {
    color: #ff4d4d !important;
}

/* Local SVG Play / Pause icons */
.mr-play {
    font-size: 0;
}

.mr-play::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;

    background-color: #ff6600;

    -webkit-mask-image: url("../icons/play.svg");
    mask-image: url("../icons/play.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.mr-play.mr-is-playing::before {
    -webkit-mask-image: url("../icons/pause.svg");
    mask-image: url("../icons/pause.svg");
}

/* Local SVG Volume / Mute icons */
.mr-mute {
    font-size: 0;
}

.mr-mute::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;

    background-color: #ff6600;

    -webkit-mask-image: url("../icons/volume.svg");
    mask-image: url("../icons/volume.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.mr-mute.mr-is-muted::before {
    -webkit-mask-image: url("../icons/muted.svg");
    mask-image: url("../icons/muted.svg");
}