/* Estilos Generales del Bloque Minimal */
.radio-minimal-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.radio-minimal-logo {
    width: 100%;
    margin-bottom: 12px;
}

.radio-minimal-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* El Botón de Play / Stop */
.play-button {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid #303030 !important;
    background: transparent !important;
    color: #303030 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.play-button:hover {
    background: #303030 !important;
    color: #fff !important;
}

.play-button:hover .loader-spinner {
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
}

/* Estado Reproduciendo (Rojo) */
.radio-minimal-card.is-playing .play-button {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    background: transparent !important;
}

.radio-minimal-card.is-playing .play-icon {
    display: none !important;
}

.radio-minimal-card.is-playing .stop-icon {
    display: flex !important;
}

/* Iconos Internos */
.icon-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container svg {
    width: 100%;
    height: 100%;
}

/* Animación de Carga */
.loader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(48, 48, 48, 0.2);
    border-radius: 50%;
    border-top-color: #303030;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.is-loading .icon-container {
    display: none !important;
}

.is-loading .loader-spinner {
    display: block !important;
}

/* GRID LAYOUT - 4 COLUMNAS FORZADAS */
.radio-group-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Centra si hay menos de 4 */
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.radio-wrapper {
    flex: 0 0 calc(25% - 20px) !important; /* Fuerza 4 por fila */
    min-width: 150px !important;
    max-width: 220px !important;
}

/* Bloqueo global durante la carga */
body.is-radio-loading .play-button {
    cursor: wait !important;
    pointer-events: none !important;
    opacity: 0.7;
}

/* Excepto la que está cargando, para permitir cancelar si se desea (opcional) */
/* Pero el usuario pidió evitar apretar play en OTRAS, así que bloqueamos todo es más seguro */
@media (max-width: 1024px) {
    .radio-wrapper {
        flex: 0 0 calc(33.33% - 20px) !important;
    }
}

@media (max-width: 768px) {
    .radio-wrapper {
        flex: 0 0 calc(50% - 20px) !important;
    }
}

@media (max-width: 480px) {
    .radio-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
