.digitalradio-card {
    --dr-blue: #1A0DE8;
    --dr-red: #E8142A;
    --dr-text: #1A1A1E;
    --dr-muted: #767686;

    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    color: var(--dr-text);
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 340px;
    font-family: -apple-system, "Segoe UI", Inter, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

/* ---------- Zone "pochette" avec bouton play ---------- */
.digitalradio-art {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dr-blue), var(--dr-red));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.digitalradio-playbtn {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.digitalradio-playbtn:hover { transform: scale(1.06); }
.digitalradio-playbtn svg { width: 18px; height: 18px; margin-left: 1px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
#digitalradio-icon-pause { margin-left: 0; }

/* Barres d'égaliseur animées, visibles seulement pendant la lecture */
.digitalradio-bars {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.digitalradio-card.is-playing .digitalradio-bars { opacity: 1; }
.digitalradio-card.is-playing .digitalradio-playbtn svg { opacity: 0; }
.digitalradio-bars span {
    width: 2.5px;
    height: 7px;
    background: #fff;
    border-radius: 2px;
    animation: digitalradio-eq 1s ease-in-out infinite;
}
.digitalradio-bars span:nth-child(1) { animation-delay: 0s; }
.digitalradio-bars span:nth-child(2) { animation-delay: 0.15s; }
.digitalradio-bars span:nth-child(3) { animation-delay: 0.3s; }
.digitalradio-bars span:nth-child(4) { animation-delay: 0.15s; }
.digitalradio-bars span:nth-child(5) { animation-delay: 0s; }

@keyframes digitalradio-eq {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}

/* ---------- Infos ---------- */
.digitalradio-info { flex: 1; min-width: 0; }
.digitalradio-name {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.digitalradio-status {
    margin: 0;
    font-size: 12.5px;
    color: var(--dr-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.digitalradio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    flex-shrink: 0;
}
.digitalradio-card.is-live .digitalradio-dot {
    background: var(--dr-red);
    box-shadow: 0 0 0 0 rgba(232,20,42,0.6);
    animation: digitalradio-pulse 1.6s infinite;
}
.digitalradio-card.is-reconnecting .digitalradio-dot {
    background: #f5a623;
    box-shadow: 0 0 0 0 rgba(245,166,35,0.6);
    animation: digitalradio-pulse 0.9s infinite;
}
@keyframes digitalradio-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232,20,42,0.55); }
    70% { box-shadow: 0 0 0 8px rgba(232,20,42,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,20,42,0); }
}

/* ---------- Volume ---------- */
.digitalradio-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dr-muted);
    flex-shrink: 0;
}
.digitalradio-volume input[type="range"] {
    width: 55px;
    accent-color: var(--dr-red);
    cursor: pointer;
}

@media (max-width: 480px) {
    .digitalradio-volume { display: none; }
    .digitalradio-card { max-width: 100%; }
}

.digitalradio-error {
    color: #c0392b;
    font-weight: 600;
}
