/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --topbar-h: 44px;
  --footer-h: 1px; /* espace réservé en bas */
}

body {
  padding-top: calc(var(--topbar-h) + 20px);
  padding-bottom: var(--footer-h);
  background-color: black;
  color: red;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow-x: hidden;
}


#conteneur-liste {
     display: flex;
    width: 100%;
    height: calc(100vh - 220px); /* adapte selon votre barre du bas */
    gap: 10px;
}

.colonne {
    flex: 1;              /* partage l'espace disponible */
    display: flex;
    flex-direction: column;
}

.colonne ul {
    flex: 1;              /* le ul remplit toute la hauteur */
    overflow-y: auto;     /* ascenseur si nécessaire */
    margin: 0;
    padding: 0;
    border: 1px solid #333;
}

#listeArtiste,
#playlist {
    height: 600px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 0;
    margin: 0;
    list-style: none;
}

#listeArtiste li,
#playlist li {
    padding: 5px;
    cursor: pointer;
}

#listeArtiste li:nth-child(odd),
#playlist li:nth-child(odd) {
    background: #222;
}

#listeArtiste li:nth-child(even),
#playlist li:nth-child(even) {
    background: #2e2e2e;
}



/* ============================================================
   TOPBAR FIXE
   ============================================================ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 8px 12px;
  background: #111;
  color: #f27da9;

  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* -----------------------------------------------------------
   FOOTER MODERNE MPD — Noir / Jaune
----------------------------------------------------------- */

#cyp-footer {
    justify-content: flex-start; /* évite les recentrages imprévus */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: #111;
    border-top: 2px solid #222;

    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    z-index: 9999;
    text-align: center;
    color: #f27da9;

    box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}

/* Blocs internes */
#cyp-footer .footer-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Animation keyframes moderne */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Texte temps */
.footer-time {
    color: #f27da9;
    font-size: 0.95em;
    margin: 2px 0 6px 0;
}

/* Slider moderne */
.footer-slider {
    -webkit-appearance: none;
    width: 85%;
    height: 6px;
    border-radius: 5px;
    background: #333;
    outline: none;
    overflow: hidden;
}

/* Curseur du slider */
.footer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: yellow;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px yellow;
}

/* Volume */
.footer-label {
    color: #f27da9;
    font-size: 0.9em;
    margin-bottom: 4px;
}

/* Barre progression playlist */
#playlistProgressContainer {
    width: 85%;
    height: 10px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}

#playlistProgressBar {
    height: 100%;
    width: 0%;
    background: yellow;
    transition: width 0.3s linear;
    box-shadow: 0 0 6px yellow;
}

/* ============================================================
   STYLE ARTISTES COMPACT – SANS ESPACE ENTRE LES <li>
   ============================================================ */
#playlist li:nth-child(odd) {
    background-color: #222;
}

#playlist li:nth-child(even) {
    background-color: #2e2e2e;
}

#playlist li:hover {
    background-color: #333;
}
#listeArtisteli,
#playlistli {
    margin: 0 !important;
    padding: 0 !important;

    border-radius: 0 !important;
    box-shadow: none !important;
    list-style: none;
    width: 100% !important;
}

/* Ligne compacte (artist-row) */
.artist-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    padding: 10px 14px;
    background: #111;
    border-bottom: 1px solid #333;
    text-align: left !important;   /* ALIGNE TOUT À GAUCHE */
}


.artist-count,
.artist-name {
    display: block;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color : #fff;
}


/* ============================================================
   BOUTONS / IMAGES
   ============================================================ */
.btn-img {
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-img:hover {
  transform: scale(1.1);
}
.artist-count,
.artist-name {
    display: block;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color : #fff;
}
/* Suppression définitive du GAP entre les <li> */
#listeArtiste,
#playlist{
    display: flex;
    flex-direction: column;  /* plus de wrap, liste verticale propre */
    gap: 0 !important;       /* FINI l’espace entre les li */
    padding: 0 !important;
    margin: 0 auto;
    width: 100%;
}
/* Hauteur verrouillée pour la zone liste */
#listeArtiste,
#playlist{
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;

    /* Empêche la playlist de pousser le footer */
    max-height: calc(100vh - var(--topbar-h) - 260px);
}

.track-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    padding: 10px 14px;
    background: #111;
    border-bottom: 1px solid #333;
    text-align: left !important;
}

.track-title {
    font-size: 14px;
    font-weight: 200;
    color: #fff;
    margin: 0;
}

.track-duration {
    font-size: 14px;
    color: white;
    margin-top: 4px;
    margin-left: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
}

.track-titlestatus {
    font-size: 15px;
    color: #FFA500 !important;
}

.track-durationstatus {
    font-size: 13px;
    color: #FFA500 !important;
    margin-top: 4px;
}
.current-track .artist-count,
.current-track .artist-name,
.current-track .track-duration {
    color: #FFA500 !important;
    font-weight: bold;
}

/* ============================================================
   MODE TABLETTE / SMARTPHONE
   ============================================================ */

@media (max-width: 710px) {

:root{
    --topbar-h: 44px;
}

body{
    padding-top:55px;
    padding-bottom:220px;
    font-size:14px;
}

/* Topbar */
#topbar{
    gap:6px;
    padding:6px;
}

.btn-img{
    width:34px;
    height:34px;
}

/* Les deux listes côte à côte */
#conteneur-liste{
    display:flex;
    gap:4px;
    height:calc(100vh - 300px);
}

.colonne{
    min-width:0;
}

#listeArtiste,
#playlist{
    max-height:none;
    height:100%;
    font-size:12px;
}

.artist-row,
.track-vertical{
    padding:6px;
}

.artist-name,
.artist-count,
.track-title,
.track-duration{
    font-size:12px;
}

/* Footer */
#cyp-footer{

    padding:12px 8px;
    gap:8px;
}

.footer-slider{
    width:95%;
}

#playlistProgressContainer{
    width:95%;
}

.footer-time{
    font-size:12px;
}

.footer-label{
    font-size:12px;
}

/* Bouton lecture */
#buttonImage{
    width:56px;
    height:56px;
}

/* Titre en cours */
#Titreencours{
    font-size:13px;
    line-height:1.2;
    text-align:center;
    width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

}

@media (max-width:480px){

.btn-img{
    width:28px;
    height:28px;
}

#buttonImage{
    width:48px;
    height:48px;
}

.artist-name,
.track-title{
    font-size:11px;
}

.track-duration{
    font-size:10px;
}

.footer-time,
.footer-label{
    font-size:11px;
}

}