@charset "utf-8";
/* CSS Document */
body {
	background-color:transparent;
    margin: 0;
    font-family: Arial, sans-serif;
}

#player-container {
    width: 300px;
    text-align: center;
    color: #fff;
	/* couleur du flux par défaut */
    --stream-color: #0C0;
}
#artist {
    font-weight: bold;
    color: var(--stream-color);
}

#title {
    font-size: 14px;
	color:#0C0;
	color: var(--stream-color);
}

#cover-container {
    position: relative;
    width: 290px;
    height: 290px;
}

#cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
	border: solid 2px var(--stream-color);
}

#disc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: spin 5s linear infinite;
    animation-play-state: paused;
	opacity:0.4;
}

#cover-container.playing #disc {
    animation-play-state: running;
}

#play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 5;

    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Quand on joue : bouton caché */
#cover-container.playing #play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Quand on joue ET hover : pause visible */
#cover-container.playing:hover #play-btn {
    opacity: 1;
    pointer-events: auto;
}


#track-info {
    margin-top: 10px;
    background: rgba(0,0,0,0.6);
    padding: 6px;
    border-radius: 6px;
}



@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* ===== Volume & Mute ===== */

#mute-btn {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 7;
    display: block;
}

#volume-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 6;
}

#mute-btn,
#volume-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Apparition UNIQUEMENT au hover */
#cover-container:hover #mute-btn,
#cover-container:hover #volume-container {
    opacity: 1;
    pointer-events: auto;
}


#volume {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.75);
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
}

#volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
}
