/* styles.css */
        .debug-toggle, #debug-info, #song-debug, #json-debug{
            display: none;
            visibility: hidden;
            opacity: 0;
        }
        #subTitle {
            color: #fff!important;
        }
		html, body {
			touch-action: manipulation;
		}
		html {
			background: #000;
		}
		body {
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    height: 100vh;
		    max-height: 100vh;
		    overflow: hidden;
		    margin: 0;
		    /*position: fixed;
		    top: 0;
		    left: 0;
		    */font-family: "Unbounded", Arial, sans-serif;
		    transition: background-color 1s, color 0.5s;
		    animation: gradientAnimation 10s ease infinite;
		    -webkit-animation: gradientAnimation 10s ease infinite;
		}

		.equalizer-container {
			position: fixed;
			top: 0;
			left: 0;
			z-index: 0;
			display: block;
			width: 100vw;
			height: 100vh;
			text-align: center;
			pointer-events: none;
		}

		canvas {
			background-color: #1a1a1a00;
			border: 0px solid #5550;
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			z-index: -1;
			/* mix-blend-mode: luminosity; */
			mix-blend-mode: color-dodge;
			filter: blur(200px);
			/* opacity: 0.25; */
			opacity: 0.15;
			transform: scale(1.1);
			-webkit-transform: scale(1.1);
			-moz-transform: scale(1.1);
			-ms-transform: scale(1.1);
			-o-transform: scale(1.1);
			/*filter: drop-shadow(0, 0, 0, 20px);
			*//*-webkit-filter: drop-shadow(0, 0, 0, 20px);
			*/:;
			-webkit-filter: blur(200px);
}

		@keyframes gradientAnimation {
		    0% {
		        background-position: 0% 50%;
		    }

		    50% {
		        background-position: 100% 50%;
		    }

		    100% {
		        background-position: 0% 50%;
		    }
		}
		/* ============================================== */
		.topBar{
			position: fixed;
			top: 5svh;
			text-align: center;
			left: 18vw;
			transform: translateX(0%);
			/*padding-top: 2lvh;
			*//*width: 98vw;
			*//*right: 1vw;
			*/padding-top: 2lvh;
			/*width: 50vh;
			*/z-index: 100;
			color: #fff;
			text-shadow: #0003 0 0 15px;
			display: flex;
			align-content: center;
			align-items: center;
			flex-wrap: nowrap;
			flex-direction: row;
			justify-content: center;
			transition: left 0.5s ease, transform 0.5s ease;
			background: rgba(255, 255, 255, 0.15);
			/*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
			*/box-shadow: 0 8px 32px 0 rgba(133, 133, 133, 0.37);
			backdrop-filter: blur(18px);
			-webkit-backdrop-filter: blur(18px);
			border: 1px solid rgba(255, 255, 255, 0.18);
			padding: 0.5rem;
			color: whitesmoke;
			border-radius: .5rem;
			-webkit-border-radius: .5rem;
			-webkit-transform: translateX(0%);
			-moz-transform: translateX(0%);
			-ms-transform: translateX(0%);
			-o-transform: translateX(0%);
			-webkit-transition: left 0.5s ease, transform 0.5s ease;
			-moz-transition: left 0.5s ease, transform 0.5s ease;
			-ms-transition: left 0.5s ease, transform 0.5s ease;
			-o-transition: left 0.5s ease, transform 0.5s ease;
}
		.topBar.extend{
			left: 50%;
			transform: translateX(-50%);
			-webkit-transform: translateX(-50%);
			-moz-transform: translateX(-50%);
			-ms-transform: translateX(-50%);
			-o-transform: translateX(-50%);
			backdrop-filter: blur(80px);
			-webkit-backdrop-filter: blur(18px);
		}
		.title{
			text-align: right;
			position: static!important;
			margin-block-start: 0!important;
			margin-block-end: 0!important;
			/* top: 0; */
			/* left: 0; */
			width: 100%;
			/* font-size: 2vw; */
			text-align: lefT;
			z-index: 100;
			color: #fff;
			text-shadow: #0003 0 0 15px;
		}
		.title h1 {
    		margin-block-start: 0px!important;
			text-align: left;
			font-size: 3lvh;
		}
		/* .discography{ */
		.discoBox{
			font-size: 6vw;
			font-weight: bolder;
			aspect-ratio: 1;
			margin-block-start: 0px;
			height: 4lvh;
			width: 4lvh;
			aspect-ratio: 1 / 1;
			transition: transform 0.3s ease;
			cursor: pointer;
			transition: transform 0.3s ease, backdrop-filter 0.3s ease, right 0.3s ease, top 0.3s ease, bottom 0.3s ease;
			-webkit-transition: transform 0.3s ease, backdrop-filter 0.3s ease, right 0.3s ease, top 0.3s ease, bottom 0.3s ease;
			-moz-transition: transform 0.3s ease, backdrop-filter 0.3s ease, right 0.3s ease, top 0.3s ease, bottom 0.3s ease;
			-ms-transition: transform 0.3s ease, backdrop-filter 0.3s ease, right 0.3s ease, top 0.3s ease, bottom 0.3s ease;
			-o-transition: transform 0.3s ease, backdrop-filter 0.3s ease, right 0.3s ease, top 0.3s ease, bottom 0.3s ease;
			position: fixed;
			top: 70vh;
			right: 15vw;
			z-index: 99999999;
			background: rgba(255, 255, 255, 0.15);
			/*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
			*/box-shadow: 0 8px 32px 0 rgba(133, 133, 133, 0.37);
			backdrop-filter: blur(18px);
			-webkit-backdrop-filter: blur(18px);
			border: 1px solid rgba(255, 255, 255, 0.18);
			padding: 0rem;
			color: whitesmoke;
			border-radius: .5rem;
			-webkit-border-radius: .5rem;
			-moz-border-radius: .5rem;
			-ms-border-radius: .5rem;
			-o-border-radius: .5rem;
}
		.discoBox:hover{
			transform: scale(1.1);
			-webkit-transform: scale(1.1);
			-moz-transform: scale(1.1);
			-ms-transform: scale(1.1);
			-o-transform: scale(1.1);
			backdrop-filter: blur(2px);
		}
		.discoBox.extend {
			top: calc(5svh + 0.5rem);
			right: 35vw;
			transform: translateX(0%);
			-webkit-transform: translateX(0%);
			-moz-transform: translateX(0%);
			-ms-transform: translateX(0%);
			-o-transform: translateX(0%);
			backdrop-filter: blur(80px);
			-webkit-backdrop-filter: blur(18px);
}
		#discography{
			display: block;
			width: 100%;
			height: 100%;
			background-image: url(img/open.svg);
			background-size: contain;
			background-repeat: no-repeat;
		}
		.upload-button{
			display: none;
			z-index: 10000;
			font-size: 6vw;
			font-weight: bolder;
			height: 100%;
			aspect-ratio: 1;
			margin-block-start: 0px;
			height: 4lvh;
			width: 4lvh;
			aspect-ratio: 1 / 1;
			background-image: url(img/upload.png);
			background-size: contain;
			background-repeat: no-repeat;
			cursor: pointer;
			opacity: 0.7;
			transition: opacity 0.3s ease;
		}
		.download-button{
			z-index: 10000;
			font-size: 6vw;
			font-weight: bolder;
			height: 100%;
			aspect-ratio: 1;
			margin-block-start: 0px;
			height: 3lvh;
			width: 3lvh;
			aspect-ratio: 1 / 1;
			/* background-image: url(img/download.png); */
			background-image: url(img/download.svg);
			/* background-image: url(img/download1.svg); */
			background-size: contain;
			background-repeat: no-repeat;
			cursor: pointer;

			position: fixed;
			bottom: 2.5vh;
			right: 2vw;
			opacity: 0.7;
			transition: opacity 0.3s ease;
			transition: opacity 0.3s ease, transform 0.3s ease;
			-webkit-transition: opacity 0.3s ease, transform 0.3s ease;
			-moz-transition: opacity 0.3s ease, transform 0.3s ease;
			-ms-transition: opacity 0.3s ease, transform 0.3s ease;
			-o-transition: opacity 0.3s ease, transform 0.3s ease;
			
		}
		.share-button{
			z-index: 10000;
			font-size: 6vw;
			font-weight: bolder;
			height: 100%;
			aspect-ratio: 1;
			margin-block-start: 0px;
			height: 3lvh;
			width: 3lvh;
			aspect-ratio: 1 / 1;
			/* background:url('data:image/svg+xml,<svgxmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.58" y2="10.49"/></svg>') no-repeat center; */
			background:url('img/share.svg') no-repeat center;
			background-size: contain;
			background-repeat: no-repeat;
			cursor: pointer;
			border: 0;
			position: fixed;
			bottom: 2.5vh;
			left: 2vw;
			opacity: 0.7;
			background-position: center;
			transition: opacity 0.3s ease, transform 0.3s ease;
			-webkit-transition: opacity 0.3s ease, transform 0.3s ease;
			-moz-transition: opacity 0.3s ease, transform 0.3s ease;
			-ms-transition: opacity 0.3s ease, transform 0.3s ease;
			-o-transition: opacity 0.3s ease, transform 0.3s ease;
}

		.share-button:hover, .download-button:hover, .upload-button:hover{
			opacity: 1;
			transform: scale(1.1);
			-webkit-transform: scale(1.1);
			-moz-transform: scale(1.1);
			-ms-transform: scale(1.1);
			-o-transform: scale(1.1);
		}
		/* ================================================== */
		.audioPlayer {
		    height: 100dvh;
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			display: flex;
			justify-content: center;
			z-index: 1;
		}

		.audio-player {
			/* display: grid; */
			position: relative;
			/*grid-template-columns: 50% 50%;
			*/flex-direction: column;
			align-items: center;
			width: 90vw;
			margin: 0 auto;
			/*max-width: 600px;*/
			padding: 0rem;
			border-radius: 10px;
			transition: color 0.5s, transform 0.5s;
			justify-content: center;
			flex-wrap: nowrap;
			justify-items: center;
			-webkit-transition: color 0.5s, transform 0.5s;
			-moz-transition: color 0.5s, transform 0.5s;
			-ms-transition: color 0.5s, transform 0.5s;
			-o-transition: color 0.5s, transform 0.5s;
}
		/* .audio-player .cover, .overlay { */
		.audio-player {
			height: 75%;
			max-height: 75%;
			position: fixed;
			top: calc(75% - 50% - 11%);
			left: 10%;
			/*transform: translate(0%, -50%);*/
			width: auto;
			/*max-width: 600px;*/
			/*max-height: 15vw;*/
			/* border-radius: 10px; */
			/*margin-bottom: 2rem;*/
			/*margin-bottom: 6rem;*/
			/* box-shadow: 0 0px 50px rgba(0, 0, 0, 0.5); */
			aspect-ratio: 1 / 1;
			object-fit: cover;
			/*-webkit-transform: translate(0%, -50%);
			-moz-transform: translate(0%, -50%);
			-ms-transform: translate(0%, -50%);
			-o-transform: translate(0%, -50%);*/
		}
		.audio-player .cover-container{
			box-shadow: 0 0px 50px rgba(0, 0, 0, 0.5);
			overflow: hidden;
			border-radius: 10px;
			aspect-ratio: 1;
			height: 100%;
			transition: filter 1s ease-in-out;
			-webkit-transition: filter 1s ease-in-out;
			-moz-transition: filter 1s ease-in-out;
			-ms-transition: filter 1s ease-in-out;
			-o-transition: filter 1s ease-in-out;
}
		.audio-player .cover, .overlay{
			object-fit: cover;
			height: 100%;
			overflow: hidden;
			position: relative;
		}
		/* .cover[data-effect="card"] {
			transform-style: preserve-3d;
			transition: transform 0.1s ease;
			perspective: 1000px;
		} */
		.overlay{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			pointer-events: none;
			opacity: .5;
			mix-blend-mode: overlay;
		}
		.rightSide{
			display: flex;
			flex-wrap: nowrap;
			align-content: flex-start;
			justify-content: space-between;
			flex-direction: column;
			height: 98vh;
			width: 50vh;
			padding: 0 1rem;
			align-items: center;
		}
		.rightSide.title{
			font-size: 3vw;
		}
		.navMenu{
			width: 100%;
		}
		.firstLine{
			/* display: flex; */
			/* display: grid; */
			/* grid-template-columns: 80% 10% 10%; */
			flex-wrap: nowrap;
			/* align-content: center; */
			/* justify-content: space-between; */
			width: 100%;
			margin-bottom: 1rem;
		}
		.navigation{
			/*background:rgba(85, 85, 85, 0.2);
			*//*backdrop-filter: blur(10px);
			*//*border-radius: 10px;
			*//*padding: 1rem;
			*/position: fixed;
			top: calc(85% - 2rem - 10vh);
			right: 10%;
			/*transform: translate(0%, -50%);
			*//*bottom: 3vh;
			*/display: flex;
			flex-direction: column;
			align-items: flex-start;
			/*width: 90vw;
			/**/width: calc(50vh - 1rem);
			/*/width: calc(50vh - 1rem);
			/*width: 100%;
			*//*margin: 0 auto;
			*//*max-width: 600px;
			*//*padding: 0 1rem;
			*//*border-radius: 10px;
			*/justify-content: center;
			margin: 0 auto 2svh auto;
			background: rgba(255, 255, 255, 0.15);
			/*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
			*/box-shadow: 0 8px 32px 0 rgba(133, 133, 133, 0.37);
			backdrop-filter: blur(18px);
			-webkit-backdrop-filter: blur(18px);
			border: 1px solid rgba(255, 255, 255, 0.18);
			padding: 1rem;
			z-index: 10;
			color: whitesmoke;
			border-radius: 1rem;
			-webkit-border-radius: 1rem;
			-moz-border-radius: 1rem;
			-ms-border-radius: 1rem;
			-o-border-radius: 1rem;
			transition: backdrop-filter 0.5s ease-out, color 0.5s, transform 0.5s;
			-webkit-transition: backdrop-filter 0.5s ease-out, color 0.5s, transform 0.5s;
			-moz-transition: backdrop-filter 0.5s ease-out, color 0.5s, transform 0.5s;
			-ms-transition: backdrop-filter 0.5s ease-out, color 0.5s, transform 0.5s;
			-o-transition: backdrop-filter 0.5s ease-out, color 0.5s, transform 0.5s;
}
		.navigation:hover {
			backdrop-filter: blur(5px);
			-webkit-backdrop-filter: blur(5px);
		}
		.songTitle, .songArtist {
			white-space: nowrap;
			    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
		}
		.song-info {
		    /* align-self: flex-end; */
		    width: 100%;
		    /* margin-bottom: 20px; */
		    /* text-align: left; */
		    text-align: center;
		}

		.songTitle {
		    margin: 0;
		    padding: 0;
		    font-size: 2vw;
		    font-weight: bold;
		    margin-bottom: 5px;
			width: 100%!important;
			text-align: center;
		}

		.audio-player .songArtist {
		    font-size: 1vw;
		    opacity: 0.6;
		    margin: 0;
		    padding: 0;
		    font-weight: lighter;
			font-family: "Unbounded", Arial, sans-serif;
		}

		.progress-container {
		    display: flex;
		    align-items: center;
		    width: 100%;
		    /* margin-bottom: 20px; */
		}

		.progress-bar {
		    flex: 1;
		    /* height: 4px; */
		    height: 1svh;
			/* backdrop-filter: blur(3px); */
		    /* border-radius: 2px; */
		    margin: 0 10px;
		    position: relative;
		    /* background-color: rgba(255, 255, 255, 0.1); */
		    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
		    cursor: pointer;

			background: rgba(255, 255, 255, 0.15);
			box-shadow: 0 8px 32px 0 rgba(106, 106, 106, 0.37);
			backdrop-filter: blur(18px);
			-webkit-backdrop-filter: blur(18px);
			border: 1px solid rgba(255, 255, 255, 0.18);
			border-radius: 1rem;
			/* padding: 1.5rem; */
			z-index: 10;
			color: whitesmoke;
		}

		.progress {
			height: 100%;
			background-color: rgba(255, 255, 255, 0.3);
			width: 0;
			transition: .3s ease-in all;
			-webkit-transition: .3s ease-in all;
			-moz-transition: .3s ease-in all;
			-ms-transition: .3s ease-in all;
			-o-transition: .3s ease-in all;
}

		#current-time,
		#duration {
		    font-size: 14px;
		    font-family: "Unbounded", Arial, sans-serif;
		}

		.controls {
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    padding: 1% 0;
			z-index: 100;
			width: 100%;
		}

		/* #discography { */
		.discoBox {
			/*background: #0005;
			border-radius: 10px;
			padding: 10px;
			cursor: pointer;
			font-family: "Unbounded", Arial, sans-serif;
			font-size: 24px;
			border: none;
			padding: 1% 1%;
			position: fixed;
			top: 85dvh;
			left: 50vw;
			transform: translateX(-50%);
			z-index: 10000;
			*/
		}
		.controls button {
			background-color: transparent;
			border: none;
			border-radius: 10px;
			font-size: 24px;
			cursor: pointer;
			margin: 0 15px;
			height: 5lvh;
			width: 5lvh;
			line-height: 5lvh;
			font-size: 3lvh;
			font-family: "Unbounded", Arial, sans-serif;
			/* filter: drop-shadow(0px 0px 20px black); */
			/* -webkit-filter: drop-shadow(0px 0px 20px black); */
}
		#play-pause-button{
			font-size: 5lvh!important;
			/* font-size: 240%; */
			/* background-image: url("img/play.svg"); */
    		/* margin-top: -1rem; */
		}

		/* Library */
		.libraryBox {
		    position: fixed;
		    top: 0%;
		    left: 0;
		    width: 100%;
		    /* height: 0vh; */
		    /* max-height: 0vh; */
			visibility: hidden;
			
			height: 100dvh;
			max-height: 100dvh;
		    z-index: 10;
		    opacity: 0;
		    overflow-y: scroll;
		    /* backdrop-filter: blur(25px); */
		    backdrop-filter: brightness(0.25) blur(8px);
			filter: blur(25px);
			box-shadow: 0px 0 0px #fff;
		    transition: all 0.5s ease;
		}
		
		.libraryBox.opened {
			visibility: visible;
			/* height: 100dvh; */
		    /* max-height: 100dvh; */
			filter: blur(0px);
		    opacity: 1;
			box-shadow: 10px 0 10px #fff;
		}

		.library {
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			align-content: flex-start;
			justify-content: space-between;
			gap: 2vw;
			width: 90vw;
			margin: auto;
			padding: 9vh 0 0vh 0;
		}
		.credits{
			padding: 1vh 0 10vh 0;
			text-align: center;
			width: 100%;
			font-size: 0.8rem;
			opacity: 0.5;
		}
		/* <a href="https://wabers.ch/membre/tanguy" target="_blank" rel="noopener noreferrer">Code par Tanguy Genier</a></div> */
		.songBox {
		    width: calc(100dvw/5);
		    /*border-radius: 8px;
		    */overflow: hidden;
		    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
		    */transition: transform 0.3s ease, box-shadow 0.3s ease;
		    cursor: pointer;
		    background-color: rgba(255, 255, 255, 0.1);
		    content-visibility: auto;
		    contain-intrinsic-size: 200px;
		    background: rgba(255, 255, 255, 0.15);
		    box-shadow: 0 8px 32px 0 rgba(106, 106, 106, 0.37);
		    /*backdrop-filter: blur(18px);
		    *//*-webkit-backdrop-filter: blur(18px);
		    */border: 1px solid rgba(255, 255, 255, 0.18);
		    border-radius: 1rem;
		    /*padding: 1.5rem;
		    *//*z-index: 10;
		    */color: whitesmoke;
		    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
		    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
		    -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
		    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

		.songBox:hover {
		    transform: translateY(-5px);
		    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
		}

		.songBox img {
		    width: 100%;
		    aspect-ratio: 1/1;
		    object-fit: cover;

			/* Optimisations de performance */
			image-rendering: auto;
			image-rendering: crisp-edges;
			image-rendering: -webkit-optimize-contrast;
			
			/* Force l'accélération matérielle */
			transform: translateZ(0);
			backface-visibility: hidden;
			
			/* Chargement progressif */
			opacity: 0;
			animation: fadeInImage 0.5s ease forwards;
		}
		@keyframes fadeInImage {
			from { opacity: 0; transform: scale(0.95); }
			to { opacity: 1; transform: scale(1); }
		}

		.songBox #songTitle,
		.songBox #songArtist {
		    padding: 8px 12px;
		    white-space: nowrap;
		    overflow: hidden;
		    text-overflow: ellipsis;
			font-weight: lighter;
		}

		.songBox #songTitle {
		    font-size: 16px;
		    font-weight: bold;
		    padding-bottom: 0;
		}

		.songBox #songArtist {
		    font-size: 14px;
		    opacity: 0.5;
		    padding-top: 2px;
		}
		
		.download {
			width: 10vw;
			filter: invert(1);
		}

		/* Debug toggle */
		.debug-toggle {
		    position: fixed;
		    bottom: 10px;
		    right: 10px;
		    padding: 5px 10px;
		    background: rgba(0, 0, 0, 0.5);
		    color: white;
		    border-radius: 5px;
		    font-size: 12px;
		    cursor: pointer;
		    z-index: 1000;
		}

		/* Error message display */
		.error-message {
		    position: fixed;
		    top: 10px;
		    left: 10px;
		    padding: 10px;
		    background: rgba(255, 0, 0, 0.3);
		    color: white;
		    border-radius: 5px;
		    font-size: 14px;
		    z-index: 1000;
		    display: none;
		}

		/* Upload button */
		.upload-button {
			/* position: fixed; */
			/* top: 8vh; */
			/* left: 6vw; */
			/* padding: 5px 10px; */
			/* background: rgba(0, 0, 0, 0.7); */
			color: white;
			border-radius: 5px;
			font-size: 90%;
			font-style: normal;
			cursor: pointer;
			z-index: 1000;
			text-decoration: none;
		}

		/* .upload-button:hover {
		    background: rgba(76, 175, 80, 1);
		} */

@media screen and (orientation: landscape) {
	.title {
        transform: translateX(0%)!important;
    }
}
@media screen and (orientation: portrait) {
	.audio-player {
		width: 90%;
		/* position: fixed;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: auto; */
		/* max-width: 600px; */
		/* max-height: 15vw; */
		/* border-radius: 8px; */
		/* margin-bottom: 2rem; */
		/* margin-bottom: 6rem; */
		/* box-shadow: 0 0px 50px rgba(0, 0, 0, 0.5); */
		aspect-ratio: 1 / 1;
		object-fit: cover;
		left: 0;
		align-items: center;
		flex-direction: column;
		justify-content: center;
	}
	.topBar{
		/* top: 88svh; */
		bottom: 3svh;
		top: auto;
		left: 5svw;
		/*left: 50%;
		*//*transform: translateX(-50%);
		*//*padding-top: 2.5lvh;
		width: 90vw;
		*/display: none;
		opacity: 0;
		transition: all 0.5s ease;
		-webkit-transition: all 0.5s ease;
		-moz-transition: all 0.5s ease;
		-ms-transition: all 0.5s ease;
		-o-transition: all 0.5s ease;
}
	.topBar.extend{
		display: block;
		opacity: 1;
	}
	.controls {
		padding: 3% 0 1% 0;
	}
	.songTitle {
		font-size: 4vw;
	}
	
	.audio-player .songArtist {
		font-size: 4vw;
	}
	
	.download {
		width: 10vw;
	}

	.songBox {
		/* width: calc(100dvw / 2.3); */
		width: calc(100dvw / 1);
		height: 10svh;
		display: grid;
		grid-template-columns: 10svh calc(100% - 10svh - 3rem);
		flex-direction: row;
		flex-wrap: nowrap;
		align-content: stretch;
		justify-content: start;
		align-items: center;
	}

	.songBox:hover {
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
		transform: translateY(0px);
		-webkit-transform: translateY(0px);
		-moz-transform: translateY(0px);
		-ms-transform: translateY(0px);
		-o-transform: translateY(0px);
	}
	.songBox .cover-container{
		height: 100%;
		aspect-ratio: 1 / 1;

	}
	.songBox img {
		width: auto;
		height: 100%;
		object-fit: cover;
	}
	.metadata{
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: center;
		align-items: flex-start;
		height: 100%;
		width: calc(100% - .5rem);
		padding: 0 1rem;
		
		-webkit-mask-image: linear-gradient(to right, rgba(255, 255, 255, 1) 95%, transparent 100%);
		mask-image: linear-gradient(to right, rgba(255, 255, 255, 1) 95%, transparent 100%);
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-position: center;
		-webkit-mask-size: cover;
	}
	.songBox #songTitle,
	.songBox #songArtist {
		padding: 0;
		white-space: nowrap;
		overflow: hidden;
		display: inline-block;
		/* width: 100%; */
	}

	.library {
		/* padding: 5rem 0; */
        gap: 2vh 1vw;
	}
	.audioPlayer {
		height: 90%;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		display: flex;
		justify-content: center;
	}
	.audio-player .cover-container{
		width: 90vw;
		height: auto !important;
		max-height: calc(100% - 35svh - 2rem) !important;
		object-fit: cover;
		aspect-ratio: 1;
		height: auto;
		position: fixed;
		/* top: 16svh; */
		bottom: calc(35svh);
		left: 50%;
		/*margin: 0 auto;
		*/transform: translateX(calc(-50% - 0%));
		-webkit-transform: translateX(calc(-50% - 0%));
		-moz-transform: translateX(calc(-50% - 0%));
		-ms-transform: translateX(calc(-50% - 0%));
		-o-transform: translateX(calc(-50% - 0%));
}
	.audio-player .cover{
		width: 100%;
		/* width: 85vw; */
        /* height: 100%; */
        height: 105%;
		/* margin-bottom: 2rem; */
	}
	.navigation{
		height: max-content;
		position: fixed;
		/*bottom: 3vh;*/
		top: calc(85% - 0rem - 15vh);
		/* bottom: calc(3svh - 0rem - 15vh); */
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		/*width: calc(50vh - 1rem);*/
		justify-content: center;
		margin: 0 auto 2svh auto;
		background: rgba(255, 255, 255, 0.15);
		box-shadow: 0 8px 32px 0 rgba(133, 133, 133, 0.37);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border: 1px solid rgba(255, 255, 255, 0.18);
		/*padding: 1rem;
		*/z-index: 10;
		color: whitesmoke;
		border-radius: 1rem;
		-webkit-border-radius: 1rem;
		-moz-border-radius: 1rem;
		-ms-border-radius: 1rem;
		-o-border-radius: 1rem;
		padding: 1em;
		width: 85vw;
	}
	#current-time,
	#duration {
		font-size: 2vw;
	}
	.discoBox{
		bottom: calc(3svh + 0rem);
		top: auto;
		right: 5svw;
		/* top: 10svh;
		left: 50%;
		transform: translateX(-50%);
		-webkit-transform: translateX(-50%);
		-moz-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
		-o-transform: translateX(-50%); */
	}
	.discoBox:hover {
		transform: translateX(-0%);
		-webkit-transform: translateX(-0%);
		-moz-transform: translateX(-0%);
		-ms-transform: translateX(-0%);
		-o-transform: translateX(-0%);
		backdrop-filter: blur(8px);
}
	.discoBox.extend {
		bottom: calc(3svh + 0.5rem);
		/* top: calc(88svh + .5rem); */
		top: auto;
		right: 5svw;
		/*top: 10svh;
		*//*right: 50%;
		*/transform: translateX(-0%);
		-webkit-transform: translateX(-0%);
		-moz-transform: translateX(-0%);
		-ms-transform: translateX(-0%);
		-o-transform: translateX(-0%);
		backdrop-filter: blur(80px);
		-webkit-backdrop-filter: blur(18px);
}
}

/* .progressive-blur {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 15dvh;
    z-index: 15;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
	pointer-events: none;
}
.progressive-blur.top {
    top: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);
}
.progressive-blur.bottom {
	bottom: -1px;
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 100%);	
} */

/* Styles pour les indicateurs de chargement */
.cover-container {
	position: relative;
	display: inline-block;
}

.loading-overlay {
	position: relative;
	top: 69.7vh;
	/* top: 0vh; */
	left: 0;
	width: 100%;
	height: 100%;
	/* background: rgba(0, 0, 0, 0.7); */
	padding: 0.5vh;
	border-radius: 50px;
	/* color: white; */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold;
	/* border-radius: inherit; */
	opacity: 1;
	transition: opacity 0.3s ease;
	/* backdrop-filter: blur(2px); */

	background: rgba(255, 255, 255, 0.01);
	box-shadow: 0 8px 32px 0 rgba(69, 69, 69, 0);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 1rem;
	padding: .5rem;
	z-index: 10;
	color: whitesmoke;
}

.loading-overlay.hidden {
	opacity: 0;
	pointer-events: none;
}

.loading-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.audio-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: inherit;
}

.audio-loading .loading-spinner {
	width: 16px;
	height: 16px;
	margin-right: 6px;
}
#ios-fix-button{
	display: none;
}


/* CSS Animations for notifications */
@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

.install-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 25px;
	cursor: pointer;
	z-index: 1000;
	font-family: inherit;
	transition: opacity 0.3s ease;
}

/* iOS Fix Button Styles */
.ios-fix-button {
	display: none;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

/* CSS supplémentaire pour Media Session et animations */
.audio-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: inherit;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.8);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	to {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.8);
	}
}

/* Corrections pour iOS */
.ios-touch-message {
	animation: fadeIn 0.3s ease-out;
}

/* Transition fluide pour les filtres de l'image de couverture */
#cover-image {
	transition: filter 0.5s ease-in-out;
}
@media screen and (max-width: 800px) and (max-height: 450px) {
	.navigation{
		top: calc(50% - 0rem - 10vh);
		right: 7%;
		width: max(30vw, 200px);
	}
	.songTitle, .songArtist {
		font-size: 4svh;
	}
	.share-button, .download-button, .discoBox{
		height: 4lvh;
		width: 4lvh;
	}
	.share-button, .download-button{
		bottom: 4.5vh;
	}
	.discoBox{
		top: 15vh;
		right: 7vw;
	}
	.topBar{
		opacity: 0;
		pointer-events: none;
		/* display: none; */
		transition: all 0.5s ease;
		-webkit-transition: all 0.5s ease;
		-moz-transition: all 0.5s ease;
		-ms-transition: all 0.5s ease;
		-o-transition: all 0.5s ease;
}
	.topBar.extend{
		opacity: 1;
		pointer-events: auto;
		/* display: block; */
	}
	.controls{
		padding: 7% 0 1% 0;
	}
}


/* ================================ LAZY LOAD */

/* Optimisation images lazy loading */
.songBox img {
	/*Placeholderbackgroundcolor*/background-color: #222;
	transition: opacity 0.5s ease, background 0.5s ease;
	-webkit-transition: opacity 0.5s ease, background 0.5s ease;
	-moz-transition: opacity 0.5s ease, background 0.5s ease;
	-ms-transition: opacity 0.5s ease, background 0.5s ease;
	-o-transition: opacity 0.5s ease, background 0.5s ease;
}
.songBox img[data-src] {
	background: linear-gradient(45deg, #333, #555);
	opacity: 0.3;
}

.libraryBox:not(.opened) .songBox img {
	background: #444;
}

.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	pointer-events: none;
}

.loading-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	pointer-events: none;
	-webkit-animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}