body {
    background-color: #CECECE; /* Couleur pour le PC */
    margin: 0;
    padding: 0;
    /* On s'assure qu'aucun ancien style de centrage ne traîne */
    display: block; 
}

#radio-container {
    background-color: #4a4a4a;
    font-family: Arial, Helvetica, sans-serif;
    padding: 12px;
    border-radius: 8px; /* Arrondis sur PC */
    
    /* --- NOUVEL ALIGNEMENT PC --- */
    margin-top: 0px;    /* marge pour le haut de l'écran */
    margin-left: 0px;   /* marge pour le bord gauche */
    margin-right: auto;  /* IMPORTANT : Pousse le reste de l'espace à droite, bloquant le player à gauche */
    
    width: 100%;             
    max-width: 400px;        
    text-align: center;      
    box-shadow: inset 1px 1px 0px #ffffff, 4px 4px 10px rgba(0,0,0,0.2);
    border: 1px solid #b0b0b0;
    box-sizing: border-box;
}

/* --- OPTIMISATION SMARTPHONE --- */
@media screen and (max-width: 600px) {
    body {
        background-color: #4a4a4a; /* On met le fond de la page comme le player */
    }

    #radio-container {
        width: 100%;       
        max-width: 100%;   /* Utilise toute la largeur de l'écran */
        border-radius: 0;  /* Supprime les arrondis */
        
        /* --- RESET ALIGNEMENT SUR MOBILE --- */
        margin: 0;         /* Colle le player parfaitement aux bords (0 partout) */
        
        border: none;      /* Enlève le contour gris clair */
        box-shadow: none;  /* Enlève l'effet de relief */
        padding: 15px;     /* On redonne un peu d'air à l'intérieur */
    }
}

/* --- HEADER --- */
.header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px;
}

#logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

#logo img:hover {
    opacity: 0.8;
    transition: 0.3s;
}

#play-pause-btn {
    background-color: #ff8800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: 0.3s;
    outline: none !important;
}

/* --- BLOC INFOS --- */
.info-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cover-art {
    max-width: 180px; 
    height: auto;
    object-fit: cover;
    margin: 0 auto 8px auto;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.listening-label {
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- TITRE DEFILANT --- */
.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background: rgba(0,0,0,0.2);
    margin: 5px 0;
    border-radius: 4px;
    height: 35px;
}

#track-title {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
    line-height: 35px;
}

.artist-color { color: #ff8800; text-transform: uppercase; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- BOUTON ACHAT --- */
.btn-buy {
    display: inline-block;
    background-color: #202020;
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid #555;
    margin-top: 10px;
    outline: none !important;
}

/* --- ADS ET FOOTER --- */
#ads-zone {
    margin: 8px auto;
    display: flex;
    justify-content: center;
    overflow: hidden; 
    clear: both;      
}

.footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.q-link, .playlist-link a {
    color: #88ccee;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}

.q-link.active { color: #ff8800; }

/* Masquer le lecteur par défaut */
audio { display: none; }
