/* Senego — Styles du widget « Radios Senegal » dans la sidebar.
 * Extrait du <style> inline de template-parts/radios-sidebar.php.
 * Enqueued conditionnellement sur les pages d'article (single).
 */

.radios-sidebar-block {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.2rem;
}
.radios-sidebar-block .rsb-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--senego-color-primary);
}
.radios-sidebar-block .rsb-title {
    font-family: var(--senego-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    color: var(--senego-color-heading);
    margin: 0;
}
.radios-sidebar-block .rsb-icon {
    font-size: 1.2rem;
}
.radios-sidebar-block .rsb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.radios-sidebar-block .rsb-item {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.2rem;
}
.radios-sidebar-block .rsb-item + .rsb-item {
    border-top: 1px solid #f2f2f2;
}
.radios-sidebar-block .rsb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background 0.15s;
    padding: 2px 4px;
}
.radios-sidebar-block .rsb-link:hover {
    background: #fff5e6;
}
.radios-sidebar-block .rsb-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radios-sidebar-block .rsb-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.radios-sidebar-block .rsb-info {
    flex: 1;
    min-width: 0;
}
.radios-sidebar-block .rsb-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.2;
}
.radios-sidebar-block .rsb-freq {
    font-size: 0.72rem;
    color: var(--color-primary, var(--senego-color-primary));
    font-weight: 600;
}
.radios-sidebar-block .rsb-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary, var(--senego-color-primary));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}
.radios-sidebar-block .rsb-play:hover {
    background: var(--senego-color-primary-dark);
    transform: scale(1.1);
}
.radios-sidebar-block .rsb-play.playing {
    background: #d32f2f;
    animation: rsb-pulse 2s infinite;
}
.radios-sidebar-block .rsb-play.playing:hover {
    background: #b71c1c;
}
@keyframes rsb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(211,47,47,0); }
}
.radios-sidebar-block .rsb-play svg {
    width: 14px;
    height: 14px;
}
.radios-sidebar-block .rsb-cta {
    display: block;
    margin-top: 0.8rem;
    padding: 0.55rem 1rem;
    background: var(--senego-color-primary);
    color: #fff;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}
.radios-sidebar-block .rsb-cta:hover {
    background: var(--senego-color-primary-dark);
    transform: translateY(-1px);
}

/* Mini floating player for sidebar radio */
#rsb-player {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--senego-color-text);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    align-items: center;
    gap: 10px;
}
#rsb-player.active { display: flex; }
#rsb-player .rsb-p-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}
#rsb-player .rsb-p-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#rsb-player .rsb-p-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#rsb-player .rsb-p-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
#rsb-player .rsb-p-btn:hover { opacity: 0.8; }
