/**
 * ==============================================================================
 * FEUILLE DE STYLE : Lecteur de Podcasts SoundCloud
 * ==============================================================================
 */

/* Conteneur global du bloc de podcasts */
.sc-server-player {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Carte individuelle représentant un épisode */
.sc-server-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #151515 !important;
    margin-bottom: 10px !important; /* Espacement vertical entre deux podcasts */
    padding: 12px 12px !important;    /* Hauteur interne de la carte */
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

/* Effet interactif au survol de la souris sur une carte */
.sc-server-card:hover {
    background-color: #1c1c1c !important;
}

/* Bloc contenant la numérotation, la pochette et les textes alignés à gauche */
.sc-server-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important; /* Crucial : empêche les flexbox de déborder hors de l'écran */
}

/* Numérotation de l'épisode (1, 2, 3...) */
.sc-server-number {
    color: #888888 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    width: 15px !important;
    text-align: center !important;
}

/* Miniature carrée de la pochette de l'épisode */
.sc-server-thumb {
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important; /* Empêche l'image de se compresser */
}

/* Conteneur vertical regroupant le titre et l'auteur */
.sc-server-details {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
}

/* Style du titre de l'épisode avec troncature par des points de suspension (...) */
.sc-server-title {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Style du sous-titre (Nom de la radio) */
.sc-server-author {
    color: #888888 !important;
    font-size: 11px !important;
    margin-top: 2px !important;
}

/* Icône de lecture (flèche play) sur le bord droit */
.sc-server-play-icon {
    color: #cc0000 !important;
    font-size: 15px !important;
    padding: 5px !important;
    flex-shrink: 0 !important;
}

/* --- ADAPTATION RESPONSIVE (Écrans mobiles et tablettes) --- */
@media (max-width: 768px) {
    .sc-server-player, .sc-server-card {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}