@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	margin: 0;
	font-family: "Dosis", sans-serif;
	color: #fff;
	background: #ED1B24;
}

#radio-app {
	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px;
}

/* Background flou avec pochette */
#bg-blur {
	position: fixed;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(20px);
	transform: scale(1.1);
	z-index: -1;
}

/* Carte du player */
#player-card {
	display: flex;
	gap: 24px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 16px;
	padding: 24px;
	max-width: 960px;
	width: 100%;
	backdrop-filter: blur(10px);
}

.player-left {
	flex: 0 0 260px;
}

.player-left img {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	background: #111;
}

.player-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.station-name {
	font-size: 1.4rem;
	font-weight: 700;
}

.track-info #track-title {
	font-size: 1.2rem;
	font-weight: 600;
}

.track-info #track-artist {
	font-size: 1rem;
	opacity: 0.85;
}

.controls-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.controls-row button {
	border: none;
	background: #ffffff20;
	color: #fff;
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.9rem;
}

#play-pause {
	padding-inline: 18px;
}

#volume {
	flex: 1;
	accent-color: #1277f3;
}

/* Historique */
.history {
	margin-top: 25px;
}

.history h4 {
	font-size: 0.9rem;
	text-transform: uppercase;
	opacity: 0.8;
}

.history ul {
	list-style: none;
	font-size: 0.9rem;
	margin-top: 4px;
}

.history li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	opacity: 0.9;
}

.history .track-text {
	flex: 1;
}

.history .track-time {
	white-space: nowrap;
	opacity: 0.8;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
	#player-card {
		flex-direction: column;
	}
	.player-left {
		flex-basis: auto;
	}
}