@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: #000;
}

#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;
}

/* Like / Dislike */
.like-row {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.btn-like, .btn-dislike {
	border: none;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.9rem;
	opacity: 0.9;
}

.btn-like { background: #096A09; color: #FFFFFF; }
.btn-dislike { background: #e74c3c; color: #FFFFFF; }

.btn-like.active,
.btn-dislike.active {
	box-shadow: 0 0 0 2px #ffffff55;
	opacity: 1;
}

/* Historique */
.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;
}

/* Stores */
.bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap; /* passe en plusieurs lignes sur mobile */
	margin-top: 4px;
}

.stores {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.store-btn {
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.store-btn.google { background: #689f38; }
.store-btn.apple { background: #232323; }

/* Réseaux sociaux */
.socials {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 0.85rem;
}

.social {
	text-decoration: none;
	color: #fff;
	opacity: 0.85;
	border-radius: 999px;
	padding: 4px 10px;
}

.social.fb { color: #1877f2; }
.social.x { color: #ccc; }
.social.ig { color: #e1306c; }
.social.in { color: #0a66c2; }

@media (max-width: 768px) {
	#player-card {
		flex-direction: column;
	}
	.player-left {
		flex-basis: auto;
	}
}