* {
	box-sizing: border-box;
}

html {
	width: 100%;
	overflow-x: hidden;
}

body {
	background: #0a0a0a;
	color: #e0e6f6;
	font-family: 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-x: hidden; /* Empêche le défilement horizontal */
	position: relative;
	box-sizing: border-box;
}

/* Les styles des cœurs ont été supprimés */
.phone-container {
	max-width: 360px;
	width: calc(100% - 30px); /* Assure que le conteneur respecte les marges */
	margin: 10px auto;
	padding: 20px 15px;
	background-color: #0a0a0a;
	border-radius: 30px;
	box-shadow: 0 0 20px #000;
	position: relative;
	overflow-y: auto; /* Permet le défilement vertical */
	overflow-x: hidden; /* Bloque le défilement horizontal */
	min-height: 90vh; /* Hauteur minimale au lieu de hauteur fixe */
	max-height: 100%; /* S'adapte à la taille de l'écran */
	z-index: 1;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.music-player {
	background: #070e20;
	border-radius: 18px;
	box-shadow: 0 4px 24px #0006;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	width: 100%;
	max-width: 100%; /* Utilise toute la largeur disponible */
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
}
.player-main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 16px;
	margin-bottom: 10px;
}
.player-cover img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	box-shadow: 0 2px 12px #0008;
}
.player-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center; /* Centre le texte horizontalement */
	text-align: center;
	min-width: 0;
}
.player-title {
	font-weight: bold;
	font-size: 1.05em;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.player-artist {
	font-size: 0.95em;
	color: #a0b3d6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#play-pause {
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #3a7bd5 60%, #162447 100%);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 0 4px #fff2, 0 2px 8px #0008;
	background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polygon points="6,4 20,12 6,20"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	transition: box-shadow 0.2s;
}
#play-pause.pause {
	background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="6" y="4" width="4" height="16"/><rect x="14" y="4" width="4" height="16"/></svg>') !important;
}
#play-pause:active {
	box-shadow: 0 0 0 8px #3a7bd5aa, 0 2px 8px #0008;
}
.player-bar {
	width: 100%;
	margin: 0 auto 4px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
#seek-bar {
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #1f4068;
	accent-color: #3a7bd5;
}
.player-times {
	text-align: center;
	font-size: 0.95em;
	color: #a0b3d6;
	margin-bottom: 2px;
	width: 100%;
}
.player-info {
	text-align: center;
	margin-bottom: 10px;
}
.song-title {
	font-weight: bold;
	font-size: 1.2em;
	color: #fff;
}
.song-artist {
	font-size: 1em;
	color: #a0b3d6;
}
.player-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	justify-content: center;
	margin-top: 10px;
}

#seek-bar {
	width: 120px;
}

.photo-carousel {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px 0;
    height: 340px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.photo-frame {
    width: 75%; /* Plus petit pourcentage de la largeur pour éviter les débordements */
    max-width: 200px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
}
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 18px;
}
.carousel-img.active {
    opacity: 1;
    z-index: 1;
}
.photo-dots {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    background: rgba(0,0,0,0.6);
    border-radius: 0 0 18px 18px;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 3px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #777;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-counter {
    font-size: 12px;
    color: white;
    font-weight: 300;
}
.dot:hover {
    transform: scale(1.2);
}
.dot.active {
    background-color: #fff;
}


.carousel-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    z-index: 5;
    padding: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.carousel-arrow i {
    font-size: 18px;
}

.carousel-arrow:hover {
    background: rgba(58, 123, 213, 0.8);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.arrow-left {
    left: 8px;
}

.arrow-right {
    right: 8px;
}

.carousel-arrow:hover {
    background: rgba(58, 123, 213, 0.8);
    transform: scale(1.1);
}

.carousel-arrow i {
    font-size: 16px;
}
/* Styles de carousel remplacés par la photo avec coeurs */
.love-timer {
	background: transparent;
	border-radius: 18px;
	padding: 0 5px 10px;
	margin-bottom: 10px;
	text-align: center;
}
.love-timer h1 {
	color: #fff;
	font-size: 1.7em;
	margin: 0 0 5px;
	font-weight: normal;
}
#timer {
	font-size: 1em;
	color: #e74c3c;
	margin-bottom: 8px;
	background: rgba(0,0,0,0.3);
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.custom-text {
	background: transparent;
	padding: 5px;
	margin-bottom: 10px;
	text-align: center;
	flex-grow: 1;
}
#custom-message {
	font-size: 0.9em;
	color: #6c7ee1;
	line-height: 1.5;
}
.nav-dots {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: auto 0 10px;
	padding: 10px 0;
}
.nav-dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #444;
}
.nav-dot.active {
	background: #fff;
}
