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


/* ============================================================
   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: #fff;

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


.seek-bar-label {
    color: white;
    font-size: 0.9em;
    min-width: 40px;
    text-align: right;
}

.range-center {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centre le slider et le % */
    width: 100%;
}

#volCurRange {
    width: 85%;
    margin-bottom: 5px;
}

#volCurValue {
    font-size: 14px;
    color: yellow; /* ou blanc */
    text-align: center;
}
#socketEtat {
    font-size: 0.8em;     /* ↓ taille */
    color: #cccccc;       /* optionnel : plus discret */
}
#NomArtiste {
    font-size: 0.9em;     /* ↓ légèrement */
    font-weight: normal; /* évite trop de dominance */
}

/* ============================================================
   ESPACE AUTOMATIQUE POUR NE PAS CACHER LES TITRES
   ============================================================ */
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;
}



/* ============================================================
   BOUTONS / IMAGES
   ============================================================ */
.btn-img {
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-img:hover {
  transform: scale(1.1);
}



/* ================================
   STYLE LISTE TYPE SPOTIFY / DEEZER
   ================================ */

#songList li,
#results li,
#resultas li {
    margin: 0 !important;           /* supprime tout espace entre les li */
    padding: 0 !important;
    background: none !important;    /* pas de bulle grise arrondie */
    box-shadow: none !important;
    border-radius: 0;
}

/* Ligne principale */
.track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px;
    border-bottom: 1px solid #333;
    background-color: #111;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Hover Spotify */
.track-row:hover {
    background: #1c1c1c;
}

/* Partie gauche : titre + artiste */
.track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 80%;
}

/* Titre (en valeur) */
.track-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artiste (plus discret) */
.track-artist {
    font-size: 13px;
    color: #cfcfcf;
}

/* Durée à droite */
.track-duration {
    color: yellow;        /* cohérence avec thème MPD */
    font-size: 14px;
    white-space: nowrap;
    margin-left: 12px;
}


/* ============================================================
   CHAMPS DE RECHERCHE / CONTENEURS
   ============================================================ */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 12px auto;
}

.button-container input[type="text"],
.button-container select {
  padding: 6px 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #555;

  background-color: #222;
  color: white;

  transition: 0.2s ease-in-out;
}

.button-container input[type="text"]:focus,
.button-container select:focus {
  border-color: red;
  background-color: #333;
}



/* -----------------------------------------------------------
   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: #f5f5f5;

    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;
}

/* Bouton play */
.btn-play {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.btn-play:hover {
    transform: scale(1.12);
}

/* Texte temps */
.footer-time {
    color: #ddd;
    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: #ffe600;
    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;
}

/* Mobile */
@media (max-width: 480px) {
    .btn-play {
        width: 48px;
        height: 48px;
    }
    #cyp-footer {
        padding: 16px 8px;
    }
    .footer-slider {
        width: 90%;
    }
}
/* Centrage propre des champs de recherche */
.form-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    color: red;
}

.form-field label {
    font-size: 1.1em;
    margin-bottom: 6px;
}

.form-field input[type="text"] {
    width: 80%;
    max-width: 350px;
    padding: 8px 10px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #555;
    background: #222;
    color: white;
    text-align: center;
}
/* Bloc général sous le topbar */
#nowPlayingTopbar {
    width: 100%;
    background: #000;
    padding: 6px 0;
    overflow: hidden;
    text-align: center;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Conteneur du titre défilant */
#scrollingTitle {
    white-space: nowrap;
    overflow: hidden;
    width: 90%; /* largeur du défilement */
    position: relative;
}

/* Animation du texte */
#scrollingTitle span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
    color: yellow;
    font-size: 1em;
    font-weight: 600;
}

/* Animation keyframes moderne */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* ============================================================
   STYLE ARTISTES COMPACT – SANS ESPACE ENTRE LES <li>
   ============================================================ */
ul li:nth-child(odd) {
    background-color: #222;
}

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

#results li,
#songList li,
#resultas li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !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;
}


/* Suppression définitive du GAP entre les <li> */
#results,
#songList,
#resultas {
    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 */
#songList,
#results,
#resultas {
    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;
}


