/**
 * Vinylshopmod — Bandeau lecteur bottom-bar
 * v1.2.1 — durci pour résister aux conflits CSS du thème vinylshop
 *
 * Stratégie :
 * - Sélecteur de spécificité élevée : body #vsm-bottom-bar.vsm-bottom-bar
 * - !important partout pour écraser les règles du thème (.btn, #title, #progress, etc.)
 * - Reset complet des enfants pour neutraliser le styling hérité
 * - Hauteur, fond et layout flex stricts
 */

/* ============================================================
   RESET COMPLET DU BANDEAU ET DE SES ENFANTS
   ============================================================ */
body #vsm-bottom-bar,
body #vsm-bottom-bar * {
	box-sizing: border-box !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	max-width: none !important;
}

body #vsm-bottom-bar.vsm-bottom-bar {
	all: initial;
	box-sizing: border-box !important;
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	height: 88px !important;
	min-height: 88px !important;
	max-height: 88px !important;
	z-index: 9999 !important;
	background: #1a1a1a !important;
	background-color: #1a1a1a !important;
	color: #fff !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
	border-top: 1px solid #2a2a2a !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	overflow: visible !important;
	transform: none !important;
	transition: transform 0.3s ease !important;
}

body #vsm-bottom-bar.vsm-bottom-bar.vsm-hidden {
	transform: translateY(110%) !important;
}

/* Conteneur interne flex */
body #vsm-bottom-bar.vsm-bottom-bar .vsm-bar-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 18px !important;
	padding: 10px 44px 10px 16px !important;
	margin: 0 auto !important;
	max-width: 1600px !important;
	width: 100% !important;
	height: 88px !important;
	background: transparent !important;
}

/* ============================================================
   BLOC GAUCHE : POCHETTE + INFOS PRODUIT
   ============================================================ */
body #vsm-bottom-bar.vsm-bottom-bar .vsm-product-info {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	width: 250px !important;
	min-width: 250px !important;
	max-width: 250px !important;
	flex: 0 0 250px !important;
	text-decoration: none !important;
	color: inherit !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-product-info:hover {
	color: #00bfe6 !important;
	text-decoration: none !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-cover-wrapper {
	position: relative !important;
	width: 60px !important;
	height: 60px !important;
	min-width: 60px !important;
	flex: 0 0 60px !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	background: #2a2a2a !important;
	display: block !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-cover {
	width: 60px !important;
	height: 60px !important;
	object-fit: cover !important;
	display: block !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-cover-overlay {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	pointer-events: none !important;
	background: transparent !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-disk-spin {
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	background: radial-gradient(circle at center, #555 0 4px, #111 4px 8px, #555 8px) !important;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
	opacity: 0 !important;
	transition: opacity 0.2s !important;
}

body #vsm-bottom-bar.vsm-bottom-bar.vsm-playing .vsm-disk-spin {
	opacity: 1 !important;
	animation: vsm-spin 3s linear infinite !important;
}

@keyframes vsm-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-meta {
	min-width: 0 !important;
	flex: 1 1 auto !important;
	overflow: hidden !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-product-name {
	font-size: 13px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: #fff !important;
	line-height: 1.3 !important;
	display: block !important;
	width: 100% !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-track-name {
	font-size: 12px !important;
	color: #aaa !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	margin-top: 2px !important;
	display: block !important;
	width: 100% !important;
	line-height: 1.3 !important;
}

/* ============================================================
   BLOC CENTRAL : CONTRÔLES + PROGRESSION
   ============================================================ */
body #vsm-bottom-bar.vsm-bottom-bar .vsm-player-core {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 6px !important;
	min-width: 0 !important;
	height: 68px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-controls {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	height: 30px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn {
	background: transparent !important;
	border: 0 !important;
	color: #fff !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.15s, color 0.15s !important;
	font: inherit !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn:hover {
	background: rgba(255, 255, 255, 0.1) !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-play,
body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-pause {
	background: #fff !important;
	color: #1a1a1a !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-play:hover,
body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-pause:hover {
	background: #00bfe6 !important;
	color: #1a1a1a !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn svg {
	width: 18px !important;
	height: 18px !important;
	fill: currentColor !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-play svg,
body #vsm-bottom-bar.vsm-bottom-bar .vsm-btn-pause svg {
	width: 22px !important;
	height: 22px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-progress-wrapper {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px !important;
	height: 14px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-time {
	font-size: 11px !important;
	color: #aaa !important;
	min-width: 36px !important;
	max-width: 36px !important;
	text-align: center !important;
	font-variant-numeric: tabular-nums !important;
	font-weight: 400 !important;
	display: inline-block !important;
	flex: 0 0 36px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-progress {
	flex: 1 1 auto !important;
	height: 6px !important;
	background: #333 !important;
	border-radius: 3px !important;
	position: relative !important;
	cursor: pointer !important;
	overflow: hidden !important;
	width: auto !important;
	min-width: 0 !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-progress-buffer {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	height: 100% !important;
	background: #444 !important;
	width: 0 !important;
	transition: width 0.2s linear !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-progress-bar {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	height: 100% !important;
	background: linear-gradient(90deg, #00bfe6, #00d4ff) !important;
	width: 0 !important;
	border-radius: 3px !important;
	transition: width 0.1s linear !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-tracklist {
	display: none !important; /* On masque par défaut, hauteur trop juste pour 88px */
}

/* ============================================================
   BLOC DROIT : PRIX + AJOUT PANIER
   ============================================================ */
body #vsm-bottom-bar.vsm-bottom-bar .vsm-cart-block {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 14px !important;
	flex: 0 0 auto !important;
	padding-left: 14px !important;
	border-left: 1px solid #2a2a2a !important;
	height: 60px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-price {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #fff !important;
	white-space: nowrap !important;
	min-width: 60px !important;
	text-align: right !important;
	line-height: 1 !important;
	display: inline-block !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart {
	background: #00bfe6 !important;
	color: #1a1a1a !important;
	border: 0 !important;
	padding: 10px 18px !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: background 0.15s, transform 0.1s !important;
	white-space: nowrap !important;
	font-family: inherit !important;
	height: 40px !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	min-width: 160px !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart:hover:not(:disabled) {
	background: #1ad0f0 !important;
	color: #1a1a1a !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart:active:not(:disabled) {
	transform: scale(0.97) !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart.vsm-success {
	background: #4caf50 !important;
	color: #fff !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart.vsm-error {
	background: #e53935 !important;
	color: #fff !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart svg {
	width: 18px !important;
	height: 18px !important;
	fill: currentColor !important;
	flex-shrink: 0 !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart .vsm-cart-label {
	display: inline-block !important;
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* ============================================================
   BOUTON FERMER
   ============================================================ */
body #vsm-bottom-bar.vsm-bottom-bar .vsm-close {
	position: absolute !important;
	top: 6px !important;
	right: 8px !important;
	background: rgba(0, 0, 0, 0.4) !important;
	border: 0 !important;
	color: #ccc !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 26px !important;
	transition: color 0.15s, background 0.15s !important;
	box-shadow: none !important;
	outline: none !important;
	z-index: 10 !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-close:hover {
	color: #fff !important;
	background: rgba(229, 57, 53, 0.9) !important;
}

body #vsm-bottom-bar.vsm-bottom-bar .vsm-close svg {
	width: 14px !important;
	height: 14px !important;
	fill: currentColor !important;
}

/* ============================================================
   PADDING DE PAGE pour ne pas masquer le footer
   ============================================================ */
body.vsm-bar-visible {
	padding-bottom: 88px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-product-info {
		width: 200px !important;
		min-width: 200px !important;
		max-width: 200px !important;
		flex: 0 0 200px !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart {
		min-width: 0 !important;
		padding: 10px 14px !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart .vsm-cart-label {
		display: none !important;
	}
}

@media (max-width: 767px) {
	body #vsm-bottom-bar.vsm-bottom-bar {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-bar-inner {
		flex-wrap: wrap !important;
		gap: 8px 10px !important;
		padding: 8px 10px !important;
		height: auto !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-product-info {
		width: calc(100% - 40px) !important;
		min-width: 0 !important;
		max-width: none !important;
		flex: 1 1 calc(100% - 40px) !important;
		order: 1 !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-close {
		order: 2 !important;
		flex: 0 0 28px !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-cover-wrapper {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		flex: 0 0 44px !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-cover {
		width: 44px !important;
		height: 44px !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-player-core {
		order: 3 !important;
		flex: 1 1 100% !important;
		height: auto !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-cart-block {
		order: 4 !important;
		flex: 1 1 100% !important;
		justify-content: space-between !important;
		border-left: 0 !important;
		border-top: 1px solid #2a2a2a !important;
		padding-top: 8px !important;
		padding-left: 0 !important;
		height: auto !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-price {
		font-size: 16px !important;
		text-align: left !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart {
		flex: 1 1 auto !important;
		justify-content: center !important;
		min-width: 0 !important;
	}
	body #vsm-bottom-bar.vsm-bottom-bar .vsm-add-to-cart .vsm-cart-label {
		display: inline-block !important;
	}
	body.vsm-bar-visible {
		padding-bottom: 200px !important;
	}
}

/* ============================================================
   NEUTRALISATION DES ANCIENS ÉLÉMENTS DE PLATINE DU THÈME
   (au cas où le thème injecte encore #sticky-platine, on le cache)
   ============================================================ */
body #sticky-platine.bloc-platine-vinyl:not(.vinylshop-bottom-player) {
	display: none !important;
}
